#include <bits/stdc++.h>
using namespace std;
stack<char> stk;
vector<long long> vc, vc1, vc2;
long long a, b, c, d, e = 1e9, f, g, h, cnt, bnt = 1e9, p, sum;
string s, cal;
char ch;
bool ok = true;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> a;
  while (a--) {
    cin >> b >> c >> d;
    cout << max(b - c, b - d) + 1 << '\n';
  }
  cerr << "\nTime elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
  return 0;
}
