jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 从事“东电西输”和“南水北调”项目的科学家的名字是什么？

SQL: 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  =  "南水北调"
问题: 列出所有按字母顺序排序的科学家的名字。

SQL: SELECT name FROM scientists ORDER BY name
问题: 按字母顺序排列的所有的科学家名字是什么？

SQL: SELECT name FROM scientists ORDER BY name
问题: 找出每个项目名称涉及的科学家数量。

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

SQL: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name
问题: 找出需要300小时以上的项目的科学家人数。

SQL: 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
问题: 需要300小时以上的项目的名称是什么？每个项目分配多少科学家？

SQL: 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
问题: 找出每个科学家正在从事的项目数量和科学家的名字。

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

SQL: SELECT count(*) ,  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name
问题: 找出那些被分配到最长时间项目的科学家的名字和SSN。

SQL: 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)
问题: 从事项目的时间最长的SSN和科学家的名字是什么？

SQL: 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)
问题: 找出被指派给任何项目的科学家的名字。

SQL: SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist  =  T2.ssn
问题: 被指派给任何项目的科学家的名字是什么？

SQL: SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist  =  T2.ssn
问题: 选择尚未被指派的项目名称。

SQL: SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)
问题: 没有被指派的项目名称是什么？

SQL: SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)
问题: 找出没有被指派给任何项目的科学家的名字。

SQL: SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
问题: 没有被指定项目的科学家的名字是什么？

SQL: SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
问题: 找出没有分配给任何项目的科学家的数量。

SQL: SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
问题: 有多少科学家没有分配给他们的项目？

SQL: SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
问题: 找出那些没有从事最长工作时间项目的科学家的名字。

SQL: 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)
问题: 没有从事最长工作时间项目的科学家的名字是什么？

SQL: 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)
问题: 按照项目名称的字母顺序而后按科学家姓名排序，列出所有科学家的姓名，他们的项目名称，以及科学家在每个项目上工作的时间。

SQL: 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
问题: 按照项目名称的字母顺序而后按科学家姓名排序，所有科学家的姓名，他们的项目名称，以及科学家在每个项目上工作的时间是什么？

SQL: 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
问题: 找出需要最少时间完成的项目的名称以及从事该项目的科学家的名字。

SQL: 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)
问题: 需要最少的小时数的项目名称，以及被指派给它的科学家的名字是什么？

SQL: 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)
问题: 最高等级葡萄酒的名称是什么？

SQL: SELECT Name FROM WINE ORDER BY Score LIMIT 1
问题: 给出最高得分的葡萄酒的名称。

SQL: SELECT Name FROM WINE ORDER BY Score LIMIT 1
问题: 哪个酒厂的葡萄酒得分最高？

SQL: SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
问题: 最高的葡萄酒是在什么酿造厂被制造的？

SQL: SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1
问题: 找出“2008”年所有葡萄酒的名称。

SQL: SELECT Name FROM WINE WHERE YEAR  =  "2008"
问题: “2008”年所有葡萄酒的名称是什么？

SQL: SELECT Name FROM WINE WHERE YEAR  =  "2008"
问题: 列出所有葡萄酒的葡萄和葡萄产地。

SQL: SELECT Grape ,  Appelation FROM WINE
问题: 每种葡萄酒的葡萄和葡萄产地是什么？

SQL: SELECT Grape ,  Appelation FROM WINE
问题: 列出所有葡萄酒的名称和得分。

SQL: SELECT Name ,  Score FROM WINE
问题: 所有葡萄酒的名称和得分是多少？

SQL: SELECT Name ,  Score FROM WINE
问题: 列出所有的葡萄产地的地区和县。

SQL: SELECT Area ,  County FROM APPELLATIONS
问题: 所有应用的地区和县是什么？

SQL: SELECT Area ,  County FROM APPELLATIONS
问题: 2010年前生产的葡萄酒的价格是多少？

SQL: SELECT Price FROM WINE WHERE YEAR  <  2010
问题: 返回2010之前生产的葡萄酒的价格。

SQL: SELECT Price FROM WINE WHERE YEAR  <  2010
问题: 列出所有得分高于90的不同葡萄酒的名称。

