jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 有两个机场的城市是什么？

SQL: SELECT city FROM airports GROUP BY city HAVING count(*)  =  2
问题: 对于每个国家和航空公司的名字，有多少条路线？

SQL: SELECT T1.country ,  T1.name ,  count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.country ,  T1.name
问题: 那个国家和每一个国家对应的航空公司的航线总数是多少？

SQL: SELECT T1.country ,  T1.name ,  count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.country ,  T1.name
问题: 找出目的地机场在“意大利”的航线的数量。

SQL: SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid WHERE T2.country  =  "意大利"
问题: 以“意大利”机场为目的地的路线有多少？

SQL: SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid WHERE T2.country  =  "意大利"
问题: 返回由名为“山东航空公司”运营的以“意大利”机场为目的地的航线数。

SQL: SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  "Italy" AND T3.name  =  "American Airlines"
问题: “山东航空公司”运营的以“意大利”机场为目的地的航线数是多少？

SQL: SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid  =  T2.apid JOIN airlines AS T3 ON T1.alid  =  T3.alid WHERE T2.country  =  "Italy" AND T3.name  =  "American Airlines"
问题: 找出目的地是“首都国际机场”的航线数量。

SQL: SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.name  =  "首都国际机场"
问题: 以“首都国际机场”为的终点路线是多少？

SQL: SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.name  =  "首都国际机场"
问题: 找出从“中国”到“加拿大”的路线数。

SQL: SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  "加拿大") AND src_apid IN (SELECT apid FROM airports WHERE country  =  "中国")
问题: 从“中国”到“加拿大”有多少条路线？

SQL: SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  "加拿大") AND src_apid IN (SELECT apid FROM airports WHERE country  =  "中国")
问题: 查找其源机场和目的地机场在“中国”的路线ID。

SQL: SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  "中国") AND src_apid IN (SELECT apid FROM airports WHERE country  =  "中国")
问题: 源机场和目的地机场在“中国”的路线ID是什么？

SQL: SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  "中国") AND src_apid IN (SELECT apid FROM airports WHERE country  =  "中国")
问题: 查找航线数量最多的航空公司名称。

SQL: SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
问题: 航线最多的航空公司叫什么名字？

SQL: SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
问题: 找出在“中国”航线数量最多的最繁忙的来源机场。

SQL: SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid WHERE T1.country  =  "中国" GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
问题: 在“中国”起步的航线最多的机场叫什么名字？

SQL: SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid WHERE T1.country  =  "中国" GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
问题: 找出最繁忙在“中国”航线数量最多的目的地机场。

SQL: SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.country  =  "中国" GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
问题: 在“中国”起步的航线最多的目的地机场叫什么名字？

SQL: SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.country  =  "中国" GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
问题: 最新订单的ID是什么？

SQL: SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1
问题: 找出最近订购的ID。

SQL: SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1
问题: 最旧订单的订单ID和客户ID是什么？

SQL: SELECT order_id ,  customer_id FROM orders ORDER BY date_order_placed LIMIT 1
问题: 找出与最旧订单关联的订单ID和客户ID。

SQL: SELECT order_id ,  customer_id FROM orders ORDER BY date_order_placed LIMIT 1
问题: 找出发货追踪号码是“3452”的订单的ID。

SQL: SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452"
问题: 哪个订单的出货跟踪号码是“3452”？把订单的ID给我。

SQL: SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452"
问题: 找出产品ID为11的所有订单项目的ID。

SQL: SELECT order_item_id FROM order_items WHERE product_id = 11
问题: 找出所有产品ID为11的订单项目。订单项目ID是什么？

SQL: SELECT order_item_id FROM order_items WHERE product_id = 11
问题: 列出所有订单状态为“打包”的不同客户的名称。

SQL: SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "打包"
问题: 哪些客户有“包装”状态的订单？给我客户的名字。

SQL: SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "包装"
问题: 找出所有拥有“在路上”状态订单的不同客户的详细信息。

SQL: SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "在路上"
问题: 那些客户的订单状态是“在路上”？给我客户的详细资料？

