jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 返回前3大支持率。

SQL: SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
问题: 找到反对率最低的候选人的ID。

SQL: SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
问题: 反对率最低的候选人的身份是什么？

SQL: SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
问题: 按不确定率升序列出每个候选人的支持，考虑和反对率。

SQL: SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate
问题: 按不确定率升序排列的每个候选人的支持率、考虑率和反对率是多少？

SQL: SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate
问题: 针对那一项的民意调查有最高的反对率？

SQL: SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1
问题: 返回最有反对率的候选人对应的民意调查。

SQL: SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1
问题: 按出生日期顺序从年长到年轻列出所有人的名字。

SQL: SELECT name FROM people ORDER BY date_of_birth
问题: 按出生日期顺序列出所有人的名字是什么？

SQL: SELECT name FROM people ORDER BY date_of_birth
问题: 找到所有男性的平均身高和体重(性别是“男”)。

SQL: SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  '男'
问题: 男性的平均身高和体重是多少(性别是“男”)？

SQL: SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  '男'
问题: 找出身高在200以上或190以下的人的名字。

SQL: SELECT name FROM people WHERE height  >  200 OR height  <  190
问题: 身高大于200或小于190的人的名字是什么？

SQL: SELECT name FROM people WHERE height  >  200 OR height  <  190
问题: 找出每个性别的平均和最小重量。

SQL: SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex
问题: 每个性别的平均体重和最小体重是多少？

SQL: SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex
问题: 找出获得最高支持率的候选人的姓名和性别。

SQL: SELECT t1.name ,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
问题: 支持率最高的候选人的姓名和性别是什么？

SQL: SELECT t1.name ,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
问题: 找出每个性别中反对比例最低的候选人的姓名。

SQL: SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex
问题: 对于每个性别，反对率最低的候选人的姓名和性别是什么？

SQL: SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex
问题: 哪个性别的平均不确定率最高。

SQL: SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1
问题: 不确定率最高的候选人的性别是什么？

SQL: SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1
问题: 不参加候选人选举的人的名字是什么？

SQL: SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)
问题: 给出不参加候选人选举的人的姓名。

SQL: SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)
问题: 找出支持率低于反对率的候选人的姓名。

SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate
问题: 支持率低于反对率的候选人姓名是什么？

SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate
问题: 针对每个性别有多少人的体重高于85？

SQL: SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex
问题: 统计每一个体重超过85的人的数量。

SQL: SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex
问题: 找出所有候选人的最高支持率、最低考虑率和反对率。

SQL: SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate
问题: 返回所有候选人的最大支持率、最小考虑率和最小反对率？

SQL: SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate
问题: 按字母顺序列出所有女性(性别是“女”)候选人姓名。

SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  '女' ORDER BY t1.name
问题: 按字母顺序排列所有女性候选人的姓名(性别是“女”)？

SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  '女' ORDER BY t1.name
问题: 找出身高低于平均值的人的名字。

SQL: SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)
问题: 身高低于平均水平的人的名字是什么？

SQL: SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)
问题: 列出所有人的所有信息。

SQL: SELECT * FROM people
问题: 所有人的全部信息是什么？

SQL: SELECT * FROM people
问题: 找出'李安'导演的所有电影的标题。

SQL: SELECT title FROM Movie WHERE director = '李安'
问题: '李安'导演的所有电影的名字是什么？

SQL: SELECT title FROM Movie WHERE director = '李安'
问题: 2000年后由“姜文”导演的电影名字是什么？

SQL: SELECT title FROM Movie WHERE director = '姜文' AND YEAR  >  2000
问题: 2000年后“姜文”导演的所有电影的片名是什么？

SQL: SELECT title FROM Movie WHERE director = '姜文' AND YEAR  >  2000
问题: 2000年之前拍了多少电影？

SQL: SELECT count(*) FROM Movie WHERE YEAR  <  2000
问题: 电影“让子弹飞”的导演是谁？

SQL: SELECT director FROM Movie WHERE title  = '让子弹飞'
问题: “让子弹飞”导演是谁？

