T = int(input()) for _ in range(T): x,y = map(int,input().split()) if x == y: print('Yes') elif x == 1: print("No") elif x == 2 and y != 1: print('No') elif x == 3 and y > 3: print('No') elif x == 4 and y > 4: print('No') else: print('Yes')