#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  long long n, d;
  while (t--) {
    cin >> n >> d;
    if (d <= n)
      cout << "YES" << endl;
    else {
      bool ck = false;
      long long x = 0, i = 0;
      for (i = n; i >= 1; i--) {
        x = (d / (i + 1));
        if (d % (i + 1) != 0) x++;
        if ((x + i) <= n) {
          ck = true;
          break;
        }
      }
      if (ck)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
