#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int t;
  cin >> t;
  while (t--) {
    int n, d;
    cin >> n >> d;
    if (n >= d) {
      cout << "YES" << endl;
      continue;
    }
    int a = sqrt(n);
    int b = d / (a + 1);
    if (b * (a + 1) != d) b++;
    int ans = a + b;
    b = sqrt(d);
    a = b - 1;
    int c = d / b;
    if (c * b != d) c++;
    ans = min(ans, a + c);
    if (ans > n)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
