Question: List the name of all products along with the number of complaints that they have received.
Schema: create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table complaints (product_id varchar, PRIMARY KEY (product_id))
SQL: select t1.product_name, count(*) from products as t1 join complaints as t2 on t1.product_id = t2.product_id group by t1.product_name