#include<stdio.h>
int main()
{
int t,a,i;
int b,temp,count;
scanf("%d",&t);
while(t–)
{
count=0;
scanf("%d%d",&a,&b);
for(i=0;i<a;i++)
{
scanf("%d",&temp);
count+=temp;
}
if(count<=b)
{
printf("YES\n");
}
else
{
printf("NO\n");
}
}
return 0;
}