jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 返回提交最少客户投诉的产品名称。

SQL: SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1
问题: 最近投诉的客户的电话号码是多少？

SQL: SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
问题: 返回最近提出的投诉的客户的电话号码。

SQL: SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
问题: 找出以前从未提出过投诉的客户的电子邮件和电话号码。

SQL: SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
问题: 那些从未提出投诉的顾客的电子邮件和电话号码是什么？

SQL: SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
问题: 找出所有客户和员工的电话号码。

SQL: SELECT phone_number FROM customers UNION SELECT phone_number FROM staff
问题: 所有客户和所有员工的电话号码是多少？

SQL: SELECT phone_number FROM customers UNION SELECT phone_number FROM staff
问题: 对“巧克力”的描述是什么？

SQL: SELECT product_description FROM products WHERE product_name  =  "巧克力"
问题: 返回被称为“巧克力”的产品的描述。

SQL: SELECT product_description FROM products WHERE product_name  =  "巧克力"
问题: 找出最贵产品的名称和类别。

SQL: SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1
问题: 价格最高的产品名称和类别代码是什么？

SQL: SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1
问题: 找出未收到过投诉的产品的价格。

SQL: SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
问题: 没有投诉的产品的价格是多少？

SQL: SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
问题: 每种类别产品的平均价格是多少？

SQL: SELECT avg(product_price) ,  product_category_code FROM products GROUP BY product_category_code
问题: 返回具有每个类别代码的产品的平均价格。

SQL: SELECT avg(product_price) ,  product_category_code FROM products GROUP BY product_category_code
问题: 找出处理最便宜产品投诉的工作人员的姓氏。

SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id JOIN products AS t3 ON t2.product_id  =  t3.product_id ORDER BY t3.product_price LIMIT 1
问题: 负责投诉产品价格最低的工作人员的姓氏是什么？

SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id JOIN products AS t3 ON t2.product_id  =  t3.product_id ORDER BY t3.product_price LIMIT 1
问题: 哪种投诉状态在文件上有超过3条记录？

SQL: SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3
问题: 返回投诉状态代码有超过3个的相应投诉？

SQL: SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3
问题: 查找其电子邮件地址包含“westlake”的员工的姓氏。

SQL: SELECT last_name FROM staff WHERE email_address LIKE "%westlake%"
问题: 包含子字符串“westlake”的电子邮件地址的工作人员的姓氏是什么？

SQL: SELECT last_name FROM staff WHERE email_address LIKE "%westlake%"
问题: 客户最多的客户类型有多少客户？

SQL: SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1
问题: 计算具有最常见的客户类型的客户数量。

SQL: SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1
问题: 处理过第一次投诉的员工的姓氏是什么？

SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
问题: 返回以最早的日期处理投诉的工作人员的姓氏。

SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
问题: 数据库中有多少不同的投诉类型代码？

SQL: SELECT count(DISTINCT complaint_type_code) FROM complaints
问题: 计算不同类型投诉代码的数量。

SQL: SELECT count(DISTINCT complaint_type_code) FROM complaints
问题: 用电子邮件“vbogisich@qq.org”查找客户地址的第1行和第2行。

SQL: SELECT address_line_1 ,  address_line_2 FROM customers WHERE email_address  =  "vbogisich@qq.org"
问题: 电子邮件“vbogisich@qq.org”中客户地址的第一行和第二行是什么？

SQL: SELECT address_line_1 ,  address_line_2 FROM customers WHERE email_address  =  "vbogisich@qq.org"
问题: 为每个投诉状态找出具有“产品故障”类型的投诉数量。

SQL: SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  "产品故障" GROUP BY complaint_status_code
问题: 对于“产品故障”类型代码的投诉，每个不同的状态代码有多少个？

SQL: SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  "产品故障" GROUP BY complaint_status_code
问题: 处理投诉最多的前5名员工的名字是什么？

SQL: SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5
问题: 返回处理投诉最多的5名员工的名字。

SQL: SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5
问题: 哪个省的客户最多？

SQL: SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1
问题: 给出拥有最多顾客的省。

SQL: SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1
问题: 有多少提交意见？

SQL: SELECT count(*) FROM submission
问题: 统计提交的数量。

SQL: SELECT count(*) FROM submission
问题: 按分数升序排列提交的作者。

SQL: SELECT Author FROM submission ORDER BY Scores ASC
问题: 找出每个提交的作者，并按提交分数的升序列出它们。

