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