for _ in range(int(input())):
    x, y = map(int, input().split())
    if x <= 4: print("Yes" if y <= x else "No")
    else: print("Yes")