#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, s, t;
  cin >> n >> s >> t;
  if (n == s && s == t) {
    cout << "1";
    return;
  }
  long long int rem = (t + s) - n;
  s -= rem;
  t -= rem;
  long long int ans = max(s + 1, t + 1);
  cout << ans;
}
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
  return 0;
}
