An operations filter finds orders with status = 'paid' or status = 'pending', but the condition has become cluttered with repeated checks of the same column. Rewrite the condition as a single list of allowed statuses. Return the id of each matching order, sorted in ascending order.
Original query
SELECT id FROM orders WHERE status = 'paid' OR status = 'pending' ORDER BY id
Row order matters
Expected output columns:id
Showing the first 3 rows of the sample — the full sample comes with Premium