#include <bits/stdc++.h>
using namespace std;
long long count(int n) {
  if (n == 1)
    return 0;
  else if (n == 3)
    return 8;
  else
    return count(n - 2) + (n * 4 - 4) * floor(n / 2.0);
}
int main() {
  long long n, t, flag, i, j, k, a, d, x;
  cin >> t;
  while (t--) {
    cin >> n >> d;
    if (d <= n)
      cout << "YES" << endl;
    else {
      flag = 0;
      x = 1;
      while (flag == 0 && x <= n) {
        k = ceil(d * 1.0 / (x + 1));
        if (k + x <= n) {
          cout << "YES" << endl;
          flag = 1;
        }
        x++;
      }
      if (flag == 0) cout << "NO" << endl;
    }
  }
}
