jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE faculty (year VARCHAR, campus VARCHAR), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: 2004在“厦门大学”有多少教师队伍？

assistant: SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus  =  T2.id WHERE T1.year  =  2004 AND T2.campus  =  "厦门大学"
Schema: CREATE TABLE campuses (id VARCHAR), CREATE TABLE faculty (campus VARCHAR, faculty INTEGER)
user: 列出在2004年间有600到1000个教职员工的学校。

assistant: SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id  =  t2.campus WHERE t2.faculty  >=  600 AND t2.faculty  <=  1000 AND T1.year  =  2004
Schema: CREATE TABLE campuses (id VARCHAR), CREATE TABLE faculty (campus VARCHAR, faculty INTEGER)
user: 2004年有哪些学校拥有600到1000名的教职工？

assistant: SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id  =  t2.campus WHERE t2.faculty  >=  600 AND t2.faculty  <=  1000 AND T1.year  =  2004
Schema: CREATE TABLE campuses (id VARCHAR), CREATE TABLE faculty (faculty VARCHAR), CREATE TABLE degrees (Id VARCHAR)
user: 在2002年授予的学位最多的大学教职数是多少？

assistant: SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2002 ORDER BY t3.degrees DESC LIMIT 1
Schema: CREATE TABLE campuses (id VARCHAR), CREATE TABLE faculty (faculty VARCHAR), CREATE TABLE degrees (Id VARCHAR)
user: 2002年授予学位最多的那所大学有多少名教员？

assistant: SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2002 ORDER BY t3.degrees DESC LIMIT 1
Schema: CREATE TABLE campuses (id VARCHAR), CREATE TABLE faculty (faculty VARCHAR), CREATE TABLE degrees (Id VARCHAR)
user: 在2001年授予的学位最少的学校的教师队伍是多少？

assistant: SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2001 ORDER BY t3.degrees LIMIT 1
Schema: CREATE TABLE campuses (id VARCHAR), CREATE TABLE faculty (faculty VARCHAR), CREATE TABLE degrees (Id VARCHAR)
user: 2001年授予的学位数最少的大学中的教职员工数量有多少？

assistant: SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id  =  t2.campus JOIN degrees AS T3 ON T1.id  =  t3.campus AND t2.year  =  t3.year WHERE t2.year  =  2001 ORDER BY t3.degrees LIMIT 1
Schema: CREATE TABLE discipline_enrollments (year VARCHAR, campus VARCHAR, undergraduate INTEGER), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: 2004年“湖南大学”有多少本科生？

assistant: SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  "湖南大学"
Schema: CREATE TABLE discipline_enrollments (year VARCHAR, campus VARCHAR, undergraduate INTEGER), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: “湖南大学”有多少本科生？

assistant: SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  "湖南大学"
Schema: CREATE TABLE discipline_enrollments (graduate INTEGER, year VARCHAR, campus VARCHAR), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: "厦门大学"2004年级毕业生人数是多少？

assistant: SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  "厦门大学"
Schema: CREATE TABLE discipline_enrollments (graduate INTEGER, year VARCHAR, campus VARCHAR), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: "厦门大学"有多少人毕业于2004年？

assistant: SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  "厦门大学"
Schema: CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: 2000年度"厦门大学"的学费是多少？

assistant: SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  "厦门大学" AND t1.year  =  2000
Schema: CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: 2000年度的"厦门大学"的学费金额是多少？

assistant: SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  "厦门大学" AND t1.year  =  2000
Schema: CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: 找出“湖南大学”2000年度的学费。

assistant: SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  "湖南大学" AND t1.year  =  2000
Schema: CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR), CREATE TABLE campuses (campus VARCHAR, id VARCHAR)
user: “湖南大学”2000年度的学费金额是多少？

assistant: SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t2.campus  =  "湖南大学" AND t1.year  =  2000
Schema: CREATE TABLE campuses (Id VARCHAR)
user: 有多少个学校？

assistant: SELECT count(*) FROM campuses
Schema: CREATE TABLE campuses (Id VARCHAR)
user: 校园的总数是多少？

