jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
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
Schema: CREATE TABLE Staff_Roles (role_code VARCHAR, role_description VARCHAR), CREATE TABLE Project_Staff (role_code VARCHAR, staff_id VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 显示参与去的最多项目结果的项目人员的角色描述和项目人员的ID。

assistant: SELECT T1.role_description ,  T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Staff_Roles (role_code VARCHAR, role_description VARCHAR), CREATE TABLE Project_Staff (role_code VARCHAR, staff_id VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 对于每个员工ID，对涉及最多项目的角色的描述是什么？

assistant: SELECT T1.role_description ,  T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code  =  T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id  =  T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Document_Types (document_description VARCHAR, document_type_code VARCHAR)
user: 前缀是“初始”的描述文档是哪种文档类型？

assistant: SELECT document_type_code FROM Document_Types WHERE document_description LIKE '初始'
Schema: CREATE TABLE Document_Types (document_description VARCHAR, document_type_code VARCHAR)
user: 从“初始”一词开始描述的文档的类型是什么？

assistant: SELECT document_type_code FROM Document_Types WHERE document_description LIKE '初始'
Schema: CREATE TABLE Grants (grant_id VARCHAR, grant_start_date VARCHAR), CREATE TABLE Documents (document_type_code VARCHAR, grant_id VARCHAR), CREATE TABLE Document_Types (document_description VARCHAR, document_type_code VARCHAR)
user: 列出具有文件描述为“常规”和“初始申请”的补助金的开始日期。

assistant: SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  '常规' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  '初始申请'
Schema: CREATE TABLE Grants (grant_id VARCHAR, grant_start_date VARCHAR), CREATE TABLE Documents (document_type_code VARCHAR, grant_id VARCHAR), CREATE TABLE Document_Types (document_description VARCHAR, document_type_code VARCHAR)
user: 具有文件描述为“常规”和“初始申请”的补助金的开始日期是什么？

assistant: SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  '常规' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id  =  T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code  =  T3.document_type_code WHERE T3.document_description  =  '初始申请'
Schema: CREATE TABLE Documents (grant_id VARCHAR)
user: 一个补助最多能得到多少文件？列出补助金ID和号码。

assistant: SELECT grant_id ,  count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Documents (grant_id VARCHAR)
user: 每个补助金ID有多少文档，哪一个文档最多？

assistant: SELECT grant_id ,  count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR), CREATE TABLE Organisations (organisation_type VARCHAR, organisation_details VARCHAR)
user: 查找组织细节为“运动”的组织类型描述。

assistant: SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_details  =  '运动'
Schema: CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR), CREATE TABLE Organisations (organisation_type VARCHAR, organisation_details VARCHAR)
user: 组织细节为“运动”的组织类型描述是什么？

assistant: SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_details  =  '运动'
Schema: CREATE TABLE Organisations (organisation_type VARCHAR), CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR)
user: 被称为“赞助商”的组织的所有细节是什么？按升序排序结果。

assistant: SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_type_description  =  '赞助商' ORDER BY organisation_details
Schema: CREATE TABLE Organisations (organisation_type VARCHAR), CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR)
user: 按升序对结果进行排序的所有被描述为“赞助商”组织的细节是什么？

assistant: SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type  =  T2.organisation_type WHERE T2.organisation_type_description  =  '赞助商' ORDER BY organisation_details
Schema: CREATE TABLE Project_outcomes (outcome_code VARCHAR)
user: 从所有项目中产生了多少“专利”成果？

assistant: SELECT count(*) FROM Project_outcomes WHERE outcome_code  =  '专利'
Schema: CREATE TABLE Project_outcomes (outcome_code VARCHAR)
user: 在所有项目中多少“专利”成果产出？

assistant: SELECT count(*) FROM Project_outcomes WHERE outcome_code  =  '专利'
Schema: CREATE TABLE Project_Staff (role_code VARCHAR, date_from INTEGER)
user: 在“1989-04-24 23:51:54”之前，有多少项目人员担任领导或开始工作？

assistant: SELECT count(*) FROM Project_Staff WHERE role_code  =  '领导' OR date_from  <  '1989-04-24 23:51:54'
Schema: CREATE TABLE Project_Staff (role_code VARCHAR, date_from INTEGER)
user: 在“1989-04-24 23:51:54”之前，有多少项目成员是领导者或开始工作？

assistant: SELECT count(*) FROM Project_Staff WHERE role_code  =  '领导' OR date_from  <  '1989-04-24 23:51:54'
Schema: CREATE TABLE Project_Staff (date_to VARCHAR)
user: 员工离开项目的最后日期是什么？

assistant: SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1
Schema: CREATE TABLE Project_Staff (date_to VARCHAR)
user: 员工离开项目的截止日期是什么时候？

assistant: SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1
Schema: CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR), CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)
user: 细节是“机密”的项目的成果描述是什么？

