t = int(input()) for _ in range(t): a, b, c, d = map(int, input().split()) if a == 0: print("No") else: D = 4 * b * b - 12 * a * c if D > 0: print("Yes") else: print("No")