#1117

Second trip pricier than the first

Marketing checks whether spending grows. Find riders whose second trip by time was more expensive than their first. Return rider_id ascending.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

rider_id
1
3

Your query result will appear here