#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    if (a > b) {
      if (a == c) {
        if (b + d == a) {
          cout << "Yes\n";
        } else {
          cout << "NO\n";
        }
      } else if (a == d) {
        if (c + b == a) {
          cout << "Yes\n";
        } else {
          cout << "No\n";
        }
      } else {
        cout << "No\n";
      }
    } else if (b > a) {
      if (b == c) {
        if (a + d == b) {
          cout << "Yes\n";
        } else {
          cout << "No\n";
        }
      } else if (b == d) {
        if (c + a == b) {
          cout << "Yes\n";
        } else {
          cout << "No\n";
        }
      } else {
        cout << "No\n";
      }
    } else {
      cout << "No\n";
    }
  }
}