assistant: SELECT count(*) FROM campuses
Schema: CREATE TABLE candidate (Id VARCHAR)
user: 有多少候选人？

assistant: SELECT count(*) FROM candidate
Schema: CREATE TABLE candidate (Id VARCHAR)
user: 统计候选人人数。

assistant: SELECT count(*) FROM candidate
Schema: CREATE TABLE candidate (poll_source VARCHAR)
user: 哪些投票资源提供了最多的候选信息？

assistant: SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE candidate (poll_source VARCHAR)
user: 返回候选人最多的民意调查。

assistant: SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE candidate (support_rate VARCHAR)
user: 前3大支持率是什么？

assistant: SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
Schema: CREATE TABLE candidate (support_rate VARCHAR)
user: 返回前3大支持率。

assistant: SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
Schema: CREATE TABLE candidate (Candidate_ID VARCHAR, oppose_rate VARCHAR)
user: 找到反对率最低的候选人的ID。

assistant: SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
Schema: CREATE TABLE candidate (Candidate_ID VARCHAR, oppose_rate VARCHAR)
user: 反对率最低的候选人的身份是什么？

assistant: SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
Schema: CREATE TABLE candidate (Consider_rate VARCHAR, Support_rate VARCHAR, unsure_rate VARCHAR, Oppose_rate VARCHAR)
user: 按不确定率升序列出每个候选人的支持，考虑和反对率。

assistant: SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate
Schema: CREATE TABLE candidate (Consider_rate VARCHAR, Support_rate VARCHAR, unsure_rate VARCHAR, Oppose_rate VARCHAR)
user: 按不确定率升序排列的每个候选人的支持率、考虑率和反对率是多少？

assistant: SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate
Schema: CREATE TABLE candidate (poll_source VARCHAR, oppose_rate VARCHAR)
user: 针对那一项的民意调查有最高的反对率？

assistant: SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1
Schema: CREATE TABLE candidate (poll_source VARCHAR, oppose_rate VARCHAR)
user: 返回最有反对率的候选人对应的民意调查。

assistant: SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1
Schema: CREATE TABLE people (date_of_birth VARCHAR, name VARCHAR)
user: 按出生日期顺序从年长到年轻列出所有人的名字。

assistant: SELECT name FROM people ORDER BY date_of_birth
Schema: CREATE TABLE people (date_of_birth VARCHAR, name VARCHAR)
user: 按出生日期顺序列出所有人的名字是什么？

assistant: SELECT name FROM people ORDER BY date_of_birth
Schema: CREATE TABLE people (sex VARCHAR, height INTEGER, weight INTEGER)
user: 找到所有男性的平均身高和体重(性别是“男”)。

assistant: SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  '男'
Schema: CREATE TABLE people (sex VARCHAR, height INTEGER, weight INTEGER)
user: 男性的平均身高和体重是多少(性别是“男”)？

assistant: SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  '男'
Schema: CREATE TABLE people (height INTEGER, name VARCHAR)
user: 找出身高在200以上或190以下的人的名字。

assistant: SELECT name FROM people WHERE height  >  200 OR height  <  190
Schema: CREATE TABLE people (height INTEGER, name VARCHAR)
user: 身高大于200或小于190的人的名字是什么？

assistant: SELECT name FROM people WHERE height  >  200 OR height  <  190
Schema: CREATE TABLE people (sex VARCHAR, weight INTEGER)
user: 找出每个性别的平均和最小重量。

assistant: SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex
Schema: CREATE TABLE people (sex VARCHAR, weight INTEGER)
user: 每个性别的平均体重和最小体重是多少？

assistant: SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (support_rate VARCHAR, people_id VARCHAR)
user: 找出获得最高支持率的候选人的姓名和性别。

assistant: 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
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (support_rate VARCHAR, people_id VARCHAR)
user: 支持率最高的候选人的姓名和性别是什么？

assistant: 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
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (people_id VARCHAR)
user: 找出每个性别中反对比例最低的候选人的姓名。

