CREATE TABLE products (code DECIMAL, name TEXT, price DECIMAL, manufacturer DECIMAL)
CREATE TABLE manufacturers (code DECIMAL, name TEXT, headquarter TEXT, founder TEXT, revenue DECIMAL)

What are the average prices of products, grouped by manufacturer name?
SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
SELECT AVG("T1"."price"), "T2"."name" FROM "products" AS "T1" JOIN "manufacturers" AS "T2" ON "T1"."manufacturer" = "T2"."code" GROUP BY "T2"."name"