from collections import defaultdict import sys readline=sys.stdin.readline write=sys.stdout.write import itertools T=int(readline()) for t in range(T): X,Y=map(int,readline().split()) if X>=Y: ans="Yes" elif X>=5: ans="Yes" else: ans="No" print(ans)