jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE enzyme (id VARCHAR, enzyme_id VARCHAR), CREATE TABLE medicine_enzyme_interaction (id VARCHAR, enzyme_id VARCHAR)
user: 多少酶没有任何相互作用？

assistant: SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );
Schema: CREATE TABLE enzyme (id VARCHAR, enzyme_id VARCHAR), CREATE TABLE medicine_enzyme_interaction (id VARCHAR, enzyme_id VARCHAR)
user: 没有相互作用的酶的数量是多少？

assistant: SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );
Schema: CREATE TABLE medicine (trade_name VARCHAR, id VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 这些与至少3种酶相互作用的药物的ID和商品名是什么？

assistant: SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3
Schema: CREATE TABLE medicine (trade_name VARCHAR, id VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 可以与至少3种酶相互作用的药物ID和商标名称是什么？

assistant: SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3
Schema: CREATE TABLE enzyme (product VARCHAR, id VARCHAR, name VARCHAR, location VARCHAR), CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, enzyme_id VARCHAR)
user: 有任一“抑制剂”相互作用的酶的不同名称、位置和产品是什么？

assistant: SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  '抑制剂'
Schema: CREATE TABLE enzyme (product VARCHAR, id VARCHAR, name VARCHAR, location VARCHAR), CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, enzyme_id VARCHAR)
user: 包含“抑制剂”相互作用的酶的不同名称、位置和产品是什么？

assistant: SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  '抑制剂'
Schema: CREATE TABLE medicine (trade_name VARCHAR, id VARCHAR, name VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 列出可以与酶进行“抑制剂”和“催化剂”相互作用药物名称和商标名称。

assistant: SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  '抑制剂' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  '催化剂'
Schema: CREATE TABLE medicine (trade_name VARCHAR, id VARCHAR, name VARCHAR), CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
user: 可以作为“抑制剂”和“催化剂”与酶相互作用药物名称和商标名称是什么？

assistant: SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  '抑制剂' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  '催化剂'
Schema: CREATE TABLE medicine (trade_name VARCHAR, id VARCHAR, name VARCHAR), CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR), CREATE TABLE enzyme (product VARCHAR, id VARCHAR)
user: 显示不能与产物为“生物酶”的酶相互作用的药品名称和商品名。

assistant: SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  '生物酶'
Schema: CREATE TABLE medicine (trade_name VARCHAR, id VARCHAR, name VARCHAR), CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR), CREATE TABLE enzyme (product VARCHAR, id VARCHAR)
user: 不能与产物为“生物酶”的酶相互作用的药物名称和商标名称？

assistant: SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  '生物酶'
Schema: CREATE TABLE medicine (FDA_approved VARCHAR)
user: 药品有多少种不同的FDA批准状态？

assistant: SELECT count(DISTINCT FDA_approved) FROM medicine
Schema: CREATE TABLE enzyme (name VARCHAR)
user: 哪些酶名称有子链“ALA”？

assistant: SELECT name FROM enzyme WHERE name LIKE "物"
Schema: CREATE TABLE enzyme (name VARCHAR)
user: 包含“ALA”的酶的名称是什么？

assistant: SELECT name FROM enzyme WHERE name LIKE "物"
Schema: CREATE TABLE medicine (trade_name VARCHAR)
user: 找找每笔交易提供的药品数量。

assistant: SELECT trade_name ,  count(*) FROM medicine GROUP BY trade_name
Schema: CREATE TABLE medicine (trade_name VARCHAR)
user: 每个交易名提供多少药？

assistant: SELECT trade_name ,  count(*) FROM medicine GROUP BY trade_name
Schema: CREATE TABLE university (nickname VARCHAR, founded VARCHAR, school VARCHAR)
user: 按成立年的顺序列出所有学校和他们的绰号。

assistant: SELECT school ,  nickname FROM university ORDER BY founded
Schema: CREATE TABLE university (nickname VARCHAR, founded VARCHAR, school VARCHAR)
user: 根据建校年排序，不同的学校和它们的昵称是什么？

assistant: SELECT school ,  nickname FROM university ORDER BY founded
Schema: CREATE TABLE university (LOCATION VARCHAR, school VARCHAR, affiliation VARCHAR)
user: 列出所有公立学校及其所在地。

