#include <bits/stdc++.h>
using namespace std;
const int N = 3e6 + 9, MOD = 1e9 + 7;
using vi = vector<long long>;
using vb = vector<bool>;
using vp = vector<pair<long long, long long>>;
mt19937 Flash_new_51(525252);
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t;
  cin >> t;
  for (long long i = 0; i < t; i++) {
    long long n, s, t;
    cin >> n >> s >> t;
    long long k = s + t - n;
    s -= k, t -= k;
    cout << max(s, t) + 1 << "\n";
  }
}
