Can someone point out my mistake in (WGHTS) Question?

cook your dish here

for _ in range(int(input())):
W,X,Y,Z=map(int,input().split())
if W in (X,Y,Y,X+Y,X+Z,Y+Z,X+Y+Z):
print(“YES”)
else:
print(“NO”)

It is showing WA for test cases on submitting but i think the code is correct