Use Content Validation & Doctrine Query Builder Filter modules.