jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 对于每个邮政编码，选择那些平均可见度低于10的地区的邮政编码。

SQL: SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles)  <  10
问题: 按照每个城市站点的最高纬度的递减顺序列出所有城市。

SQL: SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC
问题: 对于每个城市，按其最高站点纬度降序排列，列出它们的名称。

SQL: SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC
问题: 前5的云覆盖率的日期是什么？并告诉我云的覆盖率。

SQL: SELECT date ,  cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5
问题: 前5高的云覆盖率的日期是什么，覆盖率是多少？

SQL: SELECT date ,  cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5
问题: 前3的持续时间的路线的ID和持续时间是什么？

SQL: SELECT id ,  duration FROM trip ORDER BY duration DESC LIMIT 3
问题: 持续时间最长的路线ID是什么？路线时间多长？

SQL: SELECT id ,  duration FROM trip ORDER BY duration DESC LIMIT 3
问题: 对于每个站点，返回其经度和从该站点开始的路线的平均持续时间。

SQL: SELECT T1.name ,  T1.long ,  avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id GROUP BY T2.start_station_id
问题: 对于每个起始站ID，它的名称、经度和在那里开始的路线的平均持续时间是什么？

SQL: SELECT T1.name ,  T1.long ,  avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id GROUP BY T2.start_station_id
问题: 对于每个车站，找到它的纬度和在这个车站结束的路线的最小持续时间。

SQL: SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id
问题: 对于每个终点站ID，它的名称、纬度和以此为终点站的路线的最短持续时间是什么？

SQL: SELECT T1.name ,  T1.lat ,  min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.end_station_id GROUP BY T2.end_station_id
问题: 列出所有持续时间低于100的路线的不同起始车站。

SQL: SELECT DISTINCT start_station_name FROM trip WHERE duration  <  100
问题: 对于持续时间不到100的路线，不同的起点站名是什么？

SQL: SELECT DISTINCT start_station_name FROM trip WHERE duration  <  100
问题: 查找所有最大露点从未达到70的邮政编码。

SQL: SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f  >=  70
问题: 哪些地区的最大露点总是低于70，这些地区的不同邮编是多少？

SQL: SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f  >=  70
问题: 在邮政编码94103地区中，查找至少与路线平均持续时间一样长的路线的id。

SQL: SELECT id FROM trip WHERE duration  >=  (SELECT avg(duration) FROM trip WHERE zip_code  =  94103)
问题: 邮政编码94103地区中持续时间和平均旅行持续时间一样长的所有路线的id是什么？

SQL: SELECT id FROM trip WHERE duration  >=  (SELECT avg(duration) FROM trip WHERE zip_code  =  94103)
问题: 平均海平面气压在30.3到31之间的日期是什么？

SQL: SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31
问题: 哪些日子的平均海平面气压在30.3到31之间？

SQL: SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31
问题: 找出最大温度与最小温度之差最小的一天。并报告差异。

SQL: SELECT date ,  max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1
问题: 哪些天具有最小的温度范围，那个范围是什么？

SQL: SELECT date ,  max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1
问题: 有超过12辆可用自行车的车站的ID和名称是什么？

SQL: SELECT DISTINCT T1.id ,  T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  >  12
问题: 有超过12辆可用自行车的车站有哪些不同的ID和名称？

SQL: SELECT DISTINCT T1.id ,  T1.name FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id WHERE T2.bikes_available  >  12
问题: 给我平均湿度低于70，至少有100个路线的地区邮编。

SQL: SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100
问题: 平均湿度低于70并且至少有100次旅行的邮政编码是什么？

SQL: SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity)  <  70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*)  >=  100
问题: 位于“西安”市但没能成为100次以上路线的终点的车站叫什么名字？

SQL: SELECT name FROM station WHERE city  =  "西安" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*)  >  100
问题: 位于“西安”但从未成为路线终点的车站叫什么名字？

SQL: SELECT name FROM station WHERE city  =  "西安" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*)  >  100
问题: 从“重庆”出发到“西安”有多少路线？

SQL: SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  "重庆" AND T3.city  =  "西安"
问题: 从“重庆”的一个车站到“西安”的一个车站，总共有多少次旅行？

