#include <bits/stdc++.h>
using namespace std;
struct A {
  int nod, nvl;
};
queue<int> q;
vector<int> v[100005], rmq[18];
A Repr_Euler[200005];
int nr;
int nivel[100005], prima_aparitie[100005];
void nivelare();
void dfs(int nod);
int distanta(int nod1, int nod2);
int main() {
  int n, i, j, q, x, y, a, b, k, D1, D2, D3;
  cin >> n;
  for (i = 1; i < n; i++) {
    cin >> x >> y;
    v[x].push_back(y);
    v[y].push_back(x);
  }
  nivelare();
  dfs(1);
  n = 2 * n - 1;
  x = log2(n);
  for (i = 1; i <= n; i++) rmq[0].push_back(Repr_Euler[i].nvl);
  for (i = 1; i <= x; i++)
    for (j = 0; j < n - (1 << i) + 1; j++)
      rmq[i].push_back(min(rmq[i - 1][j], rmq[i - 1][j + (1 << (i - 1))]));
  cin >> q;
  while (q--) {
    cin >> x >> y >> a >> b >> k;
    D1 = distanta(a, b);
    D2 = 1 + distanta(a, x) + distanta(y, b);
    D3 = 1 + distanta(a, y) + distanta(x, b);
    if (D1 <= k && D1 % 2 == k % 2)
      cout << "YES" << '\n';
    else if (D2 <= k && D2 % 2 == k % 2)
      cout << "YES" << '\n';
    else if (D3 <= k && D3 % 2 == k % 2)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
  return 0;
}
void nivelare() {
  int x, i;
  nivel[1] = 1;
  q.push(1);
  while (q.empty() == 0) {
    x = q.front();
    q.pop();
    for (i = 0; i < v[x].size(); i++)
      if (nivel[v[x][i]] == 0) {
        nivel[v[x][i]] = nivel[x] + 1;
        q.push(v[x][i]);
      }
  }
}
void dfs(int nod) {
  int i;
  for (i = 0; i < v[nod].size(); i++)
    if (nivel[nod] == nivel[v[nod][i]] - 1) {
      Repr_Euler[++nr].nod = nod;
      Repr_Euler[nr].nvl = nivel[nod];
      if (prima_aparitie[nod] == 0) prima_aparitie[nod] = nr;
      dfs(v[nod][i]);
    }
  Repr_Euler[++nr].nod = nod;
  Repr_Euler[nr].nvl = nivel[nod];
  if (prima_aparitie[nod] == 0) prima_aparitie[nod] = nr;
}
int distanta(int nod1, int nod2) {
  int st, dr, x, val, a, b;
  st = prima_aparitie[nod1] - 1;
  dr = prima_aparitie[nod2] - 1;
  if (st > dr) swap(st, dr);
  x = log2(dr - st + 1);
  a = rmq[x][st];
  b = rmq[x][dr - (1 << x) + 1];
  val = min(rmq[x][st], rmq[x][dr - (1 << x) + 1]);
  return nivel[nod1] + nivel[nod2] - 2 * val;
}
