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