#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, a1, b1, t, f = 0, e = 0, l = 0, h = 0;
  scanf("%d", &t);
  for (int i = 0; i < t; i++) {
    scanf("%d %d", &a, &b);
    scanf("%d %d", &a1, &b1);
    l = min(a, b);
    f = a + b - l;
    h = min(a1, b1);
    e = a1 + b1 - h;
    if (h + l == e && h + l == f) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
}
