#include <bits/stdc++.h>
using namespace std;
long long n, d;
bool b;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    cin >> n >> d;
    b = false;
    if (d <= n) {
      cout << "YES\n";
      continue;
    }
    for (long long x = 1; x * x <= d; x++) {
      long long X = x + 1;
      long long D = 0;
      D = d / X;
      if (d % X != 0) {
        D++;
      }
      long long sol = x + (D);
      if (sol <= n) {
        cout << "YES\n";
        b = true;
        break;
      }
    }
    if (b == false) {
      cout << "NO\n";
    }
  }
  return 0;
}
