jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE school_bus (school_id VARCHAR), CREATE TABLE school (type VARCHAR, school_id VARCHAR)
user: 显示学校的类型和每种类型的公共汽车数量。

assistant: SELECT T2.type ,  count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T2.type
Schema: CREATE TABLE driver (age INTEGER, home_city VARCHAR)
user: 有多少司机来自“苏州”或年龄是40岁以下？

assistant: SELECT count(*) FROM driver WHERE home_city  =  "苏州" OR age  <  40
Schema: CREATE TABLE driver (age INTEGER, name VARCHAR, home_city VARCHAR)
user: 列出“苏州”且40岁以下司机的名字。

assistant: SELECT name FROM driver WHERE home_city  =  "苏州" AND age  <  40
Schema: CREATE TABLE driver (name VARCHAR, driver_id VARCHAR), CREATE TABLE school_bus (driver_id VARCHAR)
user: 找出驾驶公共汽车的工作历史最悠久的司机的名字。

assistant: 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
Schema: CREATE TABLE flight (velocity INTEGER)
user: 有多少航班的速度大于200？

assistant: SELECT count(*) FROM flight WHERE velocity  >  200
Schema: CREATE TABLE flight (altitude VARCHAR, pilot VARCHAR, date VARCHAR, vehicle_flight_number VARCHAR)
user: 列出所有按高度排序的航班的车辆航班号、日期和飞行员。

assistant: SELECT vehicle_flight_number ,  date ,  pilot FROM flight ORDER BY altitude ASC
Schema: CREATE TABLE airport (country VARCHAR, city VARCHAR, id VARCHAR, name VARCHAR)
user: 按名称的字母顺序列出ID、国家、城市和机场的名称。

assistant: SELECT id ,  country ,  city ,  name FROM airport ORDER BY name
Schema: CREATE TABLE operate_company (group_equity_shareholding INTEGER)
user: 最大的集团股权的公司是什么？

assistant: SELECT max(group_equity_shareholding) FROM operate_company
Schema: CREATE TABLE flight (pilot VARCHAR, velocity INTEGER)
user: 叫“刘明”的飞行员的速度是多少？

assistant: SELECT avg(velocity) FROM flight WHERE pilot  =  "刘明"
Schema: CREATE TABLE operate_company (type VARCHAR, id VARCHAR, name VARCHAR), CREATE TABLE flight (Id VARCHAR)
user: 曾经经营过航班的公司的名称和类型是什么？

assistant: SELECT T1.name ,  T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id
Schema: CREATE TABLE airport (country VARCHAR, name VARCHAR)
user: 不在“冰岛”这个国家的机场名称是什么？

assistant: SELECT name FROM airport WHERE country != "冰岛"
Schema: CREATE TABLE operate_company (type VARCHAR, id VARCHAR), CREATE TABLE flight (Id VARCHAR)
user: 运营速度小于200的公司有哪些独特的类型？

assistant: SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T2.velocity  <  200
Schema: CREATE TABLE operate_company (name VARCHAR, id VARCHAR), CREATE TABLE flight (Id VARCHAR)
user: 经营多个航班的公司的ID和名称是什么？

assistant: 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
Schema: CREATE TABLE airport (name VARCHAR, id VARCHAR, IATA VARCHAR), CREATE TABLE flight (airport_id VARCHAR, id VARCHAR)
user: 航班最多的机场的ID、名称和IATA代码是什么？

assistant: 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
Schema: CREATE TABLE airport (country VARCHAR, name VARCHAR, id VARCHAR), CREATE TABLE flight (airport_id VARCHAR, pilot VARCHAR)
user: 在“中国”或“宝安机场”飞行的不同的飞行员的名字是什么？

assistant: SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id WHERE T1.country  =  "中国" OR T1.name  =  "宝安机场"
Schema: CREATE TABLE operate_company (TYPE VARCHAR)
user: 什么是最常见的公司类型，每种有多少？

assistant: SELECT TYPE ,  count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE airport (airport_id VARCHAR, pilot VARCHAR, id VARCHAR), CREATE TABLE flight (airport_id VARCHAR, pilot VARCHAR, id VARCHAR)
user: 有多少机场没有飞行员“杨雄”驾驶的飞机？

assistant: SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot  =  "杨雄" );
Schema: CREATE TABLE operate_company (principal_activities VARCHAR, id VARCHAR), CREATE TABLE flight (Id VARCHAR)
user: 列出主要提供“货物”服务的公司以及从事“餐饮服务”活动的公司的飞行员的名字。

assistant: 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  =  "餐饮服务"
Schema: CREATE TABLE airport (name VARCHAR)
user: 哪些机场名称包含“国际”一词？

