jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE wrestler (Reign VARCHAR)
user: 请展示统治最多的摔跤手。

assistant: SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE wrestler (Reign VARCHAR)
user: 摔跤运动员最常见的是哪个统治？

assistant: SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE wrestler (LOCATION VARCHAR)
user: 列出有两个摔跤手的位置。

assistant: SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*)  >  2
Schema: CREATE TABLE wrestler (LOCATION VARCHAR)
user: 哪些位置有两个摔跤运动员？

assistant: SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*)  >  2
Schema: CREATE TABLE wrestler (Wrestler_ID VARCHAR, Name VARCHAR), CREATE TABLE elimination (Wrestler_ID VARCHAR, Name VARCHAR)
user: 列出没有被淘汰的摔跤运动员的名字。

assistant: SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)
Schema: CREATE TABLE wrestler (Wrestler_ID VARCHAR, Name VARCHAR), CREATE TABLE elimination (Wrestler_ID VARCHAR, Name VARCHAR)
user: 摔跤运动员的名字是什么？

assistant: SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination)
Schema: CREATE TABLE Elimination (Team VARCHAR, Eliminated_By VARCHAR)
user: 展示那些既有被“大志”淘汰的摔跤选手，又有被“一龙”淘汰的摔跤选手的队伍。

assistant: SELECT Team FROM Elimination WHERE Eliminated_By  =  "大志" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By  =  "一龙"
Schema: CREATE TABLE Elimination (Team VARCHAR, Eliminated_By VARCHAR)
user: 同时有被“大志”淘汰了和“一龙”淘汰了的摔跤选手的队伍都有哪些？

assistant: SELECT Team FROM Elimination WHERE Eliminated_By  =  "大志" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By  =  "一龙"
Schema: CREATE TABLE elimination (team VARCHAR)
user: 不同的团队遭受淘汰的数量是多少？

assistant: SELECT COUNT (DISTINCT team) FROM elimination
Schema: CREATE TABLE elimination (team VARCHAR)
user: 有多少支不同的球队淘汰了摔跤手？

assistant: SELECT COUNT (DISTINCT team) FROM elimination
Schema: CREATE TABLE elimination (TIME VARCHAR, Eliminated_By VARCHAR)
user: 显示被“市明”或者“大志”淘汰的次数。

assistant: SELECT TIME FROM elimination WHERE Eliminated_By  =  "市明" OR Eliminated_By  =  "大志"
Schema: CREATE TABLE elimination (TIME VARCHAR, Eliminated_By VARCHAR)
user: 被“市明”或者“大志”淘汰的淘汰次数是什么？

assistant: SELECT TIME FROM elimination WHERE Eliminated_By  =  "市明" OR Eliminated_By  =  "大志"
Schema: CREATE TABLE school (Id VARCHAR)
user: 有多少学校？

assistant: SELECT count(*) FROM school
Schema: CREATE TABLE school (Id VARCHAR)
user: 统计学校的数量。

assistant: SELECT count(*) FROM school
Schema: CREATE TABLE school (school_name VARCHAR)
user: 按字母顺序显示所有学校的名字。

assistant: SELECT school_name FROM school ORDER BY school_name
Schema: CREATE TABLE school (LOCATION VARCHAR, mascot VARCHAR, school_name VARCHAR)
user: 列出所有学校的名字、地点、吉祥物。

assistant: SELECT school_name ,  LOCATION ,  mascot FROM school
Schema: CREATE TABLE school (enrollment INTEGER)
user: 所有学校的总共入学人数和平均入学人数是多少？

assistant: SELECT sum(enrollment) ,  avg(enrollment) FROM school
Schema: CREATE TABLE school (mascot VARCHAR, enrollment INTEGER)
user: 入学人数高于平均水平的学校的吉祥物是什么？

assistant: SELECT mascot FROM school WHERE enrollment  >  (SELECT avg(enrollment) FROM school)
Schema: CREATE TABLE school (enrollment VARCHAR, school_name VARCHAR)
user: 列出入学人数最少的学校的名字。

assistant: SELECT school_name FROM school ORDER BY enrollment LIMIT 1
Schema: CREATE TABLE school (enrollment INTEGER)
user: 显示所有学校的平均、最大、最小入学人数。

assistant: SELECT avg(enrollment) ,  max(enrollment) ,  min(enrollment) FROM school
Schema: CREATE TABLE school (county VARCHAR, enrollment INTEGER)
user: 显示每个县学校数量和总入学人数。