SQL: SELECT Name FROM WINE WHERE score  >  90
问题: 分数高于90的葡萄酒名称是什么？

SQL: SELECT Name FROM WINE WHERE score  >  90
问题: 列出所有由“红”葡萄酿造的不同葡萄酒的名称。

SQL: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red"
问题: “红”酒酿造的葡萄酒叫什么名字？

SQL: SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "Red"
问题: 找出所有在“西北部”地区有葡萄产地的葡萄酒的名称。

SQL: SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "西北部"
问题: 在“西北部”地区有葡萄产地的葡萄酒有哪些不同的名称？

SQL: SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "西北部"
问题: “王朝葡萄酒厂”生产多少葡萄酒？

SQL: SELECT count(*) FROM WINE WHERE Winery  =  "王朝葡萄酒厂"
问题: 统计“王朝葡萄酒厂”生产的葡萄酒数量。

SQL: SELECT count(*) FROM WINE WHERE Winery  =  "王朝葡萄酒厂"
问题: “通化”有多少葡萄产地？

SQL: SELECT count(*) FROM APPELLATIONS WHERE County  =  "通化"
问题: 统计“通化”的葡萄产地数量。

SQL: SELECT count(*) FROM APPELLATIONS WHERE County  =  "通化"
问题: 请告诉我葡萄产地是“张掖”产的葡萄酒的平均价格。

SQL: SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "张掖"
问题: 葡萄产地是“张掖”生产的葡萄酒平均价格是多少？

SQL: SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "张掖"
问题: “白”葡萄酿造的葡萄酒的名称和分数是多少？

SQL: SELECT T2.Name ,   T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白"
问题: 说出“白”葡萄酿造的葡萄酒的名称和分数。

SQL: SELECT T2.Name ,   T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白"
问题: 找出葡萄产地是“东南”地区并在2005年之前生产的葡萄酒的最高价格。

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

SQL: SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.Area  =  "东南" AND T2.year  <  2005
问题: 找出那些“白”葡萄被用来酿造得分高于90的葡萄酒的葡萄。

SQL: SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白" AND T2.score  >  90
问题: 找出用“白”葡萄用来生产且在90分以上的葡萄酒。

SQL: SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "白" AND T2.score  >  90
问题: 哪些葡萄酒的价格高于50且是由“红”葡萄酿造的？

SQL: SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "红" AND T2.price  >  50
问题: “红”酒酿造的且价格在50以上葡萄酒的名称是什么？

SQL: SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape  =  T2.Grape WHERE T1.Color  =  "红" AND T2.price  >  50
问题: 有哪些酒价格低于50而且生产地是 “宁夏”？

SQL: SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "宁夏" AND T2.price  <  50
问题: 给出酒价格低于50而且生产地是“宁夏”的酒的名字。

SQL: SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation WHERE T1.County  =  "宁夏" AND T2.price  <  50
问题: 不同葡萄的葡萄酒数量是多少？

SQL: SELECT count(*) ,  Grape FROM WINE GROUP BY Grape
问题: 每个葡萄有多少葡萄酒？

SQL: SELECT count(*) ,  Grape FROM WINE GROUP BY Grape
问题: 不同年份葡萄酒的平均价格是多少？

SQL: SELECT avg(Price) ,  YEAR FROM WINE GROUP BY YEAR
问题: 每种年份的葡萄酒的平均价格是多少？

SQL: SELECT avg(Price) ,  YEAR FROM WINE GROUP BY YEAR
问题: 找出所有价格高于“长城葡萄酒厂”的葡萄酒的不同名称。

SQL: SELECT DISTINCT Name FROM WINE WHERE Price  >  (SELECT min(Price) FROM wine WHERE Winery  =  "长城葡萄酒厂")
问题: 所有价格高于“长城葡萄酒厂”的葡萄酒的不同名称是什么？

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

SQL: SELECT DISTINCT Name FROM WINE ORDER BY Name
问题: 按字母顺序排列的葡萄酒的名称是什么？

