jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE Documents (document_id VARCHAR, document_date VARCHAR), CREATE TABLE Documents_with_Expenses (document_id VARCHAR, budget_type_code VARCHAR)
user: 给出预算类型代码既是“GV”又是“SF”的文档的创建日期。

assistant: SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  "GV" INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  "SF"
Schema: CREATE TABLE Accounts (Account_details INTEGER)
user: 什么是具有最大值或包含字符“5”的帐户详细信息是什么？

assistant: SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
Schema: CREATE TABLE Accounts (Account_details INTEGER)
user: 返回具有最大值或包含字符“5”的帐户详细信息。

assistant: SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
Schema: CREATE TABLE scientists (Id VARCHAR)
user: 找出科学家总数。

assistant: SELECT count(*) FROM scientists
Schema: CREATE TABLE scientists (Id VARCHAR)
user: 那边有多少科学家？

assistant: SELECT count(*) FROM scientists
Schema: CREATE TABLE projects (hours INTEGER)
user: 找出所有项目的总时间。

assistant: SELECT sum(hours) FROM projects
Schema: CREATE TABLE projects (hours INTEGER)
user: 所有项目的总时间是多少？

assistant: SELECT sum(hours) FROM projects
Schema: CREATE TABLE assignedto (scientist VARCHAR)
user: 有多少不同的科学家被指派给任何项目？

assistant: SELECT count(DISTINCT scientist) FROM assignedto
Schema: CREATE TABLE assignedto (scientist VARCHAR)
user: 统计分配给任何项目的不同科学家的数量。

assistant: SELECT count(DISTINCT scientist) FROM assignedto
Schema: CREATE TABLE projects (name VARCHAR)
user: 查找不同项目的数量。

assistant: SELECT count(DISTINCT name) FROM projects
Schema: CREATE TABLE projects (name VARCHAR)
user: 有多少个不同的项目？

assistant: SELECT count(DISTINCT name) FROM projects
Schema: CREATE TABLE projects (hours INTEGER)
user: 找出所有项目的平均小时数。

assistant: SELECT avg(hours) FROM projects
Schema: CREATE TABLE projects (hours INTEGER)
user: 所有项目的平均小时数是多少？

assistant: SELECT avg(hours) FROM projects
Schema: CREATE TABLE projects (name VARCHAR, hours VARCHAR)
user: 找出项目持续时间最长的名称。

assistant: SELECT name FROM projects ORDER BY hours DESC LIMIT 1
Schema: CREATE TABLE projects (name VARCHAR, hours VARCHAR)
user: 最长的项目名称是什么？

assistant: SELECT name FROM projects ORDER BY hours DESC LIMIT 1
Schema: CREATE TABLE projects (hours INTEGER, name VARCHAR)
user: 列出比所有项目的平均工作时间更长的所有项目的名称。

assistant: SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)
Schema: CREATE TABLE projects (hours INTEGER, name VARCHAR)
user: 比所有项目的平均工作时间更长的项目的名称是什么？

assistant: SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)
Schema: CREATE TABLE projects (name VARCHAR, hours VARCHAR, code VARCHAR), CREATE TABLE assignedto (project VARCHAR)
user: 找出拥有最多科学家的项目的名称和时间。

assistant: SELECT T1.name ,  T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE projects (name VARCHAR, hours VARCHAR, code VARCHAR), CREATE TABLE assignedto (project VARCHAR)
user: 拥有最多科学家的项目的名称和时间是多少？

assistant: SELECT T1.name ,  T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (name VARCHAR, code VARCHAR), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 找出被指派的科学家中名字包含“曹”的项目的名字.

assistant: SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name LIKE "%曹%"
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (name VARCHAR, code VARCHAR), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 被指派的科学家中名字包含“曹”的项目的名字是什么？

assistant: SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name LIKE "%曹%"
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER, code VARCHAR), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 查找科学家“李文军”或“张智名”被分配到的项目的总时间。

assistant: SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name  =  "李文军" OR T3.name  =  "张智名"
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER, code VARCHAR), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 以科学家“李文军”或“张智名”被分配到的项目的时间合集是什么？

assistant: SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name  =  "李文军" OR T3.name  =  "张智名"
Schema: CREATE TABLE projects (hours INTEGER, name VARCHAR)
user: 查找需要100到300小时工作的项目名称。

assistant: SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
Schema: CREATE TABLE projects (hours INTEGER, name VARCHAR)
user: 需要100到300小时的项目名称是什么？

