x=list (map(int,input().split())) t=x[0] x=x[1::] for i in range(0,t): if x[i*2]>4 or x[i*2]>=x[i*2+1]: print ("Yes") else: print ("No")