SQL: SELECT DISTINCT Name FROM WINE ORDER BY Name
问题: 列出所有按价格排序的不同葡萄酒的名称。

SQL: SELECT DISTINCT Name FROM WINE ORDER BY price
问题: 按升序排列的葡萄酒的名称是什么？

SQL: SELECT DISTINCT Name FROM WINE ORDER BY price
问题: 在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
问题: 在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
问题: 葡萄酒产品平均价格最高的葡萄的颜色是什么？

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
问题: 给出葡萄酒平均价格最高的葡萄的颜色。

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
问题: 找出在2000年之前或2010年之后生产的葡萄酒的不同名称。

SQL: SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010
问题: 给出2000年或2010年后葡萄酒的独特名称。

SQL: SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010
问题: 找出价格在50到100之间不同的葡萄酒酿造厂。

SQL: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
问题: 哪些葡萄酒酿造厂生产的葡萄酒成本在50到100之间？

SQL: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
问题: 2009年由“仙粉黛”葡萄酿造的葡萄酒的平均价格和情况是多少？

SQL: SELECT AVG(Price) ,  AVG(Cases) FROM WINE WHERE YEAR  =  2009 AND Grape  =  "仙粉黛"
问题: 给出2009年由“仙粉黛”葡萄酿造的葡萄酒的平均价格和情况。

SQL: SELECT AVG(Price) ,  AVG(Cases) FROM WINE WHERE YEAR  =  2009 AND Grape  =  "仙粉黛"
问题: 葡萄产地是“张家口”的葡萄酒的最高价格和最高得分是多少？

SQL: SELECT max(Price) ,  max(Score) FROM WINE WHERE Appelation  =  "张家口"
问题: 给出葡萄产地是“张家口”的葡萄酒的最高价格和分数。

SQL: SELECT max(Price) ,  max(Score) FROM WINE WHERE Appelation  =  "张家口"
问题: 每年葡萄酒的最高价格和最高得分是多少？

SQL: SELECT max(Price) ,  max(Score) ,  YEAR FROM WINE GROUP BY YEAR
问题: 每个葡萄产地的酒类的平均价格和得分是什么？

SQL: SELECT avg(Price) ,  avg(Score) ,  Appelation FROM WINE GROUP BY Appelation
问题: 每一歌葡萄产地葡萄酒的平均价格和得分是多少？

SQL: SELECT avg(Price) ,  avg(Score) ,  Appelation FROM WINE GROUP BY Appelation
问题: 找出拥有至少四种葡萄酒的酿酒厂。

SQL: SELECT Winery FROM WINE GROUP BY Winery HAVING count(*)  >=  4
问题: 哪些葡萄酒厂至少生产四种葡萄酒？

SQL: SELECT Winery FROM WINE GROUP BY Winery HAVING count(*)  >=  4
问题: 找出在所有葡萄产地中所有拥有最多三种葡萄酒的国家。

SQL: SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING count(*)  <=  3
问题: 在所有葡萄产地中所有拥有最多三种葡萄酒的国家是什么？

SQL: SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING count(*)  <=  3
问题: 生产年份早于所有“张裕葡萄酒厂”的生产年份的葡萄酒名字是什么？

SQL: SELECT Name FROM WINE WHERE YEAR  <  (SELECT min(YEAR) FROM WINE WHERE Winery  =  "张裕葡萄酒厂")
问题: 在“张裕葡萄酒厂”生产的所有的葡萄酒之前生产的葡萄酒的名称是什么？

SQL: SELECT Name FROM WINE WHERE YEAR  <  (SELECT min(YEAR) FROM WINE WHERE Winery  =  "张裕葡萄酒厂")
问题: 比2006年生产的所有葡萄酒都贵的葡萄酒的名称是什么？

SQL: SELECT Name FROM WINE WHERE Price  >  (SELECT max(Price) FROM WINE WHERE YEAR  =  2006)
问题: 给出比2006年生产的所有葡萄酒都贵的葡萄酒的名称。

SQL: SELECT Name FROM WINE WHERE Price  >  (SELECT max(Price) FROM WINE WHERE YEAR  =  2006)
问题: 找出前3名中“白”葡萄酿造的葡萄酒最多的酒庄。

