jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 每个雇员的雇员id是什么？他们的上一份工作的最后工作日期是什么？

SQL: SELECT employee_id ,  MAX(end_date) FROM job_history GROUP BY employee_id
问题: 显示那些有10多名员工工作并获得佣金的部门。

SQL: SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10
问题: 有哪些部门有超过10名拿到佣金的员工，这些部门的id是什么？

SQL: SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10
问题: 查找任何管理4名或更多员工的经理所在部门的ID。

SQL: SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4
问题: 管理超过3名员工的经理所在部门的部门id是什么？

SQL: SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4
问题: 显示每个部门获得佣金百分比的雇员的平均工资。

SQL: SELECT department_id ,  AVG(salary) FROM employees WHERE commission_pct != "空" GROUP BY department_id
问题: 佣金百分比不为零的雇员的平均工资是多少？

SQL: SELECT department_id ,  AVG(salary) FROM employees WHERE commission_pct != "空" GROUP BY department_id
问题: 显示每个国家的城市ID和城市数量。

SQL: SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id
问题: 给出每个国家的城市ID和相应的城市数量。

SQL: SELECT country_id ,  COUNT(*) FROM locations GROUP BY country_id
问题: 显示有两次或更多次超过300天才完成的作业的ID。

SQL: SELECT job_id FROM job_history WHERE end_date - start_date  > 300 GROUP BY job_id HAVING COUNT(*) >= 2
问题: 对于不止一次超过300天才完成的工作，这些工作的ID是什么？

SQL: SELECT job_id FROM job_history WHERE end_date - start_date  > 300 GROUP BY job_id HAVING COUNT(*) >= 2
问题: 显示那些过去做过两个或更多工作的员工id。

SQL: SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2
问题: 做过两个或更多工作的员工的员工ID是什么？

SQL: SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2
问题: 找到员工的id和目前他正在工作的国家的名称。

SQL: SELECT T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id
问题: 所有员工的id和他们工作的国家的名称是什么？

SQL: SELECT T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id
问题: 显示部门名称和每个部门的员工人数。

SQL: SELECT T2.department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T2.department_name
问题: 给出每个部门的名称和部门中员工的人数。

SQL: SELECT T2.department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T2.department_name
问题: 你能返回目前工资在120000及以上的员工所从事的工作的详细信息吗？

SQL: SELECT * FROM  job_history AS T1 JOIN employees AS T2 ON T1.employee_id  =  T2.employee_id WHERE T2.salary  >=  12000
问题: 由工资高于或等于12000的员工完成的工作的历史信息是什么？

SQL: SELECT * FROM  job_history AS T1 JOIN employees AS T2 ON T1.employee_id  =  T2.employee_id WHERE T2.salary  >=  12000
问题: 显示员工的职称和平均工资。

SQL: SELECT job_title ,  AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id GROUP BY T2.job_title
问题: 每个职位的平均工资是多少？

SQL: SELECT job_title ,  AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id GROUP BY T2.job_title
问题: 工资高于id为163的员工的那些员工的全名（姓、名）是多少？

SQL: SELECT first_name ,  last_name FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )
问题: 提供工资超过id为163号的员工的员工的全名。

SQL: SELECT first_name ,  last_name FROM employees WHERE salary  >  (SELECT salary FROM employees WHERE employee_id = 163 )
问题: 返回每个部门的最低工资。

SQL: SELECT MIN(salary) ,  department_id FROM employees GROUP BY department_id
问题: 每个部门的最低工资是多少？

SQL: SELECT MIN(salary) ,  department_id FROM employees GROUP BY department_id
问题: 找到在所有部门中挣的工资最低的员工的名字、姓氏和部门id。

SQL: SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)
问题: 所有部门工资最低的员工的全名和部门id是什么？

SQL: SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)
问题: 找到所有挣的工资超过平均工资的员工的ID。

SQL: SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)
问题: 挣的工资超过平均工资的所有员工的id是什么？

SQL: SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)
问题: 显示向“王总”（姓）报告的所有员工的员工id和工资。

