#include <bits/stdc++.h>
using namespace std;
int min(int s, int t) {
  if (s <= t) return s;
  return t;
}
int max(int s, int t) {
  if (s >= t) return s;
  return t;
}
int main(void) {
  int cases;
  int n, s, t, m, k;
  cin >> cases;
  while (cases--) {
    cin >> n >> s >> t;
    m = s + t;
    k = m - n;
    cout << max(s - k, t - k) + 1 << endl;
  }
}
