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