#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::string NumberToString(T Number) {
  std::ostringstream ss;
  ss << Number;
  return ss.str();
}
template <typename T>
T StringToNumber(const string &Text) {
  istringstream ss(Text);
  T result;
  return ss >> result ? result : 0;
}
string StrCpy(string str, long long int start, long long int end) {
  string temp = "";
  for (long long int i = start; i <= end; i++) {
    temp += str[i];
  }
  return temp;
}
int solve() {
  long long int Tcase;
  cin >> Tcase;
  long long int a1, b1, a2, b2;
  for (long long int t = 0; t < Tcase; t++) {
    cin >> a1 >> b1;
    cin >> a2 >> b2;
    if (a1 == a2 && (b1 + b2 == a1)) {
      cout << "Yes" << endl;
    } else if (a1 == b2 && (b1 + a2 == a1)) {
      cout << "Yes" << endl;
    } else if (b1 == a2 && (a1 + b2 == b1)) {
      cout << "Yes" << endl;
    } else if (b1 == b2 && (a1 + a2 == b1)) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  for (auto blockTime = make_pair(chrono::high_resolution_clock::now(), true);
       blockTime.second;
       fprintf(stderr, "%s: %.5lf s\n", "programm time",
               chrono::duration_cast<chrono::milliseconds>(
                   chrono::high_resolution_clock::now() - blockTime.first)
                       .count() /
                   1000.0),
            fflush(stderr), blockTime.second = false) {
    solve();
  }
  return 0;
}