assistant: SELECT school ,  LOCATION FROM university WHERE affiliation  =  '公立'
Schema: CREATE TABLE university (LOCATION VARCHAR, school VARCHAR, affiliation VARCHAR)
user: 公立学校有哪些，他们的位置是什么？

assistant: SELECT school ,  LOCATION FROM university WHERE affiliation  =  '公立'
Schema: CREATE TABLE university (enrollment VARCHAR, founded VARCHAR)
user: 招生最大的学校是什么时候成立的？

assistant: SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1
Schema: CREATE TABLE university (enrollment VARCHAR, founded VARCHAR)
user: 返回招生规模最大学校的成立年。

assistant: SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1
Schema: CREATE TABLE university (founded VARCHAR, affiliation VARCHAR)
user: 查找最新的非公立学校成立年。

assistant: SELECT founded FROM university WHERE affiliation != '公立' ORDER BY founded DESC LIMIT 1
Schema: CREATE TABLE university (founded VARCHAR, affiliation VARCHAR)
user: 最近成立的非公立学校创办年份是哪一年？

assistant: SELECT founded FROM university WHERE affiliation != '公立' ORDER BY founded DESC LIMIT 1
Schema: CREATE TABLE basketball_match (school_id VARCHAR)
user: 有多少学校有篮球比赛？

assistant: SELECT count(DISTINCT school_id) FROM basketball_match
Schema: CREATE TABLE basketball_match (school_id VARCHAR)
user: 统计有篮球比赛的学校的数量。

assistant: SELECT count(DISTINCT school_id) FROM basketball_match
Schema: CREATE TABLE basketball_match (acc_percent VARCHAR)
user: 比赛中最高的ACC得分比是什么？

assistant: SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1
Schema: CREATE TABLE basketball_match (acc_percent VARCHAR)
user: 返回在所有篮球比赛中最高ACC得分比。

assistant: SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1
Schema: CREATE TABLE university (Primary_conference VARCHAR, school_id VARCHAR), CREATE TABLE basketball_match (acc_percent VARCHAR, school_id VARCHAR)
user: 在比赛中ACC得分比最低的学校的初级会议是什么？

assistant: SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t2.acc_percent LIMIT 1
Schema: CREATE TABLE university (Primary_conference VARCHAR, school_id VARCHAR), CREATE TABLE basketball_match (acc_percent VARCHAR, school_id VARCHAR)
user: 返回最低的acc百分比的学校的初级会议。

assistant: SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t2.acc_percent LIMIT 1
Schema: CREATE TABLE university (founded VARCHAR, school_id VARCHAR), CREATE TABLE basketball_match (ACC_Regular_Season VARCHAR, team_name VARCHAR, school_id VARCHAR)
user: 创建时间最长的学校的队名和常规赛成绩是多少？

assistant: SELECT t2.team_name ,  t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t1.founded LIMIT 1
Schema: CREATE TABLE university (founded VARCHAR, school_id VARCHAR), CREATE TABLE basketball_match (ACC_Regular_Season VARCHAR, team_name VARCHAR, school_id VARCHAR)
user: 返回最早成立的学校的球队名称和在常规赛期间的ACC。

assistant: SELECT t2.team_name ,  t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id ORDER BY t1.founded LIMIT 1
Schema: CREATE TABLE university (location VARCHAR, school_id VARCHAR), CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR)
user: 查找以“暨南大学”为队名的学校的位置和所有比赛得分。

assistant: SELECT t2.All_Games ,  t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  '暨南大学'
Schema: CREATE TABLE university (location VARCHAR, school_id VARCHAR), CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR)
user: 叫“暨南大学”的学校的所有比赛分数和地点是什么？

assistant: SELECT t2.All_Games ,  t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE team_name  =  '暨南大学'
Schema: CREATE TABLE university (founded INTEGER, enrollment INTEGER)
user: 1850年以前建立的大学的平均招生人数是多少？

assistant: SELECT avg(enrollment) FROM university WHERE founded  <  1850
Schema: CREATE TABLE university (founded INTEGER, enrollment INTEGER)
user: 返回1850年以前成立的大学的平均招生人数。

assistant: SELECT avg(enrollment) FROM university WHERE founded  <  1850
Schema: CREATE TABLE university (enrollment VARCHAR, founded VARCHAR, primary_conference VARCHAR)
user: 展示最古老学院的招生和初级会议。

