Add support for query filters to query.

Noticed this was missing.