human
Schema:
grapes (ID, Grape, Color)
appellations (No, Appelation, County, State, Area, isAVA)
wine (No, Grape, Winery, Appelation, State, Name, Year, Price, Score, Cases, Drink)
Please answer with SQL.
assistant
Sure, I understand.
human
show all info of wines.
assistant
SELECT * FROM WINE;
human
what is their average rated score?
assistant
SELECT AVG ( Score ) FROM WINE;
human
find the name of the lowest rated wine.
assistant
SELECT Name FROM WINE ORDER BY Score LIMIT 1;
human
what about the highest rated one?
assistant
SELECT Name FROM WINE ORDER BY Score DESC LIMIT 1 ;