T = int(input()) XY = [list(map(int, input().split())) for _ in range(T)] for x, y in XY: if x>=5: print("Yes") else: if x>=y: print("Yes") else: print("No")