#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long powr(long long a) {
  long long var = 1;
  for (long long i = 0; i < a; i++) {
    var *= 2;
  }
  return var;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long a, b;
    cin >> a >> b;
    long long c, d;
    cin >> c >> d;
    if (a == d && a == b + c) {
      cout << "Yes" << '\n';
    } else if (b == c && b == a + d) {
      cout << "Yes" << '\n';
    } else if (a == c && c == b + d) {
      cout << "Yes" << '\n';
    } else if (b == d && b == a + c) {
      cout << "Yes" << '\n';
    } else {
      cout << "No" << '\n';
    }
  }
}