SQL: SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  "白" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3
问题: 哪3家酒庄生产的“白”葡萄酒最多？

SQL: SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE  =  T2.GRAPE WHERE T1.Color  =  "白" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3
问题: 列出按年份排序的价格高于100的葡萄酒的葡萄、酒厂和年份。

SQL: SELECT Grape ,  Winery ,  YEAR FROM WINE WHERE Price  >   100 ORDER BY YEAR
问题: 按年份排序的价格高于100的葡萄酒的葡萄、酒厂和年份是什么？

SQL: SELECT Grape ,  Winery ,  YEAR FROM WINE WHERE Price  >   100 ORDER BY YEAR
问题: 列出按名字排序的分数大于93的葡萄，葡萄产地和酒的名字。

SQL: SELECT Grape ,  Appelation ,  Name FROM WINE WHERE Score  >  93 ORDER BY Name
问题: 按名字排序的分数大于93的葡萄，葡萄产地和酒的名字是什么？

SQL: SELECT Grape ,  Appelation ,  Name FROM WINE WHERE Score  >  93 ORDER BY Name
问题: 找出在2008年之后生产但葡萄产地不在“西北部”的葡萄酒的名称。

SQL: SELECT Appelation FROM WINE WHERE YEAR  >  2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area  =  "西北部"
问题: 在2008年之后生产但葡萄产地不在“西北部”的葡萄酒的名称是什么？

SQL: SELECT Appelation FROM WINE WHERE YEAR  >  2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area  =  "西北部"
问题: 找出不在“烟台”生产的葡萄酒的评价价格。

SQL: 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  =  "烟台")
问题: 不在“烟台”生产的葡萄酒的平均价格是多少？

SQL: 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  =  "烟台")
问题: 找出生产分数高于90且生产最多的葡萄酒的县。

SQL: 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
问题: 哪个县生产的葡萄酒得分高于90的最多？

SQL: 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
问题: 那里有多少个火车站？

SQL: SELECT count(*) FROM station
问题: 显示所有车站的名称、位置和站台数量。

SQL: SELECT name ,  LOCATION ,  number_of_platforms FROM station
问题: 火车站的位置是什么？

SQL: SELECT DISTINCT LOCATION FROM station
问题: 显示不在“广州”的所有火车站的名称和乘客总数。

SQL: SELECT name ,  total_passengers FROM station WHERE LOCATION != "广州"
问题: 显示乘客总数前三名的火车站的名称和主要服务。

SQL: SELECT name ,  main_services FROM station ORDER BY total_passengers DESC LIMIT 3
问题: “广州”或“深圳”火车站的平均和最大旅客人数是多少？

SQL: SELECT avg(total_passengers) ,  max(total_passengers) FROM station WHERE LOCATION  =  "广州" OR LOCATION  =  "深圳"
问题: 显示所有位置以及每个位置所有火车站的站台和乘客的总数。

SQL: SELECT LOCATION ,  sum(number_of_platforms) ,  sum(total_passengers) FROM station GROUP BY LOCATION
问题: 展示所有有至少15个站台和25个以上乘客的火车站。

SQL: SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms  >=  15 AND total_passengers  >  25
问题: 显示所有没有至少15个站台的火车站的位置。

SQL: SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms  >=  15
问题: 显示大多数火车站的位置。

SQL: SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1
问题: 显示所有火车的名称、时间和服务。

SQL: SELECT name ,  TIME ,  service FROM train
问题: 显示火车的数量

SQL: SELECT count(*) FROM train
问题: 按时间顺序显示所有列车的名称和服务。

SQL: SELECT name ,  service FROM train ORDER BY TIME
问题: 显示每个车站的火车站的名称和数量。

SQL: SELECT T2.name ,  count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id
问题: 显示每列火车的列车名称和车站名称。

SQL: SELECT T2.name ,  T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id
问题: 按火车时刻按降序显示“广州”火车站的所有火车名称和时间。

SQL: SELECT T3.name ,  T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T2.location  =  "广州" ORDER BY T3.time DESC
问题: 以最大的列车数显示车站名称。

