Get the filter from the caps this.
The caps remains valid as long as this remains valid.
The query to parse
A pointer to the caps filter