#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
signed main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int p;
  cin >> p;
  while (p--) {
    long long int n, s, t;
    cin >> n >> s >> t;
    long long int mn = min(s, t);
    cout << n - mn + 1 << '\n';
  }
  return 0;
}
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long int fast_power(long long int base, long long int power,
                         long long int MOD) {
  long long int result = 1;
  while (power > 0) {
    if (power & 1) result = (result * base) % MOD;
    base = (base * base) % MOD;
    power >>= 1;
  }
  return result;
}
