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
find the names of all wines produced by the St. Helena appelation.
assistant
SELECT name FROM WINE WHERE Appelation = 'St. Helena';
human
which one is the most expensive?
assistant
SELECT name FROM WINE WHERE Appelation = 'St. Helena' ORDER BY price DESC LIMIT 1;
human
what is its price?
assistant
SELECT MAX( Price ) FROM WINE WHERE Appelation = 'St. Helena';
human
also show the best score earned by these wines.
assistant
SELECT MAX( Price ) , MAX( Score ) FROM WINE WHERE Appelation = "St. Helena" ;