import java.util.*;
import java.io.*;
import java.lang.reflect.Array;
import java.text.DecimalFormat;

public class template {
	final static int MOD = 1000000007;
	final static int intMax = 1000000000;
	final static int intMin = -1000000000;
	final static int[] DX = { 0, 0, -1, 1 };
	final static int[] DY = { -1, 1, 0, 0 };

	static int T;

	static class Reader {
		final private int BUFFER_SIZE = 1 << 16;
		private DataInputStream din;
		private byte[] buffer;
		private int bufferPointer, bytesRead;

		public Reader() {
			din = new DataInputStream(System.in);
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public Reader(String file_name) throws IOException {
			din = new DataInputStream(new FileInputStream(file_name));
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public String readLine() throws IOException {
			byte[] buf = new byte[360]; // line length
			int cnt = 0, c;
			while ((c = read()) != -1) {
				if (c == '\n')
					break;
				buf[cnt++] = (byte) c;
			}
			return new String(buf, 0, cnt);
		}

		public int nextInt() throws IOException {
			int ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do {
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');

			if (neg)
				return -ret;
			return ret;
		}

		public long nextLong() throws IOException {
			long ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do {
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');
			if (neg)
				return -ret;
			return ret;
		}

		public double nextDouble() throws IOException {
			double ret = 0, div = 1;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();

			do {
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');

			if (c == '.') {
				while ((c = read()) >= '0' && c <= '9') {
					ret += (c - '0') / (div *= 10);
				}
			}

			if (neg)
				return -ret;
			return ret;
		}

		private void fillBuffer() throws IOException {
			bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
			if (bytesRead == -1)
				buffer[0] = -1;
		}

		private byte read() throws IOException {
			if (bufferPointer == bytesRead)
				fillBuffer();
			return buffer[bufferPointer++];
		}

		public void close() throws IOException {
			if (din == null)
				return;
			din.close();
		}
	}
	
	static final int MAX_N = 100000;
	static final int MAX_D = 17;
	static ArrayList<Integer>[] adj;
	static int depth[] = new int[MAX_N];
	static int lca[][] = new int[MAX_N][MAX_D];
	
	public static void main(String[] args) throws Exception {
		Reader in = new Reader();
		int n = in.nextInt();
		adj = new ArrayList[n];
		for(int i = 0; i < n; ++i) {
			adj[i] = new ArrayList<Integer>();
		}
		for(int i = 0; i < n - 1; ++i) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			adj[a].add(b);
			adj[b].add(a);
		}
		dfssetup(0, -1);
		initLCA();
		int q = in.nextInt();
		for(int i = 0; i < q; ++i) {
			int x = in.nextInt() - 1;
			int y = in.nextInt() - 1;
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			int k = in.nextInt();
			int dist = dist(a, b);
			int mindist = Math.min(dist(a, x) + dist(b, y) + 1, dist(a, y) + dist(b, x) + 1);
			if((k - dist) % 2 == 0) {
				if(dist <= k) {
					System.out.println("YES");
					continue;
				}
				else if(mindist <= k && depth[x] % 2 != depth[y] % 2) {
					System.out.println("YES");
					continue;
				}
				else {
					System.out.println("NO");
					continue;
				}
			}
			else {
				if(mindist <= k && depth[x] % 2 == depth[y] % 2) {
					System.out.println("YES");
					continue;
				}
				else {
					System.out.println("NO");
					continue;
				}
			}
		}
 		in.close();
	}
	
	static int dist(int a, int b) {
		return depth[a] + depth[b] - 2 * depth[LCA(a, b)];
	}
	
	static int LCA(int a, int b) {
		if(depth[a] < depth[b]) {
			int temp = a;
			a = b;
			b = temp;
		}
	  	for(int d = MAX_D-1; d >= 0; d--) {
	  		if(depth[a] - (1<<d) >= depth[b]) {
	  			a = lca[a][d];
	  		}
	  	}
	  	for(int d = MAX_D-1; d >= 0; d--) {
	  		if(lca[a][d] != lca[b][d]) {
	  			a = lca[a][d];
	  			b = lca[b][d];
	    	}
	  	}
	  	if(a != b) {
		  	a = lca[a][0];
	    	b = lca[b][0];
	  	}
	  	return a;
	}
	
	static void initLCA() {
		for(int d = 1; d < MAX_D; d++) {
			for(int i = 0; i < MAX_N; i++) {
				lca[i][d] = lca[lca[i][d-1]][d-1];
			}
		}
	}
	
	static void dfssetup(int curr, int par) {
		for(int out: adj[curr]) {
			if(out == par)
				continue;
			depth[out] = depth[curr] + 1;
			lca[out][0] = curr;
			dfssetup(out, curr);
		}
	}
	
}