#include <bits/stdc++.h>
using namespace std;
int Sum(int n) {
  if (n == 1)
    return 1;
  else
    return n + Sum(n - 1);
}
void zeroarr(int arr[], int n) {
  for (int i = 0; i < n; i++) {
    arr[i] = 0;
  }
}
long long int findSum(int A[], int N) {
  if (N <= 0) return 0;
  return (findSum(A, N - 1) + A[N - 1]);
}
void viewarr(int arr[], int n) {
  for (int i = 0; i < n; i++) cout << arr[i] << ' ';
  cout << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int n, d;
    cin >> n >> d;
    if (d <= n)
      cout << "YES" << endl;
    else {
      long long int tmp = n / 2;
      long long int tmp2 = d / (tmp + 1);
      long long int tmp3 = d % (tmp + 1);
      if (tmp3 != 0) tmp2++;
      if (tmp + tmp2 <= n)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