assistant: SELECT name FROM airport WHERE name LIKE "%国际%"
Schema: CREATE TABLE operate_company (id VARCHAR), CREATE TABLE flight (Id VARCHAR), CREATE TABLE airport (id VARCHAR)
user: 每个机场有多少家公司经营航空公司？

assistant: 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
Schema: CREATE TABLE airport (country VARCHAR)
user: 每个国家有多少个机场？

assistant: SELECT count(*) ,  country FROM airport GROUP BY country
Schema: CREATE TABLE airport (country VARCHAR)
user: 哪些国家拥有超过2个机场？

assistant: SELECT country FROM airport GROUP BY country HAVING count(*)  >  2
Schema: CREATE TABLE flight (pilot VARCHAR)
user: 哪个飞行员负责最多的航班？

assistant: SELECT pilot FROM flight GROUP BY pilot ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Accounts (Id VARCHAR)
user: 计算帐号的数量。

assistant: SELECT count(*) FROM Accounts
Schema: CREATE TABLE Accounts (account_details VARCHAR, account_id VARCHAR)
user: 显示所有帐户ID和帐户详细信息。

assistant: SELECT account_id ,  account_details FROM Accounts
Schema: CREATE TABLE Accounts (account_details VARCHAR, account_id VARCHAR)
user: 所有账户的ID和详细信息是什么？

assistant: SELECT account_id ,  account_details FROM Accounts
Schema: CREATE TABLE Statements (Id VARCHAR)
user: 我们有多少结算单？

assistant: SELECT count(*) FROM Statements
Schema: CREATE TABLE Statements (Id VARCHAR)
user: 计算结算单的数量。

assistant: SELECT count(*) FROM Statements
Schema: CREATE TABLE Statements (STATEMENT_ID VARCHAR, statement_details VARCHAR)
user: 列出所有的结算单ID和结算单细节。

assistant: SELECT STATEMENT_ID ,  statement_details FROM Statements
Schema: CREATE TABLE Statements (STATEMENT_ID VARCHAR, statement_details VARCHAR)
user: 所有结算单的ID和细节是什么？

assistant: SELECT STATEMENT_ID ,  statement_details FROM Statements
Schema: CREATE TABLE Accounts (account_details VARCHAR, statement_id VARCHAR), CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
user: 显示结算单ID、结算单详细信息、帐户详细信息。

assistant: 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
Schema: CREATE TABLE Accounts (account_details VARCHAR, statement_id VARCHAR), CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
user: 对于所有帐户的结算单ID、结算单详细信息、帐户详细信息是什么？

assistant: 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
Schema: CREATE TABLE Accounts (STATEMENT_ID VARCHAR)
user: 显示所有结算单的ID和每个结算单的帐户数。

assistant: SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID
Schema: CREATE TABLE Accounts (STATEMENT_ID VARCHAR)
user: 帐户上有哪些不同的结算单的ID和每个结算单的帐户数是什么？

assistant: SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID
Schema: CREATE TABLE Accounts (statement_id VARCHAR), CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
user: 显示最多数量的帐户的结算单 ID 和结算单的详细信息。

assistant: 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
Schema: CREATE TABLE Accounts (statement_id VARCHAR), CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)
user: 最多数量的帐户的结算单 ID 和结算单的详细信息是什么？

assistant: 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
Schema: CREATE TABLE Documents (Id VARCHAR)
user: 显示文件的数量。

assistant: SELECT count(*) FROM Documents
Schema: CREATE TABLE Documents (Id VARCHAR)
user: 计算文件数量。

assistant: SELECT count(*) FROM Documents
Schema: CREATE TABLE Documents (document_name VARCHAR, document_description VARCHAR, document_type_code VARCHAR)
user: 列出具有名称是“齐军的简历”或名称是“御书”的文档的文档类型代码、文档名称和文档描述。

assistant: SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  "齐军的简历" OR document_name  =  "御书"
Schema: CREATE TABLE Documents (document_name VARCHAR, document_description VARCHAR, document_type_code VARCHAR)
user: 名称是“齐军的简历”或名称是“御书”的文档的文档类型代码、文档名称和文档描述是什么？

assistant: SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  "齐军的简历" OR document_name  =  "御书"
Schema: CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)
user: 显示所有文档的ID和名称。

assistant: SELECT document_id ,  document_name FROM Documents
Schema: CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)
user: 每个文件的ID和名称是什么？

assistant: SELECT document_id ,  document_name FROM Documents
Schema: CREATE TABLE Documents (document_name VARCHAR, document_type_code VARCHAR, document_id VARCHAR)
user: 查找文档类型代码是“BK”的所有文档的名称和ID。

assistant: SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  "BK"
Schema: CREATE TABLE Documents (document_name VARCHAR, document_type_code VARCHAR, document_id VARCHAR)
user: 文档类型代码是“BK”的所有文档的名称和ID是什么？

