#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
const long long int MOD = INT_MAX;
const double PI = acos(-1);
void openfile() {
  freopen("in.txt", "r", stdin);
  freopen("out.txt", "w", stdout);
}
const int N = 1e5 + 5;
vector<int> G[N];
int parent[25][N];
int depth[N];
int n;
void dfs(int v, int par, int d) {
  parent[0][v] = par;
  depth[v] = d;
  for (int i = 0; i < ((long long int)G[v].size()); i++) {
    if (G[v][i] != par) dfs(G[v][i], v, d + 1);
  }
}
void init() {
  dfs(1, -1, 0);
  for (int k = 0; k < 20; k++) {
    for (int i = 1; i <= n; i++) {
      if (parent[k][i] < 0)
        parent[k + 1][i] = -1;
      else
        parent[k + 1][i] = parent[k][parent[k][i]];
    }
  }
}
int lca(int u, int v) {
  if (depth[u] > depth[v]) swap(u, v);
  for (int k = 0; k < 20; k++) {
    if ((depth[v] - depth[u]) >> k & 1) v = parent[k][v];
  }
  if (u == v) return u;
  for (int k = 19; k >= 0; k--) {
    if (parent[k][u] != parent[k][v]) {
      u = parent[k][u];
      v = parent[k][v];
    }
  }
  return parent[0][u];
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (long long int i = 0; i < (n - 1); i++) {
    int a, b;
    cin >> a >> b;
    G[a].push_back(b);
    G[b].push_back(a);
  }
  init();
  int q;
  cin >> q;
  for (long long int qq = 0; qq < (q); qq++) {
    int a, b, x, y, d;
    cin >> a >> b >> x >> y >> d;
    int xy_lca = lca(x, y);
    int ax_lca = lca(a, x);
    int ay_lca = lca(a, y);
    int bx_lca = lca(b, x);
    int by_lca = lca(b, y);
    int xy_length = depth[x] + depth[y] - depth[xy_lca] * 2;
    int ax_length = depth[a] + depth[x] - depth[ax_lca] * 2;
    int ay_length = depth[a] + depth[y] - depth[ay_lca] * 2;
    int bx_length = depth[b] + depth[x] - depth[bx_lca] * 2;
    int by_length = depth[b] + depth[y] - depth[by_lca] * 2;
    bool ok = 0;
    if (xy_length <= d && (d - xy_length) % 2 == 0) ok = 1;
    if (ax_length + by_length + 1 <= d &&
        (d - (ax_length + by_length + 1)) % 2 == 0)
      ok = 1;
    if (ay_length + bx_length + 1 <= d &&
        (d - (ay_length + bx_length + 1)) % 2 == 0)
      ok = 1;
    if (ok)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