assistant: SELECT county ,  count(*) ,  sum(enrollment) FROM school GROUP BY county
Schema: CREATE TABLE endowment (donator_name VARCHAR, school_id VARCHAR), CREATE TABLE school (school_id VARCHAR, school_name VARCHAR)
user: 有多少捐赠者捐助名为“理工大学”的学校？

assistant: SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  "理工大学"
Schema: CREATE TABLE endowment (amount INTEGER, donator_name VARCHAR)
user: 按照捐赠金额的下降顺序列出每个捐赠者的姓名和捐赠金额。

assistant: SELECT donator_name ,  sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC
Schema: CREATE TABLE school (school_id VARCHAR, school_name VARCHAR), CREATE TABLE endowment (school_id VARCHAR, school_name VARCHAR)
user: 列出没有捐赠的学校的名字。

assistant: SELECT school_name FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment)
Schema: CREATE TABLE endowment (amount INTEGER, school_id VARCHAR), CREATE TABLE school (school_id VARCHAR, school_name VARCHAR)
user: 列出所有捐赠金额小于或等于10的学校的名称。

assistant: SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount)  <=  10
Schema: CREATE TABLE endowment (donator_name VARCHAR, school_id VARCHAR), CREATE TABLE school (school_id VARCHAR, school_name VARCHAR)
user: 展示捐助学校“理工大学”和“财经大学”的捐赠者的姓名。

assistant: SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  '理工大学' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  '财经大学'
Schema: CREATE TABLE endowment (amount INTEGER, donator_name VARCHAR)
user: 除捐献金额小于9的捐赠者外，其他捐赠者的姓名。

assistant: SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount  <  9
Schema: CREATE TABLE endowment (donator_name VARCHAR, amount VARCHAR)
user: 列出数额最大的捐赠数和捐赠者的姓名。

assistant: SELECT amount ,  donator_name FROM endowment ORDER BY amount DESC LIMIT 1
Schema: CREATE TABLE budget (YEAR INTEGER, budgeted INTEGER)
user: 在2001年或以前，有多少预算在3000以上？

assistant: SELECT count(*) FROM budget WHERE budgeted  >  3000 AND YEAR  <=  2001
Schema: CREATE TABLE budget (YEAR INTEGER, budgeted INTEGER)
user: 计算2001年或以前预算额大于3000的预算数目。

assistant: SELECT count(*) FROM budget WHERE budgeted  >  3000 AND YEAR  <=  2001
Schema: CREATE TABLE budget (budgeted VARCHAR, invested VARCHAR, school_id VARCHAR, year INTEGER), CREATE TABLE school (school_id VARCHAR, school_name VARCHAR)
user: 显示2002年或之后每所学校的名称、预算金额以及投资金额。

assistant: SELECT T2.school_name ,  T1.budgeted ,  T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.year  >=  2002
Schema: CREATE TABLE endowment (donator_name VARCHAR)
user: 显示所有捐赠者的姓名。

assistant: SELECT DISTINCT donator_name FROM endowment
Schema: CREATE TABLE budget (invested INTEGER, budgeted INTEGER)
user: 多少预算记录的预算金额小于投资金额？

assistant: SELECT count(*) FROM budget WHERE budgeted  <  invested
Schema: CREATE TABLE budget (school_id VARCHAR, budgeted INTEGER), CREATE TABLE school (school_id VARCHAR, school_name VARCHAR)
user: “理工大学”学校所有年的预算总额是多少？

assistant: SELECT sum(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T2.school_name  =  '理工大学'
Schema: CREATE TABLE budget (school_id VARCHAR, budgeted INTEGER), CREATE TABLE school (school_id VARCHAR, school_name VARCHAR), CREATE TABLE endowment (amount INTEGER, school_id VARCHAR)
user: 显示预算总额大于100或捐赠总额大于10的学校的名称。

assistant: SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN endowment AS T3 ON T2.school_id  =  T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted)  >  100 OR sum(T3.amount)  >  10
Schema: CREATE TABLE endowment (amount INTEGER, school_id VARCHAR), CREATE TABLE school (School_name VARCHAR, school_id VARCHAR)
user: 查找有不止一个捐赠者捐赠超过8.5的学校的名称。

assistant: SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id WHERE T1.amount  >  8.5 GROUP BY T1.school_id HAVING count(*)  >  1
Schema: CREATE TABLE endowment (amount INTEGER, school_id VARCHAR)
user: 查找有不止一个捐赠者少于8.5的学校的数量。

