import java.util.*;
import java.io.*;
public class E620
{
    static int memo[][];
    static int [] depth;
    static ArrayList<Integer> [] adj;
    static int log;
    public static void main(String [] args)
    {
        MyScanner sc = new MyScanner();
        PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));
        int n = sc.nextInt();
        adj = new ArrayList [n + 1];

        log = (int)Math.ceil(Math.log(n) / Math.log(2));
        memo = new int[n + 1][log + 1];

        depth = new int[n + 1];

        for (int i = 0; i <= n; i++)
            Arrays.fill(memo[i], -1);
        for (int i = 0; i <= n; i++)
            adj[i] = new ArrayList<>();
        for (int i = 0; i < n - 1; i++) {
            int a = sc.nextInt(); int b = sc.nextInt();
            adj[a].add(b); adj[b].add(a);
        }
        dfs(1, 1);
        int q = sc.nextInt();
        for (int i = 0; i < q; i++) {
            int x = sc.nextInt(); int y = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int k = sc.nextInt();
            int lcaPath = lca(a, b); int lcaCycle = lca(x, y);
            int origLength = depth[a] + depth[b] - 2 * depth[lcaPath];
            int cycleLength = depth[x] + depth[y] - 2 * depth[lcaCycle] + 1;
            if (k >= origLength) {
                if (k % 2 == origLength % 2) {
                    out.println("YES");
                } else if (cycleLength % 2 == 0) {
                    out.println("NO");
                } else {
                    int dist1 = depth[a] + depth[x] - 2 * depth[lca(a, x)] + 1 + depth[b] + depth[y] - 2 * depth[lca(b, y)];
                    int dist2 = depth[a] + depth[y] - 2 * depth[lca(a, y)] + 1 + depth[b] + depth[x] - 2 * depth[lca(b, x)];
                    if (Math.min(dist1, dist2) <= k) out.println("YES"); else out.println("NO");
                }
            } else {
                if (cycleLength % 2 == 0 && k % 2 != origLength % 2) {
                    out.println("NO");
                } else {
                    int dist1 = depth[a] + depth[x] - 2 * depth[lca(a, x)] + 1 + depth[b] + depth[y] - 2 * depth[lca(b, y)];
                    int dist2 = depth[a] + depth[y] - 2 * depth[lca(a, y)] + 1 + depth[b] + depth[x] - 2 * depth[lca(b, x)];
                    if (Math.min(dist1, dist2) <= k && Math.min(dist1, dist2) % 2 == k % 2) out.println("YES"); else out.println("NO");
                }
            }

        }
        out.close();
    }

    static void dfs(int u, int p)
    {

        // Using recursion formula to calculate
        // the values of memo[][]
        memo[u][0] = p;
        for (int i = 1; i <= log; i++)
            memo[u][i] = memo[memo[u][i - 1]][i - 1];
        for (int v : adj[u]) {
            if (v != p) {

                // Calculating the level of each node
                depth[v] = depth[u] + 1;
                dfs(v, u);
            }
        }
    }

    static int lca(int u, int v)
    {
        // The node which is present farthest
        // from the root node is taken as u
        // If v is farther from root node
        // then swap the two
        if (depth[u] < depth[v]) {
            int temp = u;
            u = v;
            v = temp;
        }

        // Finding the ancestor of u
        // which is at same level as v
        for (int i = log; i >= 0; i--) {
            if ((depth[u] - (int)Math.pow(2, i)) >= depth[v])
                u = memo[u][i];
        }

        // If v is the ancestor of u
        // then v is the LCA of u and v
        if (u == v)
            return u;

        // Finding the node closest to the root which is
        // not the common ancestor of u and v i.e. a node
        // x such that x is not the common ancestor of u
        // and v but memo[x][0] is
        for (int i = log; i >= 0; i--) {
            if (memo[u][i] != memo[v][i]) {
                u = memo[u][i];
                v = memo[v][i];
            }
        }

        // Returning the first ancestor
        // of above found node
        return memo[u][0];
    }


    //-----------MyScanner class for faster input----------
    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }



    }

}