jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 按姓氏排序的所有人的名字、中间名和姓氏是什么？

SQL: SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name
问题: 列出所有类型的表单。

SQL: SELECT DISTINCT form_type_code FROM forms
问题: 有什么不同形式的表单？

SQL: SELECT DISTINCT form_type_code FROM forms
问题: 找出最流行的组织形式的名称。

SQL: SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id  =  t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1
问题: 最常见组织形式的名称是什么？

SQL: SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id  =  t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1
问题: 通过电子邮件“enrico09@example.com”查找对方的支付方式和组织电话。

SQL: SELECT payment_method_code ,  party_phone FROM parties WHERE party_email  =  "enrico09@example.com"
问题: 电子邮件“enrico09@example.com”的支付方式码和组织电话是什么？

SQL: SELECT payment_method_code ,  party_phone FROM parties WHERE party_email  =  "enrico09@example.com"
问题: 找处最流行的组织形式的组织电子邮件。

SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)
问题: 使用最常用的组织形式的聚会电子邮件是什么？

SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)
问题: 列出根据建立日期顺序的所有组织名称。

SQL: SELECT organization_name FROM organizations ORDER BY date_formed ASC
问题: 根据建立日期升序的所有组织名称是什么？

SQL: SELECT organization_name FROM organizations ORDER BY date_formed ASC
问题: 找出最年轻的组织的名字。

SQL: SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1
问题: 最近成立的组织的名称是什么？

SQL: SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1
问题: 找出“民进党”组织最新联系人的姓氏。

SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "民进党" ORDER BY t2.date_contact_to DESC LIMIT 1
问题: “民进党”组织最新联系人的姓氏是什么？

SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "民进党" ORDER BY t2.date_contact_to DESC LIMIT 1
问题: 找出该组织中具有最高的UK Vat号码的第一联系人的姓氏。

SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1
问题: 该组织中具有最高的UK Vat号码的第一联系人的姓氏是什么？

SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1
问题: 那里有多少服务？

SQL: SELECT count(*) FROM services
问题: 统计服务的数量。

SQL: SELECT count(*) FROM services
问题: 找出从未使用过的服务的名称。

SQL: SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id
问题: 那些从未使用过的服务的名称是什么？

SQL: SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id
问题: 找出所有城市和省的名字。

SQL: SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
问题: 所有的城市和省的名字是什么？

SQL: SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
问题: “河北”省有多少个城市？

SQL: SELECT count(*) FROM addresses WHERE state_province_county  =  "河北"
问题: 统计“河北”省的城市数量。

SQL: SELECT count(*) FROM addresses WHERE state_province_county  =  "河北"
问题: 找出超过3方使用的支付方法代码。

SQL: SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3
问题: 超过3方使用的支付方法代码是什么？

SQL: SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3
问题: 查找其名称包含“组织”的组织名称。

SQL: SELECT organization_name FROM organizations WHERE organization_name LIKE "%组织%"
问题: 包含“组织”一词的组织名称是什么？

SQL: SELECT organization_name FROM organizations WHERE organization_name LIKE "%组织%"
问题: 组织使用了多少种不同的支付方式？

SQL: SELECT count(DISTINCT payment_method_code) FROM parties
问题: 计算组织使用的不同支付方法代码的数量。

SQL: SELECT count(DISTINCT payment_method_code) FROM parties
问题: 使用服务次数最多的组织的电子邮件是哪一个？

SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1
问题: 返回使用服务次数最多的组织的电子邮件。

SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1
问题: 地址“石龙山街18号”可能在哪个省？

SQL: SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%石龙山街18号%"
问题: 给出地址“石龙山街18号”的所在省。

SQL: SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%石龙山街18号%"
问题: 联系人数最多的组织的名称是什么？

SQL: SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1
问题: 返回联系人数最多的组织的名称。

SQL: SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1
问题: 找出已经与组织进行个人联系的联系人的姓氏。

SQL: SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id  =  t2.individual_id
问题: 进行个人联系的联系人的姓氏是什么？

SQL: SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id  =  t2.individual_id
问题: 那儿有多少司机？

SQL: SELECT count(*) FROM driver
问题: 显示所有司机的姓名、家乡和年龄。

