import sys input = lambda: sys.stdin.readline().rstrip() # ----------------------- # def main(): x, y = map(int, input().split()) if x == y: return 'Yes' if x > y: return 'Yes' if x >= 5: return 'Yes' return 'No' print('\n'.join(str(main()) for _ in range(int(input()))))