#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, a, k;
  double d;
  cin >> t;
  while (t--) {
    cin >> a >> d;
    k = -1;
    long long int L = 0, R = a, mid;
    while (L <= R) {
      mid = L + (R - L) / 2;
      long long int b = mid + ceil(d / (mid + 1));
      if (b > a)
        R = mid - 1;
      else {
        k = 1;
        break;
      }
    }
    if (k == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