SQL: SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  '王总' )
问题: 向“王总”报告的员工的id是什么？他们的薪水是多少？

SQL: SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  '王总' )
问题: 查找实际分配了一个或多个员工的所有部门的名称。

SQL: SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id
问题: 有至少一名员工的部门名称是什么？

SQL: SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id
问题: 获取管理部门的员工的详细信息。

SQL: SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id
问题: 关于管理人员的所有信息是什么？

SQL: SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id
问题: 显示“市场”部门的所有信息。

SQL: SELECT * FROM  departments WHERE department_name  =  '市场'
问题: 显示之前做过两份或更多工作的员工的id。

SQL: SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2
问题: 那些有过两个或更多工作的员工的ID是什么？

SQL: SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2
问题: 任何管理4名或4名以上员工的经理所在的部门的唯一id是什么？

SQL: SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4
问题: 给出负责4个或更多员工的经理所在的部门的不同部门ID？

SQL: SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4
问题: 找到平均工资在8000以上的职位的职位ID。

SQL: SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000
问题: 平均工资在8000以上的工作对应的工作ID是什么？

SQL: SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000
问题: 显示部门80中所有职位的员工ID和职位名称。

SQL: SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80
问题: 部门80的员工ID和职称是什么？

SQL: SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80
问题: “财务”部门所有员工的名字和职位ID是什么？

SQL: SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  '财务'
问题: 给出“财务”部的所有员工的名字和职位ID。

SQL: SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  '财务'
问题: 如果员工的工资在最低工资至2500的范围内，那么显示他们的所有信息。

SQL: SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
问题: 对于工资高于最低限度而且低于2500的员工，他们的所有信息是什么？

SQL: SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
问题: 查找不在某些部门工作的员工的id，这些部门的经理的id在100和200范围内。

SQL: SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)
问题: 对于不在部门经理ID在100-200之间的那些部门工作的员工，他们的id是什么？

SQL: SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)
问题: 显示所有和“明明”在同一个部门工作的员工的姓名（名字和姓氏）以及聘用日期。

SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  "明明")
问题: 同一个姓克拉拉的员工的全名和聘用日期是什么？

SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  "明明")
问题: 显示与名字是“明明”的同事在同一个部门但不包括“明明”的其它雇员的全名（名字和姓氏）和雇用日期。

SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  "明明") AND first_name != "明明"
问题: 与名字是“明明”的同事在同一个部门但不包括“明明”的其它雇员的全名和雇用日期是什么？

SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  "明明") AND first_name != "明明"
问题: 显示与名字中包含汉字“T”的雇员在同一部门工作的员工的id和全名（名字和姓氏）。

SQL: SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '洋' )
问题: 与名字中包含汉字“洋”的雇员在同一部门工作的员工的id和全名是什么？

SQL: SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '洋' )
问题: 显示与名字中包含汉字“江”的雇员在同一部门工作且工资高于平均工资的员工的id、全名（名字和姓氏）和工资。

SQL: SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '江')
问题: 与名字中包含汉字“江”的雇员在同一部门工作且工资高于平均工资的员工的id、全名（名字和姓氏）和工资是多少？

SQL: SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '江')
问题: 显示所有工资低于工作职称是“机械工人”的员工工资的所有员工的雇员id和工作ID。

SQL: SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  '机械工人' )
问题: 所有工资低于工作职称是“机械工人”的员工工资的所有员工的雇员id和工作ID是什么？

SQL: SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  '机械工人' )
问题: 显示所有工资金额高于“工程师”职称的员工工资的所有雇员的员工id、姓名（名字和姓氏）和职称。

SQL: SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  '工程师' )
问题: 所有工资金额高于“工程师”职称的员工工资的雇员的员工ID、全名和工作ID是什么？

SQL: SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  '工程师' )
问题: 显示包含至少两个员工的部门ID和部门总工资。

SQL: SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2
问题: 包含至少两个员工的部门ID和部门总工资是多少？