SQL: SELECT name ,  home_city ,  age FROM driver
问题: 显示组织和每个组织的司机数量。

SQL: SELECT party ,  count(*) FROM driver GROUP BY party
问题: 按年龄递减顺序显示驾驶员姓名。

SQL: SELECT name FROM driver ORDER BY age DESC
问题: 展示所有不同的家乡城市。

SQL: SELECT DISTINCT home_city FROM driver
问题: 显示有最多数量司机的家乡城市。

SQL: SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1
问题: 显示40岁以上的来自“苏州”的司机的组织。

SQL: SELECT party FROM driver WHERE home_city  =  "苏州" AND age  >  40
问题: 显示至少有两个40岁以上的司机的家乡城市。

SQL: SELECT home_city FROM driver WHERE age  >  40 GROUP BY home_city HAVING count(*)  >=  2
问题: 显示除了超过40岁以上的司机的所有家乡城市。

SQL: SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age  >  40
问题: 显示没有校车的司机名字。

SQL: SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)
问题: 展示有两所学校的学校类型。

SQL: SELECT TYPE FROM school GROUP BY TYPE HAVING count(*)  =  2
问题: 显示所有校车的学校名称和司机姓名。

SQL: SELECT T2.school ,  T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN driver AS T3 ON T1.driver_id  =  T3.driver_id
问题: 在校车上工作的最大、最小和平均年是多少？

SQL: SELECT max(years_working) ,  min(years_working) ,  avg(years_working) FROM school_bus
问题: 显示没有校车的学校名称和学校类型。

SQL: SELECT school ,  TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)
问题: 显示学校的类型和每种类型的公共汽车数量。

SQL: SELECT T2.type ,  count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.type
问题: 有多少司机来自“苏州”或年龄是40岁以下？

SQL: SELECT count(*) FROM driver WHERE home_city  =  "苏州" OR age  <  40
问题: 列出“苏州”且40岁以下司机的名字。

SQL: SELECT name FROM driver WHERE home_city  =  "苏州" AND age  <  40
问题: 找出驾驶公共汽车的工作历史最悠久的司机的名字。

SQL: SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id  =  t2.driver_id ORDER BY years_working DESC LIMIT 1
问题: 有多少航班的速度大于200？

SQL: SELECT count(*) FROM flight WHERE velocity  >  200
问题: 列出所有按高度排序的航班的车辆航班号、日期和飞行员。

SQL: SELECT vehicle_flight_number ,  date ,  pilot FROM flight ORDER BY altitude ASC
问题: 按名称的字母顺序列出ID、国家、城市和机场的名称。

SQL: SELECT id ,  country ,  city ,  name FROM airport ORDER BY name
问题: 最大的集团股权的公司是什么？

SQL: SELECT max(group_equity_shareholding) FROM operate_company
问题: 叫“刘明”的飞行员的速度是多少？

SQL: SELECT avg(velocity) FROM flight WHERE pilot  =  "刘明"
问题: 曾经经营过航班的公司的名称和类型是什么？

SQL: SELECT T1.name ,  T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id
问题: 不在“冰岛”这个国家的机场名称是什么？

SQL: SELECT name FROM airport WHERE country != "冰岛"
问题: 运营速度小于200的公司有哪些独特的类型？

SQL: SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T2.velocity  <  200
问题: 经营多个航班的公司的ID和名称是什么？

SQL: SELECT T1.id ,  T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id GROUP BY T1.id HAVING count(*)  >  1
问题: 航班最多的机场的ID、名称和IATA代码是什么？

SQL: SELECT T1.id ,  T1.name ,  T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1
问题: 在“中国”或“宝安机场”飞行的不同的飞行员的名字是什么？

SQL: SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id WHERE T1.country  =  "中国" OR T1.name  =  "宝安机场"
问题: 什么是最常见的公司类型，每种有多少？

SQL: SELECT TYPE ,  count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
问题: 有多少机场没有飞行员“杨雄”驾驶的飞机？

SQL: SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot  =  "杨雄" );
问题: 列出主要提供“货物”服务的公司以及从事“餐饮服务”活动的公司的飞行员的名字。

SQL: SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  "货物" INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  "餐饮服务"
问题: 哪些机场名称包含“国际”一词？

