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