#include <bits/stdc++.h>
using namespace std;
long long dp[1000006];
int main() {
  int t, n, d, x, x1;
  cin >> t;
  while (t--) {
    cin >> n >> d;
    x = sqrt(d);
    x1 = x + 1;
    int x2 = x - 1;
    if (x + ceil((d * 1.0) / (x + 1)) <= n ||
        x1 + ceil((d * 1.0) / (x1 + 1)) <= n ||
        x2 + ceil((d * 1.0) / (x2 + 1)) <= n)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