SQL: SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id  =  T2.start_station_id AND T2.id  =  T4.id AND T3.id  =  T4.end_station_id WHERE T1.city  =  "重庆" AND T3.city  =  "西安"
问题: 所有路线起点的平均纬度和经度是多少？

SQL: SELECT avg(T1.lat) ,  avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id
问题: 所有出发站的平均纬度和经度是多少？

SQL: SELECT avg(T1.lat) ,  avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id  =  T2.start_station_id
问题: 有多少本书？

SQL: SELECT count(*) FROM book
问题: 按字母顺序列出书的作者。

SQL: SELECT Writer FROM book ORDER BY Writer ASC
问题: 按出版升序排列，列出书名。

SQL: SELECT Title FROM book ORDER BY Issues ASC
问题: 作者不是“钱钟书”的书名是什么？

SQL: SELECT Title FROM book WHERE Writer != "钱钟书"
问题: 书的题目和出版是什么？

SQL: SELECT Title ,  Issues FROM book
问题: 按价格降序排列的出版物日期是什么？

SQL: SELECT Publication_Date FROM publication ORDER BY Price DESC
问题: 哪些不同出版商有格高于5000000的出版物？

SQL: SELECT DISTINCT Publisher FROM publication WHERE Price  >  5000000
问题: 列出出版物价格最高的出版商。

SQL: SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1
问题: 列出3个最低价格的出版物的出版日期。

SQL: SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3
问题: 显示图书的书名和出版日期。

SQL: SELECT T1.Title ,  T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID
问题: 显示已经出版的一本价格超过4000000的书的作家。

SQL: SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T2.Price  >  4000000
问题: 按出版物价格的顺序显示书名。

SQL: SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T2.Price DESC
问题: 显示有不止一个出版物的出版商。

SQL: SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*)  >  1
问题: 展示不同的出版商以及他们出版的出版物数量。

SQL: SELECT Publisher ,  COUNT(*) FROM publication GROUP BY Publisher
问题: 请显示最常见的出版日期。

SQL: SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1
问题: 列出那些写过不止一本书的作家。

SQL: SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*)  >  1
问题: 列出未出版的书名。

SQL: SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication)
问题: 显示价格高于10000000和价格低于50000000的出版物的出版商。

SQL: SELECT Publisher FROM publication WHERE Price  >  10000000 INTERSECT SELECT Publisher FROM publication WHERE Price  <  5000000
问题: 不同出版日期的出版物数量是多少？

SQL: SELECT COUNT (DISTINCT Publication_Date) FROM publication
问题: 我们的记录中有多少种不同的出版日期？

SQL: SELECT COUNT (DISTINCT Publication_Date) FROM publication
问题: 显示出版商是“文学”或“机械”的出版物价格。

SQL: SELECT Price FROM publication WHERE Publisher  =  "文学" OR Publisher  =  "机械"
问题: 那儿有多少演员？

SQL: SELECT count(*) FROM actor
问题: 统计演员的数量。

SQL: SELECT count(*) FROM actor
问题: 按照升序字母顺序列出演员的名字。

SQL: SELECT Name FROM actor ORDER BY Name ASC
问题: 演员的名字是什么，按字母顺序排列？

SQL: SELECT Name FROM actor ORDER BY Name ASC
问题: 演员的角色和持续时间是什么？

SQL: SELECT Character ,  Duration FROM actor
问题: 返回每个演员的角色和持续时间。

SQL: SELECT Character ,  Duration FROM actor
问题: 列出年龄不是20岁的演员的名字。

SQL: SELECT Name FROM actor WHERE Age != 20
问题: 不是20岁的演员的名字是什么？

SQL: SELECT Name FROM actor WHERE Age != 20
问题: 按照年龄降序，演员的角色是什么？

SQL: SELECT Character FROM actor ORDER BY age DESC
问题: 返回演员的角色，按年龄降序排序。

SQL: SELECT Character FROM actor ORDER BY age DESC
问题: 最老演员的持续时间是多少？

SQL: SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1
问题: 返回最大年龄的演员的持续时间。

SQL: SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1
问题: 提名“梁朝伟”的音乐剧名称是什么？

SQL: SELECT Name FROM musical WHERE Nominee  =  "梁朝伟"
问题: 返回有提名“梁朝伟”的音乐剧名称。