assistant: SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code JOIN Projects AS T3 ON T2.project_id  =  T3.project_id WHERE T3.project_details  =  '机密'
Schema: CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR), CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)
user: 项目细节是“机密”的项目对应的成果描述是什么？

assistant: SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code JOIN Projects AS T3 ON T2.project_id  =  T3.project_id WHERE T3.project_details  =  '机密'
Schema: CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 列出具有最高成果计数的组织ID和及其成果计数。

assistant: SELECT T1.organisation_id ,  count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR), CREATE TABLE Project_outcomes (project_id VARCHAR)
user: 具有最多成果的组织的id是什么，以及有多少成果？

assistant: SELECT T1.organisation_id ,  count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Projects (project_details VARCHAR, organisation_id VARCHAR)
user: 列出由组织发起的项目的项目细节

assistant: SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 )
Schema: CREATE TABLE Projects (project_details VARCHAR, organisation_id VARCHAR)
user: 项目最多的组织发起的项目的细节是什么？

assistant: SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 )
Schema: CREATE TABLE Research_Staff (staff_details VARCHAR)
user: 列出研究人员的细节，并按升序排列。

assistant: SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC
Schema: CREATE TABLE Research_Staff (staff_details VARCHAR)
user: 研究人员有哪些细节？按字母顺序顺序排列结果。

assistant: SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC
Schema: CREATE TABLE Tasks (Id VARCHAR)
user: 总计有多少个任务？

assistant: SELECT count(*) FROM Tasks
Schema: CREATE TABLE Tasks (Id VARCHAR)
user: 有多少个任务？

assistant: SELECT count(*) FROM Tasks
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Tasks (project_id VARCHAR)
user: 每个项目有多少任务？列出任务计数和项目细节。

assistant: SELECT count(*) ,  T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id
Schema: CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR), CREATE TABLE Tasks (project_id VARCHAR)
user: 每个项目ID有多少任务？

assistant: SELECT count(*) ,  T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.project_id
Schema: CREATE TABLE Project_Staff (date_to INTEGER, role_code VARCHAR, date_from INTEGER)
user: 员工在“2003-04-19 15:06:20”和“2016-03-15 00:33:18”之内的角色是什么？

assistant: SELECT role_code FROM Project_Staff WHERE date_from  >  '2003-04-19 15:06:20' AND date_to  <  '2016-03-15 00:33:18'
Schema: CREATE TABLE Project_Staff (date_to INTEGER, role_code VARCHAR, date_from INTEGER)
user: 在“2003-04-19 15:06:20”和“2016-03-15 00:33:18”之间，员工扮演什么角色？

assistant: SELECT role_code FROM Project_Staff WHERE date_from  >  '2003-04-19 15:06:20' AND date_to  <  '2016-03-15 00:33:18'
Schema: CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR)
user: 所有项目成果的描述是什么？

assistant: SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code
Schema: CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR), CREATE TABLE Project_outcomes (outcome_code VARCHAR)
user: 列出所有项目的成果描述。

assistant: SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code
Schema: CREATE TABLE Project_Staff (role_code VARCHAR)
user: 员工最常见的角色是什么？

assistant: SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Project_Staff (role_code VARCHAR)
user: 员工最常见的角色是那个？

assistant: SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Person (name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: “丹丹”有几个朋友？

assistant: SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  '丹丹'
Schema: CREATE TABLE Person (name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: “丹丹”的朋友有多少个？

assistant: SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  '丹丹'
Schema: CREATE TABLE Person (gender VARCHAR)
user: 这个网络有多少“女”？

assistant: SELECT count(*) FROM Person WHERE gender  =  '女'
Schema: CREATE TABLE Person (gender VARCHAR)
user: 网络中性别是“女”的人数有多少？

assistant: SELECT count(*) FROM Person WHERE gender  =  '女'
Schema: CREATE TABLE Person (age INTEGER)
user: 所有人的平均年龄是多少？

assistant: SELECT avg(age) FROM Person
Schema: CREATE TABLE Person (age INTEGER)
user: 表格中所有人的平均年龄是多少？

assistant: SELECT avg(age) FROM Person
Schema: CREATE TABLE Person (city VARCHAR)
user: 他们来自多少个不同的城市？

assistant: SELECT count(DISTINCT city) FROM Person
Schema: CREATE TABLE Person (city VARCHAR)
user: 人们的故乡来自于多少个不同的城市？

assistant: SELECT count(DISTINCT city) FROM Person
Schema: CREATE TABLE Person (job VARCHAR)
user: 他们有多少种工作？

assistant: SELECT count(DISTINCT job) FROM Person
Schema: CREATE TABLE Person (job VARCHAR)
user: 列出了多少份不同的工作？

assistant: SELECT count(DISTINCT job) FROM Person
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR), CREATE TABLE person (age INTEGER, name VARCHAR)
user: 谁是最老的人？

assistant: SELECT name FROM Person WHERE age  =  (SELECT max(age) FROM person)
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR), CREATE TABLE person (age INTEGER, name VARCHAR)
user: 最老的人叫什么名字？