assistant: SELECT enrollment ,  primary_conference FROM university ORDER BY founded LIMIT 1
Schema: CREATE TABLE university (enrollment VARCHAR, founded VARCHAR, primary_conference VARCHAR)
user: 最早建立的那所大学的招生和初级会议是什么？

assistant: SELECT enrollment ,  primary_conference FROM university ORDER BY founded LIMIT 1
Schema: CREATE TABLE university (enrollment INTEGER)
user: 所有学校的招生总数是多少？

assistant: SELECT sum(enrollment) ,  min(enrollment) FROM university
Schema: CREATE TABLE university (enrollment INTEGER)
user: 返回所有学校的总入学人数和最少入学人数。

assistant: SELECT sum(enrollment) ,  min(enrollment) FROM university
Schema: CREATE TABLE university (affiliation VARCHAR, enrollment INTEGER)
user: 查找不同附属类型学校的入学学生总数。

assistant: SELECT sum(enrollment) ,  affiliation FROM university GROUP BY affiliation
Schema: CREATE TABLE university (affiliation VARCHAR, enrollment INTEGER)
user: 每个附属类型的大学的总入学人数是多少？

assistant: SELECT sum(enrollment) ,  affiliation FROM university GROUP BY affiliation
Schema: CREATE TABLE university (school_id VARCHAR), CREATE TABLE basketball_match (school_id VARCHAR)
user: 有多少学校不参加篮球比赛？

assistant: SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)
Schema: CREATE TABLE university (school_id VARCHAR), CREATE TABLE basketball_match (school_id VARCHAR)
user: 统计不参加篮球比赛的大学数量。

assistant: SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)
Schema: CREATE TABLE university (founded INTEGER, school VARCHAR, affiliation VARCHAR)
user: 找到那些在1850年之后成立或公立的学校。

assistant: SELECT school FROM university WHERE founded  >  1850 OR affiliation  =  '公立'
Schema: CREATE TABLE university (founded INTEGER, school VARCHAR, affiliation VARCHAR)
user: 在1850之前或是公立的学校是什么？

assistant: SELECT school FROM university WHERE founded  >  1850 OR affiliation  =  '公立'
Schema: CREATE TABLE university (affiliation VARCHAR)
user: 找到有多少不同的附属类型。

assistant: SELECT count(DISTINCT affiliation) FROM university
Schema: CREATE TABLE university (affiliation VARCHAR)
user: 统计不同附属类型的数量。

assistant: SELECT count(DISTINCT affiliation) FROM university
Schema: CREATE TABLE university (LOCATION VARCHAR)
user: 找到多少学校的位置含有“上海”。

assistant: SELECT count(*) FROM university WHERE LOCATION LIKE "上海"
Schema: CREATE TABLE university (LOCATION VARCHAR)
user: 有多少大学的地址有包含“上海”？

assistant: SELECT count(*) FROM university WHERE LOCATION LIKE "上海"
Schema: CREATE TABLE university (enrollment INTEGER), CREATE TABLE basketball_match (team_name VARCHAR, school_id VARCHAR)
user: 查找那些入学人数小于平均入学人数的大学的队伍名称。

assistant: SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)
Schema: CREATE TABLE university (enrollment INTEGER), CREATE TABLE basketball_match (team_name VARCHAR, school_id VARCHAR)
user: 招生人数低于平均水平的大学球队的名称是什么？

assistant: SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)
Schema: CREATE TABLE university (affiliation VARCHAR, enrollment INTEGER)
user: 查找每个附属机构类型有比20000多的入学人数的大学的数量。

assistant: SELECT count(*) ,  affiliation FROM university WHERE enrollment  >  20000 GROUP BY affiliation
Schema: CREATE TABLE university (affiliation VARCHAR, enrollment INTEGER)
user: 有多少不同的附属类型？每种类型有20000以上入学人数的不同的附属学校有多少？

assistant: SELECT count(*) ,  affiliation FROM university WHERE enrollment  >  20000 GROUP BY affiliation
Schema: CREATE TABLE university (founded INTEGER, Enrollment INTEGER, affiliation VARCHAR)
user: 找出在1850年后建立的每个附属类型的学院的入学学生总数。

assistant: SELECT sum(Enrollment) ,  affiliation FROM university WHERE founded  >  1850 GROUP BY affiliation
Schema: CREATE TABLE university (founded INTEGER, Enrollment INTEGER, affiliation VARCHAR)
user: 有哪些不同的附属形式，每种类型在1850年后建立的学校的总招生人数是多少，？

