#include <bits/stdc++.h>
using namespace std;
const int N = 100000 + 100;
const long double pi = acos(-1.0);
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while ((ch < '0') || (ch > '9')) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while ((ch >= '0') && (ch <= '9')) {
    x = x * 10 + (ch - '0');
    ch = getchar();
  }
  return x * f;
}
inline long long readll() {
  long long x = 0;
  int f = 1;
  char ch = getchar();
  while ((ch < '0') || (ch > '9')) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while ((ch >= '0') && (ch <= '9')) {
    x = x * 10 + (ch - '0');
    ch = getchar();
  }
  return x * f;
}
int main() {
  int T = read();
  while (T--) {
    int a1 = read(), b1 = read(), a2 = read(), b2 = read();
    if (a1 == a2) {
      if (b1 + b2 == a1) {
        puts("Yes");
        continue;
      }
    }
    if (a1 == b2) {
      if (b1 + a2 == a1) {
        puts("Yes");
        continue;
      }
    }
    if (b1 == a2) {
      if (a1 + b2 == b1) {
        puts("Yes");
        continue;
      }
    }
    if (b1 == b2) {
      if (a1 + a2 == b1) {
        puts("Yes");
        continue;
      }
    }
    puts("No");
  }
  return 0;
}
