#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int a, b, x, y;
    cin >> a >> b >> x >> y;
    if ((b == x) && ((a + y) == x))
      cout << "Yes" << endl;
    else if ((b == y) && ((a + x) == y))
      cout << "Yes" << endl;
    else if ((a == x) && ((b + y) == x))
      cout << "Yes" << endl;
    else if ((a == y) && ((b + x) == y))
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
