#include <bits/stdc++.h>
using namespace std;
const int maxl = 1e5 + 10;
int n, q, cnt;
int ehead[maxl], dep[maxl];
int f[21][maxl];
struct ed {
  int to, nxt;
} e[maxl << 1];
inline void add(int u, int v) {
  e[++cnt].to = v;
  e[cnt].nxt = ehead[u];
  ehead[u] = cnt;
}
inline void dfs(int u, int fa) {
  f[0][u] = fa;
  int v;
  for (int i = ehead[u]; i; i = e[i].nxt) {
    v = e[i].to;
    if (v == fa) continue;
    dep[v] = dep[u] + 1;
    dfs(v, u);
  }
}
inline void prework() {
  scanf("%d", &n);
  int u, v;
  for (int i = 1; i < n; i++) {
    scanf("%d%d", &u, &v);
    add(u, v);
    add(v, u);
  }
  dfs(1, 0);
  for (int i = 1; i <= 20; i++)
    for (int j = 1; j <= n; j++) f[i][j] = f[i - 1][f[i - 1][j]];
}
inline int lca(int u, int v) {
  if (dep[v] > dep[u]) swap(u, v);
  for (int i = 0; i <= 20; i++)
    if ((1 << i) & (dep[u] - dep[v])) u = f[i][u];
  if (u == v) return u;
  for (int i = 20; i >= 0; i--)
    if (f[i][u] != f[i][v]) u = f[i][u], v = f[i][v];
  return f[0][u];
}
inline int dist(int u, int v) { return dep[u] + dep[v] - 2 * dep[lca(u, v)]; }
inline void mainwork() {
  scanf("%d", &q);
  int a, b, x, y, k, len;
  bool flag;
  a = lca(2, 3);
  for (int i = 1; i <= q; i++) {
    scanf("%d%d%d%d%d", &x, &y, &a, &b, &k);
    flag = false;
    len = dist(a, b);
    if ((len & 1) == (k & 1) && len <= k) flag = true;
    len = dist(a, x) + dist(b, y) + 1;
    if ((len & 1) == (k & 1) && len <= k) flag = true;
    len = dist(a, y) + dist(b, x) + 1;
    if ((len & 1) == (k & 1) && len <= k) flag = true;
    if (flag)
      puts("YES");
    else
      puts("NO");
  }
}
int main() {
  prework();
  mainwork();
  return 0;
}
