Paid Events Across Cities

Paid Events Across Cities

L. is preparing a city-level summary to see where payments were recorded most often. For each city, count the rows in events where is_paid is true, using a counter that operates on a Boolean condition.

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.

citypaid
Khvostov1
Kotovsk0
Miausino1
PostgreSQLv16

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid