for _ in range(int(input())): A, B, C, D = map(int, input().split()) if A == 0: print("No") elif 0 < B**2-4*A*C: print("Yes") else: print("No")