#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, l, m, n;
  cin >> n;
  while (n--) {
    int a, b, c;
    cin >> a >> b >> c;
    if (b > c) b = c;
    j = a - b;
    cout << j + 1 << endl;
  }
  return 0;
}
