db_id
stringlengths 4
31
| query
stringlengths 18
577
| question
stringlengths 19
228
| query_toks
sequence | query_toks_no_value
sequence | question_toks
sequence |
---|---|---|---|---|---|
scientist_1 | SELECT count(*) , T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name | What-all are the names of the scientists, and so how many projects are each of them working on? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.name",
"FROM",
"scientists",
"AS",
"T1",
"JOIN",
"assignedto",
"AS",
"T2",
"ON",
"T1.ssn",
"=",
"T2.scientist",
"GROUP",
"BY",
"T1.name"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"name",
"from",
"scientists",
"as",
"t1",
"join",
"assignedto",
"as",
"t2",
"on",
"t1",
".",
"ssn",
"=",
"t2",
".",
"scientist",
"group",
"by",
"t1",
".",
"name"
] | [
"What-all",
"are",
"the",
"names",
"of",
"the",
"scientists,",
"and",
"so",
"how",
"many",
"projects",
"are",
"each",
"of",
"them",
"working",
"on?"
] |
scientist_1 | SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects) | Are Finding the SSN and name of scientists which are assigned to the project with the longest hours. | [
"SELECT",
"T3.ssn",
",",
"T3.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"projects",
"AS",
"T2",
"ON",
"T1.project",
"=",
"T2.code",
"JOIN",
"scientists",
"AS",
"T3",
"ON",
"T1.scientist",
"=",
"T3.SSN",
"WHERE",
"T2.hours",
"=",
"(",
"SELECT",
"max",
"(",
"hours",
")",
"FROM",
"projects",
")"
] | [
"select",
"t3",
".",
"ssn",
",",
"t3",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"projects",
"as",
"t2",
"on",
"t1",
".",
"project",
"=",
"t2",
".",
"code",
"join",
"scientists",
"as",
"t3",
"on",
"t1",
".",
"scientist",
"=",
"t3",
".",
"ssn",
"where",
"t2",
".",
"hours",
"=",
"(",
"select",
"max",
"(",
"hours",
")",
"from",
"projects",
")"
] | [
"Are",
"Finding",
"the",
"SSN",
"and",
"name",
"of",
"scientists",
"which",
"are",
"assigned",
"to",
"the",
"project",
"with",
"the",
"longest",
"hours."
] |
scientist_1 | SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects) | What-all are the SSN and names of scientists working on the project with the most hours? | [
"SELECT",
"T3.ssn",
",",
"T3.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"projects",
"AS",
"T2",
"ON",
"T1.project",
"=",
"T2.code",
"JOIN",
"scientists",
"AS",
"T3",
"ON",
"T1.scientist",
"=",
"T3.SSN",
"WHERE",
"T2.hours",
"=",
"(",
"SELECT",
"max",
"(",
"hours",
")",
"FROM",
"projects",
")"
] | [
"select",
"t3",
".",
"ssn",
",",
"t3",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"projects",
"as",
"t2",
"on",
"t1",
".",
"project",
"=",
"t2",
".",
"code",
"join",
"scientists",
"as",
"t3",
"on",
"t1",
".",
"scientist",
"=",
"t3",
".",
"ssn",
"where",
"t2",
".",
"hours",
"=",
"(",
"select",
"max",
"(",
"hours",
")",
"from",
"projects",
")"
] | [
"What-all",
"are",
"the",
"SSN",
"and",
"names",
"of",
"scientists",
"working",
"on",
"the",
"project",
"with",
"the",
"most",
"hours?"
] |
scientist_1 | SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn | Are Finding the name of scientists which are assigned them to some project. | [
"SELECT",
"T2.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"scientists",
"AS",
"T2",
"ON",
"T1.scientist",
"=",
"T2.ssn"
] | [
"select",
"t2",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"scientists",
"as",
"t2",
"on",
"t1",
".",
"scientist",
"=",
"t2",
".",
"ssn"
] | [
"Are",
"Finding",
"the",
"name",
"of",
"scientists",
"which",
"are",
"assigned",
"them",
"to",
"some",
"project."
] |
scientist_1 | SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn | What-all are the names of scientists which are assigned to any project? | [
"SELECT",
"T2.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"scientists",
"AS",
"T2",
"ON",
"T1.scientist",
"=",
"T2.ssn"
] | [
"select",
"t2",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"scientists",
"as",
"t2",
"on",
"t1",
".",
"scientist",
"=",
"t2",
".",
"ssn"
] | [
"What-all",
"are",
"the",
"names",
"of",
"scientists",
"which",
"are",
"assigned",
"to",
"any",
"project?"
] |
scientist_1 | SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo) | Are Selecting the project names which ain't a-assigned yet. | [
"SELECT",
"Name",
"FROM",
"Projects",
"WHERE",
"Code",
"NOT",
"IN",
"(",
"SELECT",
"Project",
"FROM",
"AssignedTo",
")"
] | [
"select",
"name",
"from",
"projects",
"where",
"code",
"not",
"in",
"(",
"select",
"project",
"from",
"assignedto",
")"
] | [
"Are",
"Selecting",
"the",
"project",
"names",
"which",
"ain't",
"a-assigned",
"yet."
] |
scientist_1 | SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo) | What-all are the names of projects that have ain't assigned them? | [
"SELECT",
"Name",
"FROM",
"Projects",
"WHERE",
"Code",
"NOT",
"IN",
"(",
"SELECT",
"Project",
"FROM",
"AssignedTo",
")"
] | [
"select",
"name",
"from",
"projects",
"where",
"code",
"not",
"in",
"(",
"select",
"project",
"from",
"assignedto",
")"
] | [
"What-all",
"are",
"the",
"names",
"of",
"projects",
"that",
"have",
"ain't",
"assigned",
"them?"
] |
scientist_1 | SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) | Find the name of scientists who ain't assigned to no project. | [
"SELECT",
"Name",
"FROM",
"scientists",
"WHERE",
"ssn",
"NOT",
"IN",
"(",
"SELECT",
"scientist",
"FROM",
"AssignedTo",
")"
] | [
"select",
"name",
"from",
"scientists",
"where",
"ssn",
"not",
"in",
"(",
"select",
"scientist",
"from",
"assignedto",
")"
] | [
"Find",
"the",
"name",
"of",
"scientists",
"who",
"ain't",
"assigned",
"to",
"no",
"project."
] |
scientist_1 | SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) | What-all are the names of scientists which ain't been assigned no project? | [
"SELECT",
"Name",
"FROM",
"scientists",
"WHERE",
"ssn",
"NOT",
"IN",
"(",
"SELECT",
"scientist",
"FROM",
"AssignedTo",
")"
] | [
"select",
"name",
"from",
"scientists",
"where",
"ssn",
"not",
"in",
"(",
"select",
"scientist",
"from",
"assignedto",
")"
] | [
"What-all",
"are",
"the",
"names",
"of",
"scientists",
"which",
"ain't",
"been",
"assigned",
"no",
"project?"
] |
scientist_1 | SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) | Are Finding the number of scientists which ain't assigned to no project. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"scientists",
"WHERE",
"ssn",
"NOT",
"IN",
"(",
"SELECT",
"scientist",
"FROM",
"AssignedTo",
")"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"scientists",
"where",
"ssn",
"not",
"in",
"(",
"select",
"scientist",
"from",
"assignedto",
")"
] | [
"Are",
"Finding",
"the",
"number",
"of",
"scientists",
"which",
"ain't",
"assigned",
"to",
"no",
"project."
] |
scientist_1 | SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) | How many scientists do ain't any assigned them projects? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"scientists",
"WHERE",
"ssn",
"NOT",
"IN",
"(",
"SELECT",
"scientist",
"FROM",
"AssignedTo",
")"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"scientists",
"where",
"ssn",
"not",
"in",
"(",
"select",
"scientist",
"from",
"assignedto",
")"
] | [
"How",
"many",
"scientists",
"do",
"ain't",
"any",
"assigned",
"them",
"projects?"
] |
scientist_1 | SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects) | Are Finding the names of scientists which ain't working on no project with the highest hours. | [
"SELECT",
"name",
"FROM",
"scientists",
"EXCEPT",
"SELECT",
"T3.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"projects",
"AS",
"T2",
"ON",
"T1.project",
"=",
"T2.code",
"JOIN",
"scientists",
"AS",
"T3",
"ON",
"T1.scientist",
"=",
"T3.SSN",
"WHERE",
"T2.hours",
"=",
"(",
"SELECT",
"max",
"(",
"hours",
")",
"FROM",
"projects",
")"
] | [
"select",
"name",
"from",
"scientists",
"except",
"select",
"t3",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"projects",
"as",
"t2",
"on",
"t1",
".",
"project",
"=",
"t2",
".",
"code",
"join",
"scientists",
"as",
"t3",
"on",
"t1",
".",
"scientist",
"=",
"t3",
".",
"ssn",
"where",
"t2",
".",
"hours",
"=",
"(",
"select",
"max",
"(",
"hours",
")",
"from",
"projects",
")"
] | [
"Are",
"Finding",
"the",
"names",
"of",
"scientists",
"which",
"ain't",
"working",
"on",
"no",
"project",
"with",
"the",
"highest",
"hours."
] |
scientist_1 | SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects) | What-all are the names of scientists ain't a-working on no project with the most hours? | [
"SELECT",
"name",
"FROM",
"scientists",
"EXCEPT",
"SELECT",
"T3.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"projects",
"AS",
"T2",
"ON",
"T1.project",
"=",
"T2.code",
"JOIN",
"scientists",
"AS",
"T3",
"ON",
"T1.scientist",
"=",
"T3.SSN",
"WHERE",
"T2.hours",
"=",
"(",
"SELECT",
"max",
"(",
"hours",
")",
"FROM",
"projects",
")"
] | [
"select",
"name",
"from",
"scientists",
"except",
"select",
"t3",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"projects",
"as",
"t2",
"on",
"t1",
".",
"project",
"=",
"t2",
".",
"code",
"join",
"scientists",
"as",
"t3",
"on",
"t1",
".",
"scientist",
"=",
"t3",
".",
"ssn",
"where",
"t2",
".",
"hours",
"=",
"(",
"select",
"max",
"(",
"hours",
")",
"from",
"projects",
")"
] | [
"What-all",
"are",
"the",
"names",
"of",
"scientists",
"ain't",
"a-working",
"on",
"no",
"project",
"with",
"the",
"most",
"hours?"
] |
scientist_1 | SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name | List all the scientists' names, theirn projects' names, and the hours work by that scientist on each project, in alphabetical orders of project name, and then scientist name. | [
"SELECT",
"T1.Name",
",",
"T3.Name",
",",
"T3.Hours",
"FROM",
"Scientists",
"AS",
"T1",
"JOIN",
"AssignedTo",
"AS",
"T2",
"ON",
"T1.SSN",
"=",
"T2.Scientist",
"JOIN",
"Projects",
"AS",
"T3",
"ON",
"T2.Project",
"=",
"T3.Code",
"ORDER",
"BY",
"T3.Name",
",",
"T1.Name"
] | [
"select",
"t1",
".",
"name",
",",
"t3",
".",
"name",
",",
"t3",
".",
"hours",
"from",
"scientists",
"as",
"t1",
"join",
"assignedto",
"as",
"t2",
"on",
"t1",
".",
"ssn",
"=",
"t2",
".",
"scientist",
"join",
"projects",
"as",
"t3",
"on",
"t2",
".",
"project",
"=",
"t3",
".",
"code",
"order",
"by",
"t3",
".",
"name",
",",
"t1",
".",
"name"
] | [
"List",
"all",
"the",
"scientists'",
"names,",
"theirn",
"projects'",
"names,",
"and",
"the",
"hours",
"work",
"by",
"that",
"scientist",
"on",
"each",
"project,",
"in",
"alphabetical",
"orders",
"of",
"project",
"name,",
"and",
"then",
"scientist",
"name."
] |
scientist_1 | SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name | What-all are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name. | [
"SELECT",
"T1.Name",
",",
"T3.Name",
",",
"T3.Hours",
"FROM",
"Scientists",
"AS",
"T1",
"JOIN",
"AssignedTo",
"AS",
"T2",
"ON",
"T1.SSN",
"=",
"T2.Scientist",
"JOIN",
"Projects",
"AS",
"T3",
"ON",
"T2.Project",
"=",
"T3.Code",
"ORDER",
"BY",
"T3.Name",
",",
"T1.Name"
] | [
"select",
"t1",
".",
"name",
",",
"t3",
".",
"name",
",",
"t3",
".",
"hours",
"from",
"scientists",
"as",
"t1",
"join",
"assignedto",
"as",
"t2",
"on",
"t1",
".",
"ssn",
"=",
"t2",
".",
"scientist",
"join",
"projects",
"as",
"t3",
"on",
"t2",
".",
"project",
"=",
"t3",
".",
"code",
"order",
"by",
"t3",
".",
"name",
",",
"t1",
".",
"name"
] | [
"What-all",
"are",
"the",
"names",
"of",
"each",
"scientist,",
"the",
"names",
"of",
"the",
"projects",
"that",
"they",
"work",
"on,",
"and",
"the",
"hours",
"for",
"each",
"of",
"those",
"projects,",
"listed",
"in",
"alphabetical",
"order",
"by",
"project",
"name,",
"then",
"scientist",
"name."
] |
scientist_1 | SELECT T2.name , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT min(hours) FROM projects) | Find name of the project that needs the least amount of time to finish and the name of scientists which work on it. | [
"SELECT",
"T2.name",
",",
"T3.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"projects",
"AS",
"T2",
"ON",
"T1.project",
"=",
"T2.code",
"JOIN",
"scientists",
"AS",
"T3",
"ON",
"T1.scientist",
"=",
"T3.SSN",
"WHERE",
"T2.hours",
"=",
"(",
"SELECT",
"min",
"(",
"hours",
")",
"FROM",
"projects",
")"
] | [
"select",
"t2",
".",
"name",
",",
"t3",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"projects",
"as",
"t2",
"on",
"t1",
".",
"project",
"=",
"t2",
".",
"code",
"join",
"scientists",
"as",
"t3",
"on",
"t1",
".",
"scientist",
"=",
"t3",
".",
"ssn",
"where",
"t2",
".",
"hours",
"=",
"(",
"select",
"min",
"(",
"hours",
")",
"from",
"projects",
")"
] | [
"Find",
"name",
"of",
"the",
"project",
"that",
"needs",
"the",
"least",
"amount",
"of",
"time",
"to",
"finish",
"and",
"the",
"name",
"of",
"scientists",
"which",
"work",
"on",
"it."
] |
scientist_1 | SELECT T2.name , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT min(hours) FROM projects) | What-all is the name of the project that is requiring the fewest number of hours, and the names of the scientists a-assigned to it? | [
"SELECT",
"T2.name",
",",
"T3.name",
"FROM",
"assignedto",
"AS",
"T1",
"JOIN",
"projects",
"AS",
"T2",
"ON",
"T1.project",
"=",
"T2.code",
"JOIN",
"scientists",
"AS",
"T3",
"ON",
"T1.scientist",
"=",
"T3.SSN",
"WHERE",
"T2.hours",
"=",
"(",
"SELECT",
"min",
"(",
"hours",
")",
"FROM",
"projects",
")"
] | [
"select",
"t2",
".",
"name",
",",
"t3",
".",
"name",
"from",
"assignedto",
"as",
"t1",
"join",
"projects",
"as",
"t2",
"on",
"t1",
".",
"project",
"=",
"t2",
".",
"code",
"join",
"scientists",
"as",
"t3",
"on",
"t1",
".",
"scientist",
"=",
"t3",
".",
"ssn",
"where",
"t2",
".",
"hours",
"=",
"(",
"select",
"min",
"(",
"hours",
")",
"from",
"projects",
")"
] | [
"What-all",
"is",
"the",
"name",
"of",
"the",
"project",
"that",
"is",
"requiring",
"the",
"fewest",
"number",
"of",
"hours,",
"and",
"the",
"names",
"of",
"the",
"scientists",
"a-assigned",
"to",
"it?"
] |
wine_1 | SELECT Name FROM WINE ORDER BY Score LIMIT 1 | What-all is the name of the most highest rated wines? | [
"SELECT",
"Name",
"FROM",
"WINE",
"ORDER",
"BY",
"Score",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"wine",
"order",
"by",
"score",
"limit",
"value"
] | [
"What-all",
"is",
"the",
"name",
"of",
"the",
"most",
"highest",
"rated",
"wines?"
] |
wine_1 | SELECT Name FROM WINE ORDER BY Score LIMIT 1 | Are Giving the name of the wines with the highest score. | [
"SELECT",
"Name",
"FROM",
"WINE",
"ORDER",
"BY",
"Score",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"wine",
"order",
"by",
"score",
"limit",
"value"
] | [
"Are",
"Giving",
"the",
"name",
"of",
"the",
"wines",
"with",
"the",
"highest",
"score."
] |
wine_1 | SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1 | Which winery is the wine has the highest score from? | [
"SELECT",
"Winery",
"FROM",
"WINE",
"ORDER",
"BY",
"SCORE",
"LIMIT",
"1"
] | [
"select",
"winery",
"from",
"wine",
"order",
"by",
"score",
"limit",
"value"
] | [
"Which",
"winery",
"is",
"the",
"wine",
"has",
"the",
"highest",
"score",
"from?"
] |
wine_1 | SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1 | What-all is the winery at which the wine with the highest score have been made? | [
"SELECT",
"Winery",
"FROM",
"WINE",
"ORDER",
"BY",
"SCORE",
"LIMIT",
"1"
] | [
"select",
"winery",
"from",
"wine",
"order",
"by",
"score",
"limit",
"value"
] | [
"What-all",
"is",
"the",
"winery",
"at",
"which",
"the",
"wine",
"with",
"the",
"highest",
"score",
"have",
"been",
"made?"
] |
wine_1 | SELECT Name FROM WINE WHERE YEAR = "2008" | Are Finding the names of all wines a-produced in 2008. | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"YEAR",
"=",
"``",
"2008",
"''"
] | [
"select",
"name",
"from",
"wine",
"where",
"year",
"=",
"value"
] | [
"Are",
"Finding",
"the",
"names",
"of",
"all",
"wines",
"a-produced",
"in",
"2008."
] |
wine_1 | SELECT Name FROM WINE WHERE YEAR = "2008" | What-all are the names of all wines produced in 2008? | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"YEAR",
"=",
"``",
"2008",
"''"
] | [
"select",
"name",
"from",
"wine",
"where",
"year",
"=",
"value"
] | [
"What-all",
"are",
"the",
"names",
"of",
"all",
"wines",
"produced",
"in",
"2008?"
] |
wine_1 | SELECT Grape , Appelation FROM WINE | Are Listing the grapes and appelations of all wines. | [
"SELECT",
"Grape",
",",
"Appelation",
"FROM",
"WINE"
] | [
"select",
"grape",
",",
"appelation",
"from",
"wine"
] | [
"Are",
"Listing",
"the",
"grapes",
"and",
"appelations",
"of",
"all",
"wines."
] |
wine_1 | SELECT Grape , Appelation FROM WINE | What-all are the grapes and appelations of each wine? | [
"SELECT",
"Grape",
",",
"Appelation",
"FROM",
"WINE"
] | [
"select",
"grape",
",",
"appelation",
"from",
"wine"
] | [
"What-all",
"are",
"the",
"grapes",
"and",
"appelations",
"of",
"each",
"wine?"
] |
wine_1 | SELECT Name , Score FROM WINE | Are Listing the names and scores of all wines. | [
"SELECT",
"Name",
",",
"Score",
"FROM",
"WINE"
] | [
"select",
"name",
",",
"score",
"from",
"wine"
] | [
"Are",
"Listing",
"the",
"names",
"and",
"scores",
"of",
"all",
"wines."
] |
wine_1 | SELECT Name , Score FROM WINE | What-all are the names and scores of all wines? | [
"SELECT",
"Name",
",",
"Score",
"FROM",
"WINE"
] | [
"select",
"name",
",",
"score",
"from",
"wine"
] | [
"What-all",
"are",
"the",
"names",
"and",
"scores",
"of",
"all",
"wines?"
] |
wine_1 | SELECT Area , County FROM APPELLATIONS | Are Listing the area and county of all appelations. | [
"SELECT",
"Area",
",",
"County",
"FROM",
"APPELLATIONS"
] | [
"select",
"area",
",",
"county",
"from",
"appellations"
] | [
"Are",
"Listing",
"the",
"area",
"and",
"county",
"of",
"all",
"appelations."
] |
wine_1 | SELECT Area , County FROM APPELLATIONS | What-all are the areas and counties for all appelations? | [
"SELECT",
"Area",
",",
"County",
"FROM",
"APPELLATIONS"
] | [
"select",
"area",
",",
"county",
"from",
"appellations"
] | [
"What-all",
"are",
"the",
"areas",
"and",
"counties",
"for",
"all",
"appelations?"
] |
wine_1 | SELECT Price FROM WINE WHERE YEAR < 2010 | What-all are the prices of wines produced before the year of 2010? | [
"SELECT",
"Price",
"FROM",
"WINE",
"WHERE",
"YEAR",
"<",
"2010"
] | [
"select",
"price",
"from",
"wine",
"where",
"year",
"<",
"value"
] | [
"What-all",
"are",
"the",
"prices",
"of",
"wines",
"produced",
"before",
"the",
"year",
"of",
"2010?"
] |
wine_1 | SELECT Price FROM WINE WHERE YEAR < 2010 | Are Returning the prices of wines a-produced before 2010. | [
"SELECT",
"Price",
"FROM",
"WINE",
"WHERE",
"YEAR",
"<",
"2010"
] | [
"select",
"price",
"from",
"wine",
"where",
"year",
"<",
"value"
] | [
"Are",
"Returning",
"the",
"prices",
"of",
"wines",
"a-produced",
"before",
"2010."
] |
wine_1 | SELECT Name FROM WINE WHERE score > 90 | List the names of all distinct wines have scores higher than 90. | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"score",
">",
"90"
] | [
"select",
"name",
"from",
"wine",
"where",
"score",
">",
"value"
] | [
"List",
"the",
"names",
"of",
"all",
"distinct",
"wines",
"have",
"scores",
"higher",
"than",
"90."
] |
wine_1 | SELECT Name FROM WINE WHERE score > 90 | What-all are the names of wines with scores higher than 90? | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"score",
">",
"90"
] | [
"select",
"name",
"from",
"wine",
"where",
"score",
">",
"value"
] | [
"What-all",
"are",
"the",
"names",
"of",
"wines",
"with",
"scores",
"higher",
"than",
"90?"
] |
wine_1 | SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red" | Are Listing the names of all distinct wines that are a-made of red color grape. | [
"SELECT",
"DISTINCT",
"T2.Name",
"FROM",
"GRAPES",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Grape",
"=",
"T2.Grape",
"WHERE",
"T1.Color",
"=",
"``",
"Red",
"''"
] | [
"select",
"distinct",
"t2",
".",
"name",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value"
] | [
"Are",
"Listing",
"the",
"names",
"of",
"all",
"distinct",
"wines",
"that",
"are",
"a-made",
"of",
"red",
"color",
"grape."
] |
wine_1 | SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red" | What-all are the names of wines made from red grapes? | [
"SELECT",
"DISTINCT",
"T2.Name",
"FROM",
"GRAPES",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Grape",
"=",
"T2.Grape",
"WHERE",
"T1.Color",
"=",
"``",
"Red",
"''"
] | [
"select",
"distinct",
"t2",
".",
"name",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value"
] | [
"What-all",
"are",
"the",
"names",
"of",
"wines",
"made",
"from",
"red",
"grapes?"
] |
wine_1 | SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "North Coast" | Find the names of all distinct wines have appellations in North Coast area. | [
"SELECT",
"DISTINCT",
"T2.Name",
"FROM",
"APPELLATIONs",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.Area",
"=",
"``",
"North",
"Coast",
"''"
] | [
"select",
"distinct",
"t2",
".",
"name",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"area",
"=",
"value"
] | [
"Find",
"the",
"names",
"of",
"all",
"distinct",
"wines",
"have",
"appellations",
"in",
"North",
"Coast",
"area."
] |
wine_1 | SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "North Coast" | What-all are the distinct names of wines that have appellations in the North Coast area? | [
"SELECT",
"DISTINCT",
"T2.Name",
"FROM",
"APPELLATIONs",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.Area",
"=",
"``",
"North",
"Coast",
"''"
] | [
"select",
"distinct",
"t2",
".",
"name",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"area",
"=",
"value"
] | [
"What-all",
"are",
"the",
"distinct",
"names",
"of",
"wines",
"that",
"have",
"appellations",
"in",
"the",
"North",
"Coast",
"area?"
] |
wine_1 | SELECT count(*) FROM WINE WHERE Winery = "Robert Biale" | How many wines are a-produced at Robert Biale winery? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"WINE",
"WHERE",
"Winery",
"=",
"``",
"Robert",
"Biale",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"wine",
"where",
"winery",
"=",
"value"
] | [
"How",
"many",
"wines",
"are",
"a-produced",
"at",
"Robert",
"Biale",
"winery?"
] |
wine_1 | SELECT count(*) FROM WINE WHERE Winery = "Robert Biale" | Count the number of wines a-produced at Robert Biale winery. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"WINE",
"WHERE",
"Winery",
"=",
"``",
"Robert",
"Biale",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"wine",
"where",
"winery",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"wines",
"a-produced",
"at",
"Robert",
"Biale",
"winery."
] |
wine_1 | SELECT count(*) FROM APPELLATIONS WHERE County = "Napa" | How many appelations are in Napa Country? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"APPELLATIONS",
"WHERE",
"County",
"=",
"``",
"Napa",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"appellations",
"where",
"county",
"=",
"value"
] | [
"How",
"many",
"appelations",
"are",
"in",
"Napa",
"Country?"
] |
wine_1 | SELECT count(*) FROM APPELLATIONS WHERE County = "Napa" | Count the number of appelations in Napa County. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"APPELLATIONS",
"WHERE",
"County",
"=",
"``",
"Napa",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"appellations",
"where",
"county",
"=",
"value"
] | [
"Count",
"the",
"number",
"of",
"appelations",
"in",
"Napa",
"County."
] |
wine_1 | SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Sonoma" | Are Giving me the average prices of wines that are produced them by appelations in Sonoma County. | [
"SELECT",
"AVG",
"(",
"T2.Price",
")",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.County",
"=",
"``",
"Sonoma",
"''"
] | [
"select",
"avg",
"(",
"t2",
".",
"price",
")",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"county",
"=",
"value"
] | [
"Are",
"Giving",
"me",
"the",
"average",
"prices",
"of",
"wines",
"that",
"are",
"produced",
"them",
"by",
"appelations",
"in",
"Sonoma",
"County."
] |
wine_1 | SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Sonoma" | What-all is the average price of wines produced in appelations in Sonoma County? | [
"SELECT",
"AVG",
"(",
"T2.Price",
")",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.County",
"=",
"``",
"Sonoma",
"''"
] | [
"select",
"avg",
"(",
"t2",
".",
"price",
")",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"county",
"=",
"value"
] | [
"What-all",
"is",
"the",
"average",
"price",
"of",
"wines",
"produced",
"in",
"appelations",
"in",
"Sonoma",
"County?"
] |
wine_1 | SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White" | What-all are the names and scores of wines that are made of white color grapes? | [
"SELECT",
"T2.Name",
",",
"T2.Score",
"FROM",
"GRAPES",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Grape",
"=",
"T2.Grape",
"WHERE",
"T1.Color",
"=",
"``",
"White",
"''"
] | [
"select",
"t2",
".",
"name",
",",
"t2",
".",
"score",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value"
] | [
"What-all",
"are",
"the",
"names",
"and",
"scores",
"of",
"wines",
"that",
"are",
"made",
"of",
"white",
"color",
"grapes?"
] |
wine_1 | SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White" | Are Giving the names and scores of wines made from white grapes. | [
"SELECT",
"T2.Name",
",",
"T2.Score",
"FROM",
"GRAPES",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Grape",
"=",
"T2.Grape",
"WHERE",
"T1.Color",
"=",
"``",
"White",
"''"
] | [
"select",
"t2",
".",
"name",
",",
"t2",
".",
"score",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value"
] | [
"Are",
"Giving",
"the",
"names",
"and",
"scores",
"of",
"wines",
"made",
"from",
"white",
"grapes."
] |
wine_1 | 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 | Are Finding the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005. | [
"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"
] | [
"select",
"max",
"(",
"t2",
".",
"price",
")",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"area",
"=",
"value",
"and",
"t2",
".",
"year",
"<",
"value"
] | [
"Are",
"Finding",
"the",
"maximum",
"price",
"of",
"wins",
"from",
"the",
"appelations",
"in",
"Central",
"Coast",
"area",
"and",
"produced",
"before",
"the",
"year",
"of",
"2005."
] |
wine_1 | 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 | What-all is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005? | [
"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"
] | [
"select",
"max",
"(",
"t2",
".",
"price",
")",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"area",
"=",
"value",
"and",
"t2",
".",
"year",
"<",
"value"
] | [
"What-all",
"is",
"the",
"maximum",
"price",
"of",
"wines",
"from",
"the",
"appelation",
"in",
"the",
"Central",
"Coast",
"area,",
"which",
"was",
"produced",
"before",
"2005?"
] |
wine_1 | 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 | Find the the grape that's white color grapes are used produce wines with scores higher than 90. | [
"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"
] | [
"select",
"distinct",
"t1",
".",
"grape",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value",
"and",
"t2",
".",
"score",
">",
"value"
] | [
"Find",
"the",
"the",
"grape",
"that's",
"white",
"color",
"grapes",
"are",
"used",
"produce",
"wines",
"with",
"scores",
"higher",
"than",
"90."
] |
wine_1 | 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 | Are Finding the white grape used to produce wines with scores above 90. | [
"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"
] | [
"select",
"distinct",
"t1",
".",
"grape",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value",
"and",
"t2",
".",
"score",
">",
"value"
] | [
"Are",
"Finding",
"the",
"white",
"grape",
"used",
"to",
"produce",
"wines",
"with",
"scores",
"above",
"90."
] |
wine_1 | SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red" AND T2.price > 50 | What-all are the wines that have prices higher to 50 and a-made of Red color grapes? | [
"SELECT",
"T2.Name",
"FROM",
"Grapes",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Grape",
"=",
"T2.Grape",
"WHERE",
"T1.Color",
"=",
"``",
"Red",
"''",
"AND",
"T2.price",
">",
"50"
] | [
"select",
"t2",
".",
"name",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value",
"and",
"t2",
".",
"price",
">",
"value"
] | [
"What-all",
"are",
"the",
"wines",
"that",
"have",
"prices",
"higher",
"to",
"50",
"and",
"a-made",
"of",
"Red",
"color",
"grapes?"
] |
wine_1 | SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red" AND T2.price > 50 | What-all are the names of wines a-made from red grapes and with prices above 50? | [
"SELECT",
"T2.Name",
"FROM",
"Grapes",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Grape",
"=",
"T2.Grape",
"WHERE",
"T1.Color",
"=",
"``",
"Red",
"''",
"AND",
"T2.price",
">",
"50"
] | [
"select",
"t2",
".",
"name",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value",
"and",
"t2",
".",
"price",
">",
"value"
] | [
"What-all",
"are",
"the",
"names",
"of",
"wines",
"a-made",
"from",
"red",
"grapes",
"and",
"with",
"prices",
"above",
"50?"
] |
wine_1 | SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.price < 50 | What-all are the wines have prices lower than 50 and have appelations in Monterey county? | [
"SELECT",
"T2.Name",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.County",
"=",
"``",
"Monterey",
"''",
"AND",
"T2.price",
"<",
"50"
] | [
"select",
"t2",
".",
"name",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"county",
"=",
"value",
"and",
"t2",
".",
"price",
"<",
"value"
] | [
"What-all",
"are",
"the",
"wines",
"have",
"prices",
"lower",
"than",
"50",
"and",
"have",
"appelations",
"in",
"Monterey",
"county?"
] |
wine_1 | SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.price < 50 | Are Giving the neames of wines with prices below 50 and with appelations in Monterey county. | [
"SELECT",
"T2.Name",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.County",
"=",
"``",
"Monterey",
"''",
"AND",
"T2.price",
"<",
"50"
] | [
"select",
"t2",
".",
"name",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"county",
"=",
"value",
"and",
"t2",
".",
"price",
"<",
"value"
] | [
"Are",
"Giving",
"the",
"neames",
"of",
"wines",
"with",
"prices",
"below",
"50",
"and",
"with",
"appelations",
"in",
"Monterey",
"county."
] |
wine_1 | SELECT count(*) , Grape FROM WINE GROUP BY Grape | What-all are the numbers of wines for different grapes? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"Grape",
"FROM",
"WINE",
"GROUP",
"BY",
"Grape"
] | [
"select",
"count",
"(",
"*",
")",
",",
"grape",
"from",
"wine",
"group",
"by",
"grape"
] | [
"What-all",
"are",
"the",
"numbers",
"of",
"wines",
"for",
"different",
"grapes?"
] |
wine_1 | SELECT count(*) , Grape FROM WINE GROUP BY Grape | How many wines are there for each grape? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"Grape",
"FROM",
"WINE",
"GROUP",
"BY",
"Grape"
] | [
"select",
"count",
"(",
"*",
")",
",",
"grape",
"from",
"wine",
"group",
"by",
"grape"
] | [
"How",
"many",
"wines",
"are",
"there",
"for",
"each",
"grape?"
] |
wine_1 | SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR | What-all are the average prices of wines for different years? | [
"SELECT",
"avg",
"(",
"Price",
")",
",",
"YEAR",
"FROM",
"WINE",
"GROUP",
"BY",
"YEAR"
] | [
"select",
"avg",
"(",
"price",
")",
",",
"year",
"from",
"wine",
"group",
"by",
"year"
] | [
"What-all",
"are",
"the",
"average",
"prices",
"of",
"wines",
"for",
"different",
"years?"
] |
wine_1 | SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR | What-all is the average prices of wines for each each? | [
"SELECT",
"avg",
"(",
"Price",
")",
",",
"YEAR",
"FROM",
"WINE",
"GROUP",
"BY",
"YEAR"
] | [
"select",
"avg",
"(",
"price",
")",
",",
"year",
"from",
"wine",
"group",
"by",
"year"
] | [
"What-all",
"is",
"the",
"average",
"prices",
"of",
"wines",
"for",
"each",
"each?"
] |
wine_1 | SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = "John Anthony") | Are Finding the distinct names of all wines have prices higher than some wines from John Anthony winery. | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"WHERE",
"Price",
">",
"(",
"SELECT",
"min",
"(",
"Price",
")",
"FROM",
"wine",
"WHERE",
"Winery",
"=",
"``",
"John",
"Anthony",
"''",
")"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"where",
"price",
">",
"(",
"select",
"min",
"(",
"price",
")",
"from",
"wine",
"where",
"winery",
"=",
"value",
")"
] | [
"Are",
"Finding",
"the",
"distinct",
"names",
"of",
"all",
"wines",
"have",
"prices",
"higher",
"than",
"some",
"wines",
"from",
"John",
"Anthony",
"winery."
] |
wine_1 | SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = "John Anthony") | What-all are the distinct names of wines with prices higher than any wine from John Anthony winery. | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"WHERE",
"Price",
">",
"(",
"SELECT",
"min",
"(",
"Price",
")",
"FROM",
"wine",
"WHERE",
"Winery",
"=",
"``",
"John",
"Anthony",
"''",
")"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"where",
"price",
">",
"(",
"select",
"min",
"(",
"price",
")",
"from",
"wine",
"where",
"winery",
"=",
"value",
")"
] | [
"What-all",
"are",
"the",
"distinct",
"names",
"of",
"wines",
"with",
"prices",
"higher",
"than",
"any",
"wine",
"from",
"John",
"Anthony",
"winery."
] |
wine_1 | SELECT DISTINCT Name FROM WINE ORDER BY Name | List the names of all distinct wines in alphabetical orders. | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"ORDER",
"BY",
"Name"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"order",
"by",
"name"
] | [
"List",
"the",
"names",
"of",
"all",
"distinct",
"wines",
"in",
"alphabetical",
"orders."
] |
wine_1 | SELECT DISTINCT Name FROM WINE ORDER BY Name | What-all are the names of wines, sorted in alphabetical orders? | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"ORDER",
"BY",
"Name"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"order",
"by",
"name"
] | [
"What-all",
"are",
"the",
"names",
"of",
"wines,",
"sorted",
"in",
"alphabetical",
"orders?"
] |
wine_1 | SELECT DISTINCT Name FROM WINE ORDER BY price | List the names of all distinct wines a-ordered by price. | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"ORDER",
"BY",
"price"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"order",
"by",
"price"
] | [
"List",
"the",
"names",
"of",
"all",
"distinct",
"wines",
"a-ordered",
"by",
"price."
] |
wine_1 | SELECT DISTINCT Name FROM WINE ORDER BY price | What-all are the names of , sorted price ascending wines? | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"ORDER",
"BY",
"price"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"order",
"by",
"price"
] | [
"What-all",
"are",
"the",
"names",
"of",
",",
"sorted",
"price",
"ascending",
"wines?"
] |
wine_1 | 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 | What-all is the area of the appelation that is producing the most highest number of wines before the year of 2010? | [
"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"
] | [
"select",
"t1",
".",
"area",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"group",
"by",
"t2",
".",
"appelation",
"having",
"t2",
".",
"year",
"<",
"value",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What-all",
"is",
"the",
"area",
"of",
"the",
"appelation",
"that",
"is",
"producing",
"the",
"most",
"highest",
"number",
"of",
"wines",
"before",
"the",
"year",
"of",
"2010?"
] |
wine_1 | 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 | What-all is the area for the appelation which produce the most wines prior to 2010? | [
"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"
] | [
"select",
"t1",
".",
"area",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"group",
"by",
"t2",
".",
"appelation",
"having",
"t2",
".",
"year",
"<",
"value",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What-all",
"is",
"the",
"area",
"for",
"the",
"appelation",
"which",
"produce",
"the",
"most",
"wines",
"prior",
"to",
"2010?"
] |
wine_1 | 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 | What-all is the color of the whose wines products has the highest average price grape? | [
"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"
] | [
"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",
"value"
] | [
"What-all",
"is",
"the",
"color",
"of",
"the",
"whose",
"wines",
"products",
"has",
"the",
"highest",
"average",
"price",
"grape?"
] |
wine_1 | 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 | Are Giving the color of the grape whose wines have the highest average price? | [
"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"
] | [
"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",
"value"
] | [
"Are",
"Giving",
"the",
"color",
"of",
"the",
"grape",
"whose",
"wines",
"have",
"the",
"highest",
"average",
"price?"
] |
wine_1 | SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 | Are Finding the distinct names of wines a-produced before the year of 2000 or after the year of 2010. | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"WHERE",
"YEAR",
"<",
"2000",
"OR",
"YEAR",
">",
"2010"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"where",
"year",
"<",
"value",
"or",
"year",
">",
"value"
] | [
"Are",
"Finding",
"the",
"distinct",
"names",
"of",
"wines",
"a-produced",
"before",
"the",
"year",
"of",
"2000",
"or",
"after",
"the",
"year",
"of",
"2010."
] |
wine_1 | SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 | Give the distinct names of wines made before 2000 or after 2010. | [
"SELECT",
"DISTINCT",
"Name",
"FROM",
"WINE",
"WHERE",
"YEAR",
"<",
"2000",
"OR",
"YEAR",
">",
"2010"
] | [
"select",
"distinct",
"name",
"from",
"wine",
"where",
"year",
"<",
"value",
"or",
"year",
">",
"value"
] | [
"Give",
"the",
"distinct",
"names",
"of",
"wines",
"made",
"before",
"2000",
"or",
"after",
"2010."
] |
wine_1 | SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100 | Are Finding the distinct winery of wines having price between 50 and 100. | [
"SELECT",
"DISTINCT",
"Winery",
"FROM",
"WINE",
"WHERE",
"Price",
"BETWEEN",
"50",
"AND",
"100"
] | [
"select",
"distinct",
"winery",
"from",
"wine",
"where",
"price",
"between",
"value",
"and",
"value"
] | [
"Are",
"Finding",
"the",
"distinct",
"winery",
"of",
"wines",
"having",
"price",
"between",
"50",
"and",
"100."
] |
wine_1 | SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100 | What-all are the distinct wineries produce a-costing 50 wines and 100? | [
"SELECT",
"DISTINCT",
"Winery",
"FROM",
"WINE",
"WHERE",
"Price",
"BETWEEN",
"50",
"AND",
"100"
] | [
"select",
"distinct",
"winery",
"from",
"wine",
"where",
"price",
"between",
"value",
"and",
"value"
] | [
"What-all",
"are",
"the",
"distinct",
"wineries",
"produce",
"a-costing",
"50",
"wines",
"and",
"100?"
] |
wine_1 | SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = "Zinfandel" | What-all are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape? | [
"SELECT",
"AVG",
"(",
"Price",
")",
",",
"AVG",
"(",
"Cases",
")",
"FROM",
"WINE",
"WHERE",
"YEAR",
"=",
"2009",
"AND",
"Grape",
"=",
"``",
"Zinfandel",
"''"
] | [
"select",
"avg",
"(",
"price",
")",
",",
"avg",
"(",
"cases",
")",
"from",
"wine",
"where",
"year",
"=",
"value",
"and",
"grape",
"=",
"value"
] | [
"What-all",
"are",
"the",
"average",
"prices",
"and",
"cases",
"of",
"wines",
"produced",
"in",
"the",
"year",
"of",
"2009",
"and",
"made",
"of",
"Zinfandel",
"grape?"
] |
wine_1 | SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = "Zinfandel" | Give the average price and case of wines made from Zinfandel grapes in the year 2009. | [
"SELECT",
"AVG",
"(",
"Price",
")",
",",
"AVG",
"(",
"Cases",
")",
"FROM",
"WINE",
"WHERE",
"YEAR",
"=",
"2009",
"AND",
"Grape",
"=",
"``",
"Zinfandel",
"''"
] | [
"select",
"avg",
"(",
"price",
")",
",",
"avg",
"(",
"cases",
")",
"from",
"wine",
"where",
"year",
"=",
"value",
"and",
"grape",
"=",
"value"
] | [
"Give",
"the",
"average",
"price",
"and",
"case",
"of",
"wines",
"made",
"from",
"Zinfandel",
"grapes",
"in",
"the",
"year",
"2009."
] |
wine_1 | SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = "St. Helena" | What-all are the maximum price and score of wines produced by St. Helena appelation? | [
"SELECT",
"max",
"(",
"Price",
")",
",",
"max",
"(",
"Score",
")",
"FROM",
"WINE",
"WHERE",
"Appelation",
"=",
"``",
"St.",
"Helena",
"''"
] | [
"select",
"max",
"(",
"price",
")",
",",
"max",
"(",
"score",
")",
"from",
"wine",
"where",
"appelation",
"=",
"value"
] | [
"What-all",
"are",
"the",
"maximum",
"price",
"and",
"score",
"of",
"wines",
"produced",
"by",
"St.",
"Helena",
"appelation?"
] |
wine_1 | SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = "St. Helena" | Are Giving the maximum price and score for wines produced in the appelation St. Helena. | [
"SELECT",
"max",
"(",
"Price",
")",
",",
"max",
"(",
"Score",
")",
"FROM",
"WINE",
"WHERE",
"Appelation",
"=",
"``",
"St.",
"Helena",
"''"
] | [
"select",
"max",
"(",
"price",
")",
",",
"max",
"(",
"score",
")",
"from",
"wine",
"where",
"appelation",
"=",
"value"
] | [
"Are",
"Giving",
"the",
"maximum",
"price",
"and",
"score",
"for",
"wines",
"produced",
"in",
"the",
"appelation",
"St.",
"Helena."
] |
wine_1 | SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR | What-all are the maximum price and score of wines in each year? | [
"SELECT",
"max",
"(",
"Price",
")",
",",
"max",
"(",
"Score",
")",
",",
"YEAR",
"FROM",
"WINE",
"GROUP",
"BY",
"YEAR"
] | [
"select",
"max",
"(",
"price",
")",
",",
"max",
"(",
"score",
")",
",",
"year",
"from",
"wine",
"group",
"by",
"year"
] | [
"What-all",
"are",
"the",
"maximum",
"price",
"and",
"score",
"of",
"wines",
"in",
"each",
"year?"
] |
wine_1 | SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR | What-all are the maximum price and score of wines for each year? | [
"SELECT",
"max",
"(",
"Price",
")",
",",
"max",
"(",
"Score",
")",
",",
"YEAR",
"FROM",
"WINE",
"GROUP",
"BY",
"YEAR"
] | [
"select",
"max",
"(",
"price",
")",
",",
"max",
"(",
"score",
")",
",",
"year",
"from",
"wine",
"group",
"by",
"year"
] | [
"What-all",
"are",
"the",
"maximum",
"price",
"and",
"score",
"of",
"wines",
"for",
"each",
"year?"
] |
wine_1 | SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation | What-all are the average price and score of grouped appelation wines? | [
"SELECT",
"avg",
"(",
"Price",
")",
",",
"avg",
"(",
"Score",
")",
",",
"Appelation",
"FROM",
"WINE",
"GROUP",
"BY",
"Appelation"
] | [
"select",
"avg",
"(",
"price",
")",
",",
"avg",
"(",
"score",
")",
",",
"appelation",
"from",
"wine",
"group",
"by",
"appelation"
] | [
"What-all",
"are",
"the",
"average",
"price",
"and",
"score",
"of",
"grouped",
"appelation",
"wines?"
] |
wine_1 | SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation | What-all are the average price and score of wines for each appelation? | [
"SELECT",
"avg",
"(",
"Price",
")",
",",
"avg",
"(",
"Score",
")",
",",
"Appelation",
"FROM",
"WINE",
"GROUP",
"BY",
"Appelation"
] | [
"select",
"avg",
"(",
"price",
")",
",",
"avg",
"(",
"score",
")",
",",
"appelation",
"from",
"wine",
"group",
"by",
"appelation"
] | [
"What-all",
"are",
"the",
"average",
"price",
"and",
"score",
"of",
"wines",
"for",
"each",
"appelation?"
] |
wine_1 | SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4 | Are Finding the wineries that have at least four wine. | [
"SELECT",
"Winery",
"FROM",
"WINE",
"GROUP",
"BY",
"Winery",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"4"
] | [
"select",
"winery",
"from",
"wine",
"group",
"by",
"winery",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"Are",
"Finding",
"the",
"wineries",
"that",
"have",
"at",
"least",
"four",
"wine."
] |
wine_1 | SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4 | It is at least four wines that which wineries are producing? | [
"SELECT",
"Winery",
"FROM",
"WINE",
"GROUP",
"BY",
"Winery",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"4"
] | [
"select",
"winery",
"from",
"wine",
"group",
"by",
"winery",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] | [
"It",
"is",
"at",
"least",
"four",
"wines",
"that",
"which",
"wineries",
"are",
"producing?"
] |
wine_1 | SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3 | Find the countrys of all appelations have at most three wines. | [
"SELECT",
"T1.County",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"GROUP",
"BY",
"T2.Appelation",
"HAVING",
"count",
"(",
"*",
")",
"<",
"=",
"3"
] | [
"select",
"t1",
".",
"county",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"group",
"by",
"t2",
".",
"appelation",
"having",
"count",
"(",
"*",
")",
"<",
"=",
"value"
] | [
"Find",
"the",
"countrys",
"of",
"all",
"appelations",
"have",
"at",
"most",
"three",
"wines."
] |
wine_1 | SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3 | What-all are the countries for appelations with at most 3 wine? | [
"SELECT",
"T1.County",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"GROUP",
"BY",
"T2.Appelation",
"HAVING",
"count",
"(",
"*",
")",
"<",
"=",
"3"
] | [
"select",
"t1",
".",
"county",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"group",
"by",
"t2",
".",
"appelation",
"having",
"count",
"(",
"*",
")",
"<",
"=",
"value"
] | [
"What-all",
"are",
"the",
"countries",
"for",
"appelations",
"with",
"at",
"most",
"3",
"wine?"
] |
wine_1 | SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = "Brander") | What-all are the names of wines what's production year are before the year of all wines by Brander winery? | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"YEAR",
"<",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"WINE",
"WHERE",
"Winery",
"=",
"``",
"Brander",
"''",
")"
] | [
"select",
"name",
"from",
"wine",
"where",
"year",
"<",
"(",
"select",
"min",
"(",
"year",
")",
"from",
"wine",
"where",
"winery",
"=",
"value",
")"
] | [
"What-all",
"are",
"the",
"names",
"of",
"wines",
"what's",
"production",
"year",
"are",
"before",
"the",
"year",
"of",
"all",
"wines",
"by",
"Brander",
"winery?"
] |
wine_1 | SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = "Brander") | What-all are the names of wines produced before any wine from the Brander winery? | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"YEAR",
"<",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"WINE",
"WHERE",
"Winery",
"=",
"``",
"Brander",
"''",
")"
] | [
"select",
"name",
"from",
"wine",
"where",
"year",
"<",
"(",
"select",
"min",
"(",
"year",
")",
"from",
"wine",
"where",
"winery",
"=",
"value",
")"
] | [
"What-all",
"are",
"the",
"names",
"of",
"wines",
"produced",
"before",
"any",
"wine",
"from",
"the",
"Brander",
"winery?"
] |
wine_1 | SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006) | What-all are the names of are more expensive then all wines made the year wines 2006? | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"Price",
">",
"(",
"SELECT",
"max",
"(",
"Price",
")",
"FROM",
"WINE",
"WHERE",
"YEAR",
"=",
"2006",
")"
] | [
"select",
"name",
"from",
"wine",
"where",
"price",
">",
"(",
"select",
"max",
"(",
"price",
")",
"from",
"wine",
"where",
"year",
"=",
"value",
")"
] | [
"What-all",
"are",
"the",
"names",
"of",
"are",
"more",
"expensive",
"then",
"all",
"wines",
"made",
"the",
"year",
"wines",
"2006?"
] |
wine_1 | SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006) | Are Giving the names of wines with prices above any wine produced in 2006. | [
"SELECT",
"Name",
"FROM",
"WINE",
"WHERE",
"Price",
">",
"(",
"SELECT",
"max",
"(",
"Price",
")",
"FROM",
"WINE",
"WHERE",
"YEAR",
"=",
"2006",
")"
] | [
"select",
"name",
"from",
"wine",
"where",
"price",
">",
"(",
"select",
"max",
"(",
"price",
")",
"from",
"wine",
"where",
"year",
"=",
"value",
")"
] | [
"Are",
"Giving",
"the",
"names",
"of",
"wines",
"with",
"prices",
"above",
"any",
"wine",
"produced",
"in",
"2006."
] |
wine_1 | SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3 | Are Finding the top 3 wineries with the greatest number of wines a-made of white color grapes. | [
"SELECT",
"T2.Winery",
"FROM",
"GRAPES",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.GRAPE",
"=",
"T2.GRAPE",
"WHERE",
"T1.Color",
"=",
"``",
"White",
"''",
"GROUP",
"BY",
"T2.Winery",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"3"
] | [
"select",
"t2",
".",
"winery",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value",
"group",
"by",
"t2",
".",
"winery",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Are",
"Finding",
"the",
"top",
"3",
"wineries",
"with",
"the",
"greatest",
"number",
"of",
"wines",
"a-made",
"of",
"white",
"color",
"grapes."
] |
wine_1 | SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3 | Which 3 winery are producing the most wines made from white grapes? | [
"SELECT",
"T2.Winery",
"FROM",
"GRAPES",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.GRAPE",
"=",
"T2.GRAPE",
"WHERE",
"T1.Color",
"=",
"``",
"White",
"''",
"GROUP",
"BY",
"T2.Winery",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"3"
] | [
"select",
"t2",
".",
"winery",
"from",
"grapes",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"grape",
"=",
"t2",
".",
"grape",
"where",
"t1",
".",
"color",
"=",
"value",
"group",
"by",
"t2",
".",
"winery",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"3",
"winery",
"are",
"producing",
"the",
"most",
"wines",
"made",
"from",
"white",
"grapes?"
] |
wine_1 | SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR | Are Listing the grape, winery and year of the wines whose is more bigger as 100 a-ordered by year. | [
"SELECT",
"Grape",
",",
"Winery",
",",
"YEAR",
"FROM",
"WINE",
"WHERE",
"Price",
">",
"100",
"ORDER",
"BY",
"YEAR"
] | [
"select",
"grape",
",",
"winery",
",",
"year",
"from",
"wine",
"where",
"price",
">",
"value",
"order",
"by",
"year"
] | [
"Are",
"Listing",
"the",
"grape,",
"winery",
"and",
"year",
"of",
"the",
"wines",
"whose",
"is",
"more",
"bigger",
"as",
"100",
"a-ordered",
"by",
"year."
] |
wine_1 | SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR | What-all are the grapes, wineries and years for wines with price higher than 100, sorted by year? | [
"SELECT",
"Grape",
",",
"Winery",
",",
"YEAR",
"FROM",
"WINE",
"WHERE",
"Price",
">",
"100",
"ORDER",
"BY",
"YEAR"
] | [
"select",
"grape",
",",
"winery",
",",
"year",
"from",
"wine",
"where",
"price",
">",
"value",
"order",
"by",
"year"
] | [
"What-all",
"are",
"the",
"grapes,",
"wineries",
"and",
"years",
"for",
"wines",
"with",
"price",
"higher",
"than",
"100,",
"sorted",
"by",
"year?"
] |
wine_1 | SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name | Are Listing the grape, appelation and name of wines what's is higher to 93 ordered by Name. | [
"SELECT",
"Grape",
",",
"Appelation",
",",
"Name",
"FROM",
"WINE",
"WHERE",
"Score",
">",
"93",
"ORDER",
"BY",
"Name"
] | [
"select",
"grape",
",",
"appelation",
",",
"name",
"from",
"wine",
"where",
"score",
">",
"value",
"order",
"by",
"name"
] | [
"Are",
"Listing",
"the",
"grape,",
"appelation",
"and",
"name",
"of",
"wines",
"what's",
"is",
"higher",
"to",
"93",
"ordered",
"by",
"Name."
] |
wine_1 | SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name | What-all are the grapes, appelations, and wines with scores above 93, sorted by Name? | [
"SELECT",
"Grape",
",",
"Appelation",
",",
"Name",
"FROM",
"WINE",
"WHERE",
"Score",
">",
"93",
"ORDER",
"BY",
"Name"
] | [
"select",
"grape",
",",
"appelation",
",",
"name",
"from",
"wine",
"where",
"score",
">",
"value",
"order",
"by",
"name"
] | [
"What-all",
"are",
"the",
"grapes,",
"appelations,",
"and",
"wines",
"with",
"scores",
"above",
"93,",
"sorted",
"by",
"Name?"
] |
wine_1 | SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = "Central Coast" | Find the appelations produce wines after the year of 2008 but not in Central Coast area. | [
"SELECT",
"Appelation",
"FROM",
"WINE",
"WHERE",
"YEAR",
">",
"2008",
"EXCEPT",
"SELECT",
"Appelation",
"FROM",
"APPELLATIONS",
"WHERE",
"Area",
"=",
"``",
"Central",
"Coast",
"''"
] | [
"select",
"appelation",
"from",
"wine",
"where",
"year",
">",
"value",
"except",
"select",
"appelation",
"from",
"appellations",
"where",
"area",
"=",
"value"
] | [
"Find",
"the",
"appelations",
"produce",
"wines",
"after",
"the",
"year",
"of",
"2008",
"but",
"not",
"in",
"Central",
"Coast",
"area."
] |
wine_1 | SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = "Central Coast" | What-all are the appelations for wines a-produced after 2008 but not in the Central Coast area? | [
"SELECT",
"Appelation",
"FROM",
"WINE",
"WHERE",
"YEAR",
">",
"2008",
"EXCEPT",
"SELECT",
"Appelation",
"FROM",
"APPELLATIONS",
"WHERE",
"Area",
"=",
"``",
"Central",
"Coast",
"''"
] | [
"select",
"appelation",
"from",
"wine",
"where",
"year",
">",
"value",
"except",
"select",
"appelation",
"from",
"appellations",
"where",
"area",
"=",
"value"
] | [
"What-all",
"are",
"the",
"appelations",
"for",
"wines",
"a-produced",
"after",
"2008",
"but",
"not",
"in",
"the",
"Central",
"Coast",
"area?"
] |
wine_1 | SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') | Are Finding the average price of wines that ain't a-produced from Sonoma no county. | [
"SELECT",
"avg",
"(",
"price",
")",
"FROM",
"wine",
"WHERE",
"Appelation",
"NOT",
"IN",
"(",
"SELECT",
"T1.Appelation",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.County",
"=",
"'Sonoma",
"'",
")"
] | [
"select",
"avg",
"(",
"price",
")",
"from",
"wine",
"where",
"appelation",
"not",
"in",
"(",
"select",
"t1",
".",
"appelation",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"county",
"=",
"value",
")"
] | [
"Are",
"Finding",
"the",
"average",
"price",
"of",
"wines",
"that",
"ain't",
"a-produced",
"from",
"Sonoma",
"no",
"county."
] |
wine_1 | SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') | What-all is the average price for wines not produced in Sonoma no county? | [
"SELECT",
"avg",
"(",
"price",
")",
"FROM",
"wine",
"WHERE",
"Appelation",
"NOT",
"IN",
"(",
"SELECT",
"T1.Appelation",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T1.County",
"=",
"'Sonoma",
"'",
")"
] | [
"select",
"avg",
"(",
"price",
")",
"from",
"wine",
"where",
"appelation",
"not",
"in",
"(",
"select",
"t1",
".",
"appelation",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t1",
".",
"county",
"=",
"value",
")"
] | [
"What-all",
"is",
"the",
"average",
"price",
"for",
"wines",
"not",
"produced",
"in",
"Sonoma",
"no",
"county?"
] |
wine_1 | SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1 | Find the county where produces the most number of wines with score higher than 90. | [
"SELECT",
"T1.County",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T2.Score",
">",
"90",
"GROUP",
"BY",
"T1.County",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"county",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t2",
".",
"score",
">",
"value",
"group",
"by",
"t1",
".",
"county",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"county",
"where",
"produces",
"the",
"most",
"number",
"of",
"wines",
"with",
"score",
"higher",
"than",
"90."
] |
wine_1 | SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1 | What-all is the county is producing the most wines a-scoring higher to 90? | [
"SELECT",
"T1.County",
"FROM",
"APPELLATIONS",
"AS",
"T1",
"JOIN",
"WINE",
"AS",
"T2",
"ON",
"T1.Appelation",
"=",
"T2.Appelation",
"WHERE",
"T2.Score",
">",
"90",
"GROUP",
"BY",
"T1.County",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"county",
"from",
"appellations",
"as",
"t1",
"join",
"wine",
"as",
"t2",
"on",
"t1",
".",
"appelation",
"=",
"t2",
".",
"appelation",
"where",
"t2",
".",
"score",
">",
"value",
"group",
"by",
"t1",
".",
"county",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What-all",
"is",
"the",
"county",
"is",
"producing",
"the",
"most",
"wines",
"a-scoring",
"higher",
"to",
"90?"
] |
train_station | SELECT count(*) FROM station | How many train stations are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"station"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"station"
] | [
"How",
"many",
"train",
"stations",
"are",
"there?"
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.