Reference solution
The shape we check against. Compare it with your query: the set of rows matters, the formatting does not.
SELECT id, city, price FROM listings WHERE city = 'San Francisco' AND active = 1 ORDER BY price;
Return id, city and price for every active listing in San Francisco, sorted by price ascending.
hint ladder
Write a query with WITH … AS (…) blocks, then inspect each intermediate table before the final SELECT.
Run your code to see its output, or check your solution to grade it.
Reference solution
The shape we check against. Compare it with your query: the set of rows matters, the formatting does not.
SELECT id, city, price FROM listings WHERE city = 'San Francisco' AND active = 1 ORDER BY price;
Code is blurred until you solve this problem — the reasoning stays readable.