mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline for _ in range(int(input())): x, y = map(int, input().split()) if x == 1: if y == 1: print("Yes") else: print("No") elif x <= 4: if y <= x: print("Yes") else: print("No") else: print("Yes") if __name__ == '__main__': main()