#include <bits/stdc++.h>
using namespace std;
int n, t, d;
int main() {
  scanf("%d", &t);
  while (t--) {
    scanf("%d%d", &n, &d);
    int lim = sqrt(d) + 0.5, ok = 0;
    for (int i = 0; i <= lim * 2; ++i)
      if (i + ceil(d / (double)(i + 1)) <= n) ok = 1;
    puts(ok ? "YES" : "NO");
  }
  return 0;
}
