#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int number_test;
  cin >> number_test;
  while (number_test--) {
    int n, s, t;
    cin >> n >> s >> t;
    int number_both = s + t - n;
    cout << max(s, t) - number_both + 1 << "\n";
  }
}
