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