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