SQL: SELECT director FROM Movie WHERE title  = '让子弹飞'
问题: 有多少评论者？

SQL: SELECT count(*) FROM Reviewer
问题: 名字中包含'佳佳'的评论者的ID是什么？

SQL: SELECT rID FROM Reviewer WHERE name LIKE "佳佳"
问题: 评论者的名字中包括'佳佳'这个词的ID是什么？

SQL: SELECT rID FROM Reviewer WHERE name LIKE "佳佳"
问题: 评论者“苏铭”的ID是什么？

SQL: SELECT rID FROM Reviewer WHERE name  =  "苏铭"
问题: 名叫“苏铭”评论者的ID是什么？

SQL: SELECT rID FROM Reviewer WHERE name  =  "苏铭"
问题: 有超过3颗星的评分的总数是多少？

SQL: SELECT count(*) FROM Rating WHERE stars  >  3
问题: 有多少电影评分超过3颗星？

SQL: SELECT count(*) FROM Rating WHERE stars  >  3
问题: 最低和最高评级星级是什么？

SQL: SELECT max(stars) ,  min(stars) FROM Rating
问题: 一个评分能得到的最大和最小的星数是多少？

SQL: SELECT max(stars) ,  min(stars) FROM Rating
问题: 找出所有有评分为4或5的电影的所有年份，并按照年份的顺序进行排序。

SQL: SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year
问题: 按年份由远及近列出有电影获得4或5星级的评分的年份有哪些？

SQL: SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year
问题: 导演评分是5星级电影的导演名字是什么？返回这些电影的名称。

SQL: SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5
问题: 制作了评分是5星的电影的导演叫什么名字以及对应的电影名称是什么？

SQL: SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5
问题: 每个评论者给出的平均星级是多少？

SQL: SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name
问题: 每个评论者对一部电影的平均星级是多少？

SQL: SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name
问题: 找到所有没有评分的电影的标题。

SQL: SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)
问题: 所有未被评价的电影的片名是什么？

SQL: SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)
问题: 查找评价日期为'空'的所有评论者的姓名。

SQL: SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  "null"
问题: 所有没有评价日期的不同评论者的名字是什么？

SQL: SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  "null"
问题: 最老电影的平均星级和标题是多少？

SQL: SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)
问题: 对于列出的最老的电影，它的平均评级和标题是什么？

SQL: SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)
问题: 最近的电影叫什么名字？

SQL: SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)
问题: 最新电影的片名是什么？

SQL: SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)
问题: 最近一部电影的最高星级和年份是多少？

SQL: SELECT max(T1.stars) ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)
问题: 最近的电影的最高评分是什么，什么时候发布？

SQL: SELECT max(T1.stars) ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)
问题: 在“李安”执导的所有电影完成之后在进行拍摄的电影名字是什么？

SQL: SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  "李安")
问题: 所有在最近一部“李安”的电影完成之后再拍摄的电影的名字是什么？

SQL: SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  "李安")
问题: 星级高于“姜文”导演的电影平均水平的片名和导演有哪些？

SQL: SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  "姜文")
问题: 所有高于“姜文”电影的平均评级的电影的片名和导演是什么？

SQL: SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  "姜文")
问题: 按照评论者名字，片名，最后是星级数目的顺序排序，返回评论者的名字，电影片名，星级，和评价日期。

SQL: SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars
问题: 根据按照评论者名字，片名，最后是星级数目的顺序排序，返回评论者的名字，电影片名，星级，和评价日期是什么？

SQL: SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars
问题: 找到所有贡献了三次以上评价的评论者的名字。

SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3
问题: 所有评价过3部或更多部电影的评论者的名字是什么？

SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3
问题: 找出所有评价过“飘”的评论者的名字。

SQL: SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  '飘'
问题: 评价过“飘”不同的评论者的名字是什么？

SQL: SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  '飘'
问题: 找出所有被“沈荣”评价过的电影的导演的名字。

SQL: SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  '沈荣'
问题: 所有被“沈荣”评价过的电影的导演的名字是什么？

