jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 告诉我把“第二次”作为订单细节的订单的数量。

SQL: SELECT count(*) FROM customer_orders WHERE order_details  =  "第二次"
问题: 找出拥有“运送”订单状态的客户姓名和日期。

SQL: SELECT t1.customer_name ,  t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id WHERE order_status  =  "运送"
问题: 有订单状态是“运送”的订单的客户姓名和日期是什么？

SQL: SELECT t1.customer_name ,  t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id WHERE order_status  =  "运送"
问题: 有订单状态为“取消”的商品总数是多少？

SQL: SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_status  =  "取消"
问题: 找出有订单状态为“取消”的商品总数量。

SQL: SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_status  =  "取消"
问题: 找出“2018～03-17 07:13:53”之前订购的产品总量。

SQL: SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_date  <  "2018～03-17 07:13:53"
问题: 在“2018～03-17 07:13:53”之前购买的产品的总量是多少？

SQL: SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id  =  t2.order_id WHERE t1.order_date  <  "2018～03-17 07:13:53"
问题: 谁做完最新的订单？

SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.order_date DESC LIMIT 1
问题: 查找最近订购的客户的姓名。

SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.order_date DESC LIMIT 1
问题: 哪种产品订购次数最多？

SQL: SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1
问题: 最经常订购的产品是什么？告诉我产品的细节

SQL: SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1
问题: 找出总订单数量最大的产品的名称和ID。

SQL: SELECT t2.product_details ,  t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1
问题: 买的最多产品的名字和ID是什么？

SQL: SELECT t2.product_details ,  t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1
问题: 找出在“云南”“大理”或在“银川”“宁夏”的所有的地址。

SQL: SELECT address_content FROM addresses WHERE city  =  "大理" AND state_province_county  =  "云南" UNION SELECT address_content FROM addresses WHERE city  =  "银川" AND state_province_county  =  "宁夏"
问题: 所有在“云南”“大理”或在“银川”“宁夏”的地址是什么？

SQL: SELECT address_content FROM addresses WHERE city  =  "大理" AND state_province_county  =  "云南" UNION SELECT address_content FROM addresses WHERE city  =  "银川" AND state_province_county  =  "宁夏"
问题: 找出没有“现金”支付的客户的名字。

SQL: SELECT customer_name FROM customers WHERE payment_method != "现金"
问题: 不使用“现金”作为支付方式的客户的姓名是什么？

SQL: SELECT customer_name FROM customers WHERE payment_method != "现金"
问题: 找出从未订购过“拿铁”产品的顾客的姓名。

SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE t4.product_details  =  "拿铁"
问题: 从来没有订购过“拿铁”产品的顾客的姓名是什么。

SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE t4.product_details  =  "拿铁"
问题: 找出从未订购过的客户的姓名。

SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id
问题: 从来没有订购过的客户的姓名是什么？

SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id
问题: 找出既订购了“拿铁”产品又订购了“美式咖啡”产品的顾客的名字

SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE t4.product_details  =  "拿铁" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE t4.product_details  =  "美式咖啡"
问题: 既订购了“拿铁”产品又订购了“美式咖啡”产品的客户的名字是什么？

SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE t4.product_details  =  "拿铁" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id  =  t2.customer_id JOIN order_items AS t3 ON t2.order_id  =  t3.order_id JOIN products AS t4 ON t3.product_id  =  t4.product_id WHERE t4.product_details  =  "美式咖啡"
问题: 那里有多少艺术家？

SQL: SELECT count(*) FROM artist
问题: 列出所有音乐艺术家的年龄。

SQL: SELECT Age FROM artist
问题: 所有音乐艺术家的年龄是多少？

SQL: SELECT Age FROM artist
问题: 所有艺术家的平均年龄是多少？

SQL: SELECT avg(Age) FROM artist
问题: 返回所有艺术家的平均年龄。

SQL: SELECT avg(Age) FROM artist
问题: 艺术家“徐悲鸿”著名的称号是什么？