SQL: SELECT Author FROM submission ORDER BY Scores ASC
问题: 提交的作者和他们的学院是什么？

SQL: SELECT Author ,  College FROM submission
问题: 对于每一个提交，显示作者及其附属学院。

SQL: SELECT Author ,  College FROM submission
问题: 显示“浙江”大学或“南京”大学的作者姓名

SQL: SELECT Author FROM submission WHERE College  =  "浙江" OR College  =  "南京"
问题: 哪些提交的作者来自“浙江”大学或“南京”大学？

SQL: SELECT Author FROM submission WHERE College  =  "浙江" OR College  =  "南京"
问题: 提交的平均分数是多少？

SQL: SELECT avg(Scores) FROM submission
问题: 计算提交的平均分数。

SQL: SELECT avg(Scores) FROM submission
问题: 提交分数最高的作者是什么？

SQL: SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1
问题: 找出在提交中获得最高分数的作者。

SQL: SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1
问题: 显示不同的大学以及每个学大学提交论文的作者数量。

SQL: SELECT College ,  COUNT(*) FROM submission GROUP BY College
问题: 对于每个大学，返回大学名称和从该大学提交的作者计数。

SQL: SELECT College ,  COUNT(*) FROM submission GROUP BY College
问题: 显示最常见的大学提交的作者。

SQL: SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1
问题: 哪一所大学的提交的作者最多？

SQL: SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示那些提交分数大于90的作者和提交分数小于80的作者的大学。

SQL: SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80
问题: 哪些大学有提交分数在90以上的作者和80以下的作者？

SQL: SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80
问题: 显示提交的作者及其提交的接受结果。

SQL: SELECT T2.Author ,  T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID
问题: 对于每个提交，找出其作者和接受结果。

SQL: SELECT T2.Author ,  T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID
问题: 显示最高分数的提交结果。

SQL: SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
问题: 在录取结果中，录取分数最高。把结果显示给我。

SQL: SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
问题: 显示每个作者和他们提交的研习会数量。

SQL: SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author
问题: 每个作者提交了多少个研习会？返回作者姓名和研习会的数量。

SQL: SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author
问题: 显示提交给一个以上研习会的作者。

SQL: SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1
问题: 哪些作者提交了一个以上的研习会？

SQL: SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1
问题: 按照场地的升序显示每个研讨会的日期和地点。

SQL: SELECT Date ,  Venue FROM workshop ORDER BY Venue
问题: 按场地的字母顺序对每个研习会进行排序。返回每个研习会的日期和地点。

SQL: SELECT Date ,  Venue FROM workshop ORDER BY Venue
问题: 列出没有提交到任何研习会的作者。

SQL: SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)
问题: 哪些作者没有提交任何研习会？

SQL: SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)
问题: 找出投资者总数。

SQL: SELECT count(*) FROM INVESTORS
问题: 显示所有投资者的详细信息。

SQL: SELECT Investor_details FROM INVESTORS
问题: 显示所有不同批次的细节。

SQL: SELECT DISTINCT lot_details FROM LOTS
问题: 显示最大交易量。

SQL: SELECT max(amount_of_transaction) FROM TRANSACTIONS
问题: 显示交易的所有日期和份额数。

SQL: SELECT date_of_transaction ,  share_count FROM TRANSACTIONS
问题: 交易的总份额是多少？

SQL: SELECT sum(share_count) FROM TRANSACTIONS
问题: 显示所有带有“PUR”的交易码的交易ID 。

SQL: SELECT transaction_id FROM TRANSACTIONS WHERE transaction_type_code  =  "PUR"
问题: 显示类型代码为“销售中”的所有交易的日期。

SQL: SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code  =  "销售中"
问题: 显示类型代码为“销售中”的平均交易量。

