#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, d;
  cin >> n >> d;
  if (d <= n)
    cout << "YES" << endl;
  else {
    long long int x = sqrt(d) - 1;
    auto res = x + ceil((double)d / (x + 1));
    if (res <= n)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
