import sys input=lambda:sys.stdin.readline().rstrip() T=int(input()) for i in range(T): X,Y=map(int,input().split()) print(["Yes","No"][X