#include <bits/stdc++.h>
using namespace std;
const long long MAX = 5e2 + 5, N = 1e3 + 1;
const long long MOD = 1e9 + 7, mod = 1e9 + 7;
void solve() {
  long long i, j = 0, n, m, x, y, k, r = 0;
  long long s, t;
  cin >> n >> s >> t;
  cout << max(abs(n - s), abs(n - t)) + 1 << endl;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long T = 1;
  cin >> T;
  while (T--) solve();
  return 0;
}