assistant: SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  "BK"
Schema: CREATE TABLE Documents (document_type_code VARCHAR, project_id VARCHAR)
user: 对于每个产品ID，文档类型代码为“BK”的有多少文档？

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

assistant: SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  "BK" GROUP BY project_id
Schema: CREATE TABLE Documents (project_id VARCHAR), CREATE TABLE projects (project_details VARCHAR, project_id VARCHAR)
user: 显示包含“图数据库项目”的细节的所有在项目文件的文件名称和文件日期。

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

assistant: SELECT document_name ,  document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  "图数据库项目"
Schema: CREATE TABLE Documents (project_id VARCHAR)
user: 显示项目ID和每个项目中的文档数量。

assistant: SELECT project_id ,  count(*) FROM Documents GROUP BY project_id
Schema: CREATE TABLE Documents (project_id VARCHAR)
user: 每个项目ID对应多少文件？

assistant: SELECT project_id ,  count(*) FROM Documents GROUP BY project_id
Schema: CREATE TABLE Documents (project_id VARCHAR)
user: 有最少文档的项目的ID是什么？

assistant: SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
Schema: CREATE TABLE Documents (project_id VARCHAR)
user: 返回具有最少文档的项目ID。

assistant: SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
Schema: CREATE TABLE Documents (project_id VARCHAR)
user: 显示至少2个文档的项目ID。

assistant: SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2
Schema: CREATE TABLE Documents (project_id VARCHAR)
user: 有2个或多个相应文档的项目ID是什么？

assistant: SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2
Schema: CREATE TABLE Documents (document_type_code VARCHAR)
user: 列出文档类型代码和每个代码中的文档数量。

assistant: SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code
Schema: CREATE TABLE Documents (document_type_code VARCHAR)
user: 每种类型有多少份文件？

assistant: SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code
Schema: CREATE TABLE Documents (document_type_code VARCHAR)
user: 有最多数量文件的文档类型代码是什么？

assistant: SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Documents (document_type_code VARCHAR)
user: 返回最常见的文档类型的代码。

assistant: SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Documents (document_type_code VARCHAR)
user: 显示少于3个文档的文档类型代码。

assistant: SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3
Schema: CREATE TABLE Documents (document_type_code VARCHAR)
user: 少于3个文档的文档类型代码是什么？

assistant: SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3
Schema: CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR), CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR)
user: 显示文档细节和有“个人计划”细节描述的对应的文档名称。

assistant: 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  =  "个人计划"
Schema: CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR), CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR)
user: 详细信息是“私有项目”的语句的细节是什么，相应的文档的名称是什么？

assistant: 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  =  "私有项目"
Schema: CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_code VARCHAR, document_type_name VARCHAR)
user: 显示所有文档类型代码、文档类型名称、文档类型描述。

assistant: SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types
Schema: CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_code VARCHAR, document_type_name VARCHAR)
user: 不同文档类型的代码、名称和描述是什么？

assistant: SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types
Schema: CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_name VARCHAR)
user: 文档类型命名为“电影”的文档类型描述是什么？

assistant: SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  "电影"
Schema: CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_name VARCHAR)
user: 返回文档类型名称是“电影”的描述。

assistant: SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  "电影"
Schema: CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_code VARCHAR, document_type_name VARCHAR), CREATE TABLE Documents (document_type_code VARCHAR, Document_date VARCHAR)
user: 每个文档的类型名称、类型说明和创建日期是什么？

assistant: 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
Schema: CREATE TABLE Ref_document_types (document_type_description VARCHAR, document_type_code VARCHAR, document_type_name VARCHAR), CREATE TABLE Documents (document_type_code VARCHAR, Document_date VARCHAR)
user: 返回每个文档的类型名称、类型说明和创建日期。

assistant: 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
Schema: CREATE TABLE Projects (Id VARCHAR)
user: 显示项目的数量。

assistant: SELECT count(*) FROM Projects
Schema: CREATE TABLE Projects (Id VARCHAR)
user: 有多少项目？

assistant: SELECT count(*) FROM Projects
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)
user: 列出所有项目的ID和详细信息。

assistant: SELECT project_id ,  project_details FROM Projects
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)
user: 每个项目的ID和细节是什么？

assistant: SELECT project_id ,  project_details FROM Projects
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Documents (project_id VARCHAR)
user: 项目至少有两个文档的项目ID和详细信息是什么？

assistant: 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
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Documents (project_id VARCHAR)
user: 返回至少有两个文档的项目ID和详细信息。

assistant: 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
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Documents (document_name VARCHAR, project_id VARCHAR)
user: 包含文件“御书”的项目的细节是什么？