assistant: 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
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (people_id VARCHAR)
user: 对于每个性别，反对率最低的候选人的姓名和性别是什么？

assistant: 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
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR), CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER)
user: 哪个性别的平均不确定率最高。

assistant: 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
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR), CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER)
user: 不确定率最高的候选人的性别是什么？

assistant: 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
Schema: CREATE TABLE people (people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (people_id VARCHAR, name VARCHAR)
user: 不参加候选人选举的人的名字是什么？

assistant: SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)
Schema: CREATE TABLE people (people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (people_id VARCHAR, name VARCHAR)
user: 给出不参加候选人选举的人的姓名。

assistant: SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)
Schema: CREATE TABLE people (people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (oppose_rate INTEGER, people_id VARCHAR, support_rate INTEGER)
user: 找出支持率低于反对率的候选人的姓名。

assistant: 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
Schema: CREATE TABLE people (people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (oppose_rate INTEGER, people_id VARCHAR, support_rate INTEGER)
user: 支持率低于反对率的候选人姓名是什么？

assistant: 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
Schema: CREATE TABLE people (sex VARCHAR, weight INTEGER)
user: 针对每个性别有多少人的体重高于85？

assistant: SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex
Schema: CREATE TABLE people (sex VARCHAR, weight INTEGER)
user: 统计每一个体重超过85的人的数量。

assistant: SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex
Schema: CREATE TABLE candidate (consider_rate INTEGER, oppose_rate INTEGER, support_rate INTEGER)
user: 找出所有候选人的最高支持率、最低考虑率和反对率。

assistant: SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate
Schema: CREATE TABLE candidate (consider_rate INTEGER, oppose_rate INTEGER, support_rate INTEGER)
user: 返回所有候选人的最大支持率、最小考虑率和最小反对率？

assistant: SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (people_id VARCHAR)
user: 按字母顺序列出所有女性(性别是“女”)候选人姓名。

assistant: 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
Schema: CREATE TABLE people (sex VARCHAR, people_id VARCHAR, name VARCHAR), CREATE TABLE candidate (people_id VARCHAR)
user: 按字母顺序排列所有女性候选人的姓名(性别是“女”)？

assistant: 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
Schema: CREATE TABLE people (height INTEGER, name VARCHAR)
user: 找出身高低于平均值的人的名字。

assistant: SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)
Schema: CREATE TABLE people (height INTEGER, name VARCHAR)
user: 身高低于平均水平的人的名字是什么？

assistant: SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)
Schema: CREATE TABLE people (Id VARCHAR)
user: 列出所有人的所有信息。

assistant: SELECT * FROM people
Schema: CREATE TABLE people (Id VARCHAR)
user: 所有人的全部信息是什么？

assistant: SELECT * FROM people
Schema: CREATE TABLE Movie (title VARCHAR, director VARCHAR)
user: 找出'李安'导演的所有电影的标题。

assistant: SELECT title FROM Movie WHERE director = '李安'
Schema: CREATE TABLE Movie (title VARCHAR, director VARCHAR)
user: '李安'导演的所有电影的名字是什么？

assistant: SELECT title FROM Movie WHERE director = '李安'
Schema: CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR)
user: 2000年后由“姜文”导演的电影名字是什么？

assistant: SELECT title FROM Movie WHERE director = '姜文' AND YEAR  >  2000
Schema: CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR)
user: 2000年后“姜文”导演的所有电影的片名是什么？

assistant: SELECT title FROM Movie WHERE director = '姜文' AND YEAR  >  2000
Schema: CREATE TABLE Movie (YEAR INTEGER)
user: 2000年之前拍了多少电影？

assistant: SELECT count(*) FROM Movie WHERE YEAR  <  2000
Schema: CREATE TABLE Movie (title VARCHAR, director VARCHAR)
user: 电影“让子弹飞”的导演是谁？

assistant: SELECT director FROM Movie WHERE title  = '让子弹飞'
Schema: CREATE TABLE Movie (title VARCHAR, director VARCHAR)
user: “让子弹飞”导演是谁？

