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_id | basket_size |
|---|---|
| 1 | 0 |
| 2 | 1 |
| 3 | 2 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid