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