SQL: SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1
问题: 用至少两列火车显示车站名称。

SQL: SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id GROUP BY T1.station_id HAVING count(*)  >=  2
问题: 显示只有1个站的所有位置。

SQL: SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*)  =  1
问题: 显示没有任何火车的车站名称。

SQL: SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)
问题: 提供“和谐号”和“复兴号”列车的车站的名称是什么？

SQL: SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "和谐号" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "复兴号"
问题: 找出不经过“广州”任何车站的列车的名称。

SQL: SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  "广州")
问题: 按其每年出入和交换量排序列出所有车站的名称和地点。

SQL: SELECT name ,  LOCATION FROM station ORDER BY Annual_entry_exit ,  Annual_interchanges
问题: 列出所有车辆的ID 。

SQL: SELECT vehicle_id FROM Vehicles;
问题: 所有车辆的ID是什么？

SQL: SELECT vehicle_id FROM Vehicles;
问题: 总共有多少辆车？

SQL: SELECT count(*) FROM Vehicles;
问题: 有多少车辆存在？

SQL: SELECT count(*) FROM Vehicles;
问题: 显示ID是1的车辆细节。

SQL: SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;
问题: ID是1的车辆细节是什么？

SQL: SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;
问题: 列出所有员工的名字、中间名和姓氏。

SQL: SELECT first_name ,  middle_name ,  last_name FROM Staff;
问题: 所有员工的名字、中间名和姓氏是什么？

SQL: SELECT first_name ,  middle_name ,  last_name FROM Staff;
问题: 名字是 “子君” ，姓氏是“温” 的工作人员的生日是什么时候？

SQL: SELECT date_of_birth FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 名为 “温子君” 的工作人员的出生日期是什么？

SQL: SELECT date_of_birth FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 名字是 “子君” ，姓氏是“温” 的员工什么时候加入公司的？

SQL: SELECT date_joined_staff FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 叫 “温”“子君” 的员工什么时候加入公司的？

SQL: SELECT date_joined_staff FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 名字是 “子君” ，姓氏是“温” 的员工什么时候离开公司的？

SQL: SELECT date_left_staff FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 职员 “温”“子君” 什么时候离开公司的？

SQL: SELECT date_left_staff FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 有多少员工名字是 “天宇” ？

SQL: SELECT count(*) FROM Staff WHERE first_name = "Ludie";
问题: 有多少员工的名字是 “天宇” ？

SQL: SELECT count(*) FROM Staff WHERE first_name = "Ludie";
问题: 名字是 “子君” ，姓氏是“温” 的员工的昵称是什么？

SQL: SELECT nickname FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 这个叫 “温”“子君” 的员工的昵称是什么？

SQL: SELECT nickname FROM Staff WHERE first_name = "子君" AND last_name = "温";
问题: 总共有多少员工？

SQL: SELECT count(*) FROM Staff;
问题: 那里有多少员工？

SQL: SELECT count(*) FROM Staff;
问题: 哪个城市有名字是“子君”，姓氏是“温”的员工？

SQL: SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "子君" AND T2.last_name = "温";
问题: “温”“子君” 住在哪个城市？

SQL: SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "子君" AND T2.last_name = "温";
问题: 员工名字是“子君” ，姓氏是“温”在哪些国家和省？

SQL: SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "子君" AND T2.last_name = "温";
问题: “温”“子君”住在哪个国家和省？

SQL: SELECT T1.country ,  T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "子君" AND T2.last_name = "温";
问题: 以“文祥”为名字，“赵”为姓氏的客户上课总时间是多长时间？

SQL: SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "文祥" AND T2.last_name = "赵";
问题: 叫“赵”“文祥”的客户总共花了多长时间上课？

SQL: SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "文祥" AND T2.last_name = "赵";
问题: 名字是“子君” ，姓氏是“温”的员工的邮政编码是什么？

SQL: SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "子君" AND T2.last_name = "温";
问题: 那个叫“温”“子君”的员工的邮政编码是什么？

SQL: SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "子君" AND T2.last_name = "温";
问题: “海南”省有多少员工？