SQL: SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2
问题: 显示过去没有工作过的员工的所有信息。

SQL: SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)
问题: 过去从未工作过的员工的所有信息是什么？

SQL: SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)
问题: 显示部门ID、全名（名字和姓氏）、每个部门中工资最高的员工的工资。

SQL: SELECT first_name ,   last_name ,   salary ,  department_id ,  MAX(salary) FROM employees GROUP BY department_id
问题: 部门ID、全名和每个部门中工资最高的员工的工资是什么？

SQL: SELECT first_name ,   last_name ,   salary ,  department_id ,  MAX(salary) FROM employees GROUP BY department_id
问题: 显示每个员工的名字和姓氏、部门、城市和省。

SQL: SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id
问题: 每个雇员的全名、部门、城市和所在省份是那些？

SQL: SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id
问题: 显示那些包含汉字“文”的员工的名字，姓氏和所在的城市。

SQL: SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '文'
问题: 名字中包含汉字“文”的员工的全名和所在的城市是什么？

SQL: SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '文'
问题: 显示各部门的部门名称、城市和所在省份。

SQL: SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id
问题: 每个部门的部门名称、城市和所在省份都有哪些？

SQL: SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id
问题: 显示员工的全名（姓名和姓氏），ID和当前工作所在国家的名称。

SQL: SELECT T1.first_name ,  T1.last_name , T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id
问题: 每个雇员的全名、id和他们工作所在国家的名称是什么？

SQL: SELECT T1.first_name ,  T1.last_name , T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id
问题: 显示每个部门的部门名称和员工人数。

SQL: SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name
问题: 每个部门的部门名称和每个部门对应的员工人数是多少？

SQL: SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name
问题: 显示在“北京”工作的员工的全名（名字和姓氏）和薪水。

SQL: SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  '北京'
问题: 在“北京”工作的员工的全名和薪水是多少？

SQL: SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  '北京'
问题: 最近一年发行的歌叫什么名字？

SQL: SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1
问题: 最近发行的那首歌叫什么名字？

SQL: SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1
问题: 最长的歌的ID是什么？

SQL: SELECT f_id FROM files ORDER BY duration DESC LIMIT 1
问题: 找出最长的歌曲的ID。

SQL: SELECT f_id FROM files ORDER BY duration DESC LIMIT 1
问题: 找出所有“英文”歌曲的名字。

SQL: SELECT song_name FROM song WHERE languages  =  "英文"
问题: 所有“英文”歌曲的名字是什么？

SQL: SELECT song_name FROM song WHERE languages  =  "英文"
问题: 格式为“MP3”的歌曲的ID是什么？

SQL: SELECT f_id FROM files WHERE formats  =  "mp3"
问题: “MP3”格式的所有文件的ID是什么？

SQL: SELECT f_id FROM files WHERE formats  =  "mp3"
问题: 列出所有评分在9以上的歌曲的歌手的姓名和原籍国。

SQL: SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9
问题: 所有评分在9以上的歌曲的歌手的姓名和原籍国是什么？

SQL: SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9
问题: 列出所有分辨率低于800的歌曲的文件大小和格式。

SQL: SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800
问题: 分辨率低于800的所有歌曲的文件大小和格式是什么？

SQL: SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800
问题: 制作最短歌曲的艺术家叫什么名字？

SQL: SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1
问题: 演唱最短歌曲的艺术家的名字是什么？

SQL: SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1
问题: 制作评分最高的三首歌曲的艺术家的名字和原籍国是什么？

SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3
问题: 演唱三大最受欢迎歌曲的歌手的名字是什么？他们来自哪个国家？

SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3
问题: 有多少歌曲有“4”分钟的持续时间？

SQL: SELECT count(*) FROM files WHERE duration LIKE "4:%"
问题: 能持续约“4”分钟的歌曲的总数是多少？

SQL: SELECT count(*) FROM files WHERE duration LIKE "4:%"
问题: 有多少艺术家来自“孟加拉国”？

