#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t, n, s, m;
  cin >> t;
  while (t--) {
    cin >> n >> s >> m;
    if (s == m && s == n)
      cout << "1";
    else
      cout << (n - min(s, m)) + 1;
    cout << "\n";
  }
  return 0;
}
