Query with an array of values