#include <bits/stdc++.h>
#pragma warning(disable : 4996)
int main() {
  int c;
  scanf("%d", &c);
  while (c--) {
    int n, d;
    scanf("%d%d", &n, &d);
    int tmin = 0x7FFFFFFF;
    for (int t = 0; t <= sqrt(d) + 1; t++) {
      int temp = (int)ceil((double)d / (t + 1)) + t;
      if (tmin > temp) tmin = temp;
    }
    if (n >= tmin)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