assistant: SELECT name FROM Person WHERE age  =  (SELECT max(age) FROM person)
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR, name VARCHAR), CREATE TABLE person (age INTEGER, job VARCHAR, name VARCHAR)
user: 谁是年龄最大的“学生”？

assistant: SELECT name FROM Person WHERE job  =  '学生' AND age  =  (SELECT max(age) FROM person WHERE job  =  '学生' )
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR, name VARCHAR), CREATE TABLE person (age INTEGER, job VARCHAR, name VARCHAR)
user: 年龄最大的“学生”叫什么名字？

assistant: SELECT name FROM Person WHERE job  =  '学生' AND age  =  (SELECT max(age) FROM person WHERE job  =  '学生' )
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR, gender VARCHAR), CREATE TABLE person (age INTEGER, name VARCHAR, gender VARCHAR)
user: 谁是最年轻的“男”？

assistant: SELECT name FROM Person WHERE gender  =  '男' AND age  =  (SELECT min(age) FROM person WHERE gender  =  '男' )
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR, gender VARCHAR), CREATE TABLE person (age INTEGER, name VARCHAR, gender VARCHAR)
user: 最年轻的“男”叫什么名字？

assistant: SELECT name FROM Person WHERE gender  =  '男' AND age  =  (SELECT min(age) FROM person WHERE gender  =  '男' )
Schema: CREATE TABLE Person (job VARCHAR, age VARCHAR, name VARCHAR)
user: 名字叫“仲景”的“医生”年纪多大了？

assistant: SELECT age FROM Person WHERE job  =  '医生' AND name  =  '仲景'
Schema: CREATE TABLE Person (job VARCHAR, age VARCHAR, name VARCHAR)
user: 那个叫“仲景”的“医生”的年龄是多少岁？

assistant: SELECT age FROM Person WHERE job  =  '医生' AND name  =  '仲景'
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR)
user: 年龄低于30岁的人是谁？

assistant: SELECT name FROM Person WHERE age  <  30
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR)
user: 年龄在30岁以下的人叫什么名字？

assistant: SELECT name FROM Person WHERE age  <  30
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR)
user: 有多少人年龄大于30且工作是“摄影师”？

assistant: SELECT count(*) FROM Person WHERE age  >  30 AND job  =  '摄影师'
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR)
user: 有多少“摄影师”的年龄超过30岁？

assistant: SELECT count(*) FROM Person WHERE age  >  30 AND job  =  '摄影师'
Schema: CREATE TABLE Person (age INTEGER, gender VARCHAR)
user: 每个性别的平均年龄是多少？

assistant: SELECT avg(age) ,  gender FROM Person GROUP BY gender
Schema: CREATE TABLE Person (age INTEGER, gender VARCHAR)
user: 每个性别的平均年龄有多大？

assistant: SELECT avg(age) ,  gender FROM Person GROUP BY gender
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR)
user: 不同工作职称的平均年龄是多少？

assistant: SELECT avg(age) ,  job FROM Person GROUP BY job
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR)
user: 每个工作的平均年龄是多少？

assistant: SELECT avg(age) ,  job FROM Person GROUP BY job
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR, gender VARCHAR)
user: 不同职称的“男”的平均年龄是多少？

assistant: SELECT avg(age) ,  job FROM Person WHERE gender  =  '男' GROUP BY job
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR, gender VARCHAR)
user: 每个工作的“男”平均年龄是多少？

assistant: SELECT avg(age) ,  job FROM Person WHERE gender  =  '男' GROUP BY job
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR)
user: 不同职称的最低年龄是多少？

assistant: SELECT min(age) ,  job FROM Person GROUP BY job
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR)
user: 每个工作年龄最小的人的年纪有多大？

assistant: SELECT min(age) ,  job FROM Person GROUP BY job
Schema: CREATE TABLE Person (age INTEGER, gender VARCHAR)
user: 找到每个性别中年龄低于40岁的人的数量。

assistant: SELECT count(*) ,  gender FROM Person WHERE age  <  40 GROUP BY gender
Schema: CREATE TABLE Person (age INTEGER, gender VARCHAR)
user: 每个性别有多少人不足40岁？

assistant: SELECT count(*) ,  gender FROM Person WHERE age  <  40 GROUP BY gender
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR, name VARCHAR), CREATE TABLE person (age INTEGER, job VARCHAR, name VARCHAR)
user: 按年龄排序找出年龄比任何“摄影师”年龄都大的人的名字。

