#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  int n, d;
  while (t--) {
    scanf("%d%d", &n, &d);
    double add = 0;
    if (n >= d)
      printf("YES\n");
    else {
      int low = 0, high = n - 1;
      bool posible = false;
      while (high > low) {
        int mid = low + (high - low) / 2;
        add = ceil(1.0 * d / (mid + 1));
        if (add + mid <= n) {
          high = mid;
          posible = true;
          break;
        } else
          low = mid + 1;
      }
      if (posible)
        printf("YES\n");
      else
        printf("NO\n");
    }
  }
  return 0;
}
