Question: List the state names and the number of customers living in each state.
Schema: create table customer_addresses (address_id varchar, PRIMARY KEY (address_id)); create table addresses (state_province_county varchar, address_id varchar, PRIMARY KEY (state_province_county))
SQL: select t2.state_province_county, count(*) from customer_addresses as t1 join addresses as t2 on t1.address_id = t2.address_id group by t2.state_province_county