#include<stdio.h>
int main(){
int n,c,t,k,a[100];
// long unsigned int candy;
unsigned long long candy;
scanf("%d",&t);
for(;t>0;t--) {
c = 0;
printf("DEBUG t : %d\n",t);
scanf("%d %llu",&n,&candy);
printf("DEBUG t : %d\n",t);
for(k=0;k<n;k++) {
printf("DEBUG t : %d\n",t);
scanf("%d",&a[k]);
c=c+a[k];
}
if(candy<c) printf("No\n");
else printf("Yes\n");
printf("DEBUG t : %d\n",t);
}
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KaW50IG1haW4oKXsKICAgIGludCBuLGMsdCxrLGFbMTAwXTsKLy8gICAgbG9uZyB1bnNpZ25lZCBpbnQgY2FuZHk7CiAgICB1bnNpZ25lZCBsb25nIGxvbmcgY2FuZHk7CglzY2FuZigiJWQiLCZ0KTsKICAgIGZvcig7dD4wO3QtLSkgewoJCWMgPSAwOwoJICAgIHByaW50ZigiREVCVUcgdCA6ICVkXG4iLHQpOwoJICAgIHNjYW5mKCIlZCAlbGx1IiwmbiwmY2FuZHkpOwoJICAgIHByaW50ZigiREVCVUcgdCA6ICVkXG4iLHQpOwoJICAgIGZvcihrPTA7azxuO2srKykgewoJCSAgICBwcmludGYoIkRFQlVHIHQgOiAlZFxuIix0KTsKCQkJc2NhbmYoIiVkIiwmYVtrXSk7CgkJCWM9YythW2tdOwoJCX0KCQlpZihjYW5keTxjKSBwcmludGYoIk5vXG4iKTsKCQllbHNlIHByaW50ZigiWWVzXG4iKTsKCQlwcmludGYoIkRFQlVHIHQgOiAlZFxuIix0KTsKCX0KICAgIHJldHVybiAwOwp9