SQL: SELECT Name FROM musical WHERE Nominee  =  "梁朝伟"
问题: 除了“金鸡奖”之外，还有哪些音乐剧的不同提名呢？

SQL: SELECT DISTINCT Nominee FROM musical WHERE Award != "金鸡奖"
问题: 返回奖项不是“金鸡奖”的音乐剧的不同提名。

SQL: SELECT DISTINCT Nominee FROM musical WHERE Award != "金鸡奖"
问题: 显示演员姓名和音乐剧名称。

SQL: SELECT T1.Name ,  T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID
问题: 演员和他们出演的音乐剧的名字是什么？

SQL: SELECT T1.Name ,  T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID
问题: 显示以“歌剧魅影”为名字的音乐剧中的演员的名字。

SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID WHERE T2.Name  =  "歌剧魅影"
问题: 音乐剧“歌剧魅影”的演员叫什么名字？

SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID WHERE T2.Name  =  "歌剧魅影"
问题: 以出演的音乐剧获奖的年份降序排列，显示演员姓名。

SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID ORDER BY T2.Year DESC
问题: 按出演的音乐剧获奖年份降序排列，演员姓名是什么？

SQL: SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID ORDER BY T2.Year DESC
问题: 显示音乐剧的名称和在音乐剧中出现的演员的数目。

SQL: SELECT T2.Name ,  COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID
问题: 每个音乐剧中有多少演员？

SQL: SELECT T2.Name ,  COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID
问题: 显示至少有三个演员的音乐剧名称。

SQL: SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  >=  3
问题: 有3个或更多演员的音乐剧名称是什么？

SQL: SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  >=  3
问题: 显示不同的被提名者和他们提名的音乐剧的数量。

SQL: SELECT Nominee ,  COUNT(*) FROM musical GROUP BY Nominee
问题: 每个被提名者有多少音乐剧被提名？

SQL: SELECT Nominee ,  COUNT(*) FROM musical GROUP BY Nominee
问题: 请显示被提名次数最多的被提名者。

SQL: SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1
问题: 谁是被提名音乐剧最多的的被提名人？

SQL: SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1
问题: 列出音乐剧最常见的结局。

SQL: SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
问题: 返回所有音乐剧中最常见的结局。

SQL: SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1
问题: 列出被提名超过两部音乐剧的被提名者。

SQL: SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*)  >  2
问题: 被提名超过两次的被提名者是谁？

SQL: SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*)  >  2
问题: 列出没有演员的音乐剧名称。

SQL: SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)
问题: 没有演员的音乐剧名称是什么？

SQL: SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)
问题: 显示被提名“金鸡奖”和“金马奖”的被提名人。

SQL: SELECT Nominee FROM musical WHERE Award  =  "金鸡奖" INTERSECT SELECT Nominee FROM musical WHERE Award  =  "金马奖"
问题: 谁被提名过“金鸡奖”和“金马奖”？

SQL: SELECT Nominee FROM musical WHERE Award  =  "金鸡奖" INTERSECT SELECT Nominee FROM musical WHERE Award  =  "金马奖"
问题: 显示获得“金鸡奖”或“金像奖”奖的被提名音乐人。

SQL: SELECT Nominee FROM musical WHERE Award  =  "金鸡奖" OR Award  =  "金像奖"
问题: 谁被提名过“金鸡奖”或“金像奖”奖项？

SQL: SELECT Nominee FROM musical WHERE Award  =  "金鸡奖" OR Award  =  "金像奖"
问题: 找到名为“马丽”的用户的电子邮件。

SQL: SELECT email FROM user_profiles WHERE name  =  '马丽'
问题: 名为“钢铁侠”的用户的ID是什么？

SQL: SELECT partitionid FROM user_profiles WHERE name  =  '钢铁侠'
问题: 有多少用户？

SQL: SELECT count(*) FROM user_profiles
问题: 每个用户有多少追随者？

SQL: SELECT count(*) FROM follows
问题: 查找每个用户的追随者数量。

SQL: SELECT count(*) FROM follows GROUP BY f1
问题: 在记录中找到推文的数量。

SQL: SELECT count(*) FROM tweets
问题: 查找发布了的推文的用户的数量。

