#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    double n, m;
    cin >> n >> m;
    if (n >= m) {
      cout << "YES" << endl;
      continue;
    }
    double ans = pow(m, 0.5) - 1;
    ans = ans + m / (ans + 1);
    if (ans <= n)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
