T = int(input()) ans = [] for i in range(T): X,Y = map(int,input().split()) if X >= Y: ans.append('Yes') elif X >= 5: ans.append('Yes') else: ans.append('No') print(*ans,sep='\n')