SQL: SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "在路上"
问题: 订单最多的客户叫什么名字？

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
问题: 哪个客户的订单最多？查找客户名字。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
问题: 拥有最多订单的客户的客户ID是什么？

SQL: SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
问题: 找出订单最多的客户的ID。

SQL: SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
问题: 请给我一张属于“兰兰”客户的ID和订单状态。

SQL: SELECT T2.order_id ,  T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "兰兰"
问题: 哪一个订单是属于名字叫“兰兰”的客户的？给我订单ID和状态。

SQL: SELECT T2.order_id ,  T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "兰兰"
问题: 查找属于“兰兰”客户的订单日期。

SQL: SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "兰兰"
问题: 名字叫“兰兰”客户的订单日期是什么？

SQL: SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "兰兰"
问题: 请告诉我在“2009-01-01”和“2010-01-01”之间下订单的客户的姓名。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"
问题: 哪些客户在“2009-01-01”和“2010-01-01”之间发出订单？找出他们的名字。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"
问题: 给我一张在“1975-01-01”和“1976-01-01”之间下订单的不同的产品ID的清单。

SQL: SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= "1975-01-01" AND T1.date_order_placed <= "1976-01-01"
问题: 在“1975-01-01”和“1976－01-01”之间订购的产品有哪些不同的ID？

SQL: SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= "1975-01-01" AND T1.date_order_placed <= "1976-01-01"
问题: 找出同时具有“在路上”和“装运”订单状态的客户的名字。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "在路上" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "装运"
问题: 哪些客户同时拥有“在路上”和“装运”作为订单状态？列出客户名字。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "在路上" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "装运"
问题: 找出同时具有“在路上”和“装运”订单状态的客户的ID。

SQL: SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "在路上" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "装运"
问题: 哪些客户同时拥有“在路上”和“装运”作为订单状态？列出客户ID。

SQL: SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "在路上" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "装运"
问题: 货物的追踪号码是3452是什么时候发出的？把日期告诉我。

SQL: SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
问题: 货物的追踪号码是3452的订单是在那一天发出的？

SQL: SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
问题: 发票号码是10的订单的邮寄日期是什么？

SQL: SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10
问题: 发票号码10的订单是在哪一天寄来的？

SQL: SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10
问题: 列出所有订单中每个产品的数量和ID。

SQL: SELECT count(*) ,  T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
问题: 对于每个产品，返回它的ID和它被订购的次数。

SQL: SELECT count(*) ,  T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
问题: 列出所有订单中每个产品的名称和数量。

SQL: SELECT T3.product_name ,  count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
问题: 对于每个产品，显示它的名称和它被订购的次数。

SQL: SELECT T3.product_name ,  count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
问题: 找出在“2000-01-01”之后被装运订单的ID。

SQL: SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01"
问题: 哪些订单在“2000-01-01”之后有装运？把订单ID给我。

SQL: SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01"
问题: 找出最近装运的订单ID。

SQL: SELECT order_id FROM shipments WHERE shipment_date  =  (SELECT max(shipment_date) FROM shipments)
问题: 最近装运是哪个订单？把订单ID给我。

SQL: SELECT order_id FROM shipments WHERE shipment_date  =  (SELECT max(shipment_date) FROM shipments)
问题: 按字母顺序列出所有不同产品的名称。

SQL: SELECT DISTINCT product_name FROM products ORDER BY product_name
问题: 按字母顺序排序所有不同的产品。

SQL: SELECT DISTINCT product_name FROM products ORDER BY product_name
问题: 列出由放置日期排序的所有不同订单的ID。

SQL: SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed
问题: 按放置日期排序的不同订单的ID是什么？

SQL: SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed
问题: 订单中有最多项目的ID是什么？

SQL: SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1
问题: 哪一个订单处理最多的项目？返回订单ID。

SQL: SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1
问题: 订单数量最多的客户叫什么名字？

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
问题: 找出订单最多的客户的名字。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
问题: 找出在“1989-09-03”之前或“2007-12-25”之后创建的发票号码。

SQL: SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
问题: 在“1989-09-03”年之前或“2007-12-25”年之后创建的发票号码是什么？

