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