#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0;
  char ch = getchar();
  while (ch < '0' || ch > '9') ch = getchar();
  while ('0' <= ch && ch <= '9') x = x * 10 + ch - '0', ch = getchar();
  return x;
}
int t;
int main() {
  t = read();
  while (t--) {
    int n = read(), d = read();
    int ans = d;
    d--;
    int x = sqrt(d);
    if (x + d / (x + 1) + 1 < ans) ans = x + d / (x + 1) + 1;
    if (x + 1 + d / (x + 2) + 1 < ans) ans = x + 1 + d / (x + 2) + 1;
    if (ans <= n)
      puts("Yes");
    else
      puts("No");
  }
}