SQL: SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
问题: 找出在“1989-09-03”年之前或“2007-12-25”年之后创建的发票号码的不同细节。

SQL: SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
问题: 在“1989-09-03”年之前或“2007-12-25”年之后创建的发票号码的不同细节是什么？

SQL: SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
问题: 对于每个至少有两个订单的客户，查找客户名字和订单数量。

SQL: SELECT T2.customer_name ,  count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  >=  2
问题: 哪个客户至少订了两个订单？给我每个客户的名字和订单数量。

SQL: SELECT T2.customer_name ,  count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  >=  2
问题: 找出最多两个订单的客户的名字。

SQL: SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  <=  2
问题: 有两个或更少订单的客户的名字是什么？

SQL: SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*)  <=  2
问题: 列出曾经购买产品“食物”的顾客的名字。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "食物" GROUP BY T1.customer_id HAVING count(*)  >=  1
问题: 至少一次购买“食品”的顾客的名字是什么？

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "食品" GROUP BY T1.customer_id HAVING count(*)  >=  1
问题: 列出曾经取消购买产品“食品”的客户的姓名（项目状态为“取消”）。

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "取消" AND T4.product_name = "食品" GROUP BY T1.customer_id HAVING count(*)  >=  1
问题: 哪些客户曾经取消购买产品“食品”（项目状态是“取消”）？

SQL: SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "取消" AND T4.product_name = "食品" GROUP BY T1.customer_id HAVING count(*)  >=  1
问题: 有多少建筑师是“女”性？

SQL: SELECT count(*) FROM architect WHERE gender  =  "女"
问题: 按其姓名的字典顺序列出所有“男”性架构师的姓名、国籍和ID。

SQL: SELECT name ,  nationality ,  id FROM architect WHERE gender  =  "男" ORDER BY name
问题: 以米为单位桥梁的最大长度是多少？建筑师的名字是什么？

SQL: SELECT max(T1.length_meters) ,  T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id  =  T2.id
问题: 桥的平均长度是多少？

SQL: SELECT avg(length_feet) FROM bridge
问题: “风车”类型的工厂的名字和年份是什么？

SQL: SELECT name ,  built_year FROM mill WHERE TYPE  =  "风车"
问题: 建造过工厂的不同的建筑师的名字和国籍是什么？

SQL: SELECT DISTINCT T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id  =  T2.architect_id
问题: 不在“长沙”的工厂的名字是什么？

SQL: SELECT name FROM mill WHERE LOCATION != "长沙"
问题: “美国”或“加拿大”的建筑师建造的工厂有哪些类型？

SQL: SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id WHERE T2.nationality  =  "美国" OR T2.nationality  =  "加拿大"
问题: 建造至少3座桥梁的建筑师的ID和名字是什么？

SQL: SELECT T1.id ,  T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  >=  3
问题: 建造工厂最多的建筑师的 ID 、姓名和国籍是什么？

SQL: SELECT T1.id ,  T1.name ,  T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
问题: 建造两座桥或一座工厂的建筑师的 ID 、姓名和性别是什么？

SQL: SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  2 UNION SELECT T1.id ,  T1.name ,  T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id  =  T2.architect_id GROUP BY T1.id HAVING count(*)  =  1
问题: “长江大桥”或“赵州桥”的位置是什么？

SQL: SELECT LOCATION FROM bridge WHERE name  =  "长江大桥" OR name  =  "赵州桥"
问题: 哪一个工厂名称包含中文单词“江”？

SQL: SELECT name FROM mill WHERE name LIKE "%江%"
问题: 建造一座超过80米的桥梁的建筑师建造的工厂叫什么名字？

SQL: SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id  =  T2.id JOIN bridge AS T3 ON T3.architect_id  =  T2.id WHERE T3.length_meters  >  80
问题: 最常见的工厂类型是什么，有多少个？

SQL: SELECT TYPE ,  count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
问题: 1850年以前有多少建筑师返回没有建造过工厂？

SQL: SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year  <  1850 );
问题: 显示所有由“美国”建筑师设计的桥梁的名称，并根据桥长度对结果进行排序。

