#include <bits/stdc++.h>
using namespace std;
struct abc {
  long long int ind, val;
};
bool compare(abc a1, abc a2) { return a1.val < a2.val; }
long long int a[1111];
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, flag = 0;
    cin >> n >> d;
    for (long long int i = 0; i * i <= d; i++) {
      if (i + ceil(double(d) / (i + 1)) <= n || d <= n) {
        cout << "YES\n";
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cout << "NO\n";
    }
  }
}
