#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, d;
    cin >> n >> d;
    long long x = (n + 1) * (n + 1) / (4 * d) - 1;
    if (x >= 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
