STANDARD TEMPLATE FOR DATA READING
import java.util.*;
class Elephant {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int test = scan.nextInt();
for(int ts=0;ts<test;ts++){
int N = scan.nextInt();
int C = scan.nextInt();
int sum = 0;
int[] arr = new int[N];
for(int i=0;i<N;i++) {
arr[i]= scan.nextInt();
sum = sum+arr[i];
}
if(sum<= C) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
}