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