assistant: SELECT director FROM Movie WHERE title  = '让子弹飞'
Schema: CREATE TABLE Reviewer (Id VARCHAR)
user: 有多少评论者？

assistant: SELECT count(*) FROM Reviewer
Schema: CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 名字中包含'佳佳'的评论者的ID是什么？

assistant: SELECT rID FROM Reviewer WHERE name LIKE "佳佳"
Schema: CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 评论者的名字中包括'佳佳'这个词的ID是什么？

assistant: SELECT rID FROM Reviewer WHERE name LIKE "佳佳"
Schema: CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 评论者“苏铭”的ID是什么？

assistant: SELECT rID FROM Reviewer WHERE name  =  "苏铭"
Schema: CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 名叫“苏铭”评论者的ID是什么？

assistant: SELECT rID FROM Reviewer WHERE name  =  "苏铭"
Schema: CREATE TABLE Rating (stars INTEGER)
user: 有超过3颗星的评分的总数是多少？

assistant: SELECT count(*) FROM Rating WHERE stars  >  3
Schema: CREATE TABLE Rating (stars INTEGER)
user: 有多少电影评分超过3颗星？

assistant: SELECT count(*) FROM Rating WHERE stars  >  3
Schema: CREATE TABLE Rating (stars INTEGER)
user: 最低和最高评级星级是什么？

assistant: SELECT max(stars) ,  min(stars) FROM Rating
Schema: CREATE TABLE Rating (stars INTEGER)
user: 一个评分能得到的最大和最小的星数是多少？

assistant: SELECT max(stars) ,  min(stars) FROM Rating
Schema: CREATE TABLE Movie (year VARCHAR, mID VARCHAR), CREATE TABLE Rating (mID VARCHAR, stars INTEGER)
user: 找出所有有评分为4或5的电影的所有年份，并按照年份的顺序进行排序。

assistant: SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year
Schema: CREATE TABLE Movie (year VARCHAR, mID VARCHAR), CREATE TABLE Rating (mID VARCHAR, stars INTEGER)
user: 按年份由远及近列出有电影获得4或5星级的评分的年份有哪些？

assistant: SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year
Schema: CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR), CREATE TABLE Rating (mID VARCHAR, stars VARCHAR)
user: 导演评分是5星级电影的导演名字是什么？返回这些电影的名称。

assistant: SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5
Schema: CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR), CREATE TABLE Rating (mID VARCHAR, stars VARCHAR)
user: 制作了评分是5星的电影的导演叫什么名字以及对应的电影名称是什么？

assistant: SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5
Schema: CREATE TABLE Rating (stars INTEGER, rID VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 每个评论者给出的平均星级是多少？

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

assistant: SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name
Schema: CREATE TABLE Movie (title VARCHAR, mID VARCHAR), CREATE TABLE Rating (title VARCHAR, mID VARCHAR)
user: 找到所有没有评分的电影的标题。

assistant: SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)
Schema: CREATE TABLE Movie (title VARCHAR, mID VARCHAR), CREATE TABLE Rating (title VARCHAR, mID VARCHAR)
user: 所有未被评价的电影的片名是什么？

assistant: SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)
Schema: CREATE TABLE Reviewer (rID VARCHAR), CREATE TABLE Rating (rID VARCHAR)
user: 查找评价日期为'空'的所有评论者的姓名。

assistant: SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  "null"
Schema: CREATE TABLE Reviewer (rID VARCHAR), CREATE TABLE Rating (rID VARCHAR)
user: 所有没有评价日期的不同评论者的名字是什么？

assistant: SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  "null"
Schema: CREATE TABLE Rating (mID VARCHAR, stars INTEGER), CREATE TABLE Movie (YEAR INTEGER)
user: 最老电影的平均星级和标题是多少？

assistant: 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)
Schema: CREATE TABLE Rating (mID VARCHAR, stars INTEGER), CREATE TABLE Movie (YEAR INTEGER)
user: 对于列出的最老的电影，它的平均评级和标题是什么？

