jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE stadium (average_attendance VARCHAR, capacity_percentage INTEGER)
user: 容量百分比高于100%的体育场馆的平均出勤率是多少？

assistant: SELECT average_attendance FROM stadium WHERE capacity_percentage  >  100
Schema: CREATE TABLE injury_accident (number_of_matches VARCHAR, injury VARCHAR, SOURCE VARCHAR, player VARCHAR)
user: 没有遭受“膝盖受伤”伤害的球员的名字，比赛的数量，以及球员的信息来源是什么？

assistant: SELECT player ,  number_of_matches ,  SOURCE FROM injury_accident WHERE injury != '膝盖受伤'
Schema: CREATE TABLE game (season VARCHAR, id VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR)
user: 哪个赛季导致球员“郑智”受伤？

assistant: SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id WHERE T2.player  =  '郑智'
Schema: CREATE TABLE game (score VARCHAR, id VARCHAR, date VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR)
user: 造成至少两起伤害事故的比赛的ID、分数和日期是多少？

assistant: SELECT T1.id ,  T1.score ,  T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2
Schema: CREATE TABLE stadium (name VARCHAR, id VARCHAR), CREATE TABLE game (id VARCHAR, stadium_id VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR)
user: 发生伤亡事故最多的体育场馆的ID和名称是什么？

assistant: SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE stadium (name VARCHAR, id VARCHAR), CREATE TABLE game (id VARCHAR, stadium_id VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR)
user: 查找发生伤害事故最多的体育场的ID和名称。

assistant: SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE game (season VARCHAR, id VARCHAR, stadium_id VARCHAR), CREATE TABLE stadium (id VARCHAR, name VARCHAR), CREATE TABLE injury_accident (injury VARCHAR, game_id VARCHAR)
user: 哪个赛季，哪个体育场有球员受伤类型为“脚部受伤”或“膝盖受伤”？

assistant: SELECT T1.season ,  T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.injury  =  '脚部受伤' OR T3.injury  =  '膝盖受伤'
Schema: CREATE TABLE injury_accident (SOURCE VARCHAR)
user: 受伤事故有多少种不同的信息来源？

assistant: SELECT count(DISTINCT SOURCE) FROM injury_accident
Schema: CREATE TABLE game (game_id VARCHAR, id VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR, id VARCHAR)
user: 有多少比赛没有伤害事故？

assistant: SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident )
Schema: CREATE TABLE injury_accident (injury VARCHAR, game_id VARCHAR), CREATE TABLE game (id VARCHAR, season INTEGER)
user: 2010赛季后发生了多少种不同的受伤？

assistant: SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id  =  T2.id WHERE T2.season  >  2010
Schema: CREATE TABLE game (id VARCHAR, stadium_id VARCHAR), CREATE TABLE stadium (id VARCHAR, name VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR)
user: 列出球员“郑智” 和球员“于大宝”都受伤的体育场名称。

assistant: SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  '郑智' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  '于大宝'
Schema: CREATE TABLE stadium (average_attendance VARCHAR, id VARCHAR, name VARCHAR, total_attendance VARCHAR), CREATE TABLE game (id VARCHAR, stadium_id VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR)
user: 显示没有发生事故的体育场的名称、平均出勤率、总出勤率。

assistant: SELECT name ,  average_attendance ,  total_attendance FROM stadium EXCEPT SELECT T2.name ,  T2.average_attendance ,  T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id
Schema: CREATE TABLE stadium (name VARCHAR)
user: 哪个体育场名称包含子串“中心”？

assistant: SELECT name FROM stadium WHERE name LIKE "中心"
Schema: CREATE TABLE stadium (id VARCHAR), CREATE TABLE game (stadium_id VARCHAR)
user: 每个体育场有多少场比赛？

assistant: SELECT T1.id ,  count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id GROUP BY T1.id
Schema: CREATE TABLE game (season VARCHAR, id VARCHAR, date VARCHAR), CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR)
user: 对于每次受伤事故，找出比赛日期和比赛中受伤球员的姓名，并将结果按赛季的顺序进行排序。

assistant: SELECT T1.date ,  T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id ORDER BY T1.season DESC
Schema: CREATE TABLE Country (id VARCHAR, name VARCHAR), CREATE TABLE League (country_id VARCHAR, name VARCHAR)
user: 列出所有国家和联赛名称。

