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