assistant: SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (name VARCHAR, code VARCHAR), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 找一个同时从事名为“东电西输”的项目和一个名为“南水北调”的项目的科学家的名字。

assistant: 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.name  =  "东电西输" INTERSECT 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.name  =  "南水北调"
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (name VARCHAR, code VARCHAR), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 从事“东电西输”和“南水北调”项目的科学家的名字是什么？

assistant: 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.name  =  "东电西输" INTERSECT 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.name  =  "南水北调"
Schema: CREATE TABLE scientists (name VARCHAR)
user: 列出所有按字母顺序排序的科学家的名字。

assistant: SELECT name FROM scientists ORDER BY name
Schema: CREATE TABLE scientists (name VARCHAR)
user: 按字母顺序排列的所有的科学家名字是什么？

assistant: SELECT name FROM scientists ORDER BY name
Schema: CREATE TABLE projects (name VARCHAR, code VARCHAR), CREATE TABLE assignedto (project VARCHAR)
user: 找出每个项目名称涉及的科学家数量。

assistant: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name
Schema: CREATE TABLE projects (name VARCHAR, code VARCHAR), CREATE TABLE assignedto (project VARCHAR)
user: 所有项目的名称是什么，每个项目分配了多少科学家？

assistant: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name
Schema: CREATE TABLE projects (hours INTEGER, name VARCHAR, code VARCHAR), CREATE TABLE assignedto (project VARCHAR)
user: 找出需要300小时以上的项目的科学家人数。

assistant: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project WHERE T1.hours  >  300 GROUP BY T1.name
Schema: CREATE TABLE projects (hours INTEGER, name VARCHAR, code VARCHAR), CREATE TABLE assignedto (project VARCHAR)
user: 需要300小时以上的项目的名称是什么？每个项目分配多少科学家？

assistant: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project WHERE T1.hours  >  300 GROUP BY T1.name
Schema: CREATE TABLE scientists (name VARCHAR, ssn VARCHAR), CREATE TABLE assignedto (scientist VARCHAR)
user: 找出每个科学家正在从事的项目数量和科学家的名字。

assistant: SELECT count(*) ,  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name
Schema: CREATE TABLE scientists (name VARCHAR, ssn VARCHAR), CREATE TABLE assignedto (scientist VARCHAR)
user: 这些科学家的名字是什么，他们各自有多少个项目？

assistant: SELECT count(*) ,  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR, ssn VARCHAR)
user: 找出那些被分配到最长时间项目的科学家的名字和SSN。

assistant: 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)
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR, ssn VARCHAR)
user: 从事项目的时间最长的SSN和科学家的名字是什么？

assistant: 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)
Schema: CREATE TABLE assignedto (scientist VARCHAR), CREATE TABLE scientists (name VARCHAR, ssn VARCHAR)
user: 找出被指派给任何项目的科学家的名字。

assistant: SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist  =  T2.ssn
Schema: CREATE TABLE assignedto (scientist VARCHAR), CREATE TABLE scientists (name VARCHAR, ssn VARCHAR)
user: 被指派给任何项目的科学家的名字是什么？

assistant: SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist  =  T2.ssn
Schema: CREATE TABLE Projects (Code VARCHAR, Name VARCHAR, Project VARCHAR), CREATE TABLE AssignedTo (Code VARCHAR, Name VARCHAR, Project VARCHAR)
user: 选择尚未被指派的项目名称。

assistant: SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)
Schema: CREATE TABLE Projects (Code VARCHAR, Name VARCHAR, Project VARCHAR), CREATE TABLE AssignedTo (Code VARCHAR, Name VARCHAR, Project VARCHAR)
user: 没有被指派的项目名称是什么？

assistant: SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)
Schema: CREATE TABLE scientists (Name VARCHAR, scientist VARCHAR, ssn VARCHAR), CREATE TABLE AssignedTo (Name VARCHAR, scientist VARCHAR, ssn VARCHAR)
user: 找出没有被指派给任何项目的科学家的名字。

assistant: SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Schema: CREATE TABLE scientists (Name VARCHAR, scientist VARCHAR, ssn VARCHAR), CREATE TABLE AssignedTo (Name VARCHAR, scientist VARCHAR, ssn VARCHAR)
user: 没有被指定项目的科学家的名字是什么？

assistant: SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Schema: CREATE TABLE scientists (scientist VARCHAR, ssn VARCHAR), CREATE TABLE AssignedTo (scientist VARCHAR, ssn VARCHAR)
user: 找出没有分配给任何项目的科学家的数量。