SQL: SELECT name FROM airport WHERE name LIKE "%国际%"
问题: 每个机场有多少家公司经营航空公司？

SQL: SELECT T3.id ,  count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id JOIN airport AS T3 ON T2.airport_id  =  T3.id GROUP BY T3.id
问题: 每个国家有多少个机场？

SQL: SELECT count(*) ,  country FROM airport GROUP BY country
问题: 哪些国家拥有超过2个机场？

SQL: SELECT country FROM airport GROUP BY country HAVING count(*)  >  2
问题: 哪个飞行员负责最多的航班？

SQL: SELECT pilot FROM flight GROUP BY pilot ORDER BY count(*) DESC LIMIT 1
问题: 计算帐号的数量。

SQL: SELECT count(*) FROM Accounts
问题: 显示所有帐户ID和帐户详细信息。

SQL: SELECT account_id ,  account_details FROM Accounts
问题: 所有账户的ID和详细信息是什么？

SQL: SELECT account_id ,  account_details FROM Accounts
问题: 我们有多少结算单？

SQL: SELECT count(*) FROM Statements
问题: 计算结算单的数量。

SQL: SELECT count(*) FROM Statements
问题: 列出所有的结算单ID和结算单细节。

SQL: SELECT STATEMENT_ID ,  statement_details FROM Statements
问题: 所有结算单的ID和细节是什么？

SQL: SELECT STATEMENT_ID ,  statement_details FROM Statements
问题: 显示结算单ID、结算单详细信息、帐户详细信息。

SQL: SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id
问题: 对于所有帐户的结算单ID、结算单详细信息、帐户详细信息是什么？

SQL: SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id
问题: 显示所有结算单的ID和每个结算单的帐户数。

SQL: SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID
问题: 帐户上有哪些不同的结算单的ID和每个结算单的帐户数是什么？

SQL: SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID
问题: 显示最多数量的帐户的结算单 ID 和结算单的详细信息。

SQL: SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1
问题: 最多数量的帐户的结算单 ID 和结算单的详细信息是什么？

SQL: SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1
问题: 显示文件的数量。

SQL: SELECT count(*) FROM Documents
问题: 计算文件数量。

SQL: SELECT count(*) FROM Documents
问题: 列出具有名称是“齐军的简历”或名称是“御书”的文档的文档类型代码、文档名称和文档描述。

SQL: SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  "齐军的简历" OR document_name  =  "御书"
问题: 名称是“齐军的简历”或名称是“御书”的文档的文档类型代码、文档名称和文档描述是什么？

SQL: SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  "齐军的简历" OR document_name  =  "御书"
问题: 显示所有文档的ID和名称。

SQL: SELECT document_id ,  document_name FROM Documents
问题: 每个文件的ID和名称是什么？

SQL: SELECT document_id ,  document_name FROM Documents
问题: 查找文档类型代码是“BK”的所有文档的名称和ID。

SQL: SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  "BK"
问题: 文档类型代码是“BK”的所有文档的名称和ID是什么？

SQL: SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  "BK"
问题: 对于每个产品ID，文档类型代码为“BK”的有多少文档？

SQL: SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  "BK" GROUP BY project_id
问题: 计算对于每个产品ID，文档类型代码为“BK”的文档的数量。

SQL: SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  "BK" GROUP BY project_id
问题: 显示包含“图数据库项目”的细节的所有在项目文件的文件名称和文件日期。

SQL: SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  "图数据库项目"
问题: 包含“图数据库项目”的细节的所有在项目文件的文件名称和文件日期是什么？

SQL: SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  "图数据库项目"
问题: 显示项目ID和每个项目中的文档数量。

SQL: SELECT project_id ,  count(*) FROM Documents GROUP BY project_id
问题: 每个项目ID对应多少文件？

SQL: SELECT project_id ,  count(*) FROM Documents GROUP BY project_id
问题: 有最少文档的项目的ID是什么？

SQL: SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
问题: 返回具有最少文档的项目ID。

SQL: SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
问题: 显示至少2个文档的项目ID。

SQL: SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2
问题: 有2个或多个相应文档的项目ID是什么？

SQL: SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2
问题: 列出文档类型代码和每个代码中的文档数量。

