#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int q = 0; q < t; q++) {
    double n, d;
    cin >> n >> d;
    if (n >= d)
      cout << "YES" << endl;
    else {
      int x = ceil(sqrt(d)) - 1;
      int y = x + ceil(d / (x + 1));
      if (y <= n)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
}
