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