jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 找出所有已经发布了900首以上分辨率歌曲的艺术家的名字和原籍国。

SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1
问题: 每位发行了一首分辨率超过900的歌曲的艺术家的名字和原籍国是什么？

SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1
问题: 找出制作歌曲最多的三位艺术家的姓名和作品数量。

SQL: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
问题: 制作歌曲最多的三位艺术家的名字是什么？他们制作了多少作品？

SQL: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
问题: 找出歌手数量最少的国家？

SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1
问题: 制作歌曲最少的艺术家来自于哪个国家？

SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1
问题: 哪些歌曲的评级低于所有“英文”歌曲的评级？

SQL: SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  '英文')
问题: 评分低于最低“英文”歌曲的每首歌曲的名称是什么？

SQL: SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  '英文')
问题: 分辨率高于任何评级低于8的歌曲的分辨率的歌曲的id是什么？

SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)
问题: 高于评级低于8的歌曲的分辨率的所有歌曲的id是多少呢？

SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)
问题: 在现代流派中，分辨率高于平均分辨率的歌曲的id是什么？

SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  "现代")
问题: 在“现代”音乐流派中，所有具有高于平均分辨率的歌曲的id是什么？

SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  "现代")
问题: 找出“孟加拉语”歌曲数量前3多的艺术家。

SQL: SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "孟加拉语" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
问题: 用“孟加拉语”演唱的歌曲数量最多的前三位艺术家有哪些？

SQL: SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "孟加拉语" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
问题: 列出按评级排序的“英文”歌曲的ID、流派和艺术家名字。

SQL: SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   "英文" ORDER BY rating
问题: 按升序排列的每首“英文”歌曲的艺术家的id、风格和名字是什么？

SQL: SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   "英文" ORDER BY rating
问题: 按标题排序列出“流行”歌曲的持续时间、文件大小和格式。

SQL: 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
问题: 按标题字母顺序排列的每首“流行”歌曲的持续时间、文件大小和歌曲格式是什么？

SQL: 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
问题: 找出那些制作过“英文”歌曲但从未获得过8级以上的评分的艺术家的名字。

SQL: SELECT DISTINCT artist_name FROM song WHERE languages  =  "英文" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8
问题: 那些用“英文”创作了一首歌但从未获得过8级以上评分的不同艺术家的名字是什么？

SQL: SELECT DISTINCT artist_name FROM song WHERE languages  =  "英文" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8
问题: 查找那些来自“孟加拉国”但从未获得过超过7分评级的艺术家的名字。

SQL: SELECT DISTINCT artist_name FROM artist WHERE country  =  "孟加拉国" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7
问题: 来自“孟加拉国”但从未获得过高于7级的评级的不同艺术家的姓名是什么？

SQL: SELECT DISTINCT artist_name FROM artist WHERE country  =  "孟加拉国" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7
问题: 拥有数量最多的棒球运动员的大学的全名和id是什么？

SQL: 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;
问题: 找出拥有最多数量棒球运动员的大学的全名和id。

SQL: 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;
问题: “广州恒大队”队员的平均工资是多少？

SQL: SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队'
问题: 计算“广州恒大队”的球员的平均工资。

SQL: SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = '广州恒大队'
问题: 1998参加全明星赛的球员的名字和姓氏是什么？

SQL: SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
问题: 列出1998年参加全明星赛的球员的名字和姓氏。

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

SQL: 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;
问题: 哪位球员有最多的全明星比赛经验？给出球员的名字，姓氏和id，以及其参与全明星比赛的次数。

SQL: 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;
问题: 每年有多少球员进入名人堂？

SQL: SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;
问题: 统计每年进入名人堂的球员的数量。

SQL: SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;
问题: 每年参加国内比赛的平均人数是多少？

SQL: SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;
问题: 返回每年参加国内比赛的平均人数。

SQL: SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;
问题: 在2014年，平均出勤人数最多的团队的id和级别是什么？

SQL: 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;
问题: 找出2014年平均出勤率最高的团队的id和级别。

SQL: 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;
问题: 获得经理奖最多的经理的名字、姓氏和id是什么？

SQL: 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;
问题: 给出赢得了经理奖的经理的名字、姓氏和id。

SQL: 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;
问题: “上海”省有多少公园？

SQL: SELECT count(*) FROM park WHERE state  =  '上海';
问题: 给出“上海”省公园的数量。

SQL: SELECT count(*) FROM park WHERE state  =  '上海';
问题: 哪3位球员赢得了最多的球员奖？列出他们的全名和id。

SQL: 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;
问题: 找出获得球员奖次数最多的前三名球员的名字、姓氏和id。

