#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, n, d, temp;
  double x = 0.0;
  string yes = "YES\n", no = "NO\n";
  cin >> t;
  while (t--) {
    x = 0.0;
    cin >> n >> d;
    if (d <= n)
      cout << yes;
    else {
      while (n != 0) {
        n--;
        if (n == 0) break;
        x++;
        temp = ceil(d / (x + 1));
        if (temp <= n) {
          cout << yes;
          break;
        }
      }
      if (n == 0) cout << no;
    }
  }
  return 0;
}
