query $all with array