SQL: SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id  =  t2.id WHERE t2.nationality  =  "美国" ORDER BY t1.length_feet
问题: 有多少读书俱乐部？

SQL: SELECT count(*) FROM book_club
问题: 统计读书俱乐部的数量。

SQL: SELECT count(*) FROM book_club
问题: 展示1989年后所有书籍的书名、作者和编辑。

SQL: SELECT book_title ,  author_or_editor FROM book_club WHERE YEAR  >  1989
问题: 与1989年以后出版的书籍相对应的书名、作者或编辑是什么？

SQL: SELECT book_title ,  author_or_editor FROM book_club WHERE YEAR  >  1989
问题: 显示所有不同的图书出版商。

SQL: SELECT DISTINCT publisher FROM book_club
问题: 什么是所有不同的图书出版商？

SQL: SELECT DISTINCT publisher FROM book_club
问题: 显示按年份的顺序递减的所有图书的年份、书名和出版商。

SQL: SELECT YEAR ,  book_title ,  publisher FROM book_club ORDER BY YEAR DESC
问题: 按年份递减，所有图书的年份、书名和出版商是多少？

SQL: SELECT YEAR ,  book_title ,  publisher FROM book_club ORDER BY YEAR DESC
问题: 显示所有出版商和每个出版商的图书数量。

SQL: SELECT publisher ,  count(*) FROM book_club GROUP BY publisher
问题: 每个出版商有多少本书？

SQL: SELECT publisher ,  count(*) FROM book_club GROUP BY publisher
问题: 那个出版商的图书数量最多？

SQL: SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1
问题: 返回出版最多图书的出版商。

SQL: SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1
问题: 显示所有图书类别和每类图书的数量。

SQL: SELECT category ,  count(*) FROM book_club GROUP BY category
问题: 每一类有多少本书？

SQL: SELECT category ,  count(*) FROM book_club GROUP BY category
问题: 列出至少在1989年后有两本书的类别。

SQL: SELECT category FROM book_club WHERE YEAR  >  1989 GROUP BY category HAVING count(*)  >=  2
问题: 在1989年以后两个或多个相应的书籍类别是什么？

SQL: SELECT category FROM book_club WHERE YEAR  >  1989 GROUP BY category HAVING count(*)  >=  2
问题: 向出版商展示一本1989年出版的书和1990年出版的书。

SQL: SELECT publisher FROM book_club WHERE YEAR  =  1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR  =  1990
问题: 出版商在1989年和1990年出版了什么书？

SQL: SELECT publisher FROM book_club WHERE YEAR  =  1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR  =  1990
问题: 显示所有在1989年后没有出版书籍的出版商。

SQL: SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR  =  1989
问题: 哪些出版商在1989年没有出版过一本书？

SQL: SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR  =  1989
问题: 按预算排序显示所有电影名称，年份和导演。

SQL: SELECT title ,  YEAR ,  director FROM movie ORDER BY budget_million
问题: 以百万计的预算订购的所有电影的片名、年限和导演都有哪些？

SQL: SELECT title ,  YEAR ,  director FROM movie ORDER BY budget_million
问题: 有多少电影导演？

SQL: SELECT COUNT (DISTINCT director) FROM movie
问题: 统计不同导游的人数。

SQL: SELECT COUNT (DISTINCT director) FROM movie
问题: 2000年或以前全球总票房最高的电影的片名和导演是什么？

SQL: SELECT title ,  director FROM movie WHERE YEAR  <=  2000 ORDER BY gross_worldwide DESC LIMIT 1
问题: 返回2000年或更早时候发行的全球总票房最高的电影的片名和导演。

SQL: SELECT title ,  director FROM movie WHERE YEAR  <=  2000 ORDER BY gross_worldwide DESC LIMIT 1
问题: 显示有电影在1999年和2000年所有导演的名字。

SQL: SELECT director FROM movie WHERE YEAR  =  2000 INTERSECT SELECT director FROM movie WHERE YEAR  =  1999
问题: 哪些导演在1999年和2000年都有电影？

SQL: SELECT director FROM movie WHERE YEAR  =  2000 INTERSECT SELECT director FROM movie WHERE YEAR  =  1999
问题: 显示所有在1999年或2000年有电影的导演的名字。

