import java.io.*;
import java.util.*;
public class BinaryLiftingQueries {
	static int log;
	static ArrayList<Integer>[] adj;
	static int[] level;
	static int[][] jump;
	public static void main(String[] args) {
		PrintWriter out = new PrintWriter(System.out);
		JS scan = new JS();
		int n = scan.nextInt();
		log = (int)Math.ceil(Math.log(n) / Math.log(2)); 
		adj = new ArrayList[n];
		level = new int[n];
		jump = new int[n][log+1];
		for(int i = 0;i<n;i++) {
			adj[i] = new ArrayList<Integer>();
		}
		for(int i =0 ;i<n-1;i++) {
			int a = scan.nextInt()-1;
			int b = scan.nextInt()-1;
			adj[a].add(b);
			adj[b].add(a);
		}
		dfs(0,0);
		//System.out.println(lca(1,7));
		int q = scan.nextInt();
		for(int i = 0;i<q;i++) {
			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 dist1 = dist(a,b);
			if(a==b)dist1=2;
			int dist2 = dist(a,x)+dist(b,y)+1;
			int dist3 = dist(a,y)+dist(b,x)+1;
			dist2 = Math.min(dist2,dist3);
			boolean good = false;
			if(dist1<=k) {
				if((k-dist1)%2==0) good = true;
			}
			if(dist2<=k) {
				if((k-dist2)%2==0)good = true;
			}
			out.println(good?"YES":"NO");
//			int gcd = gcd(dist1,dist2);
//			gcd = gcd(gcd,dist3);
//			System.out.println(gcd+" "+dist1+" "+dist2+" "+dist3);
//			out.println(k%gcd == 0 ? "YES" : "NO");
		}
		out.flush();
		out.close();
	}
/*
3
1 2
2 3
2
1 3 1 1 1
1 3 1 1 2
 */
	static int gcd (int a, int b) {
		if(b==0)return a;
		return gcd(b,a%b);
	}
	static int dist (int u, int v) {
		return level[u]+level[v]-2*level[lca(u,v)];
	}
	static void dfs (int u, int parent) {
		jump[u][0] = parent;
		for(int i = 1;i<=log;i++) {
			jump[u][i] = jump[jump[u][i-1]][i-1];
		}
		for(int v :adj[u]) {
			if(v!=parent) {
				level[v] = level[u]+1;
				dfs(v,u);
			}
		}
	}
	static int lca (int u, int v) {
		//find which one is farther from the root, we use u as our lower one
		if(level[u]<level[v]) {
			int temp = u;
			u = v;
			v = temp;
		}
		//lift the lower one to the same level
		for(int i = log;i>=0;i--) {
			if(level[jump[u][i]]>=level[v]) {
				u = jump[u][i];
			}
		}
		//if v is the ancestor of u, then v is the lca between the two
		if(u==v) return u;
		//lift them both until their immediate parents match
		for(int i = log;i>=0;i--) {
			if(jump[u][i] != jump[v][i]) {
				u = jump[u][i];
				v = jump[v][i];
			}
		}
		return jump[u][0];
	}
	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;
			}
		}
	}

}
