n = int(input()) for _ in range(n): a, b = map(int, input().split()) d = a - b if d == 0: print("=") else: sign = d // abs(d) print(">" if sign == 1 else "<")