#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
char myHeap[200 * 1024 * 1024];
long long sz = 0;
void assert_tle(bool q) {
  while (!q)
    ;
}
void *operator new(std::size_t count) {
  sz += count;
  assert_tle(sz <= 200 * 1024 * 1024);
  return myHeap + sz - count;
}
void operator delete(void *ptr) {}
void c_p_c() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void solve() {
  double n, d;
  cin >> n >> d;
  if (n >= d) {
    cout << "YES";
    return;
  }
  long long temp = sqrt(d) - 1;
  long long k = ceil(d / (temp + 1));
  if (k + temp <= (long long)n) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
int32_t main() {
  clock_t z = clock();
  c_p_c();
  long long t;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
  cerr << "Total Time : " << ((double)(clock() - z) / CLOCKS_PER_SEC);
  return 0;
}
