#include <bits/stdc++.h>
using namespace std;
int tMax;
long long n, d;
int read() {
  int x = 0, w = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch <= '9' && ch >= '0') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * w;
}
int main() {
  tMax = read();
  while (tMax--) {
    cin >> n >> d;
    long long x = sqrt(d);
    if (ceil(double(d) / x) + x - 1 <= n) {
      int y = ceil(float(d) / x);
      printf("Yes\n");
      continue;
    }
    if (ceil(double(d) / (x + 1)) + x <= n) {
      printf("Yes\n");
      continue;
    }
    if (ceil(double(d) / (x + 2)) + x + 1 <= n) {
      printf("Yes\n");
      continue;
    }
    if (ceil(double(d) / (x - 1)) + x - 2 <= n) {
      printf("Yes\n");
      continue;
    }
    printf("No\n");
  }
  return 0;
}
