#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  std::cerr << name << " : " << arg1 << '\n';
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  std::cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
template <typename T, typename U>
static inline void amin(T& x, U y) {
  if (y < x) x = y;
}
template <typename T, typename U>
static inline void amax(T& x, U y) {
  if (x < y) x = y;
}
long long max(long long a, long long b) { return (a > b) ? a : b; }
long long min(long long a, long long b) { return (a < b) ? a : b; }
const long long N = 1e5 + 10;
long long n, l;
std::vector<vector<long long> > adj(N);
long long timer;
vector<long long> tin(10000), tout(10000);
vector<vector<long long> > up;
vector<long long> lvl(N, 0);
void dfs(long long v, long long p, long long level) {
  tin[v] = ++timer;
  lvl[v] = level;
  up[v][0] = p;
  for (long long i = 1; i < l + 1; i++) {
    up[v][i] = up[up[v][i - 1]][i - 1];
  }
  for (auto i : adj[v])
    if (i != p) dfs(i, v, level + 1);
  tout[v] = ++timer;
}
bool is_ancestor(long long u, long long v) {
  return tin[u] <= tin[v] && tout[u] >= tout[v];
}
long long lca(long long u, long long v) {
  if (is_ancestor(u, v)) return u;
  if (is_ancestor(v, u)) return v;
  for (long long i = l; i >= 0; --i) {
    if (!is_ancestor(up[u][i], v)) u = up[u][i];
  }
  return up[u][0];
}
void preprocess(long long root) {
  tin.resize(n + 1);
  tout.resize(n + 1);
  timer = 0;
  l = ceil(log2(n + 1));
  up.assign(n + 100, vector<long long>(l + 1));
  dfs(root, root, 1);
}
long long dist(long long x, long long y) {
  long long a = lca(x, y);
  return abs(lvl[a] - lvl[x]) + abs(lvl[a] - lvl[y]);
}
long long solve() {
  cin >> n;
  for (long long i = 0; i < n - 1; i++) {
    long long u, v;
    cin >> u >> v;
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  preprocess(1);
  long long a = lca(3, 5);
  long long q;
  cin >> q;
  while (q--) {
    long long x, y, a, b, k;
    cin >> x >> y >> a >> b >> k;
    long long p = dist(a, b);
    if ((p - k) % 2 == 0 && p <= k) {
      cout << "YES" << '\n';
      continue;
    }
    p = dist(a, x) + dist(y, b) + 1;
    if ((p - k) % 2 == 0 && p <= k) {
      cout << "YES" << '\n';
      continue;
    }
    p = dist(a, y) + dist(x, b) + 1;
    if ((p - k) % 2 == 0 && p <= k) {
      cout << "YES" << '\n';
      continue;
    }
    cout << "NO" << '\n';
  }
  return 0;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
