#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, d;
    cin >> n >> d;
    int x = sqrt(d);
    bool good = false;
    for (int q = x - 5; q < x + 5; q++) {
      if (q < 0) {
        continue;
      }
      int add = (d + q) / (q + 1);
      if (q + add <= n) {
        good = true;
      }
    }
    cout << (good ? "YES\n" : "NO\n");
  }
  return 0;
}
