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