#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  long long n, t, d;
  cin >> t;
  while (t--) {
    cin >> n >> d;
    long long x, s = sqrt(d);
    bool flag = false;
    if (d <= n)
      cout << "Yes" << endl;
    else {
      for (int j = 0; j < s; j++) {
        x = d / (j + 1);
        if (d % (j + 1) != 0) x++;
        x += j;
        if (x <= n) {
          cout << "Yes" << endl;
          flag = true;
          break;
        }
      }
      if (!flag) cout << "No" << endl;
    }
  }
  return 0;
}
