#include <bits/stdc++.h>
using namespace std;
char mp[511][511];
int cnt = 0, n, m, tmp, k;
int main() {
  int T;
  cin >> T;
  while (T--) {
    cin >> n >> m >> k;
    cout << max(n - k + 1, n - m + 1) << endl;
  }
  return 0;
}