assistant: SELECT T1.name ,  T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id
Schema: CREATE TABLE Country (name VARCHAR, id VARCHAR), CREATE TABLE League (country_id VARCHAR)
user: “英国”有多少联赛？

assistant: SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id WHERE T1.name  =  "英格兰"
Schema: CREATE TABLE Player (weight INTEGER)
user: 所有运动员的平均体重是多少？

assistant: SELECT avg(weight) FROM Player
Schema: CREATE TABLE Player (weight INTEGER)
user: 所有球员的最大和最小高度是多少？

assistant: SELECT max(weight) ,  min(weight) FROM Player
Schema: CREATE TABLE Player (player_api_id VARCHAR, player_name VARCHAR), CREATE TABLE Player_Attributes (overall_rating INTEGER)
user: 列出总得分高于平均水平的球员的名字。

assistant: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >  ( SELECT avg(overall_rating) FROM Player_Attributes )
Schema: CREATE TABLE Player (player_api_id VARCHAR, player_name VARCHAR), CREATE TABLE Player_Attributes (overall_rating INTEGER)
user: 最好的运球运动员的名字是什么？

assistant: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling  =  ( SELECT max(overall_rating) FROM Player_Attributes)
Schema: CREATE TABLE Player (player_api_id VARCHAR, player_name VARCHAR), CREATE TABLE Player_Attributes (preferred_foot VARCHAR, crossing INTEGER, player_api_id VARCHAR)
user: 列出总得分高于90分、更喜欢右脚的球员的名字。

assistant: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing  >  90 AND T2.preferred_foot  =  "右"
Schema: CREATE TABLE Player (player_api_id VARCHAR, player_name VARCHAR), CREATE TABLE Player_Attributes (preferred_foot VARCHAR, overall_rating INTEGER, player_api_id VARCHAR)
user: 列出总得分在85到90之间的左脚球员的名字。

assistant: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot  =  "左" AND T2.overall_rating  >=  85 AND T2.overall_rating  <=  90
Schema: CREATE TABLE Player_Attributes (preferred_foot VARCHAR, overall_rating INTEGER)
user: 右脚球员和左脚球员的平均得分是多少？

assistant: SELECT preferred_foot ,  avg(overall_rating) FROM Player_Attributes GROUP BY preferred_foot
Schema: CREATE TABLE Player_Attributes (preferred_foot VARCHAR, overall_rating INTEGER)
user: 在总得分高于80的球员中，有多少是右脚和左脚的？

assistant: SELECT preferred_foot ,  count(*) FROM Player_Attributes WHERE overall_rating  >  80 GROUP BY preferred_foot
Schema: CREATE TABLE Player (height INTEGER, overall_rating INTEGER, player_api_id VARCHAR), CREATE TABLE Player_Attributes (height INTEGER, overall_rating INTEGER, player_api_id VARCHAR)
user: 列出所有身高至少为180厘米和总分高于85的球员ID。

assistant: SELECT player_api_id FROM Player WHERE height  >=  180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating  >  85
Schema: CREATE TABLE Player (preferred_foot VARCHAR, player_api_id VARCHAR, height INTEGER), CREATE TABLE Player_Attributes (preferred_foot VARCHAR, player_api_id VARCHAR, height INTEGER)
user: 列出所有身高在180厘米和190厘米之间的左脚球员的ID。

assistant: SELECT player_api_id FROM Player WHERE height  >=  180 AND height  <=  190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot  =  "左"
Schema: CREATE TABLE Player (player_api_id VARCHAR, player_name VARCHAR), CREATE TABLE Player_Attributes (player_api_id VARCHAR)
user: 总得分前3名的球员都是谁？

assistant: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY overall_rating DESC LIMIT 3
Schema: CREATE TABLE Player (player_api_id VARCHAR, birthday VARCHAR, player_name VARCHAR), CREATE TABLE Player_Attributes (player_api_id VARCHAR)
user: 列出潜能前五名的球员的名字和生日。

assistant: SELECT DISTINCT T1.player_name ,  T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY potential DESC LIMIT 5
Schema: CREATE TABLE performance (Id VARCHAR)
user: 有多少演出？