SQL: SELECT Famous_Title FROM artist WHERE Artist  =  "徐悲鸿"
问题: 返回著名艺术家的名字叫做“徐悲鸿”的称号。

SQL: SELECT Famous_Title FROM artist WHERE Artist  =  "徐悲鸿"
问题: 什么是不同的著名的发行日期？

SQL: SELECT distinct(Famous_Release_date) FROM artist
问题: 给所有艺术家不同的著名的发行日期。

SQL: SELECT distinct(Famous_Release_date) FROM artist
问题: 返回仪式的日期和所有音乐节的结果

SQL: SELECT Date_of_ceremony ,  RESULT FROM music_festival
问题: 仪式的日期和所有音乐节的结果是什么？

SQL: SELECT Date_of_ceremony ,  RESULT FROM music_festival
问题: 结果是“已获奖”的音乐节的类别是什么？

SQL: SELECT Category FROM music_festival WHERE RESULT  =  "已获奖"
问题: 返回结果是“已获奖”的音乐节的类别。

SQL: SELECT Category FROM music_festival WHERE RESULT  =  "已获奖"
问题: 所有专辑的最大和最小登顶周是多少？

SQL: SELECT max(Weeks_on_Top) ,  min(Weeks_on_Top) FROM volume
问题: 给出所有专辑的最大和最小登顶周数。

SQL: SELECT max(Weeks_on_Top) ,  min(Weeks_on_Top) FROM volume
问题: 音源超过1周的登顶歌曲是什么？

SQL: SELECT Song FROM volume WHERE Weeks_on_Top  >  1
问题: 给出超过一周登顶的被收录在专辑的歌曲。

SQL: SELECT Song FROM volume WHERE Weeks_on_Top  >  1
问题: 请按升序字母顺序列出所有专辑的歌曲。

SQL: SELECT Song FROM volume ORDER BY Song
问题: 专辑的歌曲按升序排列是什么？

SQL: SELECT Song FROM volume ORDER BY Song
问题: 专辑有多少不同的艺术家？

SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
问题: 计算拥有专辑的不同艺术家的数量。

SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
问题: 请显示超过两周登顶的专辑典礼日期。

SQL: SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T2.Weeks_on_Top  >  2
问题: 在音乐节上，超过两周登顶的专辑典礼日期是什么？

SQL: SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T2.Weeks_on_Top  >  2
问题: 请显示在音乐节上有“提名”的歌曲。

SQL: SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T1.Result  =  "提名"
问题: 在音乐节上有“提名”的歌曲有哪些？

SQL: SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume  =  T2.Volume_ID WHERE T1.Result  =  "提名"
问题: 与艺术家“张敬轩”相关的专辑的发行日期是什么？

SQL: SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.Artist  =  "张敬轩"
问题: 返回由名字是“张敬轩”的艺术家的专辑的发行日期。

SQL: SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.Artist  =  "张敬轩"
问题: 专辑中32岁或以上的艺术家相关的歌曲是什么？

SQL: SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32
问题: 返回专辑中由至少32岁的艺术家创作的歌曲名。

SQL: SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  >=  32
问题: 25岁或更小的艺术家专辑登顶的平均周数是多少？

SQL: SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  25
问题: 返回最大25岁的艺术家专辑登顶的平均周数。

SQL: SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  25
问题: 与登顶超过2周的专辑有关艺术家的著名作品是什么？

SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2
问题: 返回登顶超过2周的专辑有关艺术家的著名作品。

SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2
问题: 请按年龄降序列出艺术家的年龄和著名作品名称。

SQL: SELECT Famous_Title ,  Age FROM artist ORDER BY Age DESC
问题: 按年龄顺序排列的每个艺术家的著名作品和年龄是什么？

SQL: SELECT Famous_Title ,  Age FROM artist ORDER BY Age DESC
问题: 年龄最大的艺术家的著名发行日期是什么？

