#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a1, b1, a2, b2;
  cin >> a1 >> b1;
  cin >> a2 >> b2;
  int max1 = max(a1, b1);
  int max2 = max(a2, b2);
  int min1 = min(a1, b1);
  int min2 = min(a2, b2);
  if (max1 == max2 && min1 + min2 == max1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
