def solve(x, y): if x > 4 or y == 1: return 1 if 1 < x < 5 and y <= x: return 1 else: return 0 def main(): T = int(input()) for _ in range(T): x, y = map(int, input().split()) print('Yes' if solve(x, y) else 'No') main()