n = int(input()) for i in range(n): x, y = map(int, input().split()) if x <= 4 and y > x: print("No") else: print("Yes")