#include <bits/stdc++.h>
using namespace std;
int main() {
  int c;
  cin >> c;
  while (c) {
    int n, s, t;
    cin >> n >> s >> t;
    if (s >= t)
      cout << s - (s + t - n) + 1 << endl;
    else
      cout << t - (s + t - n) + 1 << endl;
    c--;
  }
  return 0;
}