assistant: SELECT count(*) FROM performance
Schema: CREATE TABLE performance (HOST VARCHAR, Attendance VARCHAR)
user: 按出席率，列出主持人的演出。

assistant: SELECT HOST FROM performance ORDER BY Attendance ASC
Schema: CREATE TABLE performance (LOCATION VARCHAR, Date VARCHAR)
user: 演出的日期和地点是什么？

assistant: SELECT Date ,  LOCATION FROM performance
Schema: CREATE TABLE performance (LOCATION VARCHAR, Attendance VARCHAR)
user: 显示在“工人体育场”或“虹口体育场”演出的出席率。

assistant: SELECT Attendance FROM performance WHERE LOCATION  =  "工人体育场" OR LOCATION  =  "虹口体育场"
Schema: CREATE TABLE performance (Attendance INTEGER)
user: 演出的的平均出席人数是多少？

assistant: SELECT avg(Attendance) FROM performance
Schema: CREATE TABLE performance (Date VARCHAR, Attendance VARCHAR)
user: 参加者人数最多的表演日期是什么？

assistant: SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1
Schema: CREATE TABLE performance (LOCATION VARCHAR)
user: 显示不同的地点和在每个地点表演的数量。

assistant: SELECT LOCATION ,  COUNT(*) FROM performance GROUP BY LOCATION
Schema: CREATE TABLE performance (LOCATION VARCHAR)
user: 显示演出最多次的表演地点。

assistant: SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE performance (LOCATION VARCHAR)
user: 显示具有至少两个演出的地点。

assistant: SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*)  >=  2
Schema: CREATE TABLE performance (LOCATION VARCHAR, Attendance INTEGER)
user: 显示有超过2000人参与的演出和不到1000人参与的演出的地点。

assistant: SELECT LOCATION FROM performance WHERE Attendance  >  2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance  <  1000
Schema: CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR), CREATE TABLE member (Member_ID VARCHAR, Name VARCHAR), CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR)
user: 显示成员的姓名和他们参加的演出地点。

assistant: SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID
Schema: CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR), CREATE TABLE member (Member_ID VARCHAR, Name VARCHAR), CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR)
user: 按照名字的字母升序显示会员姓名和演出地点。

assistant: SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T2.Name ASC
Schema: CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR), CREATE TABLE member (Role VARCHAR, Member_ID VARCHAR), CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR)
user: 显示演出的日期与以“小提琴”角色的出席成员。

assistant: SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID WHERE T2.Role  =  "小提琴"
Schema: CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR), CREATE TABLE member (Member_ID VARCHAR, Name VARCHAR), CREATE TABLE performance (Attendance VARCHAR, Date VARCHAR, Performance_ID VARCHAR)
user: 按照参加演出出席率的降序，显示会员姓名和演出日期。

assistant: SELECT T2.Name ,  T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T3.Attendance DESC
Schema: CREATE TABLE member (Member_ID VARCHAR, Name VARCHAR), CREATE TABLE member_attendance (Member_ID VARCHAR, Name VARCHAR)
user: 列出没有参加任何表演的成员的名字。

assistant: SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM member_attendance)
Schema: CREATE TABLE classroom (building VARCHAR, capacity INTEGER)
user: 找到拥有容量超过50的房间的建筑物。

assistant: SELECT DISTINCT building FROM classroom WHERE capacity  >  50
Schema: CREATE TABLE classroom (building VARCHAR, capacity INTEGER)
user: 哪些建筑的容量大于50？

assistant: SELECT DISTINCT building FROM classroom WHERE capacity  >  50
Schema: CREATE TABLE classroom (building VARCHAR)
user: 不在“教学”大厦的房间数量。

assistant: SELECT count(*) FROM classroom WHERE building != '教学'
Schema: CREATE TABLE classroom (building VARCHAR)
user: 不在“教学”的房间有多少？

assistant: SELECT count(*) FROM classroom WHERE building != '教学'
Schema: CREATE TABLE department (dept_name VARCHAR, building VARCHAR, budget INTEGER)
user: 预算高于平均预算的部门的名称和建筑是什么？

assistant: SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Schema: CREATE TABLE department (dept_name VARCHAR, building VARCHAR, budget INTEGER)
user: 给出预算大于平均预算的部门的名称和建筑。

