from functools import lru_cache def solve(): x, y = map(int,input().split()) if x > 2: return 'Yes' else: if x == y: return 'Yes' elif x == 2 and y == 1: return 'Yes' return 'No' for _ in range(int(input())): print(solve())