Task: Text to Code
Input (English): Step 1: For each row in Products table, find the corresponding rows in Complaints table.
Step 2: find each value of Complaints's product_id in the results of step 1 along with the number of the corresponding rows to each value
Output (English): SELECT T1.product_name , Count ( * ) FROM Products AS T1 JOIN Complaints AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id