#include <bits/stdc++.h>
using namespace std;

int main() {
    //freopen("sin.in", "r", stdin);
    //freopen("sout.out", "w", stdout);
    int t;
    cin >> t;
    while(t--) {
        int x, y, k;
        cin >> x >> y >> k;
        if(x < y) swap(x, y);
        if(x - y > k) cout << "NO\n";
        else cout << "YES\n";
    }
}