#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int a, b, c, m;
    cin >> a >> b >> c >> m;
    long long int sum = a + b + c + m;
    if (a > (sum + 1) / 2) {
      cout << "NO"
           << "\n";
    } else if (b > (sum + 1) / 2) {
      cout << "NO"
           << "\n";
    } else if (c > (sum + 1) / 2) {
      cout << "NO"
           << "\n";
    } else if (m <= (sum - 3) / 2) {
      cout << "YES"
           << "\n";
    } else {
      cout << "NO"
           << "\n";
    }
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
  return 0;
}
