#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T;
  cin >> T;
  while (T--) {
    int n, s, t;
    cin >> n >> s >> t;
    if (n == s && s == t)
      cout << "1" << endl;
    else {
      int ans = max(n - s, n - t) + 1;
      cout << ans << endl;
    }
  }
  return 0;
}
