#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int a, b;
    cin >> a >> b;
    if (a / 2 + ceil(1.0 * b / (a / 2 + 1)) > a) {
      cout << "NO\n" << endl;
    } else {
      cout << "YES\n" << endl;
    }
  }
}