assistant: SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Schema: CREATE TABLE scientists (scientist VARCHAR, ssn VARCHAR), CREATE TABLE AssignedTo (scientist VARCHAR, ssn VARCHAR)
user: 有多少科学家没有分配给他们的项目？

assistant: SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Schema: CREATE TABLE scientists (SSN VARCHAR, name VARCHAR), CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER, name VARCHAR)
user: 找出那些没有从事最长工作时间项目的科学家的名字。

assistant: 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)
Schema: CREATE TABLE scientists (SSN VARCHAR, name VARCHAR), CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER, name VARCHAR)
user: 没有从事最长工作时间项目的科学家的名字是什么？

assistant: 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)
Schema: CREATE TABLE Scientists (SSN VARCHAR, Name VARCHAR), CREATE TABLE AssignedTo (Project VARCHAR, Scientist VARCHAR), CREATE TABLE Projects (Code VARCHAR, Name VARCHAR, Hours VARCHAR)
user: 按照项目名称的字母顺序而后按科学家姓名排序，列出所有科学家的姓名，他们的项目名称，以及科学家在每个项目上工作的时间。

assistant: 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
Schema: CREATE TABLE Scientists (SSN VARCHAR, Name VARCHAR), CREATE TABLE AssignedTo (Project VARCHAR, Scientist VARCHAR), CREATE TABLE Projects (Code VARCHAR, Name VARCHAR, Hours VARCHAR)
user: 按照项目名称的字母顺序而后按科学家姓名排序，所有科学家的姓名，他们的项目名称，以及科学家在每个项目上工作的时间是什么？

assistant: 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
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 找出需要最少时间完成的项目的名称以及从事该项目的科学家的名字。

assistant: 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)
Schema: CREATE TABLE assignedto (scientist VARCHAR, project VARCHAR), CREATE TABLE projects (hours INTEGER), CREATE TABLE scientists (SSN VARCHAR, name VARCHAR)
user: 需要最少的小时数的项目名称，以及被指派给它的科学家的名字是什么？

assistant: 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)
Schema: CREATE TABLE WINE (Name VARCHAR, Score VARCHAR)
user: 最高等级葡萄酒的名称是什么？

assistant: SELECT Name FROM WINE ORDER BY Score LIMIT 1
Schema: CREATE TABLE WINE (Name VARCHAR, Score VARCHAR)
user: 给出最高得分的葡萄酒的名称。

assistant: SELECT Name FROM WINE ORDER BY Score LIMIT 1
Schema: CREATE TABLE WINE (Winery VARCHAR, SCORE VARCHAR)
user: 哪个酒厂的葡萄酒得分最高？

assistant: SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
Schema: CREATE TABLE WINE (Winery VARCHAR, SCORE VARCHAR)
user: 最高的葡萄酒是在什么酿造厂被制造的？

assistant: SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
Schema: CREATE TABLE WINE (Name VARCHAR, YEAR VARCHAR)
user: 找出“2008”年所有葡萄酒的名称。

assistant: SELECT Name FROM WINE WHERE YEAR  =  "2008"
Schema: CREATE TABLE WINE (Name VARCHAR, YEAR VARCHAR)
user: “2008”年所有葡萄酒的名称是什么？

assistant: SELECT Name FROM WINE WHERE YEAR  =  "2008"
Schema: CREATE TABLE WINE (Appelation VARCHAR, Grape VARCHAR)
user: 列出所有葡萄酒的葡萄和葡萄产地。

assistant: SELECT Grape ,  Appelation FROM WINE
Schema: CREATE TABLE WINE (Appelation VARCHAR, Grape VARCHAR)
user: 每种葡萄酒的葡萄和葡萄产地是什么？

assistant: SELECT Grape ,  Appelation FROM WINE
Schema: CREATE TABLE WINE (Name VARCHAR, Score VARCHAR)
user: 列出所有葡萄酒的名称和得分。

assistant: SELECT Name ,  Score FROM WINE
Schema: CREATE TABLE WINE (Name VARCHAR, Score VARCHAR)
user: 所有葡萄酒的名称和得分是多少？

assistant: SELECT Name ,  Score FROM WINE
Schema: CREATE TABLE APPELLATIONS (County VARCHAR, Area VARCHAR)
user: 列出所有的葡萄产地的地区和县。

assistant: SELECT Area ,  County FROM APPELLATIONS
Schema: CREATE TABLE APPELLATIONS (County VARCHAR, Area VARCHAR)
user: 所有应用的地区和县是什么？

