t=int(input()) for i in range(t): x,y=list(map(int, input ().split())) if x>=y or x>4: print("Yes") else: print("No")