assistant: SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  '摄影师') ORDER BY age
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR, name VARCHAR), CREATE TABLE person (age INTEGER, job VARCHAR, name VARCHAR)
user: 所有比至少一个“摄影师”年龄大的人的名字是什么？按年龄顺序排序。

assistant: SELECT name FROM Person WHERE age  >  (SELECT min(age) FROM person WHERE job  =  '摄影师') ORDER BY age
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR), CREATE TABLE person (age INTEGER, job VARCHAR)
user: 找出年龄大于所有“摄影师”年龄的人数。

assistant: SELECT count(*) FROM Person WHERE age  >  (SELECT max(age) FROM person WHERE job  =  '摄影师')
Schema: CREATE TABLE Person (age INTEGER, job VARCHAR), CREATE TABLE person (age INTEGER, job VARCHAR)
user: 有多少人比每个“摄影师”年纪都大？

assistant: SELECT count(*) FROM Person WHERE age  >  (SELECT max(age) FROM person WHERE job  =  '摄影师')
Schema: CREATE TABLE Person (job VARCHAR, name VARCHAR)
user: 按年龄的顺序列出所有的人的姓名和职称。

assistant: SELECT name ,  job FROM Person ORDER BY name
Schema: CREATE TABLE Person (job VARCHAR, name VARCHAR)
user: 按姓名的字母顺序排列的每个人的姓名和职称是什么？

assistant: SELECT name ,  job FROM Person ORDER BY name
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR)
user: 按年龄顺序降序排列所有人的姓名。

assistant: SELECT name FROM Person ORDER BY age DESC
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR)
user: 按年龄顺序排序的每个人的名字是什么？

assistant: SELECT name FROM Person ORDER BY age DESC
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR, gender VARCHAR)
user: 根据年龄顺序找出所有“男”的姓名和年龄。

assistant: SELECT name FROM Person WHERE gender  =  '男' ORDER BY age
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR, gender VARCHAR)
user: 按年龄顺序排列的每个“男”的名字和年龄的结果是多少？

assistant: SELECT name FROM Person WHERE gender  =  '男' ORDER BY age
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 找出“丹丹”和“丽丽”共同的朋友的姓名和年龄。

assistant: SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '丹丹' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '丽丽'
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: “丹丹”和“丽丽”共同的朋友的姓名和年龄是多少？

assistant: SELECT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '丹丹' INTERSECT SELECT T1.name ,   T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '丽丽'
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 找到“丹丹”或“丽丽”的朋友的姓名和年龄。

assistant: SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '丹丹' OR T2.friend  =  '丽丽'
Schema: CREATE TABLE Person (age VARCHAR, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: “丹丹”的朋友或者“丽丽”的朋友的姓名和年龄是多少？

assistant: SELECT DISTINCT T1.name ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '丹丹' OR T2.friend  =  '丽丽'
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 找出拥有年龄在40岁以上和30岁以下的朋友的人的姓名。

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 每个有40岁以上和30岁以下的朋友的人的名字是什么？

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 找出有年龄在40岁以上但不在30岁以下的朋友的人的名字。

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Schema: CREATE TABLE Person (age INTEGER, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 有年龄在40岁以上但不在30岁以下的朋友的人的名字是什么？

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  >  40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age  <  30)
Schema: CREATE TABLE person (name VARCHAR), CREATE TABLE Person (job VARCHAR, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 找到没有“学生”朋友的人的名字。

assistant: SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.job  =  '学生'
Schema: CREATE TABLE person (name VARCHAR), CREATE TABLE Person (job VARCHAR, name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 没有“学生”朋友的名字是什么？

assistant: SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.job  =  '学生'
Schema: CREATE TABLE PersonFriend (name VARCHAR)
user: 找出正好有一个朋友的人。

assistant: SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1
Schema: CREATE TABLE PersonFriend (name VARCHAR)
user: 正好有一个朋友的人的名字是什么？

assistant: SELECT name FROM PersonFriend GROUP BY name HAVING count(*)  =  1
Schema: CREATE TABLE Person (name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 谁是“张波”的朋友？

assistant: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  '张波'
Schema: CREATE TABLE Person (name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: “张波”的朋友是谁？

assistant: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T1.name  =  '张波'
Schema: CREATE TABLE Person (name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 找到和“张波”交朋友的人的名字。

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '张波'
Schema: CREATE TABLE Person (name VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: “张波”的所有朋友的名字是什么？

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '张波'
Schema: CREATE TABLE Person (name VARCHAR, gender VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 找到和“仲景”交朋友的“女”的名字

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '仲景' AND T1.gender  =  '女'
Schema: CREATE TABLE Person (name VARCHAR, gender VARCHAR), CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
user: 所有和“仲景”交朋友的“女”的名字是什么？

assistant: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.name WHERE T2.friend  =  '仲景' AND T1.gender  =  '女'