import std.stdio, std.string, std.algorithm, std.array;

void main()
{
    int t;
    scanf("%d", &t);
    getchar();
    foreach(i; 0..t){
	    long a,b,c,m;
	    scanf("%lld %lld %lld %lld", &a, &b, &c, &m);
	    auto top_max = a + b + c - 3;
	    auto max_v = max(a,b,c);
	    auto min_v = min(a,b,c);
	    auto mid_v = a + b + c - max_v - min_v;
	    if ((m > top_max) || (max_v > (min_v + mid_v + 1 + m)))
		    writeln("NO");
	    else
		    writeln("YES");
    }
}
