testcases=int(input())

c=0

if testcases<1 or testcases>100:

c=1

while(c==0 and testcases):

p=0

t=0

n,m= [int(x) for x in input().split()]

a=[]

if n>20 or n<0:

t=1

if m>1000:

p=1

if t==0 and p==0:

for i in range(0,n):

k=int(input())

a.append(k)

a.sort()

for s in range(n-1,-1,-1):

if(m>=a[s]):

m=m-a[s]

```
if m==0:
print('Yes')
else:
print('No')
testcases-=1
```