jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE CUSTOMER (SupportRepId VARCHAR, LastName VARCHAR), CREATE TABLE EMPLOYEE (EmployeeId VARCHAR)
user: 服务最多20名顾客的员工的姓氏是什么？

assistant: SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  <=  20
Schema: CREATE TABLE ALBUM (Title VARCHAR)
user: 请按字母顺序列出所有唱片的标题。

assistant: SELECT Title FROM ALBUM ORDER BY Title
Schema: CREATE TABLE ALBUM (Title VARCHAR)
user: 所有的专辑标题是什么，按字母顺序排列？

assistant: SELECT Title FROM ALBUM ORDER BY Title
Schema: CREATE TABLE ALBUM (ArtistId VARCHAR), CREATE TABLE ARTIST (Name VARCHAR, ArtistID VARCHAR)
user: 请按字母顺序列出至少有3张专辑的所有艺术家的姓名和ID。

assistant: SELECT T2.Name ,  T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3 ORDER BY T2.Name
Schema: CREATE TABLE ALBUM (ArtistId VARCHAR), CREATE TABLE ARTIST (Name VARCHAR, ArtistID VARCHAR)
user: 按字母顺序排列，有3张或更多张专辑的艺术家的名字和ID是什么？

assistant: SELECT T2.Name ,  T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3 ORDER BY T2.Name
Schema: CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR), CREATE TABLE ALBUM (ArtistId VARCHAR)
user: 找到没有任何专辑的艺术家的名字。

assistant: SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId
Schema: CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR), CREATE TABLE ALBUM (ArtistId VARCHAR)
user: 没有发行任何专辑的艺术家的名字是什么？

assistant: SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId
Schema: CREATE TABLE GENRE (Name VARCHAR, GenreId VARCHAR), CREATE TABLE TRACK (GenreId VARCHAR, UnitPrice INTEGER)
user: 摇滚歌曲的平均单价是多少？

assistant: SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "摇滚"
Schema: CREATE TABLE GENRE (Name VARCHAR, GenreId VARCHAR), CREATE TABLE TRACK (GenreId VARCHAR, UnitPrice INTEGER)
user: 找出摇滚流派的歌曲的平均单价。

assistant: SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "摇滚"
Schema: CREATE TABLE GENRE (Name VARCHAR, GenreId VARCHAR), CREATE TABLE TRACK (GenreId VARCHAR)
user: 最长和最短的流行歌曲的持续时间是多少毫秒？

assistant: SELECT max(Milliseconds) ,  min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "流行"
Schema: CREATE TABLE GENRE (Name VARCHAR, GenreId VARCHAR), CREATE TABLE TRACK (GenreId VARCHAR)
user: 找出流行音乐的最大和最小毫秒长度。

assistant: SELECT max(Milliseconds) ,  min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "流行"
Schema: CREATE TABLE EMPLOYEE (City VARCHAR, BirthDate VARCHAR)
user: 住在“长沙”市的员工的出生日期是多少？

assistant: SELECT BirthDate FROM EMPLOYEE WHERE City  =  "长沙"
Schema: CREATE TABLE EMPLOYEE (City VARCHAR, BirthDate VARCHAR)
user: 查找在“长沙”市居住的雇员的出生日期。

assistant: SELECT BirthDate FROM EMPLOYEE WHERE City  =  "长沙"
Schema: CREATE TABLE TRACK (UnitPrice VARCHAR)
user: 所有歌曲的不同单价是多少？

assistant: SELECT distinct(UnitPrice) FROM TRACK
Schema: CREATE TABLE TRACK (UnitPrice VARCHAR)
user: 找到歌曲的不同单价。

assistant: SELECT distinct(UnitPrice) FROM TRACK
Schema: CREATE TABLE ARTIST (artistid VARCHAR), CREATE TABLE ALBUM (artistid VARCHAR)
user: 有多少艺术家没有专辑？

