#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, d;
    cin >> n >> d;
    if (n >= d) {
      cout << "YES\n";
    } else {
      long long x = (n - 2) / 2;
      bool ok = false;
      for (long long i = max(0ll, x); i <= x + 3; i++) {
        if (i + (d + i) / (i + 1) <= n) {
          cout << "YES\n";
          ok = true;
          break;
        }
      }
      if (!ok) {
        cout << "NO\n";
      }
    }
  }
  return 0;
}
