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