SQL: SELECT director FROM movie WHERE YEAR  =  1999 OR YEAR  =  2000
问题: 哪位导演在1999年或2000年有一部电影？

SQL: SELECT director FROM movie WHERE YEAR  =  1999 OR YEAR  =  2000
问题: 在2000年之前，所有电影的平均、最大和最小预算是多少？

SQL: SELECT avg(budget_million) ,  max(budget_million) ,  min(budget_million) FROM movie WHERE YEAR  <  2000
问题: 返回在2000年之前制作的电影的平均、最高和最低的百万级别预算。

SQL: SELECT avg(budget_million) ,  max(budget_million) ,  min(budget_million) FROM movie WHERE YEAR  <  2000
问题: 列出由“中国社会科学出版社”出版的书的所有公司名称。

SQL: SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id  =  T2.book_club_id WHERE T2.publisher  =  "中国社会科学出版社"
问题: “中国社会科学出版社”出版的一本书的公司名称是什么？

SQL: SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id  =  T2.book_club_id WHERE T2.publisher  =  "中国社会科学出版社"
问题: 显示“中国”所有公司的电影片名和书名。

SQL: SELECT T1.title ,  T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id JOIN book_club AS T3 ON T3.book_club_id  =  T2.book_club_id WHERE T2.incorporated_in  =  "中国"
问题: 在“中国”注册的公司的电影和书籍的名称是什么？

SQL: SELECT T1.title ,  T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id JOIN book_club AS T3 ON T3.book_club_id  =  T2.book_club_id WHERE T2.incorporated_in  =  "中国"
问题: 显示所有在1999年导演电影的公司名称。

SQL: SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id WHERE T1.year  =  1999
问题: 1999年导演相应电影的所有公司名称是什么？

SQL: SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id  =  T2.movie_id WHERE T1.year  =  1999
问题: “山东”最大的城市是什么？

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: “山东”那个城市人口最多

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: “山东”人口最多的地区在哪里？

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: “山东”哪个城市人口最多

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: “山东”哪些城市公民人数最多

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: “山东”哪些城市人口最多

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: “山东”人口最多的城市是什么？

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: 按人口算，“山东”最大的城市是什么？

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: “山东”人口数量最多的城市是什么？

SQL: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "山东" ) AND state_name  =  "山东";
问题: 哪些河流流经最大的城市

SQL: SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city ) );
问题: “山西”有多大？

SQL: SELECT area FROM state WHERE state_name  =  "山西";
问题: “山西”的面积是多少？

SQL: SELECT area FROM state WHERE state_name  =  "山西";
问题: “山西”的大小有多大？

SQL: SELECT area FROM state WHERE state_name  =  "山西";
问题: “山西”的面积是多少平方公里？

SQL: SELECT area FROM state WHERE state_name  =  "山西";
问题: “浙江”有多少人

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: 有多少人住在“浙江”？

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: “浙江”有多少居民居住

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: “浙江”有多少人口

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: “浙江”的人口是多少

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: “浙江”的人口数是多少

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: “浙江”省有多少人

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: 你能告诉我“浙江”的人口吗？

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: “浙江”有多少市民

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: 有多少人留在“浙江”

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: “浙江”有多少市民居住

SQL: SELECT population FROM state WHERE state_name  =  "浙江";
问题: 什么省人口最少？

SQL: SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );
问题: 人口最少的省是什么省

SQL: SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );
问题: 人口数目最低的省是什么？

SQL: SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );
问题: 给我“四川”的城市

SQL: SELECT city_name FROM city WHERE state_name  =  "四川";
问题: 告诉我“四川”有什么城市

SQL: SELECT city_name FROM city WHERE state_name  =  "四川";
问题: “四川”有哪些城市

SQL: SELECT city_name FROM city WHERE state_name  =  "四川";
问题: “四川”有什么城市？

SQL: SELECT city_name FROM city WHERE state_name  =  "四川";
问题: “四川”的城市有什么

SQL: SELECT city_name FROM city WHERE state_name  =  "四川";