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