SQL: SELECT count(*) FROM Addresses WHERE state_province_county = "海南";
问题: “海南”有多少员工？

SQL: SELECT count(*) FROM Addresses WHERE state_province_county = "海南";
问题: 找出住在“青岛”的工作人员的名字和姓氏。

SQL: SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "青岛";
问题: 住在“青岛”的所有员工的名字和姓氏是什么？

SQL: SELECT T2.first_name ,  T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "青岛";
问题: 哪个城市住的员工最多？列出城市名称和员工人数。

SQL: SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;
问题: 员工最多住在哪个城市，有多少人住在那里？

SQL: SELECT T1.city ,  count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;
问题: 列出2到4名员工居住在那里的省。

SQL: SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;
问题: 有2到4名员工居住在那里的省的名字是什么？

SQL: SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;
问题: 列出所有客户的名字和姓氏。

SQL: SELECT first_name ,  last_name FROM Customers;
问题: 所有客户的名字和名字是什么？

SQL: SELECT first_name ,  last_name FROM Customers;
问题: 列出名字叫“诚”的客户的电子邮件的名字和生日。

SQL: SELECT email_address ,  date_of_birth FROM Customers WHERE first_name = "诚"
问题: 名字叫“诚”的客户的电子邮件的名字和生日是什么？

SQL: SELECT email_address ,  date_of_birth FROM Customers WHERE first_name = "诚"
问题: 列出余额超过2000元的客户的电话号码和电子邮件地址。

SQL: SELECT phone_number ,  email_address FROM Customers WHERE amount_outstanding  >  2000;
问题: 所有余额超过2000的客户的电话号码和电子邮件地址是什么？

SQL: SELECT phone_number ,  email_address FROM Customers WHERE amount_outstanding  >  2000;
问题: 姓氏为“齐”或名字为“彬斌”的客户的状态码、手机号码和电子邮件地址是什么？

SQL: SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = "彬斌" OR last_name  =  "齐"
问题: 姓氏为“齐”或名字为“彬斌”的客户的状态码、电话号码和电子邮件地址是什么？

SQL: SELECT customer_status_code ,  cell_mobile_phone_number ,  email_address FROM Customers WHERE first_name = "彬斌" OR last_name  =  "齐"
问题: 被归类为“优秀顾客”状态的客户的生日是什么时候？

SQL: SELECT date_of_birth FROM Customers WHERE customer_status_code  =  "优秀顾客"
问题: 状态代码为“优秀顾客”的每个客户的出生日期是什么？

SQL: SELECT date_of_birth FROM Customers WHERE customer_status_code  =  "优秀顾客"
问题: 名字是“诚”和姓氏是“钟”的顾客是什么时候成为顾客的？

SQL: SELECT date_became_customer FROM Customers WHERE first_name = "诚" AND last_name = "钟";
问题: “钟”“诚”什么时候开始成为顾客的？

SQL: SELECT date_became_customer FROM Customers WHERE first_name = "诚" AND last_name = "钟";
问题: 总共有多少客户？

SQL: SELECT count(*) FROM Customers;
问题: 那里有多少顾客？

SQL: SELECT count(*) FROM Customers;
问题: 列出所有客户状态代码和具有每个状态代码的客户数量。

SQL: SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;
问题: 对于每一个客户状态代码，有多少客户被这样分类？

SQL: SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;
问题: 哪种客户状态代码的客户数最少？

SQL: SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
问题: 客户数量最少的状态代码是什么？

SQL: SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
问题: 以“文祥”和“赵”为姓的客户“完成”学习了多少课程？

SQL: SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "文祥" AND T2.last_name = "赵" AND T1.lesson_status_code = "完成";
问题: 客户“赵”“文祥”“完成”了多少课程？

SQL: SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "文祥" AND T2.last_name = "赵" AND T1.lesson_status_code = "完成";
问题: 客户的最大、最小和平均金额是多少？

SQL: SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;
问题: 对于所有客户来说，最大金额、最小金额和平均金额是多少？

SQL: SELECT max(amount_outstanding) ,  min(amount_outstanding) ,  avg(amount_outstanding) FROM Customers;