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