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