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