#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, d, i, cal;
  for (scanf("%d", &t); t--; printf("\n")) {
    cin >> n >> d;
    int minn = INT_MAX;
    for (i = 0; i <= sqrt(d); i++) {
      if (d % (i + 1) == 0)
        cal = i + (d / (i + 1));
      else
        cal = i + (d / (i + 1)) + 1;
      minn = min(minn, cal);
    }
    (minn <= n) ? printf("YES") : printf("NO");
  }
  return 0;
}