assistant: SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)
Schema: CREATE TABLE ARTIST (artistid VARCHAR), CREATE TABLE ALBUM (artistid VARCHAR)
user: 数出没有发行专辑的艺术家的数量。

assistant: SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)
Schema: CREATE TABLE Album (AlbumId VARCHAR, Title VARCHAR), CREATE TABLE Track (AlbumId VARCHAR, GenreID VARCHAR), CREATE TABLE Genre (GenreID VARCHAR, Name VARCHAR)
user: 包含“雷鬼”和“摇滚”流派曲目的专辑的名称是什么？

assistant: SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  '雷鬼' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  '摇滚'
Schema: CREATE TABLE Album (AlbumId VARCHAR, Title VARCHAR), CREATE TABLE Track (AlbumId VARCHAR, GenreID VARCHAR), CREATE TABLE Genre (GenreID VARCHAR, Name VARCHAR)
user: 查找包含“雷鬼”和“摇滚”音乐曲目的专辑标题。

assistant: SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  '雷鬼' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  '摇滚'
Schema: CREATE TABLE available_policies (customer_phone VARCHAR)
user: 找到所有的电话号码。

assistant: SELECT customer_phone FROM available_policies
Schema: CREATE TABLE available_policies (customer_phone VARCHAR)
user: 所有电话号码是多少？

assistant: SELECT customer_phone FROM available_policies
Schema: CREATE TABLE available_policies (customer_phone VARCHAR, policy_type_code VARCHAR)
user: “人寿保险”保险单下的客户电话号码是多少？

assistant: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  "人寿保险"
Schema: CREATE TABLE available_policies (customer_phone VARCHAR, policy_type_code VARCHAR)
user: 使用代号为“人寿保险”的保险单的客户的电话号码是多少？

assistant: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  "人寿保险"
Schema: CREATE TABLE available_policies (policy_type_code VARCHAR)
user: 哪种保险单类型在数据库中的记录最多？

assistant: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE available_policies (policy_type_code VARCHAR)
user: 哪些保险单类型在保险单中出现最多？

assistant: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE available_policies (customer_phone VARCHAR, policy_type_code VARCHAR)
user: 最流行的保险单类型的所有的客户电话号码是什么？

assistant: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)
Schema: CREATE TABLE available_policies (customer_phone VARCHAR, policy_type_code VARCHAR)
user: 查找使用可用保险单中最常见保险单类型的客户的电话号码。

assistant: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)
Schema: CREATE TABLE available_policies (policy_type_code VARCHAR)
user: 查找超过4个客户使用的保险单类型。

assistant: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*)  >  4
Schema: CREATE TABLE available_policies (policy_type_code VARCHAR)
user: 查找超过4个客户使用的保险单类型。显示他们的类型代码。

assistant: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*)  >  4
Schema: CREATE TABLE settlements (settlement_amount INTEGER)
user: 找到总计和平均结算金额。

assistant: SELECT sum(settlement_amount) ,  avg(settlement_amount) FROM settlements
Schema: CREATE TABLE settlements (settlement_amount INTEGER)
user: 返回所有结算金额的总和和平均数。

assistant: SELECT sum(settlement_amount) ,  avg(settlement_amount) FROM settlements
Schema: CREATE TABLE first_notification_of_loss (service_id VARCHAR), CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
user: 查找在首次丢失通知中已经使用了2次以上的服务的名称。

assistant: SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_id HAVING count(*)  >  2
Schema: CREATE TABLE first_notification_of_loss (service_id VARCHAR), CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
user: 在首次丢失通知中，哪些服务已经使用了两次以上？返回服务名称。

assistant: SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_id HAVING count(*)  >  2
Schema: CREATE TABLE claims (claim_id VARCHAR, Effective_Date VARCHAR), CREATE TABLE settlements (claim_id VARCHAR, settlement_amount INTEGER)
user: 总结算金额最大的索赔的有效日期是哪一天？

