#include <bits/stdc++.h>
using namespace std;
int main() {
  long long test, t, n, s;
  cin >> test;
  while (test--) {
    cin >> n >> s >> t;
    long long tt = n - s;
    long long bo = t - tt;
    long long ss = s - bo;
    cout << max(tt, ss) + 1 << "\n";
  }
  return 0;
}