SQL: SELECT count(*) FROM artist WHERE country  =  "孟加拉国"
问题: 有多少“孟加拉国”的艺术家在表中？

SQL: SELECT count(*) FROM artist WHERE country  =  "孟加拉国"
问题: “女性”艺人创作的歌曲平均评级是多少？

SQL: SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "女"
问题: “女性”歌手演唱的平均歌曲数是多少？

SQL: SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "女"
问题: 什么是最流行的文件格式？

SQL: SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1
问题: 找到大多数文件使用的文件格式。

SQL: SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1
问题: 找出来自“英国”并制作了“英文”歌曲的艺术家的名字。

SQL: SELECT artist_name FROM artist WHERE country  =  "英国" INTERSECT SELECT artist_name FROM song WHERE languages  =  "英文"
问题: 来自“英国”且用“英文”唱歌的艺术家的名字是什么？

SQL: SELECT artist_name FROM artist WHERE country  =  "英国" INTERSECT SELECT artist_name FROM song WHERE languages  =  "英文"
问题: 找出可用“mp4”格式且分辨率低于1000的歌曲的ID。

SQL: SELECT f_id FROM files WHERE formats  =  "mp4" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000
问题: 可用“mp4”格式且分辨率低于1000的歌曲的ID是什么？

SQL: SELECT f_id FROM files WHERE formats  =  "mp4" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000
问题: 用“孟加拉语”创作的“女性”艺术家的原籍国是什么？

SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "女" AND T2.languages  =  "孟加拉语"
问题: “孟加拉语”创作的“女性”艺术家来自哪个国家？

SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "女" AND T2.languages  =  "孟加拉语"
问题: 格式为“mp3”且分辨率低于800的歌曲的平均持续时间是多少？

SQL: SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" AND T2.resolution   <  800
问题: “mp3”格式且分辨率低于800的所有歌曲的平均歌曲持续时间是多长？

SQL: SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" AND T2.resolution   <  800
问题: 每个性别的艺术家数量是多少？

SQL: SELECT count(*) ,  gender FROM artist GROUP BY gender
问题: 有多少艺术家是男性，有多少艺术家是女性？

SQL: SELECT count(*) ,  gender FROM artist GROUP BY gender
问题: 每种语言的歌曲的平均评分是多少？

SQL: SELECT avg(rating) ,  languages FROM song GROUP BY languages
问题: 每种语言的平均歌曲评分是多少？

SQL: SELECT avg(rating) ,  languages FROM song GROUP BY languages
问题: 返回制作分辨率最低的歌曲的艺术家的性别和姓名。

SQL: SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1
问题: 制作分辨率最低的歌曲的艺术家的性别和姓名是什么？

SQL: SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1
问题: 对于每个文件格式，返回以该格式发布歌曲的艺术家的数量。

SQL: SELECT count(*) ,  formats FROM files GROUP BY formats
问题: 每种不同的音乐格式发行了多少首歌？

SQL: SELECT count(*) ,  formats FROM files GROUP BY formats
问题: 找出所有比“英文”歌曲分辨率更高的歌曲的不同名称。

SQL: SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  "英文")
问题: 对于分辨率高于“英文”歌曲的所有不同歌曲的名字是什么？

SQL: SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  "英文")
问题: 评价比“蓝调”风格的歌曲低的歌曲名字是什么？

SQL: SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  "蓝调")
问题: 比至少一首“蓝调”歌曲的评级低的歌曲的名字是什么？

SQL: SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  "蓝调")
问题: 发行了一首标题中包含“爱”字的歌曲的艺术家的名字和原籍国是什么？

SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE "爱"
问题: 发行了一首名为“爱”的歌曲的艺术家叫什么名字？这些艺术家来自哪里？

SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE "爱"
问题: 列出在“三月”发布歌曲的所有艺人的姓名和性别。

SQL: SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE "三月"
问题: 在“三月”发行歌曲的所有艺术家的姓名和性别是什么？

SQL: SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE "三月"
问题: 按字母顺序列出所有流派的名称及他们对应的评级。