assistant: SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Schema: CREATE TABLE classroom (building VARCHAR, room_number VARCHAR, capacity INTEGER)
user: 查找可以容纳50到100名学生的房间的号码和建筑。

assistant: SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100
Schema: CREATE TABLE classroom (building VARCHAR, room_number VARCHAR, capacity INTEGER)
user: 50到100个学生可以坐的教室号码和相应的建筑是什么？

assistant: SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100
Schema: CREATE TABLE department (dept_name VARCHAR, budget VARCHAR, building VARCHAR)
user: 找到预算最高的部门的名称和建筑。

assistant: SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1
Schema: CREATE TABLE department (dept_name VARCHAR, budget VARCHAR, building VARCHAR)
user: 预算最大的部门的部门名称和相应的建筑是什么？

assistant: SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1
Schema: CREATE TABLE student (dept_name VARCHAR, name VARCHAR, tot_cred VARCHAR)
user: “历史”系总学分最高的学生叫什么名字？

assistant: SELECT name FROM student WHERE dept_name  =  '历史' ORDER BY tot_cred DESC LIMIT 1
Schema: CREATE TABLE student (dept_name VARCHAR, name VARCHAR, tot_cred VARCHAR)
user: 给出最高学分的“历史”系学生的名字。

assistant: SELECT name FROM student WHERE dept_name  =  '历史' ORDER BY tot_cred DESC LIMIT 1
Schema: CREATE TABLE classroom (building VARCHAR)
user: “教学”大楼有多少个房间？

assistant: SELECT count(*) FROM classroom WHERE building  =  '教学'
Schema: CREATE TABLE classroom (building VARCHAR)
user: 统计一下“教学”的教室数量。

assistant: SELECT count(*) FROM classroom WHERE building  =  '教学'
Schema: CREATE TABLE advisor (s_id VARCHAR)
user: 有多少学生有顾问？

assistant: SELECT count(DISTINCT s_id) FROM advisor
Schema: CREATE TABLE advisor (s_id VARCHAR)
user: 统计有顾问的学生人数。

assistant: SELECT count(DISTINCT s_id) FROM advisor
Schema: CREATE TABLE course (dept_name VARCHAR)
user: 有多少院系提供课程？

assistant: SELECT count(DISTINCT dept_name) FROM course
Schema: CREATE TABLE course (dept_name VARCHAR)
user: 统计提供课程的院系的数量。

assistant: SELECT count(DISTINCT dept_name) FROM course
Schema: CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
user: “物理”系开设了多少门不同课程？

assistant: SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  '屋里'
Schema: CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
user: 计算“物理”系的课程数。

assistant: SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  '屋里'
Schema: CREATE TABLE course (course_id VARCHAR, title VARCHAR), CREATE TABLE prereq (course_id VARCHAR)
user: 找到有两个预备课程的课程标题？

assistant: SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2
Schema: CREATE TABLE course (course_id VARCHAR, title VARCHAR), CREATE TABLE prereq (course_id VARCHAR)
user: 有两个预备课程的课程名称是什么？

assistant: SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2
Schema: CREATE TABLE course (dept_name VARCHAR, title VARCHAR, credits VARCHAR, course_id VARCHAR), CREATE TABLE prereq (course_id VARCHAR)
user: 找到具有两个预备课程的课程的名称、学分和系名？

assistant: SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1
Schema: CREATE TABLE course (dept_name VARCHAR, title VARCHAR, credits VARCHAR, course_id VARCHAR), CREATE TABLE prereq (course_id VARCHAR)
user: 有多于一个预备课程的课程的名称、学分值和系名是什么？

assistant: SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1
Schema: CREATE TABLE course (course_id VARCHAR), CREATE TABLE prereq (course_id VARCHAR)
user: 有多少课程没有预备课程？

assistant: SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Schema: CREATE TABLE course (course_id VARCHAR), CREATE TABLE prereq (course_id VARCHAR)
user: 计算无预备课程的课程数量。

assistant: SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Schema: CREATE TABLE course (course_id VARCHAR, title VARCHAR), CREATE TABLE prereq (course_id VARCHAR, title VARCHAR)
user: 找到没有任何预备课程的课程名称？

