t = int(input()) for i in range(t): x, y = map(int, input().split()) if x == y: print("Yes") elif x >= 5 or x >= y: print("Yes") else: print("No")