SQL: 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;
问题: 列出拥有最少数量运动员的三个国家。

SQL: SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
问题: 哪三个国家拥有最少数量的运动员？

SQL: SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
问题: 找到所有死亡记录为空的球员的名字和姓氏。

SQL: SELECT name_first ,  name_last FROM player WHERE death_year = '';
问题: 死亡记录为空的球员的名字和姓氏是什么？

SQL: SELECT name_first ,  name_last FROM player WHERE death_year = '';
问题: 在“中国”出生的运动员有多少是右手击球手？也就是说，击球值是“R”。

SQL: SELECT count(*) FROM player WHERE birth_country = '中国' AND bats  =  'R';
问题: 计算出生在"中国"且击球值信息是“R”的球员的数量。

SQL: SELECT count(*) FROM player WHERE birth_country = '中国' AND bats  =  'R';
问题: 来自“复旦大学”的运动员的平均身高是多少？

SQL: 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  =  '复旦大学';
问题: 找出“复旦大学”运动员的平均身高。

SQL: 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  =  '复旦大学';
问题: 每个队的最高工资是多少？列出团队名称、id和最高工资。

SQL: 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;
问题: 对于每个队，返回球队名称、ID和团队中的最高工资。

SQL: 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;
问题: 提供最低平均工资的团队的名称和ID是什么？

SQL: 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;
问题: 哪一队提供最低的平均工资？给我这个队的名字和id。

SQL: 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;
问题: 找出在1960年和1961年都获奖的球员的名字和姓氏。

SQL: 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
问题: 哪位选手在1960和1961都获奖？返回他们的名字和姓氏。

SQL: 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
问题: 列出体重大于220或身高小于75的运动员的名字和姓氏。

SQL: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
问题: 体重超过220或身高低于75的球员的名字和姓氏是什么？

SQL: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
问题: 列出“广州恒大队”在季后赛获胜时的最高得分。

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

SQL: SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  '广州恒大队';
问题: “广州恒大队”在2009年的季后赛输了多少次？

SQL: 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;
问题: 计算球队“广州恒大队”在2009年季后赛中输掉的次数。

SQL: 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;
问题: 2008赛季季后赛获胜次数最多的球队的名字和ID是什么？

SQL: 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;
问题: 找出在2008季后赛中赢得最多次数的球队的名字和ID。

SQL: 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;
问题: 历史上“广州恒大队”在季后赛每年的获胜次数是多少？

SQL: 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
问题: 返回每年“广州恒大队”在季后赛每年获胜的次数。

SQL: 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
问题: “广州恒大队”参加的季后赛总数是多少？

SQL: 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  =  '广州恒大队' );
问题: “广州恒大队”总共参加了多少次季后赛？

SQL: 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  =  '广州恒大队' );
问题: 在1885年的季后赛中，有多少场比赛是打成平局的（也就是说，“平局”的值是“1”）？

SQL: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
问题: 找出在1885年季后赛中平局游戏的次数（“平局”的值是“1”）。

SQL: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
问题: 2010年“广州恒大队”的总薪水是多少？

SQL: 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
问题: 2010年度“广州恒大队”的对内总薪水是多少？

SQL: 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
问题: 2000年“广州恒大队”有多少队员？

SQL: 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
问题: “广州恒大队”在2000年球员的数量有多少？

SQL: 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
问题: 列出2001年度球员的3个最高的薪水。

SQL: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;
问题: 2001年前3名高收益球员的薪水是多少？

SQL: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;
问题: 2010年和2001年的球员的工资值是多少？

SQL: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001
问题: 列出所有在2010和2001球员收到的工资值。

SQL: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001
问题: 哪一年最少的球员进入名人堂？

SQL: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;
问题: 找出最少球员进入名人堂的年份。

SQL: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;
问题: “长沙”有多少个公园？

SQL: SELECT count(*) FROM park WHERE city = '长沙';
问题: “长沙”市的公园数有多少？

SQL: SELECT count(*) FROM park WHERE city = '长沙';
问题: 1907年在公园“北海公园”有多少场比赛？

SQL: 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 = '北海公园';
问题: 统计1907年在公园“北海公园”发生的比赛数量。

SQL: 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 = '北海公园';
问题: 2000年在“长沙”市举行了多少比赛？

SQL: 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  =  '长沙';
问题: 找出2000年“长沙”市举办的比赛数量。

SQL: 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  =  '长沙';
问题: 从2000年到2010年“广州恒大队”主场的比赛数是多少？

SQL: 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;
问题: 从2000年到2010年，波士顿队的红袜队总共参加了多少场比赛？

