t = int(input()) for _ in range(t): x, y = map(int, input().split()) if x <= 4: if y <= x: print("Yes") else: print("No") else: print("Yes")