#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, z, n, d, i, c, b;
  float a;
  cin >> t;
  for (z = 1; z <= t; z++) {
    cin >> n >> d;
    if (d <= n) {
      cout << "YES" << endl;
      continue;
    }
    c = 0;
    for (i = 2; i <= sqrt(d); i++) {
      a = (float)d / (float)i;
      b = ceil(a);
      if ((b + i - 1) <= n) {
        c = 1;
        break;
      }
    }
    if (c == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
