for _ in range(int(input())): n,m=map(int,input().split()) print("Yes"if(n>=m or 4