Database: wine_1

Question: What is the name of the highest rated wine?
SQL: SELECT Name FROM WINE ORDER BY Score DESC LIMIT 1

Question: Which winery is the wine that has the highest score from?
SQL: SELECT Winery FROM WINE ORDER BY SCORE DESC LIMIT 1

Question: List the names of all distinct wines that are made of red color grape.
SQL: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red"

Question: Find the names of all distinct wines that have appellations in North Coast area.
SQL: SELECT DISTINCT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "North Coast"

Question: Give me the average prices of wines that are produced by appellations in Sonoma County.
SQL: SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "Sonoma"

Question: What are the names and scores of wines that are made of white color grapes?
SQL: SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "White"

Question: Find the maximum price of wines from the appelations in Central Coast area and produced before the year of 2005.
SQL: 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

Question: Find the different white color grapes that produced wines with scores higher than 90.
SQL: SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "White" AND T2.score  >  90

Question: What are the wines that have prices higher than 50 and made of Red color grapes?
SQL: SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red" AND T2.price  >  50

Question: What are the wines that have prices lower than 50 and have appelations in Monterey county?
SQL: SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "Monterey" AND T2.price  <  50

Question: Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.
SQL: SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  "John Anthony")

Question: What is the area of the appelation that produces the highest number of wines before the year of 2010?
SQL: SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING T2.year  <  2010 ORDER BY count(*) DESC LIMIT 1

Question: What is the color of the grape whose wine products have the highest average price?
SQL: SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1

Question: Find the distinct names of wines produced before the year of 2000 or after the year of 2010.
SQL: SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010