assistant: SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  "御书"
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Documents (document_name VARCHAR, project_id VARCHAR)
user: 给出包含文件名是“御书”的项目细节。

assistant: SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id  =  T2.project_id WHERE T2.document_name  =  "御书"
Schema: CREATE TABLE Ref_budget_codes (Id VARCHAR)
user: 我们有多少种预算类型？

assistant: SELECT count(*) FROM Ref_budget_codes
Schema: CREATE TABLE Ref_budget_codes (Id VARCHAR)
user: 计算预算代码的数量。

assistant: SELECT count(*) FROM Ref_budget_codes
Schema: CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
user: 列出所有预算类型代码和说明。

assistant: SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes
Schema: CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
user: 每个预算类型的类型代码和描述是什么？

assistant: SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes
Schema: CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
user: 代码是“org”的预算类型描述是什么？

assistant: SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  "org"
Schema: CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
user: 返回具有代码“org”的预算类型的说明。

assistant: SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  "org"
Schema: CREATE TABLE Documents_with_expenses (Id VARCHAR)
user: 有多少文件有费用？

assistant: SELECT count(*) FROM Documents_with_expenses
Schema: CREATE TABLE Documents_with_expenses (Id VARCHAR)
user: 计算有费用的文件数量。

assistant: SELECT count(*) FROM Documents_with_expenses
Schema: CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
user: 预算类型代码是“SF”的文档ID是什么？

assistant: SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  "SF"
Schema: CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
user: 给出预算类型代码是“SF”的文档ID。

assistant: SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  "SF"
Schema: CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR), CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
user: 显示预算类型代码和描述以及相应的文档ID。

assistant: 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
Schema: CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR), CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)
user: 返回带有费用的文件的预算类型代码、预算类型说明和文件ID。

assistant: 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
Schema: CREATE TABLE Documents_with_expenses (document_id VARCHAR, Budget_Type_code VARCHAR), CREATE TABLE Ref_Budget_Codes (budget_type_Description VARCHAR, Budget_Type_code VARCHAR)
user: 显示预算描述类型为“政府”的所有文件的ID。

assistant: 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  =  "政府"
Schema: CREATE TABLE Documents_with_expenses (document_id VARCHAR, Budget_Type_code VARCHAR), CREATE TABLE Ref_Budget_Codes (budget_type_Description VARCHAR, Budget_Type_code VARCHAR)
user: 给出预算描述类型为“政府”的所有文件的ID。

assistant: 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  =  "政府"
Schema: CREATE TABLE Documents_with_expenses (budget_type_code VARCHAR)
user: 显示每种预算类型的预算类型编码和文件数量。

assistant: SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code
Schema: CREATE TABLE Documents_with_expenses (budget_type_code VARCHAR)
user: 什么是不同的预算类型代码，以及每种有多少文件？

assistant: SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code
Schema: CREATE TABLE Documents_with_expenses (budget_type_code VARCHAR)
user: 有最多文件的预算类型代码是什么。

assistant: SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Documents_with_expenses (budget_type_code VARCHAR)
user: 给出具有费用的文档中最常见的预算类型代码。

assistant: SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Documents (document_id VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR)
user: 没有费用预算的文件的ID是什么？

assistant: SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
Schema: CREATE TABLE Documents (document_id VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR)
user: 返回没有费用的文档的ID。

assistant: SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
Schema: CREATE TABLE Documents (document_id VARCHAR, document_type_code VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR, document_type_code VARCHAR)
user: 显示在没有费用预算的情况下类型是“CV”中的所有文档ID。

assistant: SELECT document_id FROM Documents WHERE document_type_code  =  "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
Schema: CREATE TABLE Documents (document_id VARCHAR, document_type_code VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR, document_type_code VARCHAR)
user: 在没有费用预算的情况下类型为“CV”中的所有文档ID是什么？

assistant: SELECT document_id FROM Documents WHERE document_type_code  =  "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
Schema: CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR)
user: 带有文字“年”的任何费用预算的文件的ID是什么？

assistant: 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 "%年%"
Schema: CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR)
user: 给出带有文字“年”的任何费用预算的文件的ID。

assistant: 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 "%年%"
Schema: CREATE TABLE Documents (document_id VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR)
user: 有多少文件没有任何费用？

assistant: SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
Schema: CREATE TABLE Documents (document_id VARCHAR), CREATE TABLE Documents_with_expenses (document_id VARCHAR)
user: 计算没有费用的文件的数量。

assistant: SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
Schema: CREATE TABLE Documents (document_id VARCHAR, document_date VARCHAR), CREATE TABLE Documents_with_Expenses (document_id VARCHAR, budget_type_code VARCHAR)
user: 既有“GV”型又有“SF”型费用的文档日期是什么？

assistant: 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"