assistant: SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1
Schema: CREATE TABLE claims (claim_id VARCHAR, Effective_Date VARCHAR), CREATE TABLE settlements (claim_id VARCHAR, settlement_amount INTEGER)
user: 找到总结算金额最大的索赔。返回索赔的生效日期。

assistant: SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (customer_id VARCHAR)
user: 有多少名为“李帅”的保险单被列出？

assistant: SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  "李帅"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (customer_id VARCHAR)
user: 对名为“李帅”的客户使用的保险单总数进行计数。

assistant: SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  "李帅"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (customer_id VARCHAR)
user: 列出最多保险单的客户名称是什么？

assistant: SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (customer_id VARCHAR)
user: 哪个客户使用最多的保险单？给我客户的名字。

assistant: SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (policy_id VARCHAR, customer_id VARCHAR), CREATE TABLE available_policies (policy_id VARCHAR, policy_type_code VARCHAR)
user: 名为“李帅”的客户的所有保险单类型是什么？

assistant: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  "李帅"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (policy_id VARCHAR, customer_id VARCHAR), CREATE TABLE available_policies (policy_id VARCHAR, policy_type_code VARCHAR)
user: 请告诉我“李帅”客户使用的保险单的类型。

assistant: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  "李帅"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (policy_id VARCHAR, customer_id VARCHAR), CREATE TABLE available_policies (policy_id VARCHAR, policy_type_code VARCHAR)
user: 被列出的保险单最多的客户的保险单类型有哪些？

assistant: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (policy_id VARCHAR, customer_id VARCHAR), CREATE TABLE available_policies (policy_id VARCHAR, policy_type_code VARCHAR)
user: 列出保险单中登记次数最多的客户的所有保险单类型。

assistant: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)
Schema: CREATE TABLE services (service_name VARCHAR)
user: 按字母顺序，列出所有的服务。

assistant: SELECT service_name FROM services ORDER BY service_name
Schema: CREATE TABLE services (service_name VARCHAR)
user: 给我一个按字母顺序排序的所有服务名称的列表。

assistant: SELECT service_name FROM services ORDER BY service_name
Schema: CREATE TABLE services (Id VARCHAR)
user: 有多少服务？

assistant: SELECT count(*) FROM services
Schema: CREATE TABLE services (Id VARCHAR)
user: 计算可用服务的总数。

assistant: SELECT count(*) FROM services
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE first_notification_of_loss (customer_id VARCHAR)
user: 查找没有首次丢失通知记录的用户的姓名。

assistant: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE first_notification_of_loss (customer_id VARCHAR)
user: 哪些客户没有第一份丢失记录通知？给我客户的名字。

assistant: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE first_notification_of_loss (service_id VARCHAR, customer_id VARCHAR), CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
user: 查找已经使用服务“取消保单”或服务“升级保单”的客户的名称。

assistant: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "取消保单" OR t3.service_name  =  "升级保单"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE first_notification_of_loss (service_id VARCHAR, customer_id VARCHAR), CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
user: 哪些客户使用了名为“取消保单”或“升级保单”的服务？给我客户的名字。

assistant: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "取消保单" OR t3.service_name  =  "升级保单"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE first_notification_of_loss (service_id VARCHAR, customer_id VARCHAR), CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
user: 查找同时使用服务“取消保单”和服务“新开保单”的客户的名称。

assistant: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "取消保单" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "新开保单"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE first_notification_of_loss (service_id VARCHAR, customer_id VARCHAR), CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
user: 哪些客户使用了名为“取消保单”的服务和"新开保单"的服务？给我客户的名字。

assistant: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "取消保单" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "新开保单"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
user: 查找名字包含“楠”的客户ID。

assistant: SELECT customer_id FROM customers WHERE customer_name LIKE "楠"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
user: 名字中有“楠”的客户的ID是什么？

