#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, d;
    cin >> n >> d;
    if (d <= n)
      cout << "YES" << '\n';
    else {
      bool ok = false;
      for (int i = 1; i * i <= d; i++)
        if (i + (d + i) / (i + 1) <= n) ok = true;
      if (ok)
        cout << "YES" << '\n';
      else
        cout << "NO" << '\n';
    }
  }
  return 0;
}
