#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int T, s, t, n, Min;
  cin >> T;
  while (T--) {
    cin >> n >> s >> t;
    Min = min(s, t);
    cout << n - Min + 1 << "\n";
  }
  return 0;
}
