#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long a, b, c;
    cin >> a >> b >> c;
    long long ans = max(a - b, a - c) + 1;
    cout << ans << "\n";
  }
  return 0;
}
