#include <bits/stdc++.h>
using namespace std;
const int MX = int(2e5 + 5);
int main() {
  int te;
  cin >> te;
  for (int i = 1; i <= te; i++) {
    int n, s, t;
    cin >> n >> s >> t;
    int zbr = t + s - n;
    s -= zbr;
    t -= zbr;
    cout << max(s, t) + 1 << endl;
  }
  return 0;
}
