#include <bits/stdc++.h>
using namespace std;
int cl(int d, int x1) {
  if (d % x1 == 0) {
    return d / x1;
  } else {
    return d / x1 + 1;
  }
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    unsigned long int n, d, p = 0;
    cin >> n >> d;
    if (d <= n) {
      cout << "YES" << endl;
      p = 1;
      continue;
    } else {
      for (long long int x = 1; x <= n; x++) {
        if (x + cl(d, (x + 1)) <= n) {
          cout << "YES" << endl;
          p = 1;
          break;
        }
      }
    }
    if (p == 0) {
      cout << "NO" << endl;
    }
  }
  return 0;
}
