#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, s, t, T, i;
  cin >> T;
  long long ans[100];
  for (i = 0; i < T; i++) {
    cin >> n >> s >> t;
    long long diff = s + t - n;
    s -= diff;
    t -= diff;
    ans[i] = max(t, s) + 1;
  }
  for (i = 0; i < T; i++) {
    cout << ans[i] << endl;
  }
}
