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()