jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE song (rating VARCHAR, f_id VARCHAR, languages VARCHAR, artist_name VARCHAR, genre_is VARCHAR)
user: 按升序排列的每首“英文”歌曲的艺术家的id、风格和名字是什么？

assistant: SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   "英文" ORDER BY rating
Schema: CREATE TABLE files (file_size VARCHAR, duration VARCHAR, formats VARCHAR, f_id VARCHAR), CREATE TABLE song (song_name VARCHAR, genre_is VARCHAR, f_id VARCHAR)
user: 按标题排序列出“流行”歌曲的持续时间、文件大小和格式。

assistant: SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  "流行" ORDER BY T2.song_name
Schema: CREATE TABLE files (file_size VARCHAR, duration VARCHAR, formats VARCHAR, f_id VARCHAR), CREATE TABLE song (song_name VARCHAR, genre_is VARCHAR, f_id VARCHAR)
user: 按标题字母顺序排列的每首“流行”歌曲的持续时间、文件大小和歌曲格式是什么？

assistant: SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  "流行" ORDER BY T2.song_name
Schema: CREATE TABLE song (rating INTEGER, languages VARCHAR, artist_name VARCHAR)
user: 找出那些制作过“英文”歌曲但从未获得过8级以上的评分的艺术家的名字。

assistant: SELECT DISTINCT artist_name FROM song WHERE languages  =  "英文" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8
Schema: CREATE TABLE song (rating INTEGER, languages VARCHAR, artist_name VARCHAR)
user: 那些用“英文”创作了一首歌但从未获得过8级以上评分的不同艺术家的名字是什么？

assistant: SELECT DISTINCT artist_name FROM song WHERE languages  =  "英文" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8
Schema: CREATE TABLE artist (country VARCHAR, rating INTEGER, artist_name VARCHAR), CREATE TABLE song (country VARCHAR, rating INTEGER, artist_name VARCHAR)
user: 查找那些来自“孟加拉国”但从未获得过超过7分评级的艺术家的名字。

assistant: SELECT DISTINCT artist_name FROM artist WHERE country  =  "孟加拉国" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7
Schema: CREATE TABLE artist (country VARCHAR, rating INTEGER, artist_name VARCHAR), CREATE TABLE song (country VARCHAR, rating INTEGER, artist_name VARCHAR)
user: 来自“孟加拉国”但从未获得过高于7级的评级的不同艺术家的姓名是什么？

assistant: SELECT DISTINCT artist_name FROM artist WHERE country  =  "孟加拉国" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7
Schema: CREATE TABLE college (name_full VARCHAR, college_id VARCHAR), CREATE TABLE player_college (college_id VARCHAR)
user: 拥有数量最多的棒球运动员的大学的全名和id是什么？

assistant: SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE college (name_full VARCHAR, college_id VARCHAR), CREATE TABLE player_college (college_id VARCHAR)
user: 找出拥有最多数量棒球运动员的大学的全名和id。

