#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, a, b, c, d;
  scanf("%d", &t);
  while (t--) {
    scanf("%d%d", &a, &b);
    scanf("%d%d", &c, &d);
    int m = max(a, b);
    int m2 = max(c, d);
    int i = min(a, b);
    int i2 = min(c, d);
    if (m == m2 && i + i2 == m) {
      cout << "Yes" << endl;
    } else
      cout << "No" << endl;
  }
  return 0;
}