SQL: SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  '沈荣'
问题: 对于任何评价，如果评论者的名字与电影导演相同，那么返回评论者的名字、电影标题和星级数量。

SQL: SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name
问题: 对每个评价，如果评论员和导演同名，则评论员的名字、电影片名、星级是什么？

SQL: SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name
问题: 返回所有评论者的名字和电影的名字。

SQL: SELECT name FROM Reviewer UNION SELECT title FROM Movie
问题: 所有评论者和电影的名字是什么？

SQL: SELECT name FROM Reviewer UNION SELECT title FROM Movie
问题: 找到所有未被“谢晨”评论的电影的标题。

SQL: SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  '谢晨'
问题: “谢晨”没有评论的所有电影的标题是什么？

SQL: SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  '谢晨'
问题: 按导演姓名和电影标题排序，返回导演不止一部电影的导演所拍摄的所有电影名称和导演的名字。

SQL: SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title
问题: 对于所有导演不止一部电影的导演，他们导演的不同电影名称以及他们的名字都是什么？

SQL: SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title
问题: 对于有不止一部电影的导演，返回所有由他们执导的电影的片名和制作年份。

SQL: SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title
问题: 对于每个导演不止一部电影的导演，他们导演的电影的片名和发行日期是什么？

SQL: SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title
问题: 哪位导演只导演了一部电影？

SQL: SELECT director FROM Movie GROUP BY director HAVING count(*)  =  1
问题: 只制作了一部电影的所有导演的名字是什么？

SQL: SELECT director FROM Movie GROUP BY director HAVING count(*)  =  1
问题: 除了导演为“空”之外，那些只拍了一部电影的导演叫什么名字？

SQL: SELECT director FROM Movie WHERE director != "null" GROUP BY director HAVING count(*)  =  1
问题: 除导演为“空”之外的所有拍过一部电影的导演的名字是什么？

SQL: SELECT director FROM Movie WHERE director != "null" GROUP BY director HAVING count(*)  =  1
问题: 每个导演有多少个电影评论？

SQL: SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director
问题: 对于每个导演，他们收到了多少评论？

SQL: SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director
问题: 找出平均评级最高的电影。返回电影片名和平均评级。

SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1
问题: 平均评级最高的电影片名是什么及它们的评级是多少？

SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1
问题: 平均评级最低的电影的片名和平均评级是多少？

SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1
问题: 平均评级最低的所有电影的片名是什么？和平均的评级是多少？

SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1
问题: 评价排名前三位的电影的片名和发行年份是什么？

SQL: SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3
问题: 评价最高的3部电影的片名和放映年限是什么？

SQL: SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3
问题: 对于每个导演，返回导演的姓名以及他们导演所有电影中评价最高的片名以及该评价的值。忽略导演为“空”的电影。

SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != "null" GROUP BY director
问题: 对于每个导演，他们导演过的所有电影的片名和评级是多少？

SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != "null" GROUP BY director
问题: 找出每位评价者评价最低的电影的片名和星级。

SQL: SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID
问题: 对于每个评论者ID，评级最低的电影的名称和评级是什么？

SQL: SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID
问题: 找出每个导演执导的所有电影中评价最低的电影的片名和得分。

SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director
问题: 对于每个导演来说，他们评分最差的电影的片名和得分是什么？

SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director
问题: 评价次数最多的电影的名字叫什么？

SQL: SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1
问题: 最被评论最多次的电影的名字是什么？

SQL: SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1
问题: 星级是在3和5之间的所有电影的标题是什么？

SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5
问题: 所有3到5颗星的电影的标题是什么？

SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5
问题: 找出评价都高于3星级的评论人的名字。

SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3
问题: 给一部电影打过3星以上的评论人叫什么名字？

SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3
问题: 找出没有“韦浩”评论每部电影的平均评价星级。

SQL: SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "韦浩") GROUP BY mID
问题: “韦浩”从未评价的每部电影的平均评价星级是多少？

SQL: SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "韦浩") GROUP BY mID
问题: “韦浩”没有评价的电影ID是什么？

