Items in Each Basket

Items in Each Basket

QUERY is checking how large the baskets were before the marketplace went offline. For each event, return event_id and the length of the items array as basket_size. Sort by event_id.

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. Your answer must use the same column names as this sample — alias them with AS if needed.

event_idbasket_size
10
21
32
PostgreSQLv16

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid