Improvements for query filters