assistant: SELECT count(*) FROM (SELECT * FROM endowment WHERE amount  >  8.5 GROUP BY school_id HAVING count(*)  >  1)
Schema: CREATE TABLE school (School_name VARCHAR, IHSAA_Football_Class VARCHAR, school_id VARCHAR, Mascot VARCHAR), CREATE TABLE budget (total_budget_percent_budgeted VARCHAR, school_id VARCHAR, total_budget_percent_invested VARCHAR)
user: 按照投资预算额和预算总额的百分比排序，列出预算总额超过6000所或在2003年之前成立的学校的名称、IHSAA足球班和吉祥物。

assistant: SELECT T1.School_name ,  T1.Mascot ,  T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id  =  T2.school_id WHERE Budgeted  >  6000 OR YEAR  <  2003 ORDER BY T2.total_budget_percent_invested ,  T2.total_budget_percent_budgeted
Schema: CREATE TABLE building (Id VARCHAR)
user: 那里有多少栋建筑？

assistant: SELECT count(*) FROM building
Schema: CREATE TABLE building (name VARCHAR, floors VARCHAR, street_address VARCHAR)
user: 根据楼层数显示所有建筑物的名称、街道地址和楼层数。

assistant: SELECT name ,  street_address ,  floors FROM building ORDER BY floors
Schema: CREATE TABLE building (name VARCHAR, height_feet VARCHAR)
user: 最高的建筑物叫什么名字？

assistant: SELECT name FROM building ORDER BY height_feet DESC LIMIT 1
Schema: CREATE TABLE building (floors INTEGER)
user: 所有建筑的平均、最大和最小楼层数是多少？

assistant: SELECT avg(floors) ,  max(floors) ,  min(floors) FROM building
Schema: CREATE TABLE building (floors INTEGER, height_feet INTEGER)
user: 显示高于平均高度或者楼层数高于平均的建筑物数量。

assistant: SELECT count(*) FROM building WHERE height_feet  >  (SELECT avg(height_feet) FROM building) OR floors  >  (SELECT avg(floors) FROM building)
Schema: CREATE TABLE building (floors INTEGER, height_feet INTEGER, name VARCHAR)
user: 列出高度至少200英尺以及楼层至少20层的建筑物的名称。

assistant: SELECT name FROM building WHERE height_feet  >=  200 AND floors  >=  20
Schema: CREATE TABLE institution (LOCATION VARCHAR, TYPE VARCHAR, founded INTEGER, institution VARCHAR)
user: 显示1990年以后成立的、类型为“私立”的机构的名称和地点。

assistant: SELECT institution ,  LOCATION FROM institution WHERE founded  >  1990 AND TYPE  =  '私立'
Schema: CREATE TABLE institution (TYPE VARCHAR, enrollment INTEGER)
user: 显示机构类型，以及每种类型的机构的数量和总注册人数。

assistant: SELECT TYPE ,  count(*) ,  sum(enrollment) FROM institution GROUP BY TYPE
Schema: CREATE TABLE institution (TYPE VARCHAR)
user: 展示机构数量最多的机构类型。

assistant: SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE institution (founded INTEGER, TYPE VARCHAR, enrollment INTEGER)
user: 显示1990年后成立至少有1000个注册人数的机构的机构类型。

assistant: SELECT TYPE FROM institution WHERE founded  >  1990 AND enrollment  >=  1000
Schema: CREATE TABLE building (building_id VARCHAR, name VARCHAR), CREATE TABLE institution (building_id VARCHAR, name VARCHAR)
user: 显示没有任何机构的建筑物名称。

assistant: SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution)
Schema: CREATE TABLE building (building_id VARCHAR, name VARCHAR), CREATE TABLE institution (building_id VARCHAR, founded VARCHAR)
user: 展示建筑名称，除了那些含有在2003成立的机构的。

assistant: SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  =  2003
Schema: CREATE TABLE building (building_id VARCHAR, name VARCHAR), CREATE TABLE institution (building_id VARCHAR)
user: 对于每个建筑，显示建筑物的名称和其中的机构数量。

assistant: SELECT T1.name ,  count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id GROUP BY T1.building_id
Schema: CREATE TABLE building (building_id VARCHAR, name VARCHAR, height_feet VARCHAR), CREATE TABLE institution (founded INTEGER, building_id VARCHAR)
user: 展示在1880年后建立的至少有两个机构的建筑物的名称和高度。