SQL: SELECT count(DISTINCT UID) FROM tweets
问题: 找出用户名字中含有“往事随风”的人的名字和电子邮箱。

SQL: SELECT name ,  email FROM user_profiles WHERE name LIKE '往事随风'
问题: 找出电子邮箱中中含有“superstar”或是“edu”的用户的名字。

SQL: SELECT name FROM user_profiles WHERE email LIKE '巨星' OR email LIKE 'qq'
问题: 返回关于“实习”主题的推文。

SQL: SELECT text FROM tweets WHERE text LIKE '实习'
问题: 查找拥有超过1000个追随者的用户的姓名和电子邮件。

SQL: SELECT name ,  email FROM user_profiles WHERE followers  >  1000
问题: 查找追随者数量大于名为“蔡依林”的用户的用户名称。

SQL: SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 WHERE T1.name  =  '蔡依林')
问题: 查找有不止一个跟随者的用户的姓名和电子邮件。

SQL: SELECT T1.name ,  T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f1 GROUP BY T2.f1 HAVING count(*)  >  1
问题: 查找拥有不止一条推特的用户的姓名。

SQL: SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1
问题: 找到被“马丽”和“苏晴”跟随的用户的ID。

SQL: SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  "马丽" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  "苏晴"
问题: 找到“马丽”或“苏晴”共同追随的用户的ID。

SQL: SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid  =  T2.f2 WHERE T1.name  =  "马丽" OR T1.name  =  "苏晴"
问题: 查找有最多追随者的用户的名称。

SQL: SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1
问题: 找到有最少追随者的用户的名字和电子邮件。

SQL: SELECT name ,  email FROM user_profiles ORDER BY followers LIMIT 1
问题: 按跟随者数量的降序进行排序，列出每个用户的名称和追随者数目。

SQL: SELECT name ,  followers FROM user_profiles ORDER BY followers DESC
问题: 列出拥有追随者的最多的前5个用户的名字。

SQL: SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5
问题: 按日期顺序列出所有推文的文本。

SQL: SELECT text FROM tweets ORDER BY createdate
问题: 找出每个用户的名字和推特的数量。

SQL: SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid
问题: 查找发了不到两次推特的用户的名称和ID。

SQL: SELECT T1.name ,  T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  <  2
问题: 查找不止一次发推特的用户的姓名，以及他们发推特的次数。

SQL: SELECT T1.name ,  count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid  =  T2.uid GROUP BY T2.uid HAVING count(*)  >  1
问题: 查找没有任何推特的用户的平均追随者数量。

SQL: SELECT avg(followers) FROM user_profiles WHERE UID NOT IN (SELECT UID FROM tweets)
问题: 查找有一些推文的用户的平均追随者数量。

SQL: SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)
问题: 查找所有用户的追随者的最大数量和总数。

SQL: SELECT max(followers) ,  sum(followers) FROM user_profiles
问题: 查找所有目录项的名称。

SQL: SELECT distinct(catalog_entry_name) FROM catalog_contents
问题: 所有目录项名称是什么？

SQL: SELECT distinct(catalog_entry_name) FROM catalog_contents
问题: 查找拥有多于3个属性定义的属性数据类型的列表。

SQL: SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*)  >  3
问题: 哪些属性数据类型有超过3个属性定义？

SQL: SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*)  >  3
问题: 属性名为“绿色”的属性数据类型是什么？

SQL: SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name  =  "绿色"
问题: 查找属性名为“绿色”的属性数据类型。

SQL: SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name  =  "绿色"
问题: 查找级别在5到10之间的目录结构的名称和级别。

SQL: SELECT catalog_level_name ,  catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10
问题: 级别在5到10之间的目录结构的名称和级别是什么？

SQL: SELECT catalog_level_name ,  catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10
问题: 查找所有名字包含“小刚”的目录出版商。

SQL: SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "小刚"
问题: 哪些目录出版商的名字内包含"小刚"这个子串？

SQL: SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "小刚"
问题: 哪个目录出版商出版了最多的目录？

SQL: SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1
问题: 查找目录最多的目录出版商。

SQL: SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1
问题: 查找目录级别号大于5的所有目录的名称和发布日期。

SQL: SELECT t1.catalog_name ,  t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id  =  t2.catalog_id WHERE catalog_level_number  >  5
问题: 级别号在5以上的目录的名称和发布日期是什么？

