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