def solve(a, b, c, d): if a == 0: return False # f'(x) = 3ax^2 + 2bx + c return b * b - 3 * a * c > 0 for _ in range(int(input())): print('Yes' if solve(*map(int, input().split())) else 'No')