SQL: SELECT avg(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  "销售中"
问题: 显示代码为“PUR”的交易类型的描述。

SQL: SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code	  =  "PUR"
问题: 显示类型代码为“PUR”且份额数大于50的交易的最小数量。

SQL: SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  "PUR" AND share_count  >  50
问题: 显示金额小于10000的交易的最大份额数

SQL: SELECT max(share_count) FROM TRANSACTIONS WHERE amount_of_transaction  <  10000
问题: 显示份额数大于100且数量大于1000的交易日期。

SQL: SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100 OR amount_of_transaction  >  1000
问题: 显示份额数小于10的交易类型描述和日期。

SQL: SELECT T1.transaction_type_description ,  T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10
问题: 显示所有作出任何交易且股票计数超过100的投资者的细节。

SQL: SELECT T1.Investor_details FROM  INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.share_count  >  100
问题: 在交易中使用了多少种不同的交易类型？

SQL: SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS
问题: 返回批次细节和投资者ID 。

SQL: SELECT lot_details ,  investor_id FROM LOTS
问题: 返回属于以细节“l”的投资者的大量批次细节。

SQL: SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON  T1.investor_id  =  T2.investor_id WHERE T1.Investor_details  =  "l"
问题: 购买金额大于10000的交易详情是什么？

SQL: SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  >  10000
问题: 金额小于3000的交易的销售细节和日期是什么？

SQL: SELECT T1.sales_details ,  T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  <  3000
问题: 与份额数小于50的交易相关的批次的批次细节是什么？

SQL: SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  <  50
问题: 与份额数大于100且类型代码为“PUR”的交易相关的批次的批次细节是什么？

SQL: SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON  T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  >  100 AND T3.transaction_type_code  =  "PUR"
问题: 显示不同交易类型的平均交易量。

SQL: SELECT transaction_type_code ,  avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code
问题: 显示不同交易类型的最大和最小份额数。

SQL: SELECT transaction_type_code ,  max(share_count) ,  min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code
问题: 显示不同投资者的平均交易份额数。

SQL: SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id
问题: 显示按平均份额数排序的每个投资者的交易平均份额数。

SQL: SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)
问题: 显示不同投资者的平均交易量。

SQL: SELECT investor_id ,  avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id
问题: 显示不同批次的平均交易量。

SQL: SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id
问题: 显示按平均交易量排序的不同批次的平均交易量。

SQL: SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)
问题: 如果交易类型代码大于0，则显示不同投资者的交易编码为“销售中”的交易数量。

SQL: SELECT investor_id ,  COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code  =  "销售中" GROUP BY investor_id
问题: 显示不同投资者的交易数量。

SQL: SELECT investor_id ,  COUNT(*) FROM TRANSACTIONS GROUP BY investor_id
问题: 显示最少发生的交易类型代码。

SQL: SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1
问题: 显示最频繁发生的交易类型代码。

SQL: SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示最频繁发生的交易类型的描述。

SQL: SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示具有最大交易数量的投资者的ID和投资者细节。

SQL: SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示交易数量前3多的投资人的ID和投资者细节。

SQL: SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3
问题: 显示至少有两个交易的投资者的ID。

SQL: SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*)  >=  2
问题: 显示至少有两笔交易类型为“销售中”的投资者的ID和投资者的详细信息。

SQL: SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.transaction_type_code  =  "销售中" GROUP BY T2.investor_id HAVING COUNT(*)  >=  2
问题: 至少有100份额或超过100份额的交易日期是什么？

SQL: SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >=  100 OR amount_of_transaction  >=  100
问题: 所有销售和购买的细节是什么？

SQL: SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases
问题: 什么是在任何交易中不使用的批次的细节？

SQL: SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id  =  T2.lot_id
问题: 总共有多少家酒店？

SQL: SELECT count(*) FROM HOTELS
问题: 找出酒店的总数。

SQL: SELECT count(*) FROM HOTELS
问题: 饭店的价格范围是多少？

SQL: SELECT price_range FROM HOTELS
问题: 告诉我所有旅馆的价格范围。

SQL: SELECT price_range FROM HOTELS
问题: 显示所有不同的位置名称。

SQL: SELECT DISTINCT Location_Name FROM LOCATIONS
问题: 什么是不同的地名？

SQL: SELECT DISTINCT Location_Name FROM LOCATIONS
问题: 显示所有员工的姓名和细节。

SQL: SELECT Name ,  Other_Details FROM Staff
问题: 每个员工的姓名和详细情况是什么？

SQL: SELECT Name ,  Other_Details FROM Staff
问题: 显示所有访问者的详细信息。

SQL: SELECT Tourist_Details FROM VISITORS
问题: 每个访问者的详细情况是什么？

SQL: SELECT Tourist_Details FROM VISITORS
问题: 显示“5”星级酒店的价格范围。

SQL: SELECT price_range FROM HOTELS WHERE star_rating_code  =  "5"
问题: “5”星级酒店的价格范围是多少？

