#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int flag = 0;
    int n, d;
    cin >> n >> d;
    if (d <= n) flag = 1;
    int i;
    for (i = 1; i <= sqrt(d); i++) {
      int s = (d + i) / (i + 1);
      if (i + s <= n) flag = 1;
    }
    if (flag == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
