n = int(input())
all_numbers = []
for i in range(n):
    numbers = list(int(i) for i in input().split())
    numbers.sort()
    all_numbers.append(numbers)
for i in all_numbers:
    summ = i[0] + i[-1]
    if i[1] + i[-2]==summ and i[2]+ i[-3]==summ:
        print('yes')
    else:
        print('no')