#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long a, b;
    cin >> a >> b;
    bool ok = false;
    if (b <= a)
      cout << "YES" << endl;
    else {
      for (int i = 1; i < a; i++) {
        long long c = b % (i + 1);
        if (c == 0) {
          if ((b / (i + 1)) + i <= a) {
            ok = true;
            break;
          }
        } else {
          if ((b / (i + 1)) + 1 + i <= a) {
            ok = true;
            break;
          }
        }
      }
      if (ok)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
