The document provides examples of testing SQL queries by comparing the actual results of a query to expected results. It shows sample data from car rental and car databases, expected outputs for queries on the data, and the correct SQL queries to produce the expected outputs. For the first example, the correct query includes a JOIN and column aliases. For the second example, the correct query uses MAX instead of COUNT, includes a GROUP BY, and uses an alias for the column heading.