CREATE TABLE grapes (ID NUMBER, Grape CLOB, Color CLOB)
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)

Compare the average of maximum score of wines each year, bin the year into the weekday interval and draw a bar chart, and rank from low to high by the Y-axis.
SELECT Year, AVG(MAX(Score)) FROM wine ORDER BY AVG(MAX(Score))
SELECT "Year", AVG(MAX("Score")) FROM "wine" ORDER BY AVG(MAX("Score"))