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