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