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