#include <bits/stdc++.h>
using namespace std;
long long n, d;
long long calc(long long x) {
  long long ans = x;
  if (d % (x + 1) == 0)
    ans += (d / (x + 1));
  else
    ans += (d / (x + 1)) + 1;
  return ans;
}
void func() {
  cin >> n >> d;
  if (d <= n) {
    cout << "YES\n";
    return;
  }
  long long s = (long long)sqrt(d);
  long long x1 = max((long long)0, s - 1);
  long long x2 = max((long long)0, s - 2);
  long long x3 = max((long long)0, s);
  long long x4 = max((long long)0, s + 1);
  long long x5 = max((long long)0, s + 2);
  long long ans = d;
  ans = min(ans, calc(x1));
  ans = min(ans, calc(x2));
  ans = min(ans, calc(x3));
  ans = min(ans, calc(x4));
  ans = min(ans, calc(x5));
  if (ans <= n) {
    cout << "YES\n";
    return;
  }
  cout << "NO\n";
}
int main() {
  {
    ios ::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
  }
  long long q = 1;
  cin >> q;
  while (q) {
    func();
    q--;
  }
  return 0;
}
