#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e6;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, s, tt;
    cin >> n >> s >> tt;
    cout << n - min(s, tt) + 1 << endl;
  }
}
