jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, position VARCHAR)
user: 统计在俱乐部“赛车”的不同位置的数量。

assistant: SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid WHERE t1.clubname  =  "赛车"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, age INTEGER)
user: “赛车”有多少会员年龄超过18岁？

assistant: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "赛车" AND t3.age  >  18
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, age INTEGER)
user: 统计年龄在18岁以上的“赛车”俱乐部会员人数。

assistant: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "赛车" AND t3.age  >  18
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, age INTEGER)
user: “赛车”俱乐部有多少成员年龄小于18岁？

assistant: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "赛车" AND t3.age  <  18
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, age INTEGER)
user: 统计年龄在18岁以下的“赛车”俱乐部会员人数。

assistant: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "赛车" AND t3.age  <  18
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)
user: 找出所有俱乐部中至少有一个成员来自城市代码是“武汉”的城市的俱乐部名字。

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "武汉"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)
user: 哪些俱乐部有一个或多个会员来自城市的代码是“武汉”的城市？返回俱乐部的名字。

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "武汉"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)
user: 查找至少有一个成员来自城市的代码是“重庆”的城市的俱乐部的名称，。

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "重庆"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)
user: 至少有一个成员来自城市的代码是“重庆”的城市的俱乐部的名称是什么？

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "重庆"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, lname VARCHAR, fname VARCHAR)
user: 名字是“代” “兵”的学生参加了多少个俱乐部？

assistant: SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "代" AND t3.lname  =  "兵"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, lname VARCHAR, fname VARCHAR)
user: 计算名为“代” “兵”的学生参加俱乐部的会员数量。

assistant: SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "代" AND t3.lname  =  "兵"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, lname VARCHAR, fname VARCHAR)
user: 列出名字是“秦” “小明”的学生参加的俱乐部。

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "秦" AND t3.lname  =  "小明"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, lname VARCHAR, fname VARCHAR)
user: 有会员名“秦” “小明”的俱乐部的名字是什么？

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "秦" AND t3.lname  =  "小明"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, advisor VARCHAR)
user: 列出至少有一个成员且顾问是“1121”的俱乐部。

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.advisor  =  1121
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (stuid VARCHAR, advisor VARCHAR)
user: 至少有一个成员且顾问是“1121”的俱乐部是那些？

assistant: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.advisor  =  1121
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (age INTEGER, stuid VARCHAR)
user: “赛车”俱乐部成员的平均年龄是多少？

assistant: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "赛车"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (age INTEGER, stuid VARCHAR)
user: 找出“赛车”俱乐部成员的平均年龄。

assistant: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "赛车"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (age INTEGER, stuid VARCHAR)
user: 找到俱乐部“北大创业俱乐部”成员的平均年龄。

assistant: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "北大创业俱乐部"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (age INTEGER, stuid VARCHAR)
user: 俱乐部“北大创业俱乐部”成员的平均年龄有多大？

assistant: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "北大创业俱乐部"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (age INTEGER, stuid VARCHAR)
user: 返回俱乐部“网球俱乐部”会员的平均年龄。

assistant: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "网球俱乐部"
Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR), CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR), CREATE TABLE student (age INTEGER, stuid VARCHAR)
user: 计算俱乐部“网球俱乐部”成员的平均年龄。

assistant: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "网球俱乐部"
Schema: CREATE TABLE Grants (grant_id VARCHAR, grant_amount VARCHAR), CREATE TABLE Documents (grant_id VARCHAR, sent_date INTEGER), CREATE TABLE grants (grant_end_date INTEGER, grant_amount VARCHAR)
user: 在“1986-08-26 20:49:27”之前送交文件的补助金额和在“1989-03-16 18:27:16”之后结束补助的补助金额分别是多少？

assistant: SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date  >  '1989-03-16 18:27:16'
Schema: CREATE TABLE Grants (grant_id VARCHAR, grant_amount VARCHAR), CREATE TABLE Documents (grant_id VARCHAR, sent_date INTEGER), CREATE TABLE grants (grant_end_date INTEGER, grant_amount VARCHAR)
user: 在“1986-08-26 20:49:27”之前寄出的文件的补助金额和在“1989-03-16 18:27:16”补助结束之后的补助金额是多少？

assistant: SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id WHERE T2.sent_date  <  '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date  >  '1989-03-16 18:27:16'
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR)
user: 列出既有“专利”产出又有“论文”产出的项目细节。

