#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, n, d;
  cin >> t;
  while (t--) {
    cin >> n >> d;
    long long tmp = (long long)ceil(sqrt(d) * (2ll));
    tmp = tmp - 1;
    if (tmp <= n)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
