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