#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    int n, d;
    cin >> n >> d;
    if (d <= n) {
      cout << "YES"
           << "\n";
    } else {
      int fg = 0;
      int l = 0;
      int r = n;
      while (l < r) {
        int mid = (l + r) / 2;
        int re = mid + ceil((d * 1.0) / ((mid + 1) * 1.0));
        if (re <= n) {
          fg = 1;
          break;
        } else {
          r = mid;
        }
      }
      if (fg == 0) {
        cout << "NO"
             << "\n";
      } else
        cout << "YES"
             << "\n";
    }
  }
}