SQL: SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code
问题: 每种类型有多少份文件？

SQL: SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code
问题: 有最多数量文件的文档类型代码是什么？

SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
问题: 返回最常见的文档类型的代码。

SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
问题: 显示少于3个文档的文档类型代码。

SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3
问题: 少于3个文档的文档类型代码是什么？

SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3
问题: 显示文档细节和有“个人计划”细节描述的对应的文档名称。

SQL: SELECT T1.statement_details ,  T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id  =  T2.document_id WHERE T1.statement_details  =  "个人计划"
问题: 详细信息是“私有项目”的语句的细节是什么，相应的文档的名称是什么？

SQL: SELECT T1.statement_details ,  T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id  =  T2.document_id WHERE T1.statement_details  =  "私有项目"
问题: 显示所有文档类型代码、文档类型名称、文档类型描述。

SQL: SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types
问题: 不同文档类型的代码、名称和描述是什么？

SQL: SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types
问题: 文档类型命名为“电影”的文档类型描述是什么？

SQL: SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  "电影"
问题: 返回文档类型名称是“电影”的描述。

SQL: SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  "电影"
问题: 每个文档的类型名称、类型说明和创建日期是什么？

SQL: SELECT T1.document_type_name ,  T1.document_type_description ,  T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code  =  T2.document_type_code
问题: 返回每个文档的类型名称、类型说明和创建日期。

SQL: SELECT T1.document_type_name ,  T1.document_type_description ,  T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code  =  T2.document_type_code
问题: 显示项目的数量。

SQL: SELECT count(*) FROM Projects
问题: 有多少项目？

SQL: SELECT count(*) FROM Projects
问题: 列出所有项目的ID和详细信息。

SQL: SELECT project_id ,  project_details FROM Projects
问题: 每个项目的ID和细节是什么？

SQL: SELECT project_id ,  project_details FROM Projects
问题: 项目至少有两个文档的项目ID和详细信息是什么？

SQL: SELECT T1.project_id ,  T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id HAVING count(*)  >  2
问题: 返回至少有两个文档的项目ID和详细信息。

SQL: SELECT T1.project_id ,  T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id HAVING count(*)  >  2
问题: 包含文件“御书”的项目的细节是什么？

SQL: SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  "御书"
问题: 给出包含文件名是“御书”的项目细节。

SQL: SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  "御书"
问题: 我们有多少种预算类型？

SQL: SELECT count(*) FROM Ref_budget_codes
问题: 计算预算代码的数量。

SQL: SELECT count(*) FROM Ref_budget_codes
问题: 列出所有预算类型代码和说明。

SQL: SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes
问题: 每个预算类型的类型代码和描述是什么？

SQL: SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes
问题: 代码是“org”的预算类型描述是什么？

SQL: SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  "org"
问题: 返回具有代码“org”的预算类型的说明。

SQL: SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  "org"
问题: 有多少文件有费用？

SQL: SELECT count(*) FROM Documents_with_expenses
问题: 计算有费用的文件数量。

SQL: SELECT count(*) FROM Documents_with_expenses
问题: 预算类型代码是“SF”的文档ID是什么？

SQL: SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  "SF"
问题: 给出预算类型代码是“SF”的文档ID。

SQL: SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  "SF"
问题: 显示预算类型代码和描述以及相应的文档ID。

SQL: SELECT T2.budget_type_code ,  T2.budget_type_description ,  T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code  =  T2.budget_type_code
问题: 返回带有费用的文件的预算类型代码、预算类型说明和文件ID。

SQL: SELECT T2.budget_type_code ,  T2.budget_type_description ,  T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code  =  T2.budget_type_code
问题: 显示预算描述类型为“政府”的所有文件的ID。

SQL: SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code  =  T2.Budget_Type_code WHERE T2.budget_type_Description  =  "政府"
问题: 给出预算描述类型为“政府”的所有文件的ID。

SQL: SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code  =  T2.Budget_Type_code WHERE T2.budget_type_Description  =  "政府"
问题: 显示每种预算类型的预算类型编码和文件数量。

SQL: SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code
问题: 什么是不同的预算类型代码，以及每种有多少文件？

