#include <bits/stdc++.h>
using namespace std;
struct Edge {
  int nxt, to;
};
int n, m, s;
Edge e[100005 << 1];
int first[100005];
int ec;
int fa[100005][21];
int dep[100005];
int _log[100005];
void addEdge(int from, int to) {
  e[++ec].to = to;
  e[ec].nxt = first[from];
  first[from] = ec;
}
void dfs(int u, int f) {
  fa[u][0] = f;
  dep[u] = dep[f] + 1;
  for (int i = 1; i <= _log[dep[u]]; ++i) {
    fa[u][i] = fa[fa[u][i - 1]][i - 1];
  }
  for (int i = first[u]; i; i = e[i].nxt) {
    if (e[i].to != f) dfs(e[i].to, u);
  }
}
int lca(int a, int b) {
  if (dep[a] < dep[b]) swap(a, b);
  while (dep[a] > dep[b]) {
    a = fa[a][_log[dep[a] - dep[b]] - 1];
  }
  if (a == b) return a;
  for (int i = _log[dep[a]] - 1; i >= 0; --i) {
    if (fa[a][i] != fa[b][i]) a = fa[a][i], b = fa[b][i];
  }
  return fa[a][0];
}
inline int dis(int x, int y) { return dep[x] + dep[y] - dep[lca(x, y)] * 2; }
int solve(int x, int y, int a, int b, int k) {
  int tmp = dis(a, b);
  if ((tmp <= k) && (tmp - k) % 2 == 0) return 1;
  tmp = dis(a, x) + 1 + dis(y, b);
  if ((tmp <= k) && (tmp - k) % 2 == 0) return 1;
  tmp = dis(a, y) + 1 + dis(x, b);
  if ((tmp <= k) && (tmp - k) % 2 == 0) return 1;
  return 0;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    _log[i] = _log[i - 1] + ((1 << _log[i - 1]) == i);
  }
  for (int i = 1; i < n; ++i) {
    int u, v;
    cin >> u >> v;
    addEdge(u, v);
    addEdge(v, u);
  }
  dfs(1, 0);
  cin >> m;
  for (int i = 1; i <= m; ++i) {
    int x, y, a, b, k;
    cin >> x >> y >> a >> b >> k;
    cout << (solve(x, y, a, b, k) ? "YES" : "NO") << endl;
  }
  return 0;
}
