#include <bits/stdc++.h>
using namespace std;
long long max_(long long s, long long t) { return s > t ? s : t; }
void process() {
  long long n, s, t;
  long long both, stickers, toys;
  cin >> n >> s >> t;
  both = s - n + t;
  stickers = s - both;
  toys = t - both;
  if (both == n)
    printf("1\n");
  else {
    long long ans = max_(stickers, toys);
    ans = ans + 1;
    cout << ans << endl;
  }
}
int main(int argc, char** argv) {
  int T;
  scanf("%d", &T);
  while (T--) {
    process();
  }
  return 0;
}
