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