SQL: SELECT g_name ,  rating FROM genre ORDER BY g_name
问题: 按字母顺序排列的所有流派的名称及其评级是什么？

SQL: SELECT g_name ,  rating FROM genre ORDER BY g_name
问题: 按分辨率排序列出所有歌曲的名称。

SQL: SELECT song_name FROM song ORDER BY resolution
问题: 根据他们的分辨率数字列出的歌曲的名字是什么？

SQL: SELECT song_name FROM song ORDER BY resolution
问题: 那些歌曲在“mp4”格式或者分辨率高于720的歌曲中是可用的？列出可用歌曲的id。

SQL: SELECT f_id FROM files WHERE formats  =  "mp4" UNION SELECT f_id FROM song WHERE resolution  >  720
问题: 在“mp4”格式上或分辨率高于720的所有可用歌曲的id是什么？

SQL: SELECT f_id FROM files WHERE formats  =  "mp4" UNION SELECT f_id FROM song WHERE resolution  >  720
问题: 列出所有有“4”分钟持续时间或语言是“英文”的歌曲的名字。

SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages  =  "英文"
问题: 大约“4”分钟长的歌曲或语言是“英文”歌曲的名称是什么？

SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages  =  "英文"
问题: 歌曲中最常用的语言是什么？

SQL: SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1
问题: 在歌曲中最经常被使用的语言是什么？

SQL: SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1
问题: 在分辨率超过500的歌曲中，最常用的语言是什么？

SQL: SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1
问题: 每种语言具有最多数量超过500分辨率的歌曲的歌手叫什么名字？

SQL: SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1
问题: 来自“英国”的“男”艺术家的名字是什么？

SQL: SELECT artist_name FROM artist WHERE country  =  "英国" AND gender  =  "男"
问题: 所有“英国”的“男”艺术家的名字是什么？

SQL: SELECT artist_name FROM artist WHERE country  =  "英国" AND gender  =  "男"
问题: 找出体裁是“现代”的或语言是“英文”的歌曲的名字。

SQL: SELECT song_name FROM song WHERE genre_is  =  "现代" OR languages  =  "英文"
问题: 体裁是“现代”的或语言是“英文”的歌曲的名字是什么？

SQL: SELECT song_name FROM song WHERE genre_is  =  "现代" OR languages  =  "英文"
问题: 返回格式为“MP3”且分辨率低于1000的歌曲名称。

SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000
问题: 所有“mp3”格式且分辨率低于1000的歌曲的名称是什么？

SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000
问题: 返回来自“英国”并发布一首“英文”歌曲的歌手的名字。

SQL: SELECT artist_name FROM artist WHERE country  =  "英国" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "英文"
问题: 所有来自“英国”且用“英文”发行歌曲的歌手的名字是什么？

SQL: SELECT artist_name FROM artist WHERE country  =  "英国" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "英文"
问题: “孟加拉语”歌曲的平均评分和分辨率是多少？

SQL: SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  "孟加拉语"
问题: 所有“孟加拉语”歌曲的平均评级和分辨率是多少？

SQL: SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  "孟加拉语"
问题: 持续时间为“3”分钟的歌曲的最大分辨率和最小分辨率是什么？

SQL: SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "3:%"
问题: 大约“3”分钟长的所有歌曲的最大和最小分辨率是多少？

SQL: SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "3:%"
问题: 按语言分组和排序的歌曲的最大持续时间和分辨率是多少？

SQL: SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages
问题: 按语言字母顺序排列的每种语言的所有歌曲的最大持续时间和分辨率是多少？

SQL: SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages
问题: 按体裁分组并排序的歌曲的最短持续时间和最低评级是什么？

SQL: SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is
问题: 按体裁的字母顺序排列的每种体裁最短且评分最低的歌曲是什么？

SQL: SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is
问题: 找出所有至少有一首“英文”歌曲的艺术家的名字和作品数量。

SQL: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "英文" 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 WHERE T2.languages  =  "英文" GROUP BY T2.artist_name HAVING count(*)  >=  1