Task: Text to Code
Input (English): SQL: SELECT Avg ( Price ) , Name FROM Products GROUP BY Name
Feedback: Replace products table with manufacturer table and should be corresponding rows to each product .
Output (English): SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name