SQL: SELECT t1.catalog_name ,  t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id  =  t2.catalog_id WHERE catalog_level_number  >  5
问题: 具有最多条目所具有的属性所属的目录的条目名称是什么？

SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.attribute_value  =  (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)
问题: 查找具有最多条目的属性所属的目录的条目名称。

SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.attribute_value  =  (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)
问题: 最贵的目录（美元）的条目名称是什么？

SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
问题: 以最高价格（美元）查找目录的条目名称。

SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
问题: 最便宜的目录（美元）的级别名称是什么？

SQL: SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1
问题: 查找价格最低的（美元）目录的级别名称。

SQL: SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1
问题: 所有产品的平均价格和最低价格（欧元）是多少？

SQL: SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents
问题: 给我产品的平均价格和最低价格（欧元）。

SQL: SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents
问题: 最高的产品是什么？给我目录条目名称。

SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
问题: 哪个目录内容最高？给我目录条目名称。

SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
问题: 找出容量最小的产品的名称。

SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
问题: 哪个目录内容的容量最小？返回目录条目名称。

SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
问题: 找出所有产品的名称，其库存号以“2”开头。

SQL: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2"
问题: 哪些目录内容有从“2”开始的产品库存号？显示目录项名称。

SQL: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2"
问题: 查找级别为“8”的目录条目名称。

SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  "8"
问题: 级别为“8”的目录条目名称是什么？

SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  "8"
问题: 查找长度小于3或高度大于5的产品的名称。

SQL: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5
问题: 哪些目录内容的长度低于3或大于5？查找目录条目名称。

SQL: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5
问题: 找到属性值为0的属性定义的名称和属性ID。

SQL: SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0
问题: 哪些属性定义具有属性值0？给我属性名和属性ID。

SQL: SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0
问题: 查找价格大于700（美元）的产品名称和容量。

SQL: SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700
问题: 哪些目录内容的价格超过700美元？显示他们的目录条目名称和容量。

SQL: SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700
问题: 找出修订超过一次的日期。

SQL: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1
问题: 在哪几天内对目录进行了一次以上的修改。

SQL: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1
问题: 记录中有多少种产品？

SQL: SELECT count(*) FROM catalog_contents
问题: 查找目录内容的总数。

SQL: SELECT count(*) FROM catalog_contents
问题: 找到下一个条目ID大于8的所有产品的名字。

SQL: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id  >  8
问题: 下一个条目ID在8以上的产品的目录条目名称是什么？

SQL: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id  >  8
问题: 我们有多少架飞机？

SQL: SELECT count(*) FROM Aircraft
问题: 数据库中有多少飞机？

SQL: SELECT count(*) FROM Aircraft
问题: 显示所有飞机的名称和距离。

SQL: SELECT name ,  distance FROM Aircraft
问题: 所有飞机的名称和距离是多少？

SQL: SELECT name ,  distance FROM Aircraft
问题: 显示所有距离超过1000的飞机的ID。

SQL: SELECT aid FROM Aircraft WHERE distance  >  1000
问题: 能覆盖超过1000距离的所有飞行器的ID是什么？

SQL: SELECT aid FROM Aircraft WHERE distance  >  1000
问题: 有多少架飞机有1000到5000的距离？

SQL: SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
问题: 距离在1000到5000之间的飞机的有多少台？

SQL: SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
问题: ID是12的飞机的名称和距离是多少？

SQL: SELECT name ,  distance FROM Aircraft WHERE aid  =  12
问题: 所有飞机的最小、平均和最大距离是多少？

SQL: SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft
问题: 返回所有飞行器的最小、平均和最大距离。

SQL: SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft
问题: 显示最大距离的飞机的ID和名称。

SQL: SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1
问题: 可以覆盖最大距离的飞机的ID和名称是什么？

SQL: SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1
问题: 显示前三个最低距离的飞机的名称。

SQL: SELECT name FROM Aircraft ORDER BY distance LIMIT 3
问题: 最短距离前3的飞机是什么？列出他们的名字。

SQL: SELECT name FROM Aircraft ORDER BY distance LIMIT 3
问题: 显示所有飞机的名称，其距离超过平均值。

