import java.util.*;
import java.io.*;

public class CFB {
  BufferedReader br;
  PrintWriter out;
  StringTokenizer st;
  boolean eof;
  private static final long MOD = 1000L * 1000L * 1000L + 7;
  private static final int[] dx = {0, -1, 0, 1};
  private static final int[] dy = {1, 0, -1, 0};
  private static final String yes = "Yes";
  private static final String no = "No";

  void solve() {
//    int T = nextInt();
    int T = 1;
    for (int i = 0; i < T; i++) {
      helper();
    }
  }

  // LCA algorithm:
  int LG = 20;
  List<List<Integer>> graph;
  int[] level;
  int[][] dp;
  void helper() {
    int n = nextInt();
    graph = new ArrayList<>();
    for (int i = 0; i < n; i++) {
      graph.add(new ArrayList<>());
    }
    level = new int[n];
    dp = new int[n][LG];
    for (int i = 0; i < n - 1; i++) {
      int u = nextInt() - 1;
      int v = nextInt() - 1;
      graph.get(u).add(v);
      graph.get(v).add(u);
    }

    for (int i = 0; i < n; i++) {
      Arrays.fill(dp[i], -1);
    }
    dfs(0, -1);

    for(int i = 1; i < LG; i++){
      for (int j = 0; j < n; j++) {
        if (dp[j][i - 1] != -1) {
          dp[j][i] = dp[dp[j][i - 1]][i - 1];
        }
      }
    }

    int q = nextInt();
    for (int i = 0; i < q; i++) {
      boolean can = false;
      int x = nextInt() - 1;
      int y = nextInt() - 1;
      int a = nextInt() - 1;
      int b = nextInt() - 1;
      int k = nextInt();
      int d = dis(a, b);
      if (k >= d && (k - d) % 2 == 0) {
        can = true;
      }
      d = dis(a, x) + 1 + dis(b, y);
      if (k >= d && (k - d) % 2 == 0) {
        can = true;
      }
      d = dis(a, y) + 1 + dis(b, x);
      if (k >= d && (k - d) % 2 == 0) {
        can = true;
      }
      outln(can ? yes.toUpperCase() : no.toUpperCase());
    }
  }

  void dfs(int u, int par){
    level[u] = par == -1 ? 0 : 1 + level[par];
    dp[u][0] = par;

    for(int v : graph.get(u)){
      if (v == par) continue;
      dfs(v, u);
    }
  }

  int lca(int u, int v){
    if (level[u] < level[v]) {
      int tmp = u;
      u = v;
      v = tmp;
    }

    int lg = 0;
    while ((1 << lg) <= level[u]) {
      lg++;
    }
    lg--;

    for(int i = lg; i >= 0; i--){
      if (level[u] - (1 << i) >= level[v]) {
        u = dp[u][i];
      }
    }

    if (u == v) {
      return u;
    }

    for(int i = lg; i >= 0; i--){
      if (dp[u][i] != -1 && dp[u][i] != dp[v][i]) {
        u = dp[u][i];
        v = dp[v][i];
      }
    }

    return dp[u][0];
  }

  //make sure u has a deeper depth.
  int dis(int u, int v){
    if (level[u] < level[v]) {
      int tmp = u;
      u = v;
      v = tmp;
    }

    int w = lca(u, v);
    return level[u] + level[v] - 2 * level[w];
  }

  void shuffle(int[] a) {
    int n = a.length;
    for(int i = 0; i < n; i++) {
      int r = i + (int) (Math.random() * (n - i));
      int tmp = a[i];
      a[i] = a[r];
      a[r] = tmp;
    }
  }

  int gcd(int a, int b) {
    while(a != 0 && b != 0) {
      int c = b;
      b = a % b;
      a = c;
    }
    return a + b;
  }
  private void outln(Object o) {
    out.println(o);
  }
  private void out(Object o) {
    out.print(o);
  }
  private void formatPrint(double val) {
    outln(String.format("%.9f%n", val));
  }
  public CFB() {
    br = new BufferedReader(new InputStreamReader(System.in));
    out = new PrintWriter(System.out);
    solve();
    out.close();
  }
  public static void main(String[] args) {
    new CFB();
  }

  public long[] nextLongArr(int n) {
    long[] res = new long[n];
    for(int i = 0; i < n; i++)
      res[i] = nextLong();
    return res;
  }
  public int[] nextIntArr(int n) {
    int[] res = new int[n];
    for(int i = 0; i < n; i++)
      res[i] = nextInt();
    return res;
  }
  public String nextToken() {
    while (st == null || !st.hasMoreTokens()) {
      try {
        st = new StringTokenizer(br.readLine());
      } catch (Exception e) {
        eof = true;
        return null;
      }
    }
    return st.nextToken();
  }
  public String nextString() {
    try {
      return br.readLine();
    } catch (IOException e) {
      eof = true;
      return null;
    }
  }
  public int nextInt() {
    return Integer.parseInt(nextToken());
  }
  public long nextLong() {
    return Long.parseLong(nextToken());
  }
  public double nextDouble() {
    return Double.parseDouble(nextToken());
  }
}