import sys input = sys.stdin.readline T = int(input()) for _ in range(T): X, Y = map(int, input().split()) if X >= 5 or Y <= X: print("Yes") else: print("No")