A bar chart about the average of maximum score of wines each year, bin the year into the weekday interval, and I want to show in descending by the total number.
CREATE TABLE wine (
    No INTEGER,
    Grape TEXT,
    Winery TEXT,
    Appelation TEXT,
    State TEXT,
    Name TEXT,
    Year INTEGER,
    Price INTEGER,
    Score INTEGER,
    Cases INTEGER,
    Drink TEXT
)

CREATE TABLE appellations (
    No INTEGER,
    Appelation TEXT,
    County TEXT,
    State TEXT,
    Area TEXT,
    isAVA TEXT
)

CREATE TABLE grapes (
    ID INTEGER,
    Grape TEXT,
    Color TEXT
)
SELECT Year, AVG(MAX(Score)) FROM wine ORDER BY AVG(MAX(Score)) DESC
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: A bar chart about the average of maximum score of wines each year, bin the year into the weekday interval, and I want to show in descending by the total number. ### Input: CREATE TABLE wine (
    No INTEGER,
    Grape TEXT,
    Winery TEXT,
    Appelation TEXT,
    State TEXT,
    Name TEXT,
    Year INTEGER,
    Price INTEGER,
    Score INTEGER,
    Cases INTEGER,
    Drink TEXT
)

CREATE TABLE appellations (
    No INTEGER,
    Appelation TEXT,
    County TEXT,
    State TEXT,
    Area TEXT,
    isAVA TEXT
)

CREATE TABLE grapes (
    ID INTEGER,
    Grape TEXT,
    Color TEXT
) ### Response: SELECT Year, AVG(MAX(Score)) FROM wine ORDER BY AVG(MAX(Score)) DESC