SQL: SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
问题: 返回年龄最大的艺术家的著名发行日期。

SQL: SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
问题: 请显示音乐节的类别和数量。

SQL: SELECT Category ,  COUNT(*) FROM music_festival GROUP BY Category
问题: 返回每个种类音乐节的数量。

SQL: SELECT Category ,  COUNT(*) FROM music_festival GROUP BY Category
问题: 音乐节最常见的结果是什么？

SQL: SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
问题: 返回在音乐节最频繁的结果。

SQL: SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
问题: 请显示计数超过1的音乐节的类别。

SQL: SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1
问题: 超过1个的音乐节有哪些类别？

SQL: SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1
问题: 专辑中登顶最多周数的歌曲是什么？

SQL: SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
问题: 返回专辑中登顶最多周数的歌曲。

SQL: SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
问题: 找出那些没有任何专辑的艺术家的著名作品。

SQL: SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)
问题: 没有任何专辑的艺术家的著名作品是什么？

SQL: SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)
问题: 展现艺术家的著名头衔，两卷的顶部持续超过2周，两卷的顶部持续不到2周。

SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2
问题: 什么是艺术家的著名头衔，他们不仅花了超过2周的卷顶部，而且花了不到2周的卷顶部？

SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2
问题: “金曲”类别和“已获奖”类别音乐节相对应的仪式日期是什么？

SQL: SELECT Date_of_ceremony FROM music_festival WHERE Category  =  "金曲奖" AND RESULT  =  "已获奖"
问题: 返回与“金曲”类别和“已获奖”类别音乐节相对应的仪式日期。

SQL: SELECT Date_of_ceremony FROM music_festival WHERE Category  =  "金曲奖" AND RESULT  =  "已获奖"
问题: 最短登顶周数专辑的发行日期是什么？

SQL: SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1
问题: 返回最短登顶周数专辑的发行日期。

SQL: SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1
问题: 有多少不同的艺术家有专辑？

SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
问题: 统计有专辑的不同艺术家的数量。

SQL: SELECT COUNT(DISTINCT Artist_ID) FROM volume
问题: 请显示音乐节的结果和以此计数的音乐节的数量。

SQL: SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
问题: 按次序递减，有多少个音乐节有结果？

SQL: SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
问题: 23岁或更年轻的艺术家相关的专辑的发行日期是什么？

SQL: SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  23
问题: 返回23岁或更年轻的艺术家专辑的发行日期。

SQL: SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T1.age  <=  23
问题: 有多少过山车？

SQL: SELECT count(*) FROM roller_coaster
问题: 按长度递增的顺序列出过山车的名称。

SQL: SELECT Name FROM roller_coaster ORDER BY LENGTH ASC
问题: 过山车的长度和高度是多少？

SQL: SELECT LENGTH ,  Height FROM roller_coaster
问题: 列出那些语言不是“德语”的国家的名字。

SQL: SELECT Name FROM country WHERE Languages != "德语"
问题: 显示长度超过3300或高度超过100的过山车的状态。

SQL: SELECT Status FROM roller_coaster WHERE LENGTH  >  3300 OR Height  >  100
问题: 最长过山车的速度是多少？

SQL: SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1
问题: 过山车的平均速度是多少？

SQL: SELECT avg(Speed) FROM roller_coaster
问题: 显示不同状态和每一个状态过山车的数量。

SQL: SELECT Status ,  COUNT(*) FROM roller_coaster GROUP BY Status
问题: 请展示最普遍的过山车的状态。

SQL: SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
问题: 列出两个过山车共享的状态。

SQL: SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*)  >  2
问题: 显示有最快的速度过山车的公园。

SQL: SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1
问题: 显示过山车的名字和他们所在的国家的名字。

SQL: SELECT T2.Name ,  T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID
问题: 显示有超过一辆过山车的国家的名字。