SQL: SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "韦浩"
问题: “韦浩”还没有评价过的所有的电影的ID是什么？

SQL: SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "韦浩"
问题: 找出收到至少2次评论的每部电影的平均评级是多少。

SQL: SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2
问题: 对于每部超过3次评论的电影的平均评级是多少？

SQL: SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2
问题: 找出那些没有给4星级评论的评价者的ID。

SQL: SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4
问题: 没有给4星级评论的所有评价者的ID是什么？

SQL: SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4
问题: 找到至少一次没有给过4颗星评论的评价者的ID。

SQL: SELECT rID FROM Rating WHERE stars != 4
问题: 至少一次没有给过4颗星评论的所有评价者的ID是什么？

SQL: SELECT rID FROM Rating WHERE stars != 4
问题: 2000年以后制作或是由“韦浩”评论的电影的名字是什么？

SQL: SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  '韦浩' OR T2.year  >  2000
问题: 2000年以后制作或“韦浩”评论过的所有电影的名字是什么？

SQL: SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  '韦浩' OR T2.year  >  2000
问题: 在1980年之前制作的或者由“姜文”导演的电影的名字是什么？

SQL: SELECT title FROM Movie WHERE director  =  "姜文" OR YEAR   <  1980
问题: 1980年以前拍的电影或由“姜文”担任导演的电影都有哪些名字？

SQL: SELECT title FROM Movie WHERE director  =  "姜文" OR YEAR   <  1980
问题: 曾经给出3星级和4星级评价的评价者的名字是什么？

SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4
问题: 给出3颗星或4颗星评价的评论者的叫什么名字？

SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4
问题: 有3颗星和4颗星评价的电影叫什么名字？

SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  4
问题: 所有收到3和4颗星评价的电影的名字是什么？

SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  4
问题: 有多少个省？

SQL: SELECT count(*) FROM county_public_safety
问题: 统计省的数量。

SQL: SELECT count(*) FROM county_public_safety
问题: 按人口降序列出各个省的名称。

SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC
问题: 按人口下降顺序排列的省的名称是什么？

SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC
问题: 列出不在东边的省的不同警察机关。

SQL: SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != "冬"
问题: 不位于东部的省有哪些不同的警察机关？

SQL: SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != "冬"
问题: 所有省的最低犯罪率和最高犯罪率是多少？

SQL: SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety
问题: 返回所有省的最低和最高犯罪率。

SQL: SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety
问题: 按警官数量的升序显示各省的犯罪率。

SQL: SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC
问题: 按警官数目升序排列的每个省的犯罪率是多少？

SQL: SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC
问题: 按城市字母顺序排列的城市的名字是什么？

SQL: SELECT Name FROM city ORDER BY Name ASC
问题: 返回按字母顺序排列的城市名称。

SQL: SELECT Name FROM city ORDER BY Name ASC
问题: 在黑人比例高于10的城市，西班牙裔的比例是多少？

SQL: SELECT Hispanic FROM city WHERE Black  >  10
问题: 返回黑人百分比大于10的城市的西班牙裔百分比。

SQL: SELECT Hispanic FROM city WHERE Black  >  10
问题: 列出人口最多的省的名字。

SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1
问题: 人口最多的省叫什么名字？

SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1
问题: 列出白人百分比最大的5个的城市名称。

SQL: SELECT Name FROM city ORDER BY White DESC LIMIT 5
问题: 白人比例最大的五个城市叫什么名字？

SQL: SELECT Name FROM city ORDER BY White DESC LIMIT 5
问题: 显示城市名称和所在省的名称。

SQL: SELECT T1.Name ,  T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID
问题: 城市的名称以及它们所对应的省的名称分别是什么？

SQL: SELECT T1.Name ,  T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID
问题: 显示城市的白人百分比和他们所在的省的犯罪率。

SQL: SELECT T1.White ,  T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID
问题: 城市的白人比例是多少，它们所对应的省的犯罪率是多少？

SQL: SELECT T1.White ,  T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID
问题: 显示在警察数量最多的省的城市名称。

SQL: SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)
问题: 省内警察最多的城市叫什么名字？