assistant: SELECT customer_id FROM customers WHERE customer_name LIKE "楠"
Schema: CREATE TABLE settlements (settlement_amount INTEGER)
user: 记录的最大和最低结算金额是多少？

assistant: SELECT max(settlement_amount) ,  min(settlement_amount) FROM settlements
Schema: CREATE TABLE settlements (settlement_amount INTEGER)
user: 求最大结算金额和最小结算金额。

assistant: SELECT max(settlement_amount) ,  min(settlement_amount) FROM settlements
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
user: 以ID的增加顺序列出所有客户。

assistant: SELECT customer_id ,  customer_name FROM customers ORDER BY customer_id ASC
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
user: 客户ID的有序列表是什么？

assistant: SELECT customer_id ,  customer_name FROM customers ORDER BY customer_id ASC
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (date_closed VARCHAR, customer_id VARCHAR, date_opened VARCHAR)
user: 检索名字包含“楠”的客户相关联的所有保险单的开始和结束日期

assistant: SELECT t2.date_opened ,  t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name LIKE "楠"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customers_policies (date_closed VARCHAR, customer_id VARCHAR, date_opened VARCHAR)
user: 那些名字中有“楠”的客户使用的所有保险单的开始和结束日期是什么？

assistant: SELECT t2.date_opened ,  t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name LIKE "楠"
Schema: CREATE TABLE enzyme (Id VARCHAR)
user: 有多少种酶？

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

assistant: SELECT count(*) FROM enzyme
Schema: CREATE TABLE enzyme (name VARCHAR)
user: 以字母降序顺序列出酶的名称。

assistant: SELECT name FROM enzyme ORDER BY name DESC
Schema: CREATE TABLE enzyme (name VARCHAR)
user: 酶的名称有哪些，按降序排列？

assistant: SELECT name FROM enzyme ORDER BY name DESC
Schema: CREATE TABLE enzyme (LOCATION VARCHAR, name VARCHAR)
user: 列出能起作用的酶的名称和位置。

assistant: SELECT name ,  LOCATION FROM enzyme
Schema: CREATE TABLE enzyme (LOCATION VARCHAR, name VARCHAR)
user: 列出的所有酶的名称和位置是什么？

assistant: SELECT name ,  LOCATION FROM enzyme
Schema: CREATE TABLE enzyme (OMIM INTEGER)
user: 人类在线孟德尔遗传酶（OMIM）的最大值是多少？

assistant: SELECT max(OMIM) FROM enzyme
Schema: CREATE TABLE enzyme (OMIM INTEGER)
user: 数据库中最大的OMIM值是多少？

assistant: SELECT max(OMIM) FROM enzyme
Schema: CREATE TABLE enzyme (LOCATION VARCHAR, product VARCHAR, chromosome VARCHAR, porphyria VARCHAR)
user: 在“贵阳”位置起作用的酶有关的产物、染色体和卟啉是什么？

assistant: SELECT product ,  chromosome ,  porphyria FROM enzyme WHERE LOCATION  =  '贵阳'
Schema: CREATE TABLE enzyme (LOCATION VARCHAR, product VARCHAR, chromosome VARCHAR, porphyria VARCHAR)
user: 位于“贵阳”的酶的产物、染色体和卟啉是什么？

assistant: SELECT product ,  chromosome ,  porphyria FROM enzyme WHERE LOCATION  =  '贵阳'
Schema: CREATE TABLE enzyme (product VARCHAR, name VARCHAR)
user: 不产生“淀粉酶”的酶的名称是什么？

assistant: SELECT name FROM enzyme WHERE product != '淀粉酶'
Schema: CREATE TABLE enzyme (product VARCHAR, name VARCHAR)
user: 产物不是“淀粉酶”的酶的名称是什么？