assistant: SELECT T1.name ,  T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id  =  T2.building_id WHERE T2.founded  >  1880 GROUP BY T1.building_id HAVING count(*)  >=  2
Schema: CREATE TABLE institution (TYPE VARCHAR)
user: 显示所有不同的机构类型。

assistant: SELECT DISTINCT TYPE FROM institution
Schema: CREATE TABLE institution (institution_id VARCHAR, institution VARCHAR), CREATE TABLE protein (institution_id VARCHAR)
user: 显示机构名称以及每个机构的蛋白质数量。

assistant: SELECT T1.institution ,  count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id GROUP BY T1.institution_id
Schema: CREATE TABLE institution (founded INTEGER, type VARCHAR, institution_id VARCHAR), CREATE TABLE protein (institution_id VARCHAR)
user: 有多少蛋白质与1880年后建立的机构或具有“私立”类型的机构相关？

assistant: SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.founded  >  1880 OR T1.type  =  '私立'
Schema: CREATE TABLE institution (institution_id VARCHAR, institution VARCHAR), CREATE TABLE protein (institution_id VARCHAR, protein_name VARCHAR)
user: 显示蛋白质名称和机构名称。

assistant: SELECT T2.protein_name ,  T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id
Schema: CREATE TABLE institution (building_id VARCHAR, institution_id VARCHAR), CREATE TABLE protein (institution_id VARCHAR), CREATE TABLE building (building_id VARCHAR, floors INTEGER)
user: 在至少20层楼的建筑中，有多少机构与蛋白质相关联？

assistant: SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id JOIN building AS T3 ON T3.building_id  =  T1.building_id WHERE T3.floors  >=  20
Schema: CREATE TABLE institution (institution_id VARCHAR), CREATE TABLE protein (institution_id VARCHAR)
user: 在我们的记录中没有蛋白质的相关机构有多少？

assistant: SELECT count(*) FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM protein)
Schema: CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
user: 显示所有容量超过800电影院的位置。

assistant: SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity  >  800
Schema: CREATE TABLE cinema (LOCATION VARCHAR, openning_year VARCHAR)
user: 展示所有在2010年和2011年开业的电影院。

assistant: SELECT LOCATION FROM cinema WHERE openning_year  =  2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year  =  2011
Schema: CREATE TABLE cinema (Id VARCHAR)
user: 我们有多少电影院？

assistant: SELECT count(*) FROM cinema
Schema: CREATE TABLE cinema (Id VARCHAR)
user: 数一数电影院的数量。

assistant: SELECT count(*) FROM cinema
Schema: CREATE TABLE cinema (openning_year VARCHAR, capacity VARCHAR, name VARCHAR)
user: 显示每个影院的名称、开张年份和容量。

assistant: SELECT name ,  openning_year ,  capacity FROM cinema
Schema: CREATE TABLE cinema (LOCATION VARCHAR, name VARCHAR, capacity INTEGER)
user: 显示容量高于平均水平的电影院的名称和位置。

assistant: SELECT name ,  LOCATION FROM cinema WHERE capacity  >  (SELECT avg(capacity) FROM cinema)
Schema: CREATE TABLE cinema (LOCATION VARCHAR)
user: 电影院的所有位置是什么？

assistant: SELECT DISTINCT LOCATION FROM cinema
Schema: CREATE TABLE cinema (LOCATION VARCHAR)
user: 找到有电影院的不同地点。

assistant: SELECT DISTINCT LOCATION FROM cinema
Schema: CREATE TABLE cinema (openning_year VARCHAR, name VARCHAR)
user: 按开张年份降序，显示所有的电影名称和开张年份。

assistant: SELECT name ,  openning_year FROM cinema ORDER BY openning_year DESC
Schema: CREATE TABLE cinema (LOCATION VARCHAR, capacity VARCHAR, name VARCHAR)
user: 最大容量的电影院的名字和位置是什么？

assistant: SELECT name ,  LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1
Schema: CREATE TABLE cinema (openning_year INTEGER, capacity INTEGER)
user: 显示2011年或之后所有开业的电影院的平均、最低和最大容量。

assistant: SELECT avg(capacity) ,  min(capacity) ,  max(capacity) FROM cinema WHERE openning_year  >=  2011
Schema: CREATE TABLE cinema (LOCATION VARCHAR)
user: 显示每个位置和对应电影院的数量。

assistant: SELECT LOCATION ,  count(*) FROM cinema GROUP BY LOCATION
Schema: CREATE TABLE cinema (LOCATION VARCHAR, openning_year INTEGER)
user: 2010年或以后电影院最多的位置是什么？

