object Main extends App {
    val in = io.Source.stdin.getLines.map(_.split(" ").map(_.toInt)).toList
    val a = in(1)
    val bc = in(3) zip in(4)
    for ((b, c) <- bc) {
        var cnt = 0
        for (ai <- a if cnt < c) if (b >= ai) cnt += 1
        if (cnt >= c) println("Yes") else println("No")
    }
}