#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int TESTS = 1;
  cin >> TESTS;
  while (TESTS--) {
    long long n, d;
    cin >> n >> d;
    if (d <= n) {
      cout << "YES\n";
      continue;
    }
    long long fl = 0;
    for (long long int i = 1; i < sqrt(d) + 2; i++) {
      if (i + ceil((double)d / (i + 1)) <= n) {
        cout << "YES\n";
        fl = 1;
        break;
      }
    }
    if (!fl) cout << "NO\n";
  }
  return 0;
}