assistant: SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Schema: CREATE TABLE course (course_id VARCHAR, title VARCHAR), CREATE TABLE prereq (course_id VARCHAR, title VARCHAR)
user: 没有预备课程的课程名称是什么？

assistant: SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Schema: CREATE TABLE teaches (id VARCHAR)
user: 有多少不同的老师教过一些课程？

assistant: SELECT COUNT (DISTINCT id) FROM teaches
Schema: CREATE TABLE teaches (id VARCHAR)
user: 统计教授课程的不同教员的数量。

assistant: SELECT COUNT (DISTINCT id) FROM teaches
Schema: CREATE TABLE department (dept_name VARCHAR, budget INTEGER)
user: 找到“市场”或“财务”部门的总预算。

assistant: SELECT sum(budget) FROM department WHERE dept_name  =  '管理' OR dept_name  =  '金融'
Schema: CREATE TABLE department (dept_name VARCHAR, budget INTEGER)
user: “市场”或“财务”部门预算的总和是多少？

assistant: SELECT sum(budget) FROM department WHERE dept_name  =  '管理' OR dept_name  =  '金融'
Schema: CREATE TABLE instructor (dept_name VARCHAR, name VARCHAR)
user: 找到名字包含“成庆”的教员的院系名称。

assistant: SELECT dept_name FROM instructor WHERE name LIKE '成庆'
Schema: CREATE TABLE instructor (dept_name VARCHAR, name VARCHAR)
user: 教员姓名包含“成庆”的部门叫什么？

assistant: SELECT dept_name FROM instructor WHERE name LIKE '成庆'
Schema: CREATE TABLE classroom (building VARCHAR, capacity INTEGER)
user: “教学”大厦有多少房间容量小于50？

assistant: SELECT count(*) FROM classroom WHERE building  =  '教学' AND capacity  <  50
Schema: CREATE TABLE classroom (building VARCHAR, capacity INTEGER)
user: 统计“教学”的容量低于50房间的数量。

assistant: SELECT count(*) FROM classroom WHERE building  =  '教学' AND capacity  <  50
Schema: CREATE TABLE department (dept_name VARCHAR, budget INTEGER)
user: 找出预算高于平均预算的部门的名称和预算。

assistant: SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Schema: CREATE TABLE department (dept_name VARCHAR, budget INTEGER)
user: 预算大于平均的部门的名称和预算是什么？

assistant: SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Schema: CREATE TABLE instructor (dept_name VARCHAR, name VARCHAR, salary VARCHAR)
user: “统计学”系工资最低的教师叫什么名字？

assistant: SELECT name FROM instructor WHERE dept_name  =  '统计学' ORDER BY salary LIMIT 1
Schema: CREATE TABLE instructor (dept_name VARCHAR, name VARCHAR, salary VARCHAR)
user: 给出“统计”系最低收入的导师的名字。

assistant: SELECT name FROM instructor WHERE dept_name  =  '统计学' ORDER BY salary LIMIT 1
Schema: CREATE TABLE course (dept_name VARCHAR, title VARCHAR)
user: 找到由“统计学”和“心理学”系共同提供的课程名称。

assistant: SELECT title FROM course WHERE dept_name  =  '统计学' INTERSECT SELECT title FROM course WHERE dept_name  =  '心理学'
Schema: CREATE TABLE course (dept_name VARCHAR, title VARCHAR)
user: “统计”和“心理学”系都列出的课程名称是什么？

assistant: SELECT title FROM course WHERE dept_name  =  '统计学' INTERSECT SELECT title FROM course WHERE dept_name  =  '心理学'
Schema: CREATE TABLE course (dept_name VARCHAR, title VARCHAR)
user: 找到由“统计学”而不是“心理学”系提供的课程名称。

assistant: SELECT title FROM course WHERE dept_name  =  '统计学' EXCEPT SELECT title FROM course WHERE dept_name  =  '心理学'
Schema: CREATE TABLE course (dept_name VARCHAR, title VARCHAR)
user: 是“统计学”系而不是“心理学”系的课程名称是什么？

assistant: SELECT title FROM course WHERE dept_name  =  '统计学' EXCEPT SELECT title FROM course WHERE dept_name  =  '心理学'
Schema: CREATE TABLE teaches (id VARCHAR, semester VARCHAR, YEAR VARCHAR)
user: 查找在2009年“秋天”而不是2010年“春天”教课的老师的ID。

