#include <bits/stdc++.h>
using namespace std;
int main() {
  int b, n, s, t, a;
  cin >> b;
  while (b--) {
    cin >> n >> s >> t;
    if (s >= n || t >= n) {
      a = min(s, t);
      cout << n - min(a, n) + 1 << '\n';
    } else {
      cout << n - min(s, t) + 1 << '\n';
    }
  }
  return 0;
}
