Added support for filter queries, refs #17081