assistant: SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE salary (salary INTEGER, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: “广州恒大队”队员的平均工资是多少？

assistant: SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队'
Schema: CREATE TABLE salary (salary INTEGER, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 计算“广州恒大队”的球员的平均工资。

assistant: SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队'
Schema: CREATE TABLE player (player_id VARCHAR), CREATE TABLE all_star (player_id VARCHAR)
user: 1998参加全明星赛的球员的名字和姓氏是什么？

assistant: SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
Schema: CREATE TABLE player (player_id VARCHAR), CREATE TABLE all_star (player_id VARCHAR)
user: 列出1998年参加全明星赛的球员的名字和姓氏。

assistant: SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
Schema: CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE all_star (player_id VARCHAR)
user: 有最多全明星经验的球员的名字、姓氏、id以及其参加的次数是什么？

assistant: SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE all_star (player_id VARCHAR)
user: 哪位球员有最多的全明星比赛经验？给出球员的名字，姓氏和id，以及其参与全明星比赛的次数。

assistant: SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE hall_of_fame (yearid VARCHAR)
user: 每年有多少球员进入名人堂？

assistant: SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;
Schema: CREATE TABLE hall_of_fame (yearid VARCHAR)
user: 统计每年进入名人堂的球员的数量。

assistant: SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;
Schema: CREATE TABLE home_game (attendance INTEGER, YEAR VARCHAR)
user: 每年参加国内比赛的平均人数是多少？

assistant: SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;
Schema: CREATE TABLE home_game (attendance INTEGER, YEAR VARCHAR)
user: 返回每年参加国内比赛的平均人数。

assistant: SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;
Schema: CREATE TABLE home_game (year VARCHAR, team_id VARCHAR, attendance INTEGER), CREATE TABLE team (rank VARCHAR, team_id VARCHAR)
user: 在2014年，平均出勤人数最多的团队的id和级别是什么？

assistant: SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;
Schema: CREATE TABLE home_game (year VARCHAR, team_id VARCHAR, attendance INTEGER), CREATE TABLE team (rank VARCHAR, team_id VARCHAR)
user: 找出2014年平均出勤率最高的团队的id和级别。

assistant: SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;
Schema: CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE manager_award (player_id VARCHAR)
user: 获得经理奖最多的经理的名字、姓氏和id是什么？

assistant: SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE manager_award (player_id VARCHAR)
user: 给出赢得了经理奖的经理的名字、姓氏和id。

assistant: SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE park (state VARCHAR)
user: “上海”省有多少公园？

assistant: SELECT count(*) FROM park WHERE state  =  '上海';
Schema: CREATE TABLE park (state VARCHAR)
user: 给出“上海”省公园的数量。

assistant: SELECT count(*) FROM park WHERE state  =  '上海';
Schema: CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE player_award (player_id VARCHAR)
user: 哪3位球员赢得了最多的球员奖？列出他们的全名和id。

assistant: SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;
Schema: CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE player_award (player_id VARCHAR)
user: 找出获得球员奖次数最多的前三名球员的名字、姓氏和id。

assistant: SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;
Schema: CREATE TABLE player (birth_country VARCHAR)
user: 列出拥有最少数量运动员的三个国家。

assistant: SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
Schema: CREATE TABLE player (birth_country VARCHAR)
user: 哪三个国家拥有最少数量的运动员？

assistant: SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
Schema: CREATE TABLE player (name_last VARCHAR, death_year VARCHAR, name_first VARCHAR)
user: 找到所有死亡记录为空的球员的名字和姓氏。

assistant: SELECT name_first ,  name_last FROM player WHERE death_year = '';
Schema: CREATE TABLE player (name_last VARCHAR, death_year VARCHAR, name_first VARCHAR)
user: 死亡记录为空的球员的名字和姓氏是什么？

assistant: SELECT name_first ,  name_last FROM player WHERE death_year = '';
Schema: CREATE TABLE player (birth_country VARCHAR, bats VARCHAR)
user: 在“中国”出生的运动员有多少是右手击球手？也就是说，击球值是“R”。

assistant: SELECT count(*) FROM player WHERE birth_country = '中国' AND bats  =  'R';
Schema: CREATE TABLE player (birth_country VARCHAR, bats VARCHAR)
user: 计算出生在"中国"且击球值信息是“R”的球员的数量。

assistant: SELECT count(*) FROM player WHERE birth_country = '中国' AND bats  =  'R';
Schema: CREATE TABLE player (player_id VARCHAR, height INTEGER), CREATE TABLE player_college (player_id VARCHAR, college_id VARCHAR), CREATE TABLE college (name_full VARCHAR, college_id VARCHAR)
user: 来自“复旦大学”的运动员的平均身高是多少？

assistant: SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  =  T2.college_id WHERE T3.name_full  =  '复旦大学';
Schema: CREATE TABLE player (player_id VARCHAR, height INTEGER), CREATE TABLE player_college (player_id VARCHAR, college_id VARCHAR), CREATE TABLE college (name_full VARCHAR, college_id VARCHAR)
user: 找出“复旦大学”运动员的平均身高。

assistant: SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  =  T2.college_id WHERE T3.name_full  =  '复旦大学';
Schema: CREATE TABLE team (name VARCHAR, team_id VARCHAR), CREATE TABLE salary (salary INTEGER, team_id VARCHAR)
user: 每个队的最高工资是多少？列出团队名称、id和最高工资。

assistant: SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
Schema: CREATE TABLE team (name VARCHAR, team_id VARCHAR), CREATE TABLE salary (salary INTEGER, team_id VARCHAR)
user: 对于每个队，返回球队名称、ID和团队中的最高工资。

assistant: SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
Schema: CREATE TABLE team (name VARCHAR, team_id VARCHAR), CREATE TABLE salary (salary INTEGER, team_id VARCHAR)
user: 提供最低平均工资的团队的名称和ID是什么？

assistant: SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;
Schema: CREATE TABLE team (name VARCHAR, team_id VARCHAR), CREATE TABLE salary (salary INTEGER, team_id VARCHAR)
user: 哪一队提供最低的平均工资？给我这个队的名字和id。

assistant: SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;
Schema: CREATE TABLE player (name_last VARCHAR, name_first VARCHAR), CREATE TABLE player_award (year VARCHAR)
user: 找出在1960年和1961年都获奖的球员的名字和姓氏。

assistant: SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961
Schema: CREATE TABLE player (name_last VARCHAR, name_first VARCHAR), CREATE TABLE player_award (year VARCHAR)
user: 哪位选手在1960和1961都获奖？返回他们的名字和姓氏。

assistant: SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961
Schema: CREATE TABLE player (height INTEGER, name_last VARCHAR, weight INTEGER, name_first VARCHAR)
user: 列出体重大于220或身高小于75的运动员的名字和姓氏。

assistant: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
Schema: CREATE TABLE player (height INTEGER, name_last VARCHAR, weight INTEGER, name_first VARCHAR)
user: 体重超过220或身高低于75的球员的名字和姓氏是什么？

assistant: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
Schema: CREATE TABLE postseason (team_id_winner VARCHAR, wins INTEGER), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 列出“广州恒大队”在季后赛获胜时的最高得分。

assistant: SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  '广州恒大队';
Schema: CREATE TABLE postseason (team_id_winner VARCHAR, wins INTEGER), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: “广州恒大队”在季后赛获胜时的最高得分是多少？

assistant: SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  '广州恒大队';
Schema: CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: “广州恒大队”在2009年的季后赛输了多少次？

assistant: SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' AND T1.year = 2009;
Schema: CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 计算球队“广州恒大队”在2009年季后赛中输掉的次数。

assistant: SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' AND T1.year = 2009;
Schema: CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 2008赛季季后赛获胜次数最多的球队的名字和ID是什么？

assistant: SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 找出在2008季后赛中赢得最多次数的球队的名字和ID。

assistant: SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;
Schema: CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 历史上“广州恒大队”在季后赛每年的获胜次数是多少？

assistant: SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' GROUP BY T1.year
Schema: CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 返回每年“广州恒大队”在季后赛每年获胜的次数。

assistant: SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' GROUP BY T1.year
Schema: CREATE TABLE postseason (team_id_loser VARCHAR, team_id_winner VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: “广州恒大队”参加的季后赛总数是多少？

assistant: SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' );
Schema: CREATE TABLE postseason (team_id_loser VARCHAR, team_id_winner VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: “广州恒大队”总共参加了多少次季后赛？

assistant: SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' );
Schema: CREATE TABLE postseason (ties VARCHAR, YEAR VARCHAR)
user: 在1885年的季后赛中，有多少场比赛是打成平局的（也就是说，“平局”的值是“1”）？

assistant: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
Schema: CREATE TABLE postseason (ties VARCHAR, YEAR VARCHAR)
user: 找出在1885年季后赛中平局游戏的次数（“平局”的值是“1”）。

assistant: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
Schema: CREATE TABLE salary (year VARCHAR, salary INTEGER, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 2010年“广州恒大队”的总薪水是多少？

assistant: SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队' AND T1.year  =  2010
Schema: CREATE TABLE salary (year VARCHAR, salary INTEGER, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 2010年度“广州恒大队”的对内总薪水是多少？

assistant: SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队' AND T1.year  =  2010
Schema: CREATE TABLE salary (year VARCHAR, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 2000年“广州恒大队”有多少队员？

assistant: SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队' AND T1.year  =  2000
Schema: CREATE TABLE salary (year VARCHAR, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: “广州恒大队”在2000年球员的数量有多少？

assistant: SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队' AND T1.year  =  2000
Schema: CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
user: 列出2001年度球员的3个最高的薪水。

assistant: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;
Schema: CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
user: 2001年前3名高收益球员的薪水是多少？

assistant: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;
Schema: CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
user: 2010年和2001年的球员的工资值是多少？

assistant: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001
Schema: CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
user: 列出所有在2010和2001球员收到的工资值。

assistant: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001
Schema: CREATE TABLE hall_of_fame (yearid VARCHAR)
user: 哪一年最少的球员进入名人堂？

assistant: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;
Schema: CREATE TABLE hall_of_fame (yearid VARCHAR)
user: 找出最少球员进入名人堂的年份。

assistant: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;
Schema: CREATE TABLE park (city VARCHAR)
user: “长沙”有多少个公园？

assistant: SELECT count(*) FROM park WHERE city = '长沙';
Schema: CREATE TABLE park (city VARCHAR)
user: “长沙”市的公园数有多少？

assistant: SELECT count(*) FROM park WHERE city = '长沙';
Schema: CREATE TABLE home_game (year VARCHAR, park_id VARCHAR), CREATE TABLE park (park_id VARCHAR, park_name VARCHAR)
user: 1907年在公园“北海公园”有多少场比赛？

assistant: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = '北海公园';
Schema: CREATE TABLE home_game (year VARCHAR, park_id VARCHAR), CREATE TABLE park (park_id VARCHAR, park_name VARCHAR)
user: 统计1907年在公园“北海公园”发生的比赛数量。

assistant: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = '北海公园';
Schema: CREATE TABLE home_game (year VARCHAR, park_id VARCHAR), CREATE TABLE park (park_id VARCHAR, city VARCHAR)
user: 2000年在“长沙”市举行了多少比赛？

assistant: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  '长沙';
Schema: CREATE TABLE home_game (year VARCHAR, park_id VARCHAR), CREATE TABLE park (park_id VARCHAR, city VARCHAR)
user: 找出2000年“长沙”市举办的比赛数量。

assistant: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  '长沙';
Schema: CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year INTEGER), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 从2000年到2010年“广州恒大队”主场的比赛数是多少？

assistant: SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' AND T1.year BETWEEN 2000 AND 2010;
Schema: CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year INTEGER), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 从2000年到2010年，波士顿队的红袜队总共参加了多少场比赛？

assistant: SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  '广州恒大队' AND T1.year BETWEEN 2000 AND 2010;
Schema: CREATE TABLE salary (player_id VARCHAR, salary INTEGER, year INTEGER), CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR)
user: 在1985年到1990年间，这位名字是“文”姓氏是“左”的球员总共赚了多少钱？

assistant: SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  '文' AND T2.name_last = '左' AND T1.year BETWEEN 1985 AND 1990;
Schema: CREATE TABLE salary (player_id VARCHAR, salary INTEGER, year INTEGER), CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR)
user: 计算在1985年到1990年间，名字是“文”姓氏是“左”的球员的总工资。

assistant: SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  '文' AND T2.name_last = '左' AND T1.year BETWEEN 1985 AND 1990;
Schema: CREATE TABLE salary (player_id VARCHAR, year VARCHAR, team_id VARCHAR), CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 列出2005年和2007年从球队“北京人和”得到薪水球员的名字和姓氏。

assistant: SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = '北京人和' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = '北京人和'
Schema: CREATE TABLE salary (player_id VARCHAR, year VARCHAR, team_id VARCHAR), CREATE TABLE player (player_id VARCHAR, name_last VARCHAR, name_first VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 2005年和2007年从球队“北京人和”得到薪水球员的名字和姓氏是什么？

assistant: SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = '北京人和' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = '北京人和'
Schema: CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year INTEGER), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 从1990年到2000年，“广州恒大队”总共打了几场主场比赛？

assistant: SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = '广州恒大队' AND T1.year BETWEEN 1990 AND 2000;
Schema: CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year INTEGER), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 计算从1990年到2000年“广州恒大队”参加的比赛总数。

assistant: SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = '广州恒大队' AND T1.year BETWEEN 1990 AND 2000;
Schema: CREATE TABLE home_game (year VARCHAR, attendance VARCHAR, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 哪支球队在1980年参加的主场比赛最少？

assistant: SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;
Schema: CREATE TABLE home_game (year VARCHAR, attendance VARCHAR, team_id VARCHAR), CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)
user: 找出在1980年参加的主场比赛最少的球队。

assistant: SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;
Schema: CREATE TABLE park (state VARCHAR)
user: 列出有超过2个公园的省的名字。

assistant: SELECT state FROM park GROUP BY state HAVING count(*)  >  2;
Schema: CREATE TABLE park (state VARCHAR)
user: 哪些省有超过2个公园？

assistant: SELECT state FROM park GROUP BY state HAVING count(*)  >  2;
Schema: CREATE TABLE team_franchise (active VARCHAR)
user: 有多少团队的经营权是激活状态的，即活跃值是“Y”？

assistant: SELECT count(*) FROM team_franchise WHERE active = 'Y';
Schema: CREATE TABLE team_franchise (active VARCHAR)
user: 找出团队专营权是激活状态的数量（将“Y”作为“激活”信息）。

assistant: SELECT count(*) FROM team_franchise WHERE active = 'Y';
Schema: CREATE TABLE park (city VARCHAR)
user: 哪些城市有2到4个公园？

assistant: SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
Schema: CREATE TABLE park (city VARCHAR)
user: 找到所有有2到4个公园的城市。

assistant: SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;