assistant: SELECT Area ,  County FROM APPELLATIONS
Schema: CREATE TABLE WINE (Price VARCHAR, YEAR INTEGER)
user: 2010年前生产的葡萄酒的价格是多少？

assistant: SELECT Price FROM WINE WHERE YEAR  <  2010
Schema: CREATE TABLE WINE (Price VARCHAR, YEAR INTEGER)
user: 返回2010之前生产的葡萄酒的价格。

assistant: SELECT Price FROM WINE WHERE YEAR  <  2010
Schema: CREATE TABLE WINE (Name VARCHAR, score INTEGER)
user: 列出所有得分高于90的不同葡萄酒的名称。

assistant: SELECT Name FROM WINE WHERE score  >  90
Schema: CREATE TABLE WINE (Name VARCHAR, score INTEGER)
user: 分数高于90的葡萄酒名称是什么？

assistant: SELECT Name FROM WINE WHERE score  >  90
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (Name VARCHAR, Grape VARCHAR)
user: 列出所有由“红”葡萄酿造的不同葡萄酒的名称。

assistant: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red"
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (Name VARCHAR, Grape VARCHAR)
user: “红”酒酿造的葡萄酒叫什么名字？

assistant: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red"
Schema: CREATE TABLE APPELLATIONs (Area VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR)
user: 找出所有在“西北部”地区有葡萄产地的葡萄酒的名称。

assistant: SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "西北部"
Schema: CREATE TABLE APPELLATIONs (Area VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR)
user: 在“西北部”地区有葡萄产地的葡萄酒有哪些不同的名称？

assistant: SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "西北部"
Schema: CREATE TABLE WINE (Winery VARCHAR)
user: “王朝葡萄酒厂”生产多少葡萄酒？

assistant: SELECT count(*) FROM WINE WHERE Winery  =  "王朝葡萄酒厂"
Schema: CREATE TABLE WINE (Winery VARCHAR)
user: 统计“王朝葡萄酒厂”生产的葡萄酒数量。

assistant: SELECT count(*) FROM WINE WHERE Winery  =  "王朝葡萄酒厂"
Schema: CREATE TABLE APPELLATIONS (County VARCHAR)
user: “通化”有多少葡萄产地？

assistant: SELECT count(*) FROM APPELLATIONS WHERE County  =  "通化"
Schema: CREATE TABLE APPELLATIONS (County VARCHAR)
user: 统计“通化”的葡萄产地数量。

assistant: SELECT count(*) FROM APPELLATIONS WHERE County  =  "通化"
Schema: CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (Appelation VARCHAR, Price INTEGER)
user: 请告诉我葡萄产地是“张掖”产的葡萄酒的平均价格。

assistant: SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "张掖"
Schema: CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (Appelation VARCHAR, Price INTEGER)
user: 葡萄产地是“张掖”生产的葡萄酒平均价格是多少？

assistant: SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "张掖"
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (Name VARCHAR, Score VARCHAR, Grape VARCHAR)
user: “白”葡萄酿造的葡萄酒的名称和分数是多少？

assistant: SELECT T2.Name ,   T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白"
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (Name VARCHAR, Score VARCHAR, Grape VARCHAR)
user: 说出“白”葡萄酿造的葡萄酒的名称和分数。

