T = int(input()) for i in range(T): X,Y = map(int,input().split()) if X >= 5: print("Yes") elif X >= Y: print("Yes") else: print("No")