T=int(input()) Ans=[0]*T for t in range(T): X,Y=map(int,input().split()) if X<=4: if X>=Y: Ans[t]=1 else: Ans[t]=1 print("Yes" if Ans[t] else "No")