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