#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, d;
    cin >> n >> d;
    int flag = 0;
    if (n >= d) {
      cout << "YES" << endl;
      continue;
    }
    for (int i = 1; i <= sqrt(d); i++) {
      long long val = (long long)ceil((double)d / (i + 1));
      if (val + i <= n) {
        flag = 0;
        cout << "YES" << endl;
        break;
      } else
        flag = 1;
    }
    if (flag == 1) cout << "NO" << endl;
  }
}
