#include <bits/stdc++.h>
using namespace std;
string square(int a1, int b1, int a2, int b2) {
  if (a1 < b1) {
    int temp = a1;
    a1 = b1;
    b1 = temp;
  }
  if (a2 < b2) {
    int temp = a2;
    a2 = b2;
    b2 = temp;
  }
  if (a1 != a2) {
    return "No";
  } else {
    if (b1 + b2 == a1) {
      return "Yes";
    } else
      return "No";
  }
}
int main(int argc, char const *argv[]) {
  int test;
  cin >> test;
  for (int i = 0; i < test; ++i) {
    int a1, b1, a2, b2;
    cin >> a1 >> b1 >> a2 >> b2;
    cout << square(a1, b1, a2, b2) << endl;
  }
  return 0;
}
