T = int(input()) for _ in range(T): X,Y=map(int, input().split()) print("Yes" if X>=Y or X>=5 else "No")