#include <bits/stdc++.h>
using namespace std;
const char nl = '\n';
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 7;
const int N = 1e6 + 1;
int dx[] = {-1, 1, 0, 0, 1, -1, -1, 1};
int dy[] = {0, 0, -1, 1, 1, -1, 1, -1};
int div_ceil(int numerator, int denominator) {
  std::div_t res = std::div(numerator, denominator);
  return res.rem ? (res.quot + 1) : res.quot;
}
void IO() {}
void decode() {
  long long n, d;
  cin >> n >> d;
  int cur = sqrt(d);
  if (d <= n) {
    cout << "YES" << endl;
    return;
  }
  int ans = cur - 1 + (d + cur - 1) / (cur);
  cout << (ans <= n ? "YES" : "NO");
  cout << endl;
}
int32_t main() {
  IO();
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T = 1;
  cin >> T;
  while (T--) {
    decode();
  }
  return 0;
}
