#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, d;
  cin >> n >> d;
  if (n == d) {
    cout << "YES\n";
    return;
  }
  bool ff = 0;
  for (long long int x = 1; x <= n; ++x) {
    long long int temp = ceil(d * 1.0 / (x + 1));
    if (x + temp <= n) {
      ff = 1;
      break;
    }
  }
  if (ff)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
