Task: Text to Code
Input (English): SQL: SELECT Product_Name , Count ( * ) FROM Products GROUP BY Product_Name
Feedback: It should find number of corresponding rows for each product id in products in events table .
Output (English): SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name