#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int N = 1e5 + 5;
bool check1(long long a1, long long b1, long long a2, long long b2) {
  return a1 == a2 && b1 + b2 == a1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t = 1;
  cin >> t;
  while (t--) {
    long long a1, b1, a2, b2;
    cin >> a1 >> b1 >> a2 >> b2;
    bool flag = false;
    flag |= check1(a1, b1, a2, b2);
    flag |= check1(a1, b1, b2, a2);
    flag |= check1(b1, a1, b2, a2);
    flag |= check1(b1, a1, a2, b2);
    if (flag)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
