#include <bits/stdc++.h>
template <typename T, typename U>
inline std::ostream& operator<<(std::ostream& os, const std::pair<T, U>& p) {
  os << p.first << ' ' << p.second;
  return os;
}
template <typename T, typename U>
inline std::istream& operator>>(std::istream& os, std::pair<T, U>& p) {
  os >> p.first >> p.second;
  return os;
}
template <typename T>
inline std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) {
  if (v.empty()) {
    return os;
  }
  if (v.begin() != v.end()) {
    os << v.front();
  }
  for (auto it = ++v.begin(); it != v.end(); ++it) {
    os << ' ' << *it;
  }
  return os;
}
template <typename T>
inline std::istream& operator>>(std::istream& is, std::vector<T>& v) {
  for (auto& i : v) {
    is >> i;
  }
  return is;
}
void Solve(std::istream& is, std::ostream& os) {
  int q, n, s, t;
  is >> q;
  while (q--) {
    is >> n >> s >> t;
    os << std::max(n - t + 1, n - s + 1) << '\n';
  }
}
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  Solve(std::cin, std::cout);
  return 0;
}
