#include <bits/stdc++.h>
using namespace std;
const long long INF = 0x3f3f3f3f;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t) {
    long long n, d;
    cin >> n >> d;
    if (d <= n) {
      cout << "YES" << endl;
    } else {
      long long dif = n - d;
      long long b = 1 - n;
      long long delta = b * b;
      long long mini = -1 * (delta) / 4;
      if (mini <= dif) {
        cout << "YES" << endl;
      } else {
        cout << "NO" << endl;
      }
    }
    t--;
  }
  return 0;
}
