n=int(input()) for i in range(n): a,b=map(int,input().split()) if a<=4: if b<=a: print("Yes") else: print("No") else: print("Yes")