assistant: SELECT T2.Name ,   T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白"
Schema: CREATE TABLE APPELLATIONS (Area VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (Appelation VARCHAR, year INTEGER, Price INTEGER)
user: 找出葡萄产地是“东南”地区并在2005年之前生产的葡萄酒的最高价格。

assistant: SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "东南" AND T2.year  <  2005
Schema: CREATE TABLE APPELLATIONS (Area VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (Appelation VARCHAR, year INTEGER, Price INTEGER)
user: 葡萄产地是“东南”地区并在2005年之前生产的葡萄酒的最高价格是多少？

assistant: SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "东南" AND T2.year  <  2005
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (score INTEGER, Grape VARCHAR)
user: 找出那些“白”葡萄被用来酿造得分高于90的葡萄酒的葡萄。

assistant: SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白" AND T2.score  >  90
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (score INTEGER, Grape VARCHAR)
user: 找出用“白”葡萄用来生产且在90分以上的葡萄酒。

assistant: SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白" AND T2.score  >  90
Schema: CREATE TABLE Grapes (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (price INTEGER, Name VARCHAR, Grape VARCHAR)
user: 哪些葡萄酒的价格高于50且是由“红”葡萄酿造的？

assistant: SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "红" AND T2.price  >  50
Schema: CREATE TABLE Grapes (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (price INTEGER, Name VARCHAR, Grape VARCHAR)
user: “红”酒酿造的且价格在50以上葡萄酒的名称是什么？

assistant: SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "红" AND T2.price  >  50
Schema: CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (price INTEGER, Name VARCHAR, Appelation VARCHAR)
user: 有哪些酒价格低于50而且生产地是 “宁夏”？

assistant: SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "宁夏" AND T2.price  <  50
Schema: CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR), CREATE TABLE WINE (price INTEGER, Name VARCHAR, Appelation VARCHAR)
user: 给出酒价格低于50而且生产地是“宁夏”的酒的名字。

assistant: SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "宁夏" AND T2.price  <  50
Schema: CREATE TABLE WINE (Grape VARCHAR)
user: 不同葡萄的葡萄酒数量是多少？

assistant: SELECT count(*) ,  Grape FROM WINE GROUP BY Grape
Schema: CREATE TABLE WINE (Grape VARCHAR)
user: 每个葡萄有多少葡萄酒？

assistant: SELECT count(*) ,  Grape FROM WINE GROUP BY Grape
Schema: CREATE TABLE WINE (Price INTEGER, YEAR VARCHAR)
user: 不同年份葡萄酒的平均价格是多少？

assistant: SELECT avg(Price) ,  YEAR FROM WINE GROUP BY YEAR
Schema: CREATE TABLE WINE (Price INTEGER, YEAR VARCHAR)
user: 每种年份的葡萄酒的平均价格是多少？

assistant: SELECT avg(Price) ,  YEAR FROM WINE GROUP BY YEAR
Schema: CREATE TABLE WINE (Winery VARCHAR, Name VARCHAR, Price INTEGER), CREATE TABLE wine (Winery VARCHAR, Name VARCHAR, Price INTEGER)
user: 找出所有价格高于“长城葡萄酒厂”的葡萄酒的不同名称。

assistant: SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  "长城葡萄酒厂")
Schema: CREATE TABLE WINE (Winery VARCHAR, Name VARCHAR, Price INTEGER), CREATE TABLE wine (Winery VARCHAR, Name VARCHAR, Price INTEGER)
user: 所有价格高于“长城葡萄酒厂”的葡萄酒的不同名称是什么？

assistant: SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  "长城葡萄酒厂")
Schema: CREATE TABLE WINE (Name VARCHAR)
user: 按字母顺序列出所有不同葡萄酒的名称。

assistant: SELECT DISTINCT Name FROM WINE ORDER BY Name
Schema: CREATE TABLE WINE (Name VARCHAR)
user: 按字母顺序排列的葡萄酒的名称是什么？

assistant: SELECT DISTINCT Name FROM WINE ORDER BY Name
Schema: CREATE TABLE WINE (price VARCHAR, Name VARCHAR)
user: 列出所有按价格排序的不同葡萄酒的名称。

assistant: SELECT DISTINCT Name FROM WINE ORDER BY price
Schema: CREATE TABLE WINE (price VARCHAR, Name VARCHAR)
user: 按升序排列的葡萄酒的名称是什么？

assistant: SELECT DISTINCT Name FROM WINE ORDER BY price
Schema: CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR), CREATE TABLE WINE (year INTEGER, Appelation VARCHAR)
user: 在2010年之前，葡萄酒产量最高的葡萄产地是哪个地区？

assistant: 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
Schema: CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR), CREATE TABLE WINE (year INTEGER, Appelation VARCHAR)
user: 在2010之前生产葡萄酒最多的葡萄产地是什么地区？

assistant: 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
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (Grape VARCHAR)
user: 葡萄酒产品平均价格最高的葡萄的颜色是什么？

assistant: 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
Schema: CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR), CREATE TABLE WINE (Grape VARCHAR)
user: 给出葡萄酒平均价格最高的葡萄的颜色。

assistant: 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
Schema: CREATE TABLE WINE (YEAR INTEGER, Name VARCHAR)
user: 找出在2000年之前或2010年之后生产的葡萄酒的不同名称。

assistant: SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010
Schema: CREATE TABLE WINE (YEAR INTEGER, Name VARCHAR)
user: 给出2000年或2010年后葡萄酒的独特名称。

assistant: SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010
Schema: CREATE TABLE WINE (Winery VARCHAR, Price INTEGER)
user: 找出价格在50到100之间不同的葡萄酒酿造厂。

assistant: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
Schema: CREATE TABLE WINE (Winery VARCHAR, Price INTEGER)
user: 哪些葡萄酒酿造厂生产的葡萄酒成本在50到100之间？

assistant: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100