#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T, class U>
ostream& operator<<(ostream& o, const pair<T, U>& p) {
  o << "(" << p.first << "," << p.second << ")";
  return o;
}
template <class T>
ostream& operator<<(ostream& o, const vector<T>& v) {
  o << "[";
  for (T t : v) {
    o << t << ",";
  }
  o << "]";
  return o;
}
bool solve() {
  int n, d;
  cin >> n >> d;
  for (int i = 0; i * i <= d; ++i) {
    int q = i + 1;
    int t = i + (d + q - 1) / q;
    if (t <= n) return true;
  }
  return false;
}
int main() {
  int t;
  cin >> t;
  while (t--) cout << (solve() ? "YES" : "NO") << "\n";
  return 0;
}