assistant: SELECT LOCATION FROM cinema WHERE openning_year  >=  2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
user: 显示所有至少有两个容量超过300的电影院的位置。

assistant: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2
Schema: CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
user: 哪些地方有2个或更多容量超过300的电影院？

assistant: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2
Schema: CREATE TABLE film (title VARCHAR, directed_by VARCHAR)
user: 显示所有电影片名和导演。

assistant: SELECT title ,  directed_by FROM film
Schema: CREATE TABLE film (title VARCHAR, directed_by VARCHAR)
user: 每部电影的片名和导演是什么？

assistant: SELECT title ,  directed_by FROM film
Schema: CREATE TABLE film (directed_by VARCHAR)
user: 显示所有导演。

assistant: SELECT DISTINCT directed_by FROM film
Schema: CREATE TABLE film (directed_by VARCHAR)
user: 所有导演是谁？

assistant: SELECT DISTINCT directed_by FROM film
Schema: CREATE TABLE film (directed_by VARCHAR)
user: 列出所有导演和导演导演的电影数量。

assistant: SELECT directed_by ,  count(*) FROM film GROUP BY directed_by
Schema: CREATE TABLE schedule (show_times_per_day INTEGER, cinema_id VARCHAR), CREATE TABLE cinema (cinema_id VARCHAR, name VARCHAR)
user: 每家影院每台DAT的显示次数是多少？

assistant: SELECT T2.name ,  sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id  =  T2.cinema_id GROUP BY T1.cinema_id
Schema: CREATE TABLE schedule (price INTEGER, film_id VARCHAR), CREATE TABLE film (title VARCHAR, film_id VARCHAR)
user: 每部电影的片名和最高价格是多少？

assistant: SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id
Schema: CREATE TABLE schedule (price INTEGER, film_id VARCHAR), CREATE TABLE film (title VARCHAR, film_id VARCHAR)
user: 给我每个电影的片名和最高价格。

assistant: SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id
Schema: CREATE TABLE schedule (cinema_id VARCHAR, price VARCHAR, date VARCHAR, film_id VARCHAR), CREATE TABLE film (title VARCHAR, film_id VARCHAR), CREATE TABLE cinema (cinema_id VARCHAR, name VARCHAR)
user: 按时间表显示电影院名称、电影片名、日期和价格。

assistant: SELECT T3.name ,  T2.title ,  T1.date ,  T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN cinema AS T3 ON T1.cinema_id  =  T3.cinema_id
Schema: CREATE TABLE film (title VARCHAR, directed_by VARCHAR, film_id VARCHAR), CREATE TABLE schedule (title VARCHAR, directed_by VARCHAR, film_id VARCHAR)
user: 没有时间表的电影的片名和导演是什么？

assistant: SELECT title ,  directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)
Schema: CREATE TABLE schedule (show_times_per_day INTEGER, film_id VARCHAR), CREATE TABLE film (directed_by VARCHAR, film_id VARCHAR)
user: 显示总共演出时间最多的导演。

assistant: SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1
Schema: CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
user: 找到有一个以上容量超过300的电影院的位置。

assistant: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1
Schema: CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
user: 在哪些地方有不止一个电影院的容量超过300？

assistant: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1
Schema: CREATE TABLE film (title VARCHAR)
user: 有多少电影片名里有“故事”？

assistant: SELECT count(*) FROM film WHERE title LIKE "故事"
Schema: CREATE TABLE film (title VARCHAR)
user: 计算标题包含“故事”的电影的数量。

assistant: SELECT count(*) FROM film WHERE title LIKE "故事"
Schema: CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR), CREATE TABLE discount_coupons (coupon_amount VARCHAR, coupon_id VARCHAR)
user: 顾客持500金额优惠券是好还是不好？

assistant: SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.coupon_amount  =  500
Schema: CREATE TABLE Customers (first_name VARCHAR, customer_id VARCHAR), CREATE TABLE bookings (customer_id VARCHAR)
user: 每个客户预订了多少次？列出客户ID、名字和数量。

assistant: SELECT T1.customer_id ,  T1.first_name ,  count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id
Schema: CREATE TABLE Payments (customer_id VARCHAR, amount_paid INTEGER)
user: 顾客支付的最大总金额是多少？列出客户ID和数量。

assistant: SELECT customer_id ,  sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1
Schema: CREATE TABLE Bookings (booking_id VARCHAR, amount_of_refund VARCHAR), CREATE TABLE Payments (booking_id VARCHAR)
user: 支付次数最多的预订的ID和退款额是多少？

