import java.util.*; public final class Solution { public static final void main(String[] args) { try (Scanner in = new Scanner(System.in)) { int n = in.nextInt(), a = in.nextInt(), b = in.nextInt(), q = in.nextInt(), c[] = new int[n]; for (int i = 0; i < n; i++){ c[i] = in.nextInt(); } for (int i = 0; i < q; i++){ int t = in.nextInt(), x = in.nextInt(), y = in.nextInt(); if (t == 2) { System.out.println(true ? "Yes" : "No"); } } } } }