Optimized queries on filters using different operators.