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

public class OneTreesAndQueries {

	static int n;
	static int[] depth;
	static int[] lo;
	static int[] hi;
	static int arc = 0;
	static int d;
	static int lift[][];

	
	static ArrayList<Integer>[] graph;
	
	public static void main(String[] args) {
		JS scan = new JS();
		PrintWriter out = new PrintWriter(System.out);
		n = scan.nextInt();
		graph = new ArrayList[n];
		for(int i = 0; i < n; i++) graph[i] = new ArrayList<Integer>();
		for(int i = 0; i < n-1; i++){
			int u = scan.nextInt()-1;
			int v = scan.nextInt()-1;
			graph[u].add(v);
			graph[v].add(u);
		}
		depth = new int[n];
		d = Integer.numberOfTrailingZeros(Integer.highestOneBit(n)) + 2;
		lift = new int[d][n];
		for(int i = 0 ; i < d ; i++) Arrays.fill(lift[i], -1);
		Deque<Integer> q = new ArrayDeque<>();
		q.add(0);
		while(!q.isEmpty()) {
			int u = q.pop();
			for(int v : graph[u]) {
				if(lift[0][u] != v) {
					lift[0][v] = u;
					depth[v] = depth[u] + 1;
					q.add(v);
				}
			}
		}
		for(int k = 0 ; k < d - 1 ; k++)
			for(int i = 0 ; i < n ; i++)
				if(lift[k][i] != -1)
					lift[k + 1][i] = lift[k][lift[k][i]];
//		dfs(0, -1);
		int t = scan.nextInt();
		for(int qq = 1; qq <= t; qq++){
			int x = scan.nextInt()-1;
			int y = scan.nextInt()-1;
			int a = scan.nextInt()-1;
			int b = scan.nextInt()-1;
			int k = scan.nextInt();
			
			int temp = x;
			x = a;
			a = temp;
			
			temp = y;
			y = b;
			b = temp;
			
			if(dist(x, y) <= k && dist(x, y )% 2 == k % 2){
				out.println("YES");
				continue;
			}
			int d = dist(x, a)+dist(b, y)+1;
			if(d <= k && d % 2 == k % 2){
				out.println("YES");
				continue;
			}
			d = dist(x, b)+dist(a, y)+1;
			if(d <= k && d % 2 == k % 2){
				out.println("YES");
				continue;
			}
			out.println("NO");
		}
		out.flush();
	}
	
	static int lca(int u, int v) {
		if(depth[v] > depth[u]) return lca(v, u);
		u = walk(u, depth[u] - depth[v]);
		if(u == v) return u;
		for(int k = d - 1 ; k >= 0 ; k--) {
			if(lift[k][u] != lift[k][v]) {
				u = lift[k][u];
				v = lift[k][v];
			}
		}
		return lift[0][u];
	}
	static int walk(int u, int k) {
		for(int i = 0 ; i < d && u != -1 ; i++) if((k & (1 << i)) > 0) u = lift[i][u];
		return u;
	}
	static int dist(int u, int v) { return depth[u] + depth[v] - (2 * depth[lca(u, v)]); }
	
	static void dfs(int curr, int par){
//		lo[curr] = arc++;
		for(int i = 0; i < graph[curr].size(); i++){
			int to = graph[curr].get(i);
			if(to != par){
				depth[to] = depth[curr]+1;
				dfs(to, curr);
			}
		}
//		hi[curr] = arc;
	}

	static class JS{
		public int BS = 1<<16;
		public char NC = (char)0;
		byte[] buf = new byte[BS];
		int bId = 0, size = 0;
		char c = NC;
		double num = 1;
		BufferedInputStream in;
 
		public JS() {
			in = new BufferedInputStream(System.in, BS);
		}
 
		public JS(String s) throws FileNotFoundException {
			in = new BufferedInputStream(new FileInputStream(new File(s)), BS);
		}
 
		public char nextChar(){
			while(bId==size) {
				try {
					size = in.read(buf);
				}catch(Exception e) {
					return NC;
				}				
				if(size==-1)return NC;
				bId=0;
			}
			return (char)buf[bId++];
		}
 
		public int nextInt() {
			return (int)nextLong();
		}
 
		public long nextLong() {
			num=1;
			boolean neg = false;
			if(c==NC)c=nextChar();
			for(;(c<'0' || c>'9'); c = nextChar()) {
				if(c=='-')neg=true;
			}
			long res = 0;
			for(; c>='0' && c <='9'; c=nextChar()) {
				res = (res<<3)+(res<<1)+c-'0';
				num*=10;
			}
			return neg?-res:res;
		}
 
		public double nextDouble() {
			double cur = nextLong();
			return c!='.' ? cur:cur+nextLong()/num;
		}
 
		public String next() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c>32) {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}
 
		public String nextLine() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c!='\n') {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}
 
		public boolean hasNext() {
			if(c>32)return true;
			while(true) {
				c=nextChar();
				if(c==NC)return false;
				else if(c>32)return true;
			}
		}
	}
}
