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 the country of appelations Alexander Valley?
assistant
SELECT county FROM APPELLATIONS WHERE appelation = 'Alexander Valley';
human
Show the maximum price of wins from the appelations in central Coast area and produced before thebyear of 2005?
assistant
SELECT MAX( T2.Price ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "Central Coast" AND T2.year < 2005 ;