assistant: SELECT name FROM enzyme WHERE product != '淀粉酶'
Schema: CREATE TABLE medicine (trade_name VARCHAR, name VARCHAR, FDA_approved VARCHAR)
user: 在FDA记录中有“是”的药物的名称和商标名称是什么？

assistant: SELECT name ,  trade_name FROM medicine WHERE FDA_approved  =  '是'
Schema: CREATE TABLE medicine (trade_name VARCHAR, name VARCHAR, FDA_approved VARCHAR)
user: FDA批准的药品名称和商标名称是什么？

assistant: SELECT name ,  trade_name FROM medicine WHERE FDA_approved  =  '是'
Schema: CREATE TABLE enzyme (id VARCHAR, name VARCHAR), CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR), CREATE TABLE medicine (name VARCHAR, id VARCHAR)
user: 有一种名为“氨磺必利”的能起到“抑制剂”的作用的药物，其中酶的名称是什么？

assistant: SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  '氨磺必利' AND T2.interaction_type  =  '抑制剂'
Schema: CREATE TABLE enzyme (id VARCHAR, name VARCHAR), CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR), CREATE TABLE medicine (name VARCHAR, id VARCHAR)
user: 用作“抑制剂”的药物“氨磺必利”所利用的酶的名称是什么?

assistant: SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  '氨磺必利' AND T2.interaction_type  =  '抑制剂'
Schema: CREATE TABLE medicine (Name VARCHAR, id VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 可以与两种或更多种酶相互作用的药物的ID和名称是什么？

assistant: SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2
Schema: CREATE TABLE medicine (Name VARCHAR, id VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 对于每个药物ID，可以与一种以上酶相互作用的药物的名称是什么？

assistant: SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2
Schema: CREATE TABLE medicine (Name VARCHAR, id VARCHAR, FDA_approved VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 按照与它们相互作用的酶数量的降序排列，药品的ID、名称和FDA批准状况的是什么？

assistant: SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC
Schema: CREATE TABLE medicine (Name VARCHAR, id VARCHAR, FDA_approved VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 按酶相互作用数量递减的顺序，药物的ID、名称和FDA批准状态是什么？

assistant: SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC
Schema: CREATE TABLE enzyme (name VARCHAR, id VARCHAR), CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, enzyme_id VARCHAR)
user: 那种可以与最多的药物进行“催化剂”相互作用的酶的ID和名称是什么？

assistant: SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  '催化剂' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE enzyme (name VARCHAR, id VARCHAR), CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, enzyme_id VARCHAR)
user: 能作为“催化剂”与最多的药物相互作用的酶的ID和名称是什么？

assistant: SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  '催化剂' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR, medicine_id VARCHAR), CREATE TABLE medicine (name VARCHAR, id VARCHAR), CREATE TABLE enzyme (name VARCHAR, id VARCHAR)
user: “ALA合酶”和药物“阿立哌唑”的相互作用类型是什么？

assistant: SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA合酶' AND T2.name  =  '阿立哌唑'
Schema: CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR, medicine_id VARCHAR), CREATE TABLE medicine (name VARCHAR, id VARCHAR), CREATE TABLE enzyme (name VARCHAR, id VARCHAR)
user: 名为“ALA合酶”的酶和名为“阿立哌唑”的药物的相互作用类型是什么？

assistant: SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA合酶' AND T2.name  =  '阿立哌唑'
Schema: CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR)
user: 酶和药物之间最常见的相互作用类型是什么？有多少？

assistant: SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR)
user: 酶和药物之间最常见的相互作用类型是什么，有多少种？

assistant: SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE medicine (FDA_approved VARCHAR)
user: FDA批准状态为“没有”的药物有多少种？

assistant: SELECT count(*) FROM medicine WHERE FDA_approved  =  '没有'
Schema: CREATE TABLE medicine (FDA_approved VARCHAR)
user: FDA没有批准多少药物？

assistant: SELECT count(*) FROM medicine WHERE FDA_approved  =  '没有'