#include <bits/stdc++.h>
using namespace std;
long long max(long long a, long long b) {
  if (a >= b)
    return a;
  else
    return b;
}
long long min(long long a, long long b) {
  if (a <= b)
    return a;
  else
    return b;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int a, b, c, m;
    cin >> a >> b >> c >> m;
    int arr[3] = {a, b, c};
    sort(arr, arr + 3);
    a = arr[0];
    b = arr[1];
    c = arr[2];
    int mxm = a + b + c - 3;
    int mnm = 0;
    if (a + b < c - 1) mnm = c - (a + b + 1);
    if (m > mxm || m < mnm)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
  return 0;
}