SQL: 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;
问题: 在1985年到1990年间，这位名字是“文”姓氏是“左”的球员总共赚了多少钱？

SQL: 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;
问题: 计算在1985年到1990年间，名字是“文”姓氏是“左”的球员的总工资。

SQL: 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;
问题: 列出2005年和2007年从球队“北京人和”得到薪水球员的名字和姓氏。

SQL: 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 = '北京人和'
问题: 2005年和2007年从球队“北京人和”得到薪水球员的名字和姓氏是什么？

SQL: 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 = '北京人和'
问题: 从1990年到2000年，“广州恒大队”总共打了几场主场比赛？

SQL: 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;
问题: 计算从1990年到2000年“广州恒大队”参加的比赛总数。

SQL: 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;
问题: 哪支球队在1980年参加的主场比赛最少？

SQL: 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;
问题: 找出在1980年参加的主场比赛最少的球队。

SQL: 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;
问题: 列出有超过2个公园的省的名字。

SQL: SELECT state FROM park GROUP BY state HAVING count(*)  >  2;
问题: 哪些省有超过2个公园？

SQL: SELECT state FROM park GROUP BY state HAVING count(*)  >  2;
问题: 有多少团队的经营权是激活状态的，即活跃值是“Y”？

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

SQL: SELECT count(*) FROM team_franchise WHERE active = 'Y';
问题: 哪些城市有2到4个公园？

SQL: SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
问题: 找到所有有2到4个公园的城市。

SQL: SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
问题: 哪一个公园在2008年餐馆的最多？

SQL: SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;
问题: 2008年参观人数最多的公园是哪一个？

SQL: SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;
问题: 有多少照相机的镜头焦距大于15毫米？

SQL: SELECT count(*) FROM camera_lens WHERE focal_length_mm  >  15
问题: 找出按最大光圈的降序排列的每个相机镜头的品牌和名称。

SQL: SELECT brand ,  name FROM camera_lens ORDER BY max_aperture DESC
问题: 列出所有照片的ID、颜色方案和名称。

SQL: SELECT id ,  color ,  name FROM photos
问题: 山的最大高度和平均高度是多少？

SQL: SELECT max(height) ,  avg(height) FROM mountain
问题: 在“峨眉山”山脉的平均突出度是多少？

SQL: SELECT avg(prominence) FROM mountain WHERE country  =  '峨眉山'
问题: 不属于“长白山脉”的山脉的名称、高度和突出度是什么？

SQL: SELECT name ,  height ,  prominence FROM mountain WHERE range != '长白山脉'
问题: 有照片的山的id和名字是什么？

SQL: SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.height  >  4000
问题: 至少有2张照片的山的id和名字是什么？

SQL: SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id GROUP BY T1.id HAVING count(*)  >=  2
问题: 拍摄了最多山脉的照相机的名字是什么？

SQL: SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1
问题: 镜头品牌为“尼康”或“奥林巴斯”拍摄的照片名称是什么？

SQL: SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id  =  T1.id WHERE T1.brand  =  '尼康' OR T1.brand  =  '奥林巴斯'
问题: 有多少种不同的镜片品牌？

SQL: SELECT count(DISTINCT brand) FROM camera_lens
问题: 拍摄照片时没有使用的镜头数有多少？

SQL: SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos )
问题: 有多少种不同的相机镜头被用来拍摄“华山”的山脉？

SQL: SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.country  =  '华山'
问题: 列出那些拍摄“青藏高原”区域照片和拍摄“泰山”区域山峰的照片的镜头品牌

SQL: SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  '青藏高原' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  '泰山'
问题: 展示那些没有被“尼康”品牌的镜头拍摄的山脉的名字和突出度。

SQL: SELECT name ,  prominence FROM mountain EXCEPT SELECT T1.name ,  T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T3.brand  =  '尼康'
问题: 列出包含“数码”子字符串的相机镜头的名称。

SQL: SELECT name FROM camera_lens WHERE name LIKE "数码"
问题: 根据照片的数量排序的每个镜头的名称和用该镜头拍摄照片的数量是多少？

SQL: SELECT T1.name ,  count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id  =  T2.camera_lens_id GROUP BY T1.id ORDER BY count(*)
问题: 查找不属于“央视”的频道名称。

SQL: SELECT name FROM channel WHERE OWNER != '央视'
问题: 哪些频道不属于“央视”？返回频道的名字。

SQL: SELECT name FROM channel WHERE OWNER != '央视'
问题: 按其评级从大到小排序列出所有频道名称。