assistant: SELECT id FROM teaches WHERE semester  =  '秋季' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  '春季' AND YEAR  =  2010
Schema: CREATE TABLE teaches (id VARCHAR, semester VARCHAR, YEAR VARCHAR)
user: 在2009年“秋天”而不是2010年“春天”教书的老师的ID是什么？

assistant: SELECT id FROM teaches WHERE semester  =  '秋季' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  '春季' AND YEAR  =  2010
Schema: CREATE TABLE student (id VARCHAR, name VARCHAR), CREATE TABLE takes (id VARCHAR)
user: 找出2009和2010年上课的学生名字。

assistant: SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010
Schema: CREATE TABLE student (id VARCHAR, name VARCHAR), CREATE TABLE takes (id VARCHAR)
user: 参加2009、2010年课程的学生的名字是什么？

assistant: SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010
Schema: CREATE TABLE course (dept_name VARCHAR)
user: 找出提供最大课程量的前三个院系的名称？

assistant: SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3
Schema: CREATE TABLE course (dept_name VARCHAR)
user: 3个有最多课程的院系名称是什么？

assistant: SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3
Schema: CREATE TABLE course (dept_name VARCHAR, credits INTEGER)
user: 找出提供最高总学分的院系的名称？

assistant: SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1
Schema: CREATE TABLE course (dept_name VARCHAR, credits INTEGER)
user: 这个学分最多的院系叫什么名字？

assistant: SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1
Schema: CREATE TABLE course (title VARCHAR, credits VARCHAR)
user: 按照他们名称和学分排序，列出所有课程的名称。

assistant: SELECT title FROM course ORDER BY title ,  credits
Schema: CREATE TABLE course (title VARCHAR, credits VARCHAR)
user: 给出按名称和学分顺序排列的所有课程的名称。

assistant: SELECT title FROM course ORDER BY title ,  credits
Schema: CREATE TABLE department (dept_name VARCHAR, budget VARCHAR)
user: 哪个部门的预算最低？

assistant: SELECT dept_name FROM department ORDER BY budget LIMIT 1
Schema: CREATE TABLE department (dept_name VARCHAR, budget VARCHAR)
user: 给出最低预算的部门名称。

assistant: SELECT dept_name FROM department ORDER BY budget LIMIT 1
Schema: CREATE TABLE department (dept_name VARCHAR, budget VARCHAR, building VARCHAR)
user: 按预算从大到小列出所有部门的名称和建筑。

assistant: SELECT dept_name ,  building FROM department ORDER BY budget DESC
Schema: CREATE TABLE department (dept_name VARCHAR, budget VARCHAR, building VARCHAR)
user: 按预算降序排列，部门的名称和建筑是什么？

assistant: SELECT dept_name ,  building FROM department ORDER BY budget DESC
Schema: CREATE TABLE instructor (name VARCHAR, salary VARCHAR)
user: 谁是最高工资的教练？

assistant: SELECT name FROM instructor ORDER BY salary DESC LIMIT 1
Schema: CREATE TABLE instructor (name VARCHAR, salary VARCHAR)
user: 给出最高薪的教员的名字。

assistant: SELECT name FROM instructor ORDER BY salary DESC LIMIT 1
Schema: CREATE TABLE instructor (salary VARCHAR)
user: 按薪水递增顺序列出所有教员的信息。

assistant: SELECT * FROM instructor ORDER BY salary
Schema: CREATE TABLE instructor (salary VARCHAR)
user: 给出所有有关导师的信息，按照薪水从低到高的顺序排列。

assistant: SELECT * FROM instructor ORDER BY salary
Schema: CREATE TABLE student (dept_name VARCHAR, name VARCHAR, tot_cred VARCHAR)
user: 按学分总数按升序排列学生姓名和院系名。

assistant: SELECT name ,  dept_name FROM student ORDER BY tot_cred
Schema: CREATE TABLE student (dept_name VARCHAR, name VARCHAR, tot_cred VARCHAR)
user: 按学分从少到大的顺序排列的学生及其所属院系的名称是什么？

assistant: SELECT name ,  dept_name FROM student ORDER BY tot_cred