#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  cin >> t;
  while (t--) {
    long long int a, b, c, d;
    cin >> a >> b >> c >> d;
    long long int m1 = min(a, b), m2 = min(c, d), ma1 = max(a, b),
                  ma2 = max(c, d);
    if (ma2 == ma1 && ma1 == (m1 + m2))
      cout << "Yes";
    else
      cout << "No";
    cout << endl;
  }
  return 0;
}
