Hook into query parsing structure