exec('a,b,c,d=map(int,input().split());print("YNeos"[b*b<=3*a*c or c==0::2]);'*int(input()))