func_code_string: #include <bits/stdc++.h>   using namespace std;   #define endl   n    typedef long long ll;   typedef pair<int, int> pii;   typedef pair<ll, ll> pll;   typedef tuple<int, int, int> tiii;   typedef tuple<ll, ll, ll> tlll;   const int INF = 100000000;   const ll INFINITE = 4500000000000000000;      int main(void) {    int t;    cin >> t;    while (t--) {     int s1, s2, s3, s4;     cin >> s1 >> s2 >> s3 >> s4;     if (min(s1, s2) < max(s3, s4) &&min(s3, s4) <max(s1, s2))      cout <<  YES  << endl;     else      cout <<  NO  << endl;       }   }