#include <bits/stdc++.h>
using namespace std;
typedef long double lb;
typedef long double ll;
lb a, A, B, x, y;
int t;


int main(){
    ios_base::sync_with_stdio(0);
    cout.tie(0);
    cin.tie(0);
    cin >> t;
    while(t--){
        cin >> x >> y >> a;
        a += 0.5;
        string ans = "";
        long long L = 1, R = 1e9;
        bool printed = false;
        if(x >= a){
            cout << "NO" << endl;
            continue;
        }
        while(L <= R){
            ll mid = (L + R) / 2;
            A = mid * x + mid * y;
            B = (mid + 1) * x + mid * y;
            if(A >= a and B < a){
                cout << "YES" << endl;
                printed = true;
                break;
            }
            if(B >= a and A < a){
                cout << "NO" << endl;
                printed = true;
                break;
            }
            if(A < a and B < a) L = mid + 1;
            if(A > a and B > a){
                R = mid - 1;
                ans = "YES";
            }
        }
        if(ans.size() and !printed) cout << ans << endl;
    }
}