SQL: SELECT price_range FROM HOTELS WHERE star_rating_code  =  "5"
问题: 显示具有“5”星级评级和允许宠物的酒店的平均价格范围。

SQL: SELECT avg(price_range) FROM HOTELS WHERE star_rating_code  =  "5" AND pets_allowed_yn  =  1
问题: “5”星级酒店允许宠物的平均价格范围是多少？

SQL: SELECT avg(price_range) FROM HOTELS WHERE star_rating_code  =  "5" AND pets_allowed_yn  =  1
问题: “国家艺术馆”地址是什么？

SQL: SELECT Address FROM LOCATIONS WHERE Location_Name  =  "国家艺术馆"
问题: 找出名为“国家艺术馆”的地址。

SQL: SELECT Address FROM LOCATIONS WHERE Location_Name  =  "国家艺术馆"
问题: “国家艺术馆”的具体位置是什么？

SQL: SELECT Other_Details FROM LOCATIONS WHERE Location_Name  =  "国家艺术馆"
问题: 返回名为“国家艺术馆”的详细位置。

SQL: SELECT Other_Details FROM LOCATIONS WHERE Location_Name  =  "国家艺术馆"
问题: 哪个位置的名字包含“大厦”这个词？

SQL: SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%大厦%"
问题: 找出所有名字包含“大厦”的地方。

SQL: SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%大厦%"
问题: 有多少个不同的名字与所有的照片相关？

SQL: SELECT count(DISTINCT Name) FROM PHOTOS
问题: 计算与照片相关的不同名称的数量。

SQL: SELECT count(DISTINCT Name) FROM PHOTOS
问题: 不同的访问日期是什么？

SQL: SELECT DISTINCT Visit_Date FROM VISITS
问题: 找出所有不同的访问日期。

SQL: SELECT DISTINCT Visit_Date FROM VISITS
问题: “公共汽车”可以访问的旅游景点名称是什么？

SQL: SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "公共汽车"
问题: 我们乘“公共汽车”能到哪些旅游景点？告诉我景点的名字。

SQL: SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "公共汽车"
问题: “公共汽车”或“步行”可到达的旅游景点的名称和开放时间是什么？

SQL: SELECT Name ,  Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "公共汽车" OR How_to_Get_There  =  "步行"
问题: 查找我们乘“公共汽车”或“步行”到达的旅游景点的名称和开放时间。

SQL: SELECT Name ,  Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "公共汽车" OR How_to_Get_There  =  "步行"
问题: 价格超过10000的酒店星级评级描述是什么？

SQL: SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code  =  T2.star_rating_code WHERE T1.price_range  >  10000
问题: 给我费用超过10000的星级酒店的描述。

SQL: SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code  =  T2.star_rating_code WHERE T1.price_range  >  10000
问题: 博物馆的细节和开放时间是什么？

SQL: SELECT T1.Museum_Details ,  T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID  =  T2.Tourist_Attraction_ID
问题: 给我每个博物馆的详细时间和开放时间。

SQL: SELECT T1.Museum_Details ,  T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID  =  T2.Tourist_Attraction_ID
问题: 与照片“游戏1”相关的旅游景点叫什么名字？

SQL: SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  "游戏1"
问题: 哪一个旅游景点与照片“游戏1”有关？返回它的名字。

SQL: SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  "游戏1"
问题: 在旅游景点“电影城”拍的照片的名称和描述是什么？

SQL: SELECT T1.Name ,  T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "电影城"
问题: 找出在旅游景点“电影城”拍摄的照片的名称和描述。

SQL: SELECT T1.Name ,  T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "电影城"
问题: 去皇家旅游景点的细节和到达交通方式是什么？

SQL: SELECT T1.Royal_Family_Details ,  T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID  =  T2.Tourist_Attraction_ID
问题: 哪些旅游景点与皇室有关？告诉我他们的细节以及我们怎样才能到达那里。

SQL: SELECT T1.Royal_Family_Details ,  T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID  =  T2.Tourist_Attraction_ID
问题: 可以用“步行”访问的细节是什么？

SQL: SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "步行"
问题: 找出“步行”可以到达的商店的细节。

SQL: SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "步行"
问题: 负责这个名为“故宫博物院”的景点的工作人员叫什么名字？

SQL: SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "故宫博物院"
问题: 请告诉我负责这个名字叫“故宫博物院”的景点的工作人员的名字。

