for _ in range(int(input())): x, y = map(int, input().split()) if x >= y or (x < y and x >= 5): print('Yes') else: print('No')