#include using namespace std; using i32 = int; using i64 = long long; using i128 = __int128_t; using f64 = double; using p2 = pair; using el = tuple; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(18); _main(); } void _main() { i64 tt; cin >> tt; for (;tt--;) { i64 a, b, c, d; cin >> a >> b >> c >> d; if (a == 0) { cout << "No\n"; continue; } if (a < 0) { a = -a, b = -b, c = -c, d = -d; } if (-(b * b) + 3 * a * c < 0) { cout << "Yes\n"; } else { cout << "No\n"; } } }