#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, n, d, y;
  int i, t;
  cin >> t;
  for (i = 0; i < t; i++) {
    cin >> n >> d;
    x = n / 2;
    if (d % (x + 1) == 0) {
      y = d / (x + 1);
    } else {
      y = (d / (x + 1)) + 1;
    }
    if (x + y <= n) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}