assistant: 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)
Schema: CREATE TABLE Movie (title VARCHAR, YEAR INTEGER)
user: 最近的电影叫什么名字？

assistant: SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)
Schema: CREATE TABLE Movie (title VARCHAR, YEAR INTEGER)
user: 最新电影的片名是什么？

assistant: SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)
Schema: CREATE TABLE Rating (mID VARCHAR, stars INTEGER), CREATE TABLE Movie (YEAR INTEGER)
user: 最近一部电影的最高星级和年份是多少？

assistant: 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)
Schema: CREATE TABLE Rating (mID VARCHAR, stars INTEGER), CREATE TABLE Movie (YEAR INTEGER)
user: 最近的电影的最高评分是什么，什么时候发布？

assistant: 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)
Schema: CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR)
user: 在“李安”执导的所有电影完成之后在进行拍摄的电影名字是什么？

assistant: SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  "李安")
Schema: CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR)
user: 所有在最近一部“李安”的电影完成之后再拍摄的电影的名字是什么？

assistant: SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  "李安")
Schema: CREATE TABLE Rating (mID VARCHAR, stars INTEGER), CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR)
user: 星级高于“姜文”导演的电影平均水平的片名和导演有哪些？

assistant: 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  =  "姜文")
Schema: CREATE TABLE Rating (mID VARCHAR, stars INTEGER), CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR)
user: 所有高于“姜文”电影的平均评级的电影的片名和导演是什么？

assistant: 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  =  "姜文")
Schema: CREATE TABLE Rating (mID VARCHAR, ratingDate VARCHAR, rID VARCHAR, stars VARCHAR), CREATE TABLE Movie (title VARCHAR, mID VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 按照评论者名字，片名，最后是星级数目的顺序排序，返回评论者的名字，电影片名，星级，和评价日期。

assistant: 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
Schema: CREATE TABLE Rating (mID VARCHAR, ratingDate VARCHAR, rID VARCHAR, stars VARCHAR), CREATE TABLE Movie (title VARCHAR, mID VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 根据按照评论者名字，片名，最后是星级数目的顺序排序，返回评论者的名字，电影片名，星级，和评价日期是什么？

assistant: 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
Schema: CREATE TABLE Rating (rID VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 找到所有贡献了三次以上评价的评论者的名字。

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

assistant: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3
Schema: CREATE TABLE Rating (mID VARCHAR, rID VARCHAR), CREATE TABLE Movie (title VARCHAR, mID VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 找出所有评价过“飘”的评论者的名字。

assistant: 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  =  '飘'
Schema: CREATE TABLE Rating (mID VARCHAR, rID VARCHAR), CREATE TABLE Movie (title VARCHAR, mID VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 评价过“飘”不同的评论者的名字是什么？

assistant: 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  =  '飘'
Schema: CREATE TABLE Rating (mID VARCHAR, rID VARCHAR), CREATE TABLE Movie (mID VARCHAR, director VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 找出所有被“沈荣”评价过的电影的导演的名字。

assistant: 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  =  '沈荣'
Schema: CREATE TABLE Rating (mID VARCHAR, rID VARCHAR), CREATE TABLE Movie (mID VARCHAR, director VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 所有被“沈荣”评价过的电影的导演的名字是什么？

assistant: 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  =  '沈荣'
Schema: CREATE TABLE Rating (mID VARCHAR, rID VARCHAR, stars VARCHAR), CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 对于任何评价，如果评论者的名字与电影导演相同，那么返回评论者的名字、电影标题和星级数量。

assistant: 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
Schema: CREATE TABLE Rating (mID VARCHAR, rID VARCHAR, stars VARCHAR), CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR), CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR)
user: 对每个评价，如果评论员和导演同名，则评论员的名字、电影片名、星级是什么？

assistant: 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
Schema: CREATE TABLE Reviewer (title VARCHAR, name VARCHAR), CREATE TABLE Movie (title VARCHAR, name VARCHAR)
user: 返回所有评论者的名字和电影的名字。

assistant: SELECT name FROM Reviewer UNION SELECT title FROM Movie