#include <bits/stdc++.h>
using namespace std;
long long n, tim = 0;
long long strtim[100005], endtim[100005], level[100005];
long long par[20 + 5][100005];
vector<long long> gr[100005];
void dfs(long long x, long long parent, long long lvl) {
  strtim[x] = ++tim;
  level[x] = lvl;
  par[0][x] = parent;
  for (auto it : gr[x])
    if (it != parent) dfs(it, x, lvl + 1);
  endtim[x] = tim;
}
void precompute() {
  for (long long j = 1; j < 20; j++)
    for (long long i = 1; i <= n; i++) par[j][i] = par[j - 1][par[j - 1][i]];
}
long long kth_ancestor(long long u, long long k) {
  for (long long j = 20; j >= 0; j--)
    if (k & (1LL << j)) u = par[j][u];
  return u;
}
long long LCA(long long u, long long v) {
  if (level[u] < level[v]) swap(u, v);
  long long diff = level[u] - level[v];
  for (long long i = 20 - 1; i >= 0; i--) {
    if ((1 << i) & diff) {
      u = par[i][u];
    }
  }
  if (u == v) return u;
  for (long long i = 20 - 1; i >= 0; i--) {
    if (par[i][u] && par[i][u] != par[i][v]) {
      u = par[i][u];
      v = par[i][v];
    }
  }
  return par[0][u];
}
long long dist(long long u, long long v) {
  return level[u] + level[v] - 2 * level[LCA(u, v)];
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (long long i = 1; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    gr[x].push_back(y);
    gr[y].push_back(x);
  }
  dfs(1, 0, 1);
  precompute();
  long long q;
  cin >> q;
  while (q--) {
    long long x, y, a, b, k;
    cin >> x >> y >> a >> b >> k;
    long long flag = 0;
    long long dist_a_b = dist(a, b);
    long long dist_a_x_y_b = dist(a, x) + 1 + dist(y, b);
    long long dist_a_y_x_b = dist(a, y) + 1 + dist(x, b);
    if ((k - dist_a_b) >= 0 and (k - dist_a_b) % 2 == 0) flag = 1;
    if ((k - dist_a_x_y_b) >= 0 and (k - dist_a_x_y_b) % 2 == 0) flag = 1;
    if ((k - dist_a_y_x_b) >= 0 and (k - dist_a_y_x_b) % 2 == 0) flag = 1;
    if (flag == 1)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
