#yuki1850 t=int(input()) for i in range(t): x,y=map(int,input().split()) if y<=x or x>4: print('Yes') else: print('No')