#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, T, m, ans;
  long long i, j, k;
  while (cin >> T) {
    while (T--) {
      cin >> n >> m;
      if (m <= n) {
        cout << "YES" << endl;
      } else {
        int flag = 0;
        j = (long long)sqrt(m);
        for (i = j - 1; i < j + 1; i++) {
          if (i + m / (i + 1) < n ||
              (i + m / (i + 1) == n && m % (i + 1) == 0)) {
            flag = 1;
          }
        }
        if (flag == 1) {
          cout << "YES" << endl;
        } else {
          cout << "NO" << endl;
        }
      }
    }
  }
  return 0;
}