assistant: SELECT sum(Enrollment) ,  affiliation FROM university WHERE founded  >  1850 GROUP BY affiliation
Schema: CREATE TABLE university (Enrollment INTEGER)
user: 所有学校最大的招生人数是多少？

assistant: SELECT max(Enrollment) FROM university
Schema: CREATE TABLE university (Enrollment INTEGER)
user: 返回所有学校的最大入学人数。

assistant: SELECT max(Enrollment) FROM university
Schema: CREATE TABLE basketball_match (Id VARCHAR)
user: 列出所有关于篮球比赛的信息。

assistant: SELECT * FROM basketball_match
Schema: CREATE TABLE basketball_match (Id VARCHAR)
user: 篮球比赛的全部信息是什么？

assistant: SELECT * FROM basketball_match
Schema: CREATE TABLE basketball_match (team_name VARCHAR, All_Home VARCHAR)
user: 列出篮球比赛中所有球队的名字，按主场得分的顺序递减排列。

assistant: SELECT team_name FROM basketball_match ORDER BY All_Home DESC
Schema: CREATE TABLE basketball_match (team_name VARCHAR, All_Home VARCHAR)
user: 按篮球比赛主场得分降序排列，所有球队的名字是什么？

assistant: SELECT team_name FROM basketball_match ORDER BY All_Home DESC
Schema: CREATE TABLE chip_model (Launch_year INTEGER, Model_name VARCHAR)
user: 2002到2004年间推出的模型名称。

assistant: SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004;
Schema: CREATE TABLE chip_model (RAM_MiB VARCHAR, Model_name VARCHAR)
user: 哪种型号的RAM最少？列出模型名称和RAM的数量。

assistant: SELECT Model_name ,  RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;
Schema: CREATE TABLE phone (screen_mode VARCHAR, chip_model VARCHAR, Hardware_Model_name VARCHAR)
user: 硬件型号为“LG-P760”的手机的芯片型号和屏幕模式是什么？

assistant: SELECT chip_model ,  screen_mode FROM phone WHERE Hardware_Model_name = "LG-P760";
Schema: CREATE TABLE phone (Company_name VARCHAR)
user: “小米”生产了多少款手机硬件？

assistant: SELECT count(*) FROM phone WHERE Company_name = "小米";
Schema: CREATE TABLE chip_model (RAM_MiB INTEGER, Model_name VARCHAR), CREATE TABLE phone (Company_name VARCHAR, chip_model VARCHAR)
user: “小米”生产的手机最大和最小RAM尺寸是多少？

assistant: SELECT max(T1.RAM_MiB) ,  min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = "小米";
Schema: CREATE TABLE chip_model (Model_name VARCHAR, ROM_MiB INTEGER), CREATE TABLE phone (Company_name VARCHAR, chip_model VARCHAR)
user: “小米”生产的手机的平均ROM尺寸是多少？

assistant: SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T2.Company_name = "小米";
Schema: CREATE TABLE chip_model (Launch_year VARCHAR, RAM_MiB INTEGER, Model_name VARCHAR), CREATE TABLE phone (Company_name VARCHAR, chip_model VARCHAR, Hardware_Model_name VARCHAR)
user: 列出所有在2002年推出或RAM大于32的手机的硬件型号名称和公司名称。

assistant: SELECT T2.Hardware_Model_name ,  T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB  >  32;
Schema: CREATE TABLE phone (Company_name VARCHAR, Accreditation_type VARCHAR, Hardware_Model_name VARCHAR)
user: 查找在其认证类型中有“全权”字样的所有手机。列出硬件模型名称和公司名称。

assistant: SELECT Hardware_Model_name ,  Company_name FROM phone WHERE Accreditation_type LIKE '全权';
Schema: CREATE TABLE screen_mode (Graphics_mode VARCHAR, Hardware_colours VARCHAR, Pixels VARCHAR, Char_cells VARCHAR), CREATE TABLE phone (screen_mode VARCHAR, Hardware_Model_name VARCHAR)
user: 查找硬件型号为“LG-P760”的电话屏幕的Char单元、像素和硬件颜色。

