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