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

bool solve(int r, int b, int d)
{
    if(r != b && d == 0) return false;
    if(r == 0 || b == 0) return false;

    long long diff = max(r, b) - min(r, b);

    if(diff - (((long long)min(r, b) - 1) * (long long)d) <= d)
    {
        return true;
    }

    return false;
}

int main()
{
   int t;

   scanf("%i", &t);

    for(int i = 0; i < t; i++)
    {
         int r, b, d;
        scanf("%i %i %i", &r, &b, &d);

        if(solve(r, b, d))
        {
            printf("YES\n");
        }
        else
        {
            printf("NO\n");
        }
    }

}