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