import sys input = sys.stdin.readline T=int(input()) for tests in range(T): X,Y=map(int,input().split()) if X==Y: print("Yes") elif X==1: print("No") else: print("Yes")