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