#include <bits/stdc++.h>
int main() {
  signed int n, i, j;
  scanf("%d", &n);
  signed int arr[n][3];
  for (i = 0; i < n; i++) {
    scanf("%d %d %d", &arr[i][0], &arr[i][1], &arr[i][2]);
  }
  for (i = 0; i < n; i++) {
    int u;
    u = arr[i][1] < arr[i][2] ? arr[i][1] : arr[i][2];
    int tot;
    tot = arr[i][0] - u + 1;
    printf("%d\n", tot);
  }
}
