First implementation of a filter in the query api.