#include <bits/stdc++.h>
using namespace std;
int main() {
  long a, b, c, e, n;
  cin >> n;
  for (long i = 1; i <= n; i++) {
    cin >> a >> b >> c >> e;
    if (a == c && a == b + e) {
      cout << "Yes" << endl;
    } else if (a == e && a == b + c) {
      cout << "Yes" << endl;
    } else if (b == c && b == a + e) {
      cout << "Yes" << endl;
    } else if (b == e && b == a + c) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
