#include <bits/stdc++.h>
using namespace std;
void display(vector<int> v1) {
  for (long long int i = 0; i < v1.size(); i++) {
    cout << v1[i] << " ";
  }
  cout << endl;
}
long long int dx[8] = {0, 1, 0, -1, 1, 1, -1, -1};
long long int dy[8] = {1, 0, -1, 0, 1, -1, 1, -1};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long int t;
  cin >> t;
  while (t--) {
    long long int p, L, R;
    cin >> p >> L >> R;
    int minit = p / L;
    bool flag = false;
    for (long long int i = minit; i <= minit + 5000; i += 1) {
      long long int newL = L * i;
      long long int newR = R * i;
      if (p >= newL and p <= newR) {
        flag = true;
      }
    }
    if (flag) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
