#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t, n, d;
  cin >> t;
  for (int i = 0; i < t; i++) {
    cin >> n >> d;
    int x = 0, sum, prev;
    sum = x + ceil((d / (x + 1)));
    prev = sum;
    while (sum > n) {
      x++;
      sum = x + ceil((double(d) / double(x + 1)));
      if (sum > prev) {
        break;
      }
      prev = sum;
    }
    cout << (sum <= n ? "YES\n" : "NO\n");
  }
  return 0;
}
