T = int(input()) for _ in range(T): a, b, c, d = map(int, input().split()) A = 3 * a B = 2 * b C = c D = B**2 - 4 * A * C if a != 0 and D > 0: print('Yes') else: print('No')