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