#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  while (q--) {
    long long int n, s, t;
    cin >> n >> s >> t;
    long long int k = s + t;
    long long int sum = k - n;
    long long int m = max(s - sum, t - sum);
    cout << m + 1 << endl;
  }
}
