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