Filtering for hostnames in hosts with alerts is not working properly, it returns all the hosts.
The cause is the precedence in the request:
is applied as:
critical OR (warning AND match)
but the correct way would be:
(critical OR warning) AND match