def main(): t = int(input()) for _ in range(t): x, y = map(int, input().split()) if y <= x or x > 4: print('Yes') else: print('No') if __name__ == "__main__": main()