#include <bits/stdc++.h>
using namespace std;
int main() {
  int time;
  cin >> time;
  for (int i = 0; i < time; i++) {
    int n, s, k;
    cin >> n >> s >> k;
    int a = (s + k) - n;
    a = max(s - a, k - a);
    cout << a + 1 << endl;
  }
}