SQL: SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "故宫博物院"
问题: 可以通过“步行”或“公共汽车”访问的市场的细节是什么？

SQL: SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "步行" OR  T2.How_to_Get_There  =  "公共汽车"
问题: 找出所有可以“步行”或“公共汽车”访问的市场的细节。

SQL: SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "步行" OR  T2.How_to_Get_There  =  "公共汽车"
问题: 访问者细节是“维华”的访问日期和访问者细节是什么？

SQL: SELECT T2.Visit_Date ,  T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID  =  T2.Tourist_ID WHERE T1.Tourist_Details  =  "维华"
问题: 找出访问日期和访客细节是“维华”的游客

SQL: SELECT T2.Visit_Date ,  T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID  =  T2.Tourist_ID WHERE T1.Tourist_Details  =  "维华"
问题: 有哪些旅游景点是访客细节为“维华”参观的？

SQL: SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID  =  T3.Tourist_ID WHERE T3.Tourist_Details  =  "维华"
问题: 展示细节是“维华”的访客参观的景点。

SQL: SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID  =  T3.Tourist_ID WHERE T3.Tourist_Details  =  "维华"
问题: 名字是“维华”或“安然”的游客的参观的景点名称和参观日期是什么？

SQL: SELECT T1.Name ,  T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  "维华" OR T2.Tourist_Details  =  "安然"
问题: 对于每个旅游景点，返回其名称和名字是“维华”或“安然”的游客的参观的日期。

SQL: SELECT T1.Name ,  T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  "维华" OR T2.Tourist_Details  =  "安然"
问题: 显示每个星级酒店的平均价格。

SQL: SELECT star_rating_code ,  avg(price_range) FROM HOTELS GROUP BY star_rating_code
问题: 每个星级酒店的平均价格范围是多少？

SQL: SELECT star_rating_code ,  avg(price_range) FROM HOTELS GROUP BY star_rating_code
问题: 显示不同的宠物政策的酒店的平均价格。

SQL: SELECT pets_allowed_yn ,  avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn
问题: 按他们的宠物政策分组的旅馆的平均价格是多少？

SQL: SELECT pets_allowed_yn ,  avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn
问题: 价格从低到高进行排序显示每个酒店的ID和星级。

SQL: SELECT hotel_id ,  star_rating_code FROM HOTELS ORDER BY price_range ASC
问题: 找出每个酒店的ID和星级评定，并按价格递增顺序进行排序。

SQL: SELECT hotel_id ,  star_rating_code FROM HOTELS ORDER BY price_range ASC
问题: 展示最贵的3个酒店的细节。

SQL: SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3
问题: 三家最贵的酒店有什么细节？

SQL: SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3
问题: 显示3家最便宜的酒店的细节和星级。

SQL: SELECT other_hotel_details ,  star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3
问题: 三家价格范围最低的旅馆的细节和星级标准是什么？

SQL: SELECT other_hotel_details ,  star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3
问题: 展示大多数人选择旅游景点的交通方式。

SQL: SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1
问题: 去旅游景点最常用哪种交通方式？

SQL: SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示最多数旅游景点所属的景点类型的描述和代码。

SQL: SELECT T1.Attraction_Type_Description ,  T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
问题: 最多数旅游景点属于哪个景点类型？告诉我它的景点类型描述和代码。

SQL: SELECT T1.Attraction_Type_Description ,  T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示不同的到达景点的方法和可以以相应方式访问的景点的数量。

SQL: SELECT How_to_Get_There ,  COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
问题: 列出所有可能到达景点的方法，以及这些方法可访问的景点数量。

SQL: SELECT How_to_Get_There ,  COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
问题: 显示不同旅游景点的名称、ID和相应的访问次数。

SQL: SELECT T1.Name ,  T2.Tourist_Attraction_ID ,   COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID
问题: 每个旅游景点的名称、ID和相应的参观次数是多少?

SQL: SELECT T1.Name ,  T2.Tourist_Attraction_ID ,   COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID
问题: 显示至少两次参观的旅游景点的名称和ID。

SQL: SELECT T1.Name ,  T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  2
问题: 哪两个旅游景点至少要游览两次？给我他们的名字和ID。

SQL: SELECT T1.Name ,  T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  >=  2
问题: 显示最多游览一次的旅游景点的名称和ID。

SQL: SELECT T1.Name ,  T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*)  <=  1