It should be possible to add this condition to the query as a filter