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