The range query in Elasticsearch filters documents by checking if a field's value falls within specified limits. First, you choose the field to check. Then you add conditions like 'gte' (greater than or equal) and 'lt' (less than) to define the range. The query runs and returns documents matching these conditions. For example, setting 'age' with 'gte' 30 and 'lt' 40 returns documents where age is between 30 and 39. The execution table shows each step: starting the query, setting the field, adding conditions, executing, and returning results. Variables track the field name, conditions, and final results. Beginners often wonder why both 'gte' and 'lt' are needed; using both narrows the range precisely. If only 'gte' is used, results have no upper limit. The visual quiz checks understanding of these steps and variable changes.