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 grapes (ID NUMBER, Grape CLOB, Color CLOB)
CREATE TABLE appellations (No NUMBER, Appelation CLOB, County CLOB, State CLOB, Area CLOB, isAVA CLOB)

A bar chart about the average of maximum score of wines each year, bin the year into the weekday interval, sort by the total number in asc.
SELECT Year, AVG(MAX(Score)) FROM wine ORDER BY AVG(MAX(Score))
SELECT "Year", AVG(MAX("Score")) FROM "wine" ORDER BY AVG(MAX("Score"))