#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
template <typename T>
using V = vector<T>;
template <typename T>
using VV = vector<vector<T>>;
const ll mod = 1000000007;
const ll INF = 1000000099;
const ll LINF = (ll)(1e18 + 99);
const vector<ll> dx = {-1, 1, 0, 0}, dy = {0, 0, -1, 1};
template <typename T, typename U>
inline bool chmin(T& t, const U& u) {
  if (t > u) {
    t = u;
    return 1;
  }
  return 0;
}
template <typename T, typename U>
inline bool chmax(T& t, const U& u) {
  if (t < u) {
    t = u;
    return 1;
  }
  return 0;
}
template <typename T>
inline T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
template <typename T, typename Y>
inline T mpow(T a, Y n) {
  T res = 1;
  for (; n; n >>= 1) {
    if (n & 1) res = res * a;
    a = a * a;
  }
  return res;
}
template <typename T>
struct LCA {
  int root, lg;
  vector<vector<T>> e;
  vector<T> dps;
  vector<vector<T>> anc;
  LCA(int _root, vector<vector<T>>& _e)
      : root(_root), lg(32 - __builtin_clz(_e.size())), e(_e), dps(_e.size()) {
    int numV = _e.size();
    anc.assign(lg, vector<T>(numV, -1));
    dfs(root, -1, 0);
    for (int i = 0; i < lg - 1; i++) {
      for (int j = 0; j < numV; j++) {
        if (anc[i][j] < 0)
          anc[i + 1][j] = -1;
        else
          anc[i + 1][j] = anc[i][anc[i][j]];
      }
    }
  }
  void dfs(int now, int par, int d) {
    anc[0][now] = par;
    dps[now] = d;
    for (int i = 0; i < (int)e[now].size(); i++) {
      if (e[now][i] != par) dfs(e[now][i], now, d + 1);
    }
  }
  int get_lca(int a, int b) {
    if (dps[a] < dps[b]) swap(a, b);
    int dif = dps[a] - dps[b];
    for (int i = lg - 1; 0 <= i; i--) {
      if (dif < (1 << i)) continue;
      dif -= (1 << i);
      a = anc[i][a];
    }
    if (a == b) return a;
    for (int i = lg - 1; 0 <= i; i--) {
      if (anc[i][a] != anc[i][b]) {
        a = anc[i][a];
        b = anc[i][b];
      }
    }
    return anc[0][a];
  }
};
V<int> dis;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  ll n;
  cin >> n;
  VV<int> e(n, V<int>(0));
  int x, y, a, b, k;
  for (ll i = 0; i < (ll)(n - 1); ++i) {
    cin >> a >> b;
    a--;
    b--;
    e[a].push_back(b);
    e[b].push_back(a);
  }
  dis.assign(n, INF);
  queue<int> q;
  q.push(0);
  q.push(0);
  dis[0] = 0;
  while (q.size()) {
    int now = q.front();
    q.pop();
    int d = q.front();
    q.pop();
    for (ll i = 0; i < (ll)((ll)(e[now]).size()); ++i) {
      if (dis[e[now][i]] == INF) {
        dis[e[now][i]] = d + 1;
        q.push(e[now][i]);
        q.push(d + 1);
      }
    }
  }
  LCA<int> lca(0, e);
  int qq;
  cin >> qq;
  bool can = false;
  ll da, db, loop;
  while (qq--) {
    cin >> x >> y >> a >> b >> k;
    x--;
    y--;
    a--;
    b--;
    can = false;
    int l = lca.get_lca(a, b);
    if ((dis[a] + dis[b] - 2 * dis[l]) % 2 == k % 2 &&
        (dis[a] + dis[b] - 2 * dis[l]) <= k)
      can = true;
    da = dis[a] + dis[x] - 2 * dis[lca.get_lca(a, x)];
    db = dis[y] + dis[b] - 2 * dis[lca.get_lca(y, b)];
    if ((da + db + 1) % 2 == k % 2 && (da + db + 1) <= k) can = true;
    da = dis[a] + dis[y] - 2 * dis[lca.get_lca(a, y)];
    db = dis[x] + dis[b] - 2 * dis[lca.get_lca(x, b)];
    if ((da + db + 1) % 2 == k % 2 && (da + db + 1) <= k) can = true;
    if (can)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
}
