Read _LIMIT from the query template.