SQL: SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name HAVING COUNT(*)  >  1
问题: 显示具有最高过山车的国家的名称和人口。

SQL: SELECT T1.Name ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID ORDER BY T2.Height DESC LIMIT 1
问题: 显示国家名称和每个国家的过山车的平均速度。

SQL: SELECT T1.Name ,  avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name
问题: 有多少国家没有长度超过3000的过山车？

SQL: SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH  >  3000 )
问题: 拥有更快速的过山车的国家名称，区域和人口是什么？

SQL: SELECT T1.name ,  T1.area ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID WHERE T2.speed  >  60 INTERSECT SELECT T1.name ,  T1.area ,  T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID WHERE T2.speed  <  55
问题: 有多少不同船长等级？

SQL: SELECT count(DISTINCT rank) FROM captain
问题: 计算不同船长等级的数量。

SQL: SELECT count(DISTINCT rank) FROM captain
问题: 每个级别有多少船长？

SQL: SELECT count(*) ,  rank FROM captain GROUP BY rank
问题: 计算每个等级的船长的数量。

SQL: SELECT count(*) ,  rank FROM captain GROUP BY rank
问题: 每一个等级有多少个50岁以下的船长？

SQL: SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank
问题: 计算每个等级中50岁以下的船长人数。

SQL: SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank
问题: 把船长的姓名按年龄从老到年轻分类。

SQL: SELECT name FROM captain ORDER BY age DESC
问题: 按年龄下降排序的船长的名字是什么？

SQL: SELECT name FROM captain ORDER BY age DESC
问题: 找出所有船长的姓名、级别和等级。

SQL: SELECT name ,  CLASS ,  rank FROM captain
问题: 所有船长的姓名、级别和等级是多少？

SQL: SELECT name ,  CLASS ,  rank FROM captain
问题: 队长中哪一个等级最常见？

SQL: SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1
问题: 返回船长数量最少的等级。

SQL: SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1
问题: 哪个班有两个以上的队长？

SQL: SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2
问题: 给出拥有两个以上船长的班级。

SQL: SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*)  >  2
问题: 找出等级是“少尉”或“中卫”的船长的名字。

SQL: SELECT name FROM captain WHERE rank  =  "少尉" OR rank  =  "中尉"
问题: 等级是“少尉”或“中卫”的船长名字是什么？

SQL: SELECT name FROM captain WHERE rank  =  "少尉" OR rank  =  "中尉"
问题: 不同级别的船长平均年龄和最小年龄是多少？

SQL: SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS
问题: 返回每个班队长的平均年龄和最小年龄。

SQL: SELECT avg(age) ,  min(age) ,  CLASS FROM captain GROUP BY CLASS
问题: 找出在“切割机”类和“武装纵帆船”类的船长的级别。

SQL: SELECT rank FROM captain WHERE CLASS  =  "切割机" INTERSECT SELECT rank FROM captain WHERE CLASS  =  "武装纵帆船"
问题: 在“切割机”和“武装纵帆船”类的船长的级别是什么？

SQL: SELECT rank FROM captain WHERE CLASS  =  "切割机" INTERSECT SELECT rank FROM captain WHERE CLASS  =  "武装纵帆船"
问题: 找出没有在“第三级船的线路类”的船长的级别。

SQL: SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  "第三级船的线路类"
问题: 没有在“第三级船的线路类”的船长的级别是什么？

SQL: SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS  =  "第三级船的线路类"
问题: 最年轻的船长叫什么名字？

SQL: SELECT name FROM captain ORDER BY age LIMIT 1
问题: 返回最年轻的船长的名字。

SQL: SELECT name FROM captain ORDER BY age LIMIT 1
问题: 计算船的数量。

SQL: SELECT count(*) FROM ship
问题: 找出最近一年建造的船的名称、类型和标志。

SQL: SELECT name ,  TYPE ,  flag FROM ship ORDER BY built_year DESC LIMIT 1
问题: 最近一年建造的船的名称、类型和标志是什么？