SQL: SELECT name FROM city WHERE county_ID  =  (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)
问题: 显示人口超过20000的省的城市数量。

SQL: SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)
问题: 人口超过20000的省有多少城市？

SQL: SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population  >  20000)
问题: 显示一个白人比例超过90的城市的犯罪率。

SQL: SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90
问题: 白人比例超过90的城市的省的犯罪率是多少？

SQL: SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID WHERE T1.White  >  90
问题: 请显示警察机关和每个警察机关管辖的省的数目。

SQL: SELECT Police_force ,  COUNT(*) FROM county_public_safety GROUP BY Police_force
问题: 每个警察机关对应多少个省？

SQL: SELECT Police_force ,  COUNT(*) FROM county_public_safety GROUP BY Police_force
问题: 什么地方有数量最多的省？

SQL: SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
问题: 哪个地方有最多相对应的省？

SQL: SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
问题: 列出没有城市的省的名字。

SQL: SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)
问题: 不包含任何城市的省的名称是什么？

SQL: SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city)
问题: 显示东部和西部共同管辖的警察机构。

SQL: SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "冬" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "西"
问题: 在东部和西部的两个省都有哪些警察机构同时管辖？

SQL: SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "冬" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION  =  "西"
问题: 显示犯罪率低于100的省的城市名称。

SQL: SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate  <  100)
问题: 犯罪率低于100的省的城市名称是什么？

SQL: SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate  <  100)
问题: 按人口递减顺序显示省的人口负担。

SQL: SELECT Case_burden FROM county_public_safety ORDER BY Population DESC
问题: 按人口降序，每个省的人口负担是多少？

SQL: SELECT Case_burden FROM county_public_safety ORDER BY Population DESC
问题: 找到所有底价低于160美元且包含两张床的现代风格的房间的名称。

SQL: SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  '现代化';
问题: 那些底价低于160美元并包含两张床的现代风格的房间叫什么名字？

SQL: SELECT roomName FROM Rooms WHERE basePrice  <  160 AND beds =  2 AND decor  =  '现代化';
问题: 找到所有价格高于160且可以容纳2人以上的房间的房间名称和ID。

SQL: SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;
问题: 请问超过花费超过160且可以住两个人的所有房间的名称和ID是什么？

SQL: SELECT roomName ,  RoomId FROM Rooms WHERE basePrice  >  160 AND maxOccupancy  >  2;
问题: 找到酒店里最受欢迎即预订数量最多的房间。

SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;
问题: 预订次数最多的房间是哪一间？

SQL: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1;
问题: 有多少孩子待在“罗”“锋”预定的房间里？

SQL: SELECT kids FROM Reservations WHERE FirstName = "罗" AND LastName  =  "锋";
问题: 找出名字是“罗”“锋”的人预订的房间中孩子的数量。

SQL: SELECT kids FROM Reservations WHERE FirstName = "罗" AND LastName  =  "锋";
问题: “罗”“锋”曾预订过多少次房间。

SQL: SELECT count(*) FROM Reservations WHERE FirstName = "罗" AND LastName  =  "锋";
问题: 找出“罗”“锋”预订过房间的次数。

SQL: SELECT count(*) FROM Reservations WHERE FirstName = "罗" AND LastName  =  "锋";
问题: 列出房价最高的房间的全名、房价、入住和退房日期。

SQL: SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;
问题: 返回房价最高的房间的名称、房价、入住日期和退房日期。

SQL: SELECT T2.roomName ,  T1.Rate ,  T1.CheckIn ,  T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;
问题: “康” “运杰”在2010年10月23日登记入住的房间内有多少成年人？

SQL: SELECT Adults FROM Reservations WHERE CheckIn  =  "2010-10-23" AND FirstName  =  "康" AND LastName  =  "运杰";
问题: 查找由“康” “运杰”于2010年10月23日预订和登记的房间的成人数量。

SQL: SELECT Adults FROM Reservations WHERE CheckIn  =  "2010-10-23" AND FirstName  =  "康" AND LastName  =  "运杰";