#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, d;
    cin >> n >> d;
    if (d <= n)
      cout << "YES" << endl;
    else {
      long long int flag = 0;
      for (long long int x = 1; x <= n; x++) {
        if (x + (d + x) / (x + 1) <= n) {
          cout << "YES" << endl;
          flag = 1;
          break;
        }
      }
      if (flag == 0) cout << "NO" << endl;
    }
  }
  return 0;
}
