#include <bits/stdc++.h>
template <class T>
void Cmin(T &t, T x) {
  if (x < t) t = x;
}
template <class T>
void Cmax(T &t, T x) {
  if (x > t) t = x;
}
using namespace std;
const double PI = acos(-1.0);
const double EPS = 1e-9;
const int INF = 0x7FFFFFFF;
const int maxN = 400010;
int main() {
  std::ios::sync_with_stdio(false);
  int T;
  cin >> T;
  while (T--) {
    long long n, L, R;
    cin >> n >> L >> R;
    R = n / L * R;
    L = n / L * L;
    puts((n <= R) ? "Yes" : "No");
  }
  return 0;
}