SQL: SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)
问题: 所有能覆盖平均距离的飞机的名称是什么？

SQL: SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)
问题: 我们有多少员工？

SQL: SELECT count(*) FROM Employee
问题: 员工人数是多少？

SQL: SELECT count(*) FROM Employee
问题: 为所有员工按薪资排序，并显示姓名和薪金。

SQL: SELECT name ,  salary FROM Employee ORDER BY salary
问题: 所有员工的姓名和薪水是多少？

SQL: SELECT name ,  salary FROM Employee ORDER BY salary
问题: 显示所有工资至少有100000的工资员工。

SQL: SELECT eid FROM Employee WHERE salary  >  100000
问题: 每一个工资至少有100000的员工的ID是多少？

SQL: SELECT eid FROM Employee WHERE salary  >  100000
问题: 薪水在100000到200000的员工有多少？

SQL: SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
问题: 员工工资在100000到200000的人数是多少？

SQL: SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
问题: ID为242518965的员工的姓名和薪水是多少？

SQL: SELECT name ,  salary FROM Employee WHERE eid  =  242518965
问题: ID242518965的雇员的姓名和薪金是多少？

SQL: SELECT name ,  salary FROM Employee WHERE eid  =  242518965
问题: 所有员工的平均工资和最高工资是多少？

SQL: SELECT avg(salary) ,  max(salary) FROM Employee
问题: 显示平均工资最高的员工的ID和姓名。

SQL: SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1
问题: 工资最高的员工的ID和姓名是什么？

SQL: SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1
问题: 显示工资最低的三名员工的姓名。

SQL: SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
问题: 哪3个员工的薪水最少？

SQL: SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
问题: 显示所有薪水高于平均水平的员工。

SQL: SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)
问题: 工资高于平均水平的所有员工的姓名是什么？

SQL: SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)
问题: 显示“张晓梅”的ID和薪水。

SQL: SELECT eid ,  salary FROM Employee WHERE name  =  '张晓梅'
问题: 那个叫“张晓梅”的员工的ID和薪水是多少？

SQL: SELECT eid ,  salary FROM Employee WHERE name  =  '张晓梅'
问题: 我们有多少班次？

SQL: SELECT count(*) FROM Flight
问题: 航班的数量是多少？

SQL: SELECT count(*) FROM Flight
问题: 按照起飞城市的字母顺序显示所有航班的航班号、起点、目的地。

SQL: SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin
问题: 按起飞城市的字母顺序排列的所有航班的航班号、起点和目的地是什么？

SQL: SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin
问题: 显示所有从“上海”起飞的航班号。

SQL: SELECT flno FROM Flight WHERE origin  =  "上海"
问题: 从“上海”来的所有航班的号码是多少？

SQL: SELECT flno FROM Flight WHERE origin  =  "上海"
问题: 显示所有以“海口”为目的地航班的出发地。

SQL: SELECT origin FROM Flight WHERE destination  =  "海口"
问题: 飞往“海口”的所有航班的出发地是什么？

SQL: SELECT origin FROM Flight WHERE destination  =  "海口"
问题: 告诉我从“上海”到“海口”的所有航班的出发日期和到达日期。

SQL: SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  "上海" AND destination  =  "海口"
问题: 从“上海”到“海口”的所有航班的起飞和到达日期是什么？

SQL: SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  "上海" AND destination  =  "海口"
问题: 显示超过2000距离的所有航班的航班号。

SQL: SELECT flno FROM Flight WHERE distance  >  2000
问题: 能覆盖超过2000的距离的所有航班的号码是多少？

SQL: SELECT flno FROM Flight WHERE distance  >  2000
问题: 从“上海”到“海口”的航班平均价格是多少？

SQL: SELECT avg(price) FROM Flight WHERE origin  =  "上海" AND destination  =  "海口"
问题: 显示价格高于300的航班的出发地和目的地。

SQL: SELECT origin ,  destination FROM Flight WHERE price  >  300
问题: 价格高于300的航班的起点和目的地是什么？

SQL: SELECT origin ,  destination FROM Flight WHERE price  >  300
问题: 显示最高价航班的航班号和飞行距离。

SQL: SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1
问题: 最高价航班的航班号和距离是多少？

SQL: SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1
问题: 显示三个最低距离的航班号。

SQL: SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3