T = int(input()) for _ in range(T): X, Y = map(int, input().split()) if X >= Y or X > 4: print('Yes') else: print('No')