assistant: SELECT T1.Char_cells ,  T1.Pixels ,  T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = "LG-P760";
Schema: CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR), CREATE TABLE phone (screen_mode VARCHAR, Company_name VARCHAR, Hardware_Model_name VARCHAR)
user: 列出屏幕模式类型为“图像”的电话的硬件型号名称和公司名称。

assistant: SELECT T2.Hardware_Model_name ,  T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  "图像";
Schema: CREATE TABLE phone (Company_name VARCHAR)
user: 查找手机型号最少的公司名称。列出该公司生产的手机型号和公司名称。

assistant: SELECT Company_name ,  count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;
Schema: CREATE TABLE phone (Company_name VARCHAR)
user: 列出生产一个以上手机型号的公司的名称。

assistant: SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*)  >  1;
Schema: CREATE TABLE screen_mode (used_kb INTEGER)
user: 列出屏幕模式中使用的KB的最大、最小和平均数。

assistant: SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode;
Schema: CREATE TABLE chip_model (Launch_year VARCHAR, RAM_MiB VARCHAR, Model_name VARCHAR), CREATE TABLE phone (chip_model VARCHAR, Hardware_Model_name VARCHAR)
user: 列出2002年推出的具有最高RAM大小的手机型号的名称。

assistant: SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1;
Schema: CREATE TABLE chip_model (WiFi VARCHAR, Model_name VARCHAR), CREATE TABLE phone (screen_mode VARCHAR, chip_model VARCHAR, Hardware_Model_name VARCHAR), CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
user: 名为“LG-P760”的硬件模型的WiFi和屏幕模式类型？

assistant: SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = "LG-P760";
Schema: CREATE TABLE chip_model (RAM_MiB INTEGER, Model_name VARCHAR), CREATE TABLE phone (screen_mode VARCHAR, chip_model VARCHAR, Hardware_Model_name VARCHAR), CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
user: 列出屏幕模式类型为“文本”或RAM大于32的手机的硬件型号名称。

assistant: SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name  =  T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = "文本" OR T1.RAM_MiB  >  32;
Schema: CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR), CREATE TABLE phone (screen_mode VARCHAR, Hardware_Model_name VARCHAR)
user: 列出“小米”生产的或屏幕模式类型为“图像”的手机的硬件型号名称。

assistant: SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type  =  "图像" OR t2.Company_name  =  "小米"
Schema: CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR), CREATE TABLE phone (screen_mode VARCHAR, Hardware_Model_name VARCHAR)
user: 列出“小米”生产但是其屏幕模式类型不是“文本”的电话的硬件型号名称。

assistant: SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name  =  "小米" AND T1.Type != "文本";
Schema: CREATE TABLE screen_mode (Graphics_mode VARCHAR, used_kb INTEGER), CREATE TABLE phone (screen_mode VARCHAR, Company_name VARCHAR, Hardware_Model_name VARCHAR)
user: 列出屏幕使用在10到15KB之间的手机的硬件型号和公司名称。

assistant: SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15;
Schema: CREATE TABLE phone (Accreditation_type VARCHAR)
user: 查找每个认证类型的电话数量。

assistant: SELECT Accreditation_type ,  count(*) FROM phone GROUP BY Accreditation_type
Schema: CREATE TABLE phone (Accreditation_type VARCHAR)
user: 每种认证类型有多少手机？

assistant: SELECT Accreditation_type ,  count(*) FROM phone GROUP BY Accreditation_type
Schema: CREATE TABLE phone (Accreditation_level VARCHAR)
user: 找到超过3部手机使用的认证级别。

assistant: SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*)  >  3
Schema: CREATE TABLE chip_model (Id VARCHAR)
user: 找到所有芯片模型的信息。

assistant: SELECT * FROM chip_model
Schema: CREATE TABLE chip_model (wifi VARCHAR)
user: 有多少型号没有WiFi功能？

assistant: SELECT count(*) FROM chip_model WHERE wifi  =  '没有'
Schema: CREATE TABLE chip_model (wifi VARCHAR)
user: 统计没有WiFi的芯片模型的数量。

assistant: SELECT count(*) FROM chip_model WHERE wifi  =  '没有'
Schema: CREATE TABLE chip_model (model_name VARCHAR, launch_year VARCHAR)
user: 按照他们推出年度顺序列出所有型号名称。

