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