Task: Text to Code
Input (English): SQL: SELECT product_name , Count ( * ) FROM Products GROUP BY product_name
Feedback: It should be correspond rows of each value of product id in complaints table .
Output (English): 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