#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  scanf("%d", &q);
  long long int n, s, t;
  while (q--) {
    scanf("%lld %lld %lld", &n, &s, &t);
    long long int x = s + t - n;
    printf("%lld\n", max(s - x, t - x) + 1);
  }
}
