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