SQL: SELECT name ,  TYPE ,  flag FROM ship ORDER BY built_year DESC LIMIT 1
问题: 以标志为单位，返回每种标志的船舶数量。

SQL: SELECT count(*) ,  flag FROM ship GROUP BY flag
问题: 不同的船的标志是真么，每种标志的船有多少艘？

SQL: SELECT count(*) ,  flag FROM ship GROUP BY flag
问题: 哪种标志在船上使用最广？

SQL: SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1
问题: 返回所有船只中最常见的标志。

SQL: SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1
问题: 按建造年份和类别的顺序列出所有的船名。

SQL: SELECT name FROM ship ORDER BY built_year ,  CLASS
问题: 按建造年份和类别的顺序列出所有船的名字是什么？

SQL: SELECT name FROM ship ORDER BY built_year ,  CLASS
问题: 找出使用“巴拿马”和“马耳他”标志的船型。

SQL: SELECT TYPE FROM ship WHERE flag  =  "巴拿马" INTERSECT SELECT TYPE FROM ship WHERE flag  =  "马耳他"
问题: 既使用“巴拿马”又使用“马耳他”标志的船型是什么？

SQL: SELECT TYPE FROM ship WHERE flag  =  "巴拿马" INTERSECT SELECT TYPE FROM ship WHERE flag  =  "马耳他"
问题: 多数船是在哪一年建造的？

SQL: SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1
问题: 多数船建造的年份是哪一年？

SQL: SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1
问题: 找出拥有不止一个船长的船的名称。

SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id GROUP BY t2.ship_id HAVING count(*)  >  1
问题: 拥有不止一个船长的船的名称是什么？

SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id GROUP BY t2.ship_id HAVING count(*)  >  1
问题: 那些没有船长的船的名字和级别是什么？

SQL: SELECT name ,  CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)
问题: 返回没有船长的船的名字和类别.

SQL: SELECT name ,  CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)
问题: 找出最年轻船长指挥的那艘船的名字。

SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id ORDER BY t2.age LIMIT 1
问题: 最年轻的船长指挥的那艘船叫什么名字？

SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id ORDER BY t2.age LIMIT 1
问题: 找出没有“中尉”级别的船长指挥的船名和标志。

SQL: SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  "中尉")
问题: 没有“中尉”级别的船长指挥的船名和标志是什么？

SQL: SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  "中尉")
问题: 找出既由“少尉”级别的船长也由“中尉”级别的船长驾驶的船名。

SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  "少尉" INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  "中尉"
问题: 既由“少尉”级别的船长也由“中尉”级别的船长驾驶的船名是什么？

SQL: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  "少尉" INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id  =  t2.ship_id WHERE t2.rank  =  "中尉"
问题: 最近一年举办活动的城市的ID是什么？

SQL: SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1
问题: 找出最近几年举办过一些活动的城市。这个城市的ID是什么？

SQL: SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1
问题: 找出举办“1994年世界杯资格赛”的城市比赛ID。

SQL: SELECT match_id FROM MATCH WHERE competition = "1994年世界杯资格赛"
问题: “1994年世界杯资格赛”的比赛ID是什么？

SQL: SELECT match_id FROM MATCH WHERE competition = "1994年世界杯资格赛"
问题: 找出在2010后曾经是主办城市的城市。

SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010
问题: 哪些城市在2010后成为主办城市？

SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year  >  2010
问题: 哪个城市举办过最多的活动？

SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1
问题: 找出主办最多活动的城市。

SQL: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1
问题: “南京 (江苏)”主办的“1994年世界杯资格赛”的比赛地点是什么？

SQL: SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "南京 (江苏)" AND T3.competition = "1994年世界杯资格赛"
问题: 寻出由“南京 (江苏)”主办的“1994年世界杯资格赛”的比赛地点。

SQL: SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "南京 (江苏)" AND T3.competition = "1994年世界杯资格赛"
问题: 请告诉我一月“上海”的天气。

