CREATE TABLE wine (No NUMBER, Grape CLOB, Winery CLOB, Appelation CLOB, State CLOB, Name CLOB, Year NUMBER, Price NUMBER, Score NUMBER, Cases NUMBER, Drink CLOB)
CREATE TABLE appellations (No NUMBER, Appelation CLOB, County CLOB, State CLOB, Area CLOB, isAVA CLOB)
CREATE TABLE grapes (ID NUMBER, Grape CLOB, Color CLOB)

Sum the average prices of wines for different years, and bin year attribute into weekday interval for a bar chart, list from low to high by the Y.
SELECT Year, SUM(AVG(Price)) FROM wine ORDER BY SUM(AVG(Price))
SELECT "Year", SUM(AVG("Price")) FROM "wine" ORDER BY SUM(AVG("Price"))