SQL: SELECT name FROM channel ORDER BY rating_in_percent DESC
问题: 给出一个按频道评级降序排序的所有频道名称的列表。

SQL: SELECT name FROM channel ORDER BY rating_in_percent DESC
问题: 拥有最高评级比率的频道的所有者是什么？

SQL: SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1
问题: 给我看一个拥有最高评级的频道的所有者。

SQL: SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1
问题: 有多少节目？

SQL: SELECT count(*) FROM program
问题: 计算节目的数量。

SQL: SELECT count(*) FROM program
问题: 按启动时间排序列出所有的节目名称。

SQL: SELECT name FROM program ORDER BY launch
问题: 按启动日期顺序排列的节目名称列表是什么？

SQL: SELECT name FROM program ORDER BY launch
问题: 列出每个节目名称、来源和所有者。

SQL: SELECT name ,  origin ,  OWNER FROM program
问题: 每个节目的名称、来源和拥有者是什么？

SQL: SELECT name ,  origin ,  OWNER FROM program
问题: 查找最近启动的节目的名称。

SQL: SELECT name FROM program ORDER BY launch DESC LIMIT 1
问题: 最近推出了哪个项目？返回节目的名称。

SQL: SELECT name FROM program ORDER BY launch DESC LIMIT 1
问题: 找出“央视”拥有的所有频道的总百分比。

SQL: SELECT sum(Share_in_percent) FROM channel WHERE OWNER  =  '央视'
问题: “央视”拥有的所有频道的总份额（占总数的百分比）是多少？

SQL: SELECT sum(Share_in_percent) FROM channel WHERE OWNER  =  '央视'
问题: 找出“早上”时间播出的频道的名字。

SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  '早上'
问题: 哪些频道在“早上”时间播出？把频道的名字给我。

SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  '早上'
问题: 既在“早上”又在“晚上”播出的频道的名称是什么？

SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  '早上' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  '晚上'
问题: 哪些频道既在“早上”时间又在“晚上”时间播出？把频道的名字给我。

SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  '早上' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  '晚上'
问题: 一天中每个时间段有多少个节目在播出？

SQL: SELECT count(*) ,  time_of_day FROM broadcast GROUP BY time_of_day
问题: 计算一天中每个时间段播放节目的数量。

SQL: SELECT count(*) ,  time_of_day FROM broadcast GROUP BY time_of_day
问题: 找出“晚上”时段播放的不同节目的数量。

SQL: SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  '晚上'
问题: 在“晚上”时间播出多少个不同的节目？

SQL: SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  '晚上'
问题: 找出“早上”时段从未播出过的节目名称。

SQL: SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "早上"
问题: 哪些节目从来不在“早上”时段播出？给我节目的名字。

SQL: SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "早上"
问题: 找出在“早上”时段和“晚上”时段都有节目播出的频道的所有者。

SQL: SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "早上" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "晚上"
问题: 在“早上”时段和“晚上”时段都有节目播出的频道的所有者是谁？

SQL: SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "早上" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "晚上"
问题: 按字母顺序列出所有节目的来源。

SQL: SELECT origin FROM program ORDER BY origin
问题: 按字母顺序排列的节目来源列表是什么？

SQL: SELECT origin FROM program ORDER BY origin
问题: 不同频道所有者的数量是多少？

SQL: SELECT count(DISTINCT OWNER) FROM channel
问题: 计算不同频道所有者的数量。

SQL: SELECT count(DISTINCT OWNER) FROM channel
问题: 查找来源不在“北京”的节目的名称。

SQL: SELECT name FROM program WHERE origin != '北京'
问题: 哪些节目的起源不是“北京”？给出节目的名称。

SQL: SELECT name FROM program WHERE origin != '北京'
问题: 被“央视”或“湖南卫视”拥有的频道名称是什么？

SQL: SELECT name FROM channel WHERE OWNER  =  '央视' OR OWNER  =  '湖南卫视'
问题: 列出“央视”或“湖南卫视”所拥有的所有频道的名称

SQL: SELECT name FROM channel WHERE OWNER  =  '央视' OR OWNER  =  '湖南卫视'
问题: 找到每个频道所有者的总评级比率。

SQL: SELECT sum(Rating_in_percent) ,  OWNER FROM channel GROUP BY OWNER
问题: 每个频道所有者的频道总评级是多少？

SQL: SELECT sum(Rating_in_percent) ,  OWNER FROM channel GROUP BY OWNER
问题: 找出播放最频繁的节目名称。

SQL: SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1
问题: 哪个节目的播出最频繁？给出节目的名字。

SQL: SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1
问题: 一共有多少门课？

SQL: SELECT count(*) FROM COURSES