assistant: SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  '论文' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  '专利'
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR)
user: 既有“专利”产出又有“论文”产出的项目细节是什么？

assistant: SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  '论文' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  '专利'
Schema: CREATE TABLE Grants (organisation_id VARCHAR), CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR), CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR)
user: 被描述为“研究”的组织的总补助金额是多少？

assistant: SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  '研究'
Schema: CREATE TABLE Grants (organisation_id VARCHAR), CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR), CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR)
user: “研究”经费的总额是多少？

assistant: SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type  =  T3.organisation_type WHERE T3.organisation_type_description  =  '研究'
Schema: CREATE TABLE Project_Staff (date_from VARCHAR, role_code VARCHAR, date_to VARCHAR, project_id VARCHAR)
user: 列出招聘“领导”员工最多的项目的开始和结束时间。

assistant: SELECT date_from ,  date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  '领导'
Schema: CREATE TABLE Project_Staff (date_from VARCHAR, role_code VARCHAR, date_to VARCHAR, project_id VARCHAR)
user: 员工在具有最多员工并且具有“领导”角色的项目中工作的开始和结束时间是什么？

assistant: SELECT date_from ,  date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  '领导'
Schema: CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER), CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)
user: 找出参与的组织的组织ID和详细信息

assistant: SELECT T2.organisation_id ,  T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  >  6000
Schema: CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER), CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)
user: 有超过6000美元的资助的所有组织的id和细节是什么？

assistant: SELECT T2.organisation_id ,  T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id  =  T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount)  >  6000
Schema: CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR), CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)
user: 研究人员最多的组织的组织类型和id是什么？

assistant: SELECT T1.organisation_type ,  T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR), CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)
user: 拥有最多研究人员的组织的类型和ID是什么？

assistant: SELECT T1.organisation_type ,  T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR), CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)
user: 哪个类型的组织雇佣了大多数研究人员？

assistant: SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR), CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)
user: 研究人员最多的组织类型是什么？

assistant: SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR), CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER, grant_id VARCHAR), CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR), CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR)
user: 查找按组织类型为“研究”的被授予的授权金额超过5000的文件的发送日期

assistant: SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id  =  T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id  =  T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type  =  T4.organisation_type WHERE T2.grant_amount  >  5000 AND T4.organisation_type_description  =  '研究'
Schema: CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR), CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER, grant_id VARCHAR), CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR), CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR)
user: 所有资助金额超过5000并参与“研究”的文件的发送日期是什么？

assistant: SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id  =  T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id  =  T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type  =  T4.organisation_type WHERE T2.grant_amount  >  5000 AND T4.organisation_type_description  =  '研究'
Schema: CREATE TABLE Documents (document_type_code VARCHAR, grant_id VARCHAR, response_received_date VARCHAR), CREATE TABLE Document_Types (document_description VARCHAR, document_type_code VARCHAR), CREATE TABLE Grants (grant_amount INTEGER, grant_id VARCHAR)
user: 对于描述为“常规”类型或授予超过100份的文件，收到的回复日期是什么？

assistant: SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code  =  T2.document_type_code JOIN Grants AS T3 ON T1.grant_id  =  T3.grant_id WHERE T2.document_description  =  '常规' OR T3.grant_amount  >  100
Schema: CREATE TABLE Documents (document_type_code VARCHAR, grant_id VARCHAR, response_received_date VARCHAR), CREATE TABLE Document_Types (document_description VARCHAR, document_type_code VARCHAR), CREATE TABLE Grants (grant_amount INTEGER, grant_id VARCHAR)
user: 被授予超过100美元的文件且描述类型为“常规”的文件回复日期是什么？

assistant: SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code  =  T2.document_type_code JOIN Grants AS T3 ON T1.grant_id  =  T3.grant_id WHERE T2.document_description  =  '常规' OR T3.grant_amount  >  100
Schema: CREATE TABLE Projects (project_details VARCHAR, role_code VARCHAR, project_id VARCHAR), CREATE TABLE Project_Staff (project_details VARCHAR, role_code VARCHAR, project_id VARCHAR)
user: 列出没有雇用任何担任“研究院”角色作为工作人员的项目的细节。

assistant: SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  '研究院' )
Schema: CREATE TABLE Projects (project_details VARCHAR, role_code VARCHAR, project_id VARCHAR), CREATE TABLE Project_Staff (project_details VARCHAR, role_code VARCHAR, project_id VARCHAR)
user: 没有雇用任何担任“研究院”角色作为工作人员的项目的细节有哪些？

