#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  for (int i = 0; i < k; i++) {
    long int n;
    cin >> n;
    long int s;
    cin >> s;
    long int t;
    cin >> t;
    long int c = s + t - n;
    int ans = max(s, t) - c + 1;
    cout << ans << "\n";
  }
}
