#include <bits/stdc++.h>
using namespace std;
const long long N = 1e7 + 5;
long long n, t, a, b, c, d;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> t;
  while (t--) {
    cin >> a >> b;
    cin >> c >> d;
    long long a1 = min(a, b);
    long long b1 = max(a, b);
    long long a2 = min(c, d);
    long long b2 = max(c, d);
    if ((a1 == a2 && (b1 + b2 == a1)) || (b1 == b2 && (a1 + a2) == b1))
      cout << "Yes"
           << "\n";
    else
      cout << "No"
           << "\n";
  }
}