SQL: SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code
问题: 有最多文件的预算类型代码是什么。

SQL: SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
问题: 给出具有费用的文档中最常见的预算类型代码。

SQL: SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
问题: 没有费用预算的文件的ID是什么？

SQL: SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
问题: 返回没有费用的文档的ID。

SQL: SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
问题: 显示在没有费用预算的情况下类型是“CV”中的所有文档ID。

SQL: SELECT document_id FROM Documents WHERE document_type_code  =  "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
问题: 在没有费用预算的情况下类型为“CV”中的所有文档ID是什么？

SQL: SELECT document_id FROM Documents WHERE document_type_code  =  "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
问题: 带有文字“年”的任何费用预算的文件的ID是什么？

SQL: SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T1.document_name LIKE "%年%"
问题: 给出带有文字“年”的任何费用预算的文件的ID。

SQL: SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T1.document_name LIKE "%年%"
问题: 有多少文件没有任何费用？

SQL: SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
问题: 计算没有费用的文件的数量。

SQL: SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
问题: 既有“GV”型又有“SF”型费用的文档日期是什么？

SQL: SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  "GV" INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  "SF"
问题: 给出预算类型代码既是“GV”又是“SF”的文档的创建日期。

SQL: SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  "GV" INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id  =  T2.document_id WHERE T2.budget_type_code  =  "SF"
问题: 什么是具有最大值或包含字符“5”的帐户详细信息是什么？

SQL: SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
问题: 返回具有最大值或包含字符“5”的帐户详细信息。

SQL: SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
问题: 找出科学家总数。

SQL: SELECT count(*) FROM scientists
问题: 那边有多少科学家？

SQL: SELECT count(*) FROM scientists
问题: 找出所有项目的总时间。

SQL: SELECT sum(hours) FROM projects
问题: 所有项目的总时间是多少？

SQL: SELECT sum(hours) FROM projects
问题: 有多少不同的科学家被指派给任何项目？

SQL: SELECT count(DISTINCT scientist) FROM assignedto
问题: 统计分配给任何项目的不同科学家的数量。

SQL: SELECT count(DISTINCT scientist) FROM assignedto
问题: 查找不同项目的数量。

SQL: SELECT count(DISTINCT name) FROM projects
问题: 有多少个不同的项目？

SQL: SELECT count(DISTINCT name) FROM projects
问题: 找出所有项目的平均小时数。

SQL: SELECT avg(hours) FROM projects
问题: 所有项目的平均小时数是多少？

SQL: SELECT avg(hours) FROM projects
问题: 找出项目持续时间最长的名称。

SQL: SELECT name FROM projects ORDER BY hours DESC LIMIT 1
问题: 最长的项目名称是什么？

SQL: SELECT name FROM projects ORDER BY hours DESC LIMIT 1
问题: 列出比所有项目的平均工作时间更长的所有项目的名称。

SQL: SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)
问题: 比所有项目的平均工作时间更长的项目的名称是什么？

SQL: SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)
问题: 找出拥有最多科学家的项目的名称和时间。

SQL: SELECT T1.name ,  T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
问题: 拥有最多科学家的项目的名称和时间是多少？

SQL: SELECT T1.name ,  T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
问题: 找出被指派的科学家中名字包含“曹”的项目的名字.

SQL: SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name LIKE "%曹%"
问题: 被指派的科学家中名字包含“曹”的项目的名字是什么？

SQL: SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name LIKE "%曹%"
问题: 查找科学家“李文军”或“张智名”被分配到的项目的总时间。

SQL: SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name  =  "李文军" OR T3.name  =  "张智名"
问题: 以科学家“李文军”或“张智名”被分配到的项目的时间合集是什么？

SQL: SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T3.name  =  "李文军" OR T3.name  =  "张智名"
问题: 查找需要100到300小时工作的项目名称。

SQL: SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
问题: 需要100到300小时的项目名称是什么？

SQL: SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
问题: 找一个同时从事名为“东电西输”的项目和一个名为“南水北调”的项目的科学家的名字。

SQL: SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.name  =  "东电西输" INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project  =  T2.code JOIN scientists AS T3 ON T1.scientist  =  T3.SSN WHERE T2.name  =  "南水北调"