#include <bits/stdc++.h>
using namespace std;
bool works(long long a, long long aa, long long b, long long bb) {
  return a == aa && b + bb == a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long a, b, c, d;
    cin >> a >> b >> c >> d;
    cout << (works(a, c, b, d) || works(a, d, b, c) || works(b, c, a, d) ||
                     works(b, d, a, c)
                 ? "Yes"
                 : "No")
         << '\n';
  }
  return 0;
}
