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