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