#include <bits/stdc++.h>
using namespace std;
int main() {
  int test;
  cin >> test;
  while (test) {
    int flag = 0;
    int n, d;
    cin >> n >> d;
    int x = 0;
    while (x < n) {
      int a;
      if (d % (x + 1) == 0)
        a = d / (x + 1);
      else
        a = (d / (x + 1)) + 1;
      if (n - x >= a) {
        flag = 1;
        break;
      } else {
        flag = 0;
        x++;
      }
    }
    if (flag == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    test--;
  }
  return 0;
}