assistant: SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code  =  '研究院' )
Schema: CREATE TABLE Tasks (project_id VARCHAR, task_id VARCHAR, task_details VARCHAR), CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 对于详细描述为“详细”或具有两个以上产出的项目的任务细节、任务标识和项目标识是什么？

assistant: SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  '详细' UNION SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.project_id HAVING count(*)  >  2
Schema: CREATE TABLE Tasks (project_id VARCHAR, task_id VARCHAR, task_details VARCHAR), CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 对于被详细描述为“详细”或者至少有3个结果的项目的任务细节、任务id和项目id是什么？

assistant: SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id WHERE T2.project_details  =  '详细' UNION SELECT T1.task_details ,  T1.task_id ,  T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.project_id HAVING count(*)  >  2
Schema: CREATE TABLE Project_Staff (date_from VARCHAR, role_code VARCHAR, date_to VARCHAR)
user: 角色是“研究院”的工作人员什么时候开始工作，什么时候停止工作？

assistant: SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  '研究院'
Schema: CREATE TABLE Project_Staff (date_from VARCHAR, role_code VARCHAR, date_to VARCHAR)
user: “研究院”是什么时候开始工作的？

assistant: SELECT date_from ,  date_to FROM Project_Staff WHERE role_code  =  '研究院'
Schema: CREATE TABLE Project_Staff (role_code VARCHAR)
user: 员工有多少种角色？

assistant: SELECT count(DISTINCT role_code) FROM Project_Staff
Schema: CREATE TABLE Project_Staff (role_code VARCHAR)
user: 项目员工有多少不同的角色？

assistant: SELECT count(DISTINCT role_code) FROM Project_Staff
Schema: CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER)
user: 每个组织的补助金总额是多少？列出组织ID。

assistant: SELECT sum(grant_amount) ,  organisation_id FROM Grants GROUP BY organisation_id
Schema: CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER)
user: 每个组织被给予的赠款总额是多少，其id是什么？

assistant: SELECT sum(grant_amount) ,  organisation_id FROM Grants GROUP BY organisation_id
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR), CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR)
user: 列出用子字符串“已发表”描述研究成果的项目的项目细节。

assistant: SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code  =  T3.outcome_code WHERE T3.outcome_description LIKE '已发表'
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR), CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR)
user: 已发表的项目有哪些细节？

assistant: SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code  =  T3.outcome_code WHERE T3.outcome_description LIKE '已发表'
Schema: CREATE TABLE Project_Staff (project_id VARCHAR), CREATE TABLE Projects (project_id VARCHAR)
user: 每个项目有多少员工？按升序排列项目ID和编号。

assistant: SELECT T1.project_id ,  count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC
Schema: CREATE TABLE Project_Staff (project_id VARCHAR), CREATE TABLE Projects (project_id VARCHAR)
user: 对于每个项目ID，它有多少员工？按升序排列它们。

assistant: SELECT T1.project_id ,  count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC
Schema: CREATE TABLE Staff_Roles (role_code VARCHAR, role_description VARCHAR)
user: 什么是对“研究院”角色的完整描述。

assistant: SELECT role_description FROM Staff_Roles WHERE role_code  =  '研究院'
Schema: CREATE TABLE Staff_Roles (role_code VARCHAR, role_description VARCHAR)
user: 什么是对“研究院”工作的完整描述？

assistant: SELECT role_description FROM Staff_Roles WHERE role_code  =  '研究院'
Schema: CREATE TABLE Project_Staff (date_from VARCHAR)
user: 项目的第一批员工是什么时候开始工作的？

assistant: SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1
Schema: CREATE TABLE Project_Staff (date_from VARCHAR)
user: 第一个工作人员什么时候开始工作的？

assistant: SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 哪个项目取得最多的成果？列出项目细节和项目ID。

assistant: SELECT T1.project_details ,  T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 取得最多的成果的项目细节和ID是什么？

assistant: SELECT T1.project_details ,  T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR)
user: 哪些项目没有结果？列出其项目细节。

assistant: SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes )
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR)
user: 没有结果的项目细节是什么？

assistant: SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes )
Schema: CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR, organisation_type VARCHAR), CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)
user: 哪个组织雇佣了最多的研究人员？列出组织ID、类型和细节。

assistant: SELECT T1.organisation_id ,  T1.organisation_type ,  T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1