assistant: SELECT model_name FROM chip_model ORDER BY launch_year
Schema: CREATE TABLE chip_model (RAM_MiB INTEGER, chip_model VARCHAR, model_name VARCHAR), CREATE TABLE phone (RAM_MiB INTEGER, chip_model VARCHAR, model_name VARCHAR)
user: 查找从未被任何手机使用的芯片模型的平均ram大小。

assistant: SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone)
Schema: CREATE TABLE chip_model (model_name VARCHAR, chip_model VARCHAR, Accreditation_type VARCHAR), CREATE TABLE phone (model_name VARCHAR, chip_model VARCHAR, Accreditation_type VARCHAR)
user: 查找未被任何具有完全认证类型的手机使用的芯片型号的名称。

assistant: SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type  =  '全权'
Schema: CREATE TABLE screen_mode (Graphics_mode VARCHAR, pixels VARCHAR), CREATE TABLE phone (screen_mode VARCHAR, Accreditation_type VARCHAR)
user: 查找具有完全认证类型的电话和具有临时认证类型的电话所使用的屏幕模式的像素。

assistant: SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode  =  t2.screen_mode WHERE t2.Accreditation_type  =  '临时' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode  =  t2.screen_mode WHERE t2.Accreditation_type  =  '全权'
Schema: CREATE TABLE country (Id VARCHAR)
user: 一共有多少个国家？

assistant: SELECT count(*) FROM country
Schema: CREATE TABLE country (Id VARCHAR)
user: 统计国家的数量。

assistant: SELECT count(*) FROM country
Schema: CREATE TABLE country (Capital VARCHAR, Country_name VARCHAR)
user: 显示所有国家的国家名称和首都。

assistant: SELECT Country_name ,  Capital FROM country
Schema: CREATE TABLE country (Capital VARCHAR, Country_name VARCHAR)
user: 每个国家的名字和首都是什么？

assistant: SELECT Country_name ,  Capital FROM country
Schema: CREATE TABLE country (Official_native_language VARCHAR)
user: 显示包含"英语"一词的所有官方母语。

assistant: SELECT Official_native_language FROM country WHERE Official_native_language LIKE "英语"
Schema: CREATE TABLE country (Official_native_language VARCHAR)
user: 什么官方的母语包含字符串"英语"？

assistant: SELECT Official_native_language FROM country WHERE Official_native_language LIKE "英语"
Schema: CREATE TABLE match_season (POSITION VARCHAR)
user: 显示所有不同地方的比赛。

assistant: SELECT DISTINCT POSITION FROM match_season
Schema: CREATE TABLE match_season (POSITION VARCHAR)
user: 有什么不同的地方的赛季？

assistant: SELECT DISTINCT POSITION FROM match_season
Schema: CREATE TABLE match_season (College VARCHAR, Player VARCHAR)
user: 显示来自“浙江大学”的球员。

assistant: SELECT Player FROM match_season WHERE College  =  "浙江大学"
Schema: CREATE TABLE match_season (College VARCHAR, Player VARCHAR)
user: 来自“浙江大学”的球员是谁？

assistant: SELECT Player FROM match_season WHERE College  =  "浙江大学"
Schema: CREATE TABLE match_season (POSITION VARCHAR, College VARCHAR)
user: 显示来自“浙江大学”或“武汉大学”大学的球员的不同位置。

assistant: SELECT DISTINCT POSITION FROM match_season WHERE College  =  "浙江大学" OR College  =  "武汉大学"
Schema: CREATE TABLE match_season (POSITION VARCHAR, College VARCHAR)
user: 来自“浙江大学”或“武汉大学”学院的球员有什么不同的位置？

assistant: SELECT DISTINCT POSITION FROM match_season WHERE College  =  "浙江大学" OR College  =  "武汉大学"
Schema: CREATE TABLE match_season (POSITION VARCHAR, Draft_Pick_Number VARCHAR, Draft_Class VARCHAR)
user: 显示位置是后卫的球员的选秀号码和选秀类别。

assistant: SELECT Draft_Pick_Number ,  Draft_Class FROM match_season WHERE POSITION  =  "后卫"
Schema: CREATE TABLE match_season (POSITION VARCHAR, Draft_Pick_Number VARCHAR, Draft_Class VARCHAR)
user: 后卫位置球员的选秀号码和选秀类别是什么？

assistant: SELECT Draft_Pick_Number ,  Draft_Class FROM match_season WHERE POSITION  =  "后卫"