assistant: SELECT T1.booking_id ,  T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id  =  T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE products_booked (product_id VARCHAR)
user: 预订3次的产品ID是什么？

assistant: SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*)  =  3
Schema: CREATE TABLE products_booked (product_id VARCHAR, booked_amount VARCHAR), CREATE TABLE products_for_hire (product_id VARCHAR, product_description VARCHAR)
user: 预定数量为102.76的产品的描述是什么。

assistant: SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.booked_amount  =  102.76
Schema: CREATE TABLE Products_for_hire (product_id VARCHAR, product_name VARCHAR), CREATE TABLE products_booked (product_id VARCHAR, booking_id VARCHAR), CREATE TABLE bookings (booking_start_date VARCHAR, booking_id VARCHAR, booking_end_date VARCHAR)
user: 预订了名为“书集”的产品的预订的开始日期和结束日期是什么？

assistant: SELECT T3.booking_start_date ,   T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id  =  T2.product_id JOIN bookings AS T3 ON T2.booking_id  =  T3.booking_id WHERE T1.product_name  =  '书集'
Schema: CREATE TABLE view_product_availability (product_id VARCHAR, available_yn VARCHAR), CREATE TABLE products_for_hire (product_id VARCHAR, product_name VARCHAR)
user: 可用性等于1的产品名称是什么？

assistant: SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.available_yn  =  1
Schema: CREATE TABLE products_for_hire (product_type_code VARCHAR)
user: 有多少种不同的产品类型？

assistant: SELECT count(DISTINCT product_type_code) FROM products_for_hire
Schema: CREATE TABLE customers (good_or_bad_customer VARCHAR, last_name VARCHAR, gender_mf VARCHAR, first_name VARCHAR)
user: 所有“好”顾客的名字、姓氏和性别是什么？按姓氏排序。

assistant: SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  '良好' ORDER BY last_name
Schema: CREATE TABLE payments (amount_due INTEGER)
user: 所有付款的平均金额是多少？

assistant: SELECT avg(amount_due) FROM payments
Schema: CREATE TABLE products_booked (booked_count INTEGER)
user: 预订的产品的最大、最小和平均预订数量是多少？

assistant: SELECT max(booked_count) ,  min(booked_count) ,  avg(booked_count) FROM products_booked
Schema: CREATE TABLE payments (payment_type_code VARCHAR)
user: 不同的支付类型有哪些？

assistant: SELECT DISTINCT payment_type_code FROM payments
Schema: CREATE TABLE Products_for_hire (daily_hire_cost VARCHAR, product_name VARCHAR)
user: 以“书”为子字符串的产品的日租金是多少？

assistant: SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '书'
Schema: CREATE TABLE Products_for_hire (product_id VARCHAR, booked_amount INTEGER), CREATE TABLE products_booked (product_id VARCHAR, booked_amount INTEGER)
user: 有多少产品的预定数量从没超过200？

assistant: SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount  >  200 )
Schema: CREATE TABLE Discount_Coupons (coupon_amount VARCHAR, coupon_id VARCHAR), CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR)
user: 好客户和坏客户拥有优惠券的优惠券金额是多少？

assistant: SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  '良好' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  '差'
Schema: CREATE TABLE payments (payment_date VARCHAR, amount_paid INTEGER, payment_type_code VARCHAR)
user: 支付金额高于300或付款类型是“现金”的付款日期。

assistant: SELECT payment_date FROM payments WHERE amount_paid  >  300 OR payment_type_code  =  '现金'
Schema: CREATE TABLE products_for_hire (product_description VARCHAR, product_name VARCHAR, daily_hire_cost INTEGER, product_type_code VARCHAR)
user: 什么是“餐具”类型并且每日租金低于20产品的名称和描述？

assistant: SELECT product_name ,  product_description FROM products_for_hire WHERE product_type_code  =  '餐具' AND daily_hire_cost  <  20
Schema: CREATE TABLE phone (Id VARCHAR)
user: 有多少手机？

assistant: SELECT count(*) FROM phone
Schema: CREATE TABLE phone (Price VARCHAR, Name VARCHAR)
user: 按价格升序列出手机名称。

assistant: SELECT Name FROM phone ORDER BY Price ASC
Schema: CREATE TABLE phone (Memory_in_G VARCHAR, Carrier VARCHAR)
user: 手机的内存和运营商是什么？

assistant: SELECT Memory_in_G ,  Carrier FROM phone