func_code_string: #include <bits/stdc++.h>   #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)   #define int long long int   #define double long double   #define endl   n    const int mod = 1000000007;   using namespace std;      int modExpo(int x , int n)   {    int ans = 1;    while (n > 0) {     if ( n & 1 == 1 ) ans = ( ans * x ) % mod;     x = ( x * x ) % mod; n = n / 2;    }    return ans;   }                                 void solve()   {    vector<int> v(4);    for(int i=0;i<4;i++)     cin>>v[i];       int x = max(v[0] , v[1]);    int y = max(v[2] , v[3]);       if(x < v[2] && x < v[3])    {     cout<< NO n ;     return;    }        if(y < v[0] && y < v[1])    {     cout<< NO n ;     return;    }        cout<< YES n ;    // cout<<x<<y;   }                                 int32_t main()   {   #ifndef ONLINE_JUDGE    freopen( input.txt ,  r , stdin);    freopen( output.txt ,  w , stdout);   #endif       fast;    int tt;    cin >> tt;    while (tt--)    {     solve();    }    return 0;   }   