SQL: SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "上海"
问题: 一月“上海”城市的气温是多少？

SQL: SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "上海"
问题: “台州 (浙江)”作为主办城市的年份是什么？

SQL: SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  "台州 (浙江)"
问题: 城市“台州 (浙江)”在哪一年担任主办城市？

SQL: SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city WHERE T1.city  =  "台州 (浙江)"
问题: 哪三个城市地区人口最多？

SQL: SELECT city FROM city ORDER BY regional_population DESC LIMIT 3
问题: 地区人口的三个城市城市是什么？

SQL: SELECT city FROM city ORDER BY regional_population DESC LIMIT 3
问题: 哪个城市的GDP最低？请列出城市名称及其GDP 。

SQL: SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1
问题: GDP最小的城市是什么？返回城市及其GDP 。

SQL: SELECT city ,  GDP FROM city ORDER BY GDP LIMIT 1
问题: 二月哪个城市的气温最高？

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1
问题: 在二月，哪个城市的气温最高？

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id ORDER BY T2.Feb DESC LIMIT 1
问题: 给我一张3月份气温低于7月份或高于10月份的城市名单。

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct
问题: 3月份哪些城市的气温低于7月份或高于10月份？

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul OR T2.Mar  >  T2.Oct
问题: 给我一张3月份气温低于7月份且也曾作为主办城市的城市名单。

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
问题: 哪些城市3月份的温度比7月份低，并且曾经是主办城市？

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
问题: 给我一张3月份气温低于12月份并且从未成为主办城市的城市名单。

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
问题: 哪些城市3月份的温度比12月份低，且从未作为主办城市？

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Mar  <  T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
问题: 给我一张2月份气温高于6月份的城市名单或曾经是主办城市的城市名单。

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
问题: 哪些城市2月份的温度比6月份高，或者曾经是主办城市？

SQL: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id  =  T2.city_id WHERE T2.Feb  >  T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id  =  T4.host_city
问题: 请给我一份地区人口超过10000000的城市名单。

SQL: SELECT city FROM city WHERE regional_population  >  10000000
问题: 哪些城市的人口超过10000000？

SQL: SELECT city FROM city WHERE regional_population  >  10000000
问题: 请给我一张地区人口超过80万或低于50万的城市名单。

SQL: SELECT city FROM city WHERE regional_population  >  10000000 UNION SELECT city FROM city WHERE regional_population  <  5000000
问题: 哪些城市的人口超过8000000或低于5000000？

SQL: SELECT city FROM city WHERE regional_population  >  10000000 UNION SELECT city FROM city WHERE regional_population  <  5000000
问题: 找出在不同的比赛中比赛的数量。

SQL: SELECT count(*) ,  Competition FROM MATCH GROUP BY Competition
问题: 对于每一场比赛，计算比赛的数量。

SQL: SELECT count(*) ,  Competition FROM MATCH GROUP BY Competition
问题: 从最近的比赛开始，按照比赛日期的顺序列出所有比赛的场地。

SQL: SELECT venue FROM MATCH ORDER BY date DESC
问题: 所有比赛的场地是什么？按匹配日期的降序对它们排序。

SQL: SELECT venue FROM MATCH ORDER BY date DESC
问题: 人口最多的城市的GDP是多少？

SQL: SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1
问题: 找出人口最多的城市的GDP。

SQL: SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1
问题: 不止一次作为主办城市的GDP和人口数是多少？

SQL: SELECT t1.gdp ,  t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY t2.Host_City HAVING count(*)  >  1
问题: 哪些城市曾经不止一次作为主办城市？返回其GDP和人口。

SQL: SELECT t1.gdp ,  t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id  =  T2.host_city GROUP BY t2.Host_City HAVING count(*)  >  1
问题: 按姓氏的字母顺序列出每个人的名字、中间名和姓氏。

SQL: SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name