#include <bits/stdc++.h>
using namespace std;
int f() {
  int n, d;
  cin >> n >> d;
  int s = sqrt(d) - 1;
  int flag = 0;
  for (int i = -2; i <= 2; i++) {
    int x = s + i;
    if (x < 0) continue;
    if (x + ((d + x) / (x + 1)) <= n) flag = 1;
  }
  cout << (flag ? "YES" : "NO") << '\n';
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T;
  cin >> T;
  while (T--) f();
}
