jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE Performance (SongId VARCHAR, bandmate VARCHAR), CREATE TABLE Band (id VARCHAR, lastname VARCHAR), CREATE TABLE Songs (title VARCHAR, SongId VARCHAR, songid VARCHAR), CREATE TABLE Instruments (instrument VARCHAR, bandmateid VARCHAR, songid VARCHAR)
user: 姓“刘”的音乐家在歌曲“红日”中使用了什么乐器？

assistant: SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  "刘" AND T3.title  =  "红日"
Schema: CREATE TABLE Performance (SongId VARCHAR, bandmate VARCHAR), CREATE TABLE Band (id VARCHAR, lastname VARCHAR), CREATE TABLE Songs (title VARCHAR, SongId VARCHAR, songid VARCHAR), CREATE TABLE Instruments (instrument VARCHAR, bandmateid VARCHAR, songid VARCHAR)
user: 姓氏是“刘”的音乐家在歌曲“红日”中演奏了什么乐器？

assistant: SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId JOIN Instruments AS T4 ON T4.songid  =  T3.songid AND T4.bandmateid  =  T2.id WHERE T2.lastname  =  "刘" AND T3.title  =  "红日"
Schema: CREATE TABLE instruments (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 在“红日”这首歌中使用多少乐器？

assistant: SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "红日"
Schema: CREATE TABLE instruments (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 歌曲“红日”中有多少种乐器被使用？

assistant: SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "红日"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 歌曲“红日”中使用的声乐类型是什么？

assistant: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "红日"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 歌曲“红日”中使用了那种类型的声乐？

assistant: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "红日"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 找出歌曲“冰雨”中的声乐演唱类型的数量

assistant: SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "冰雨"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 名字为“冰雨”歌曲中使用了多少种声乐类型？

assistant: SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "冰雨"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 拥有“分享”一共有多少首歌？

assistant: SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  "分享"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (songid VARCHAR)
user: 有多少首不同的歌拥有“分享”的声乐类型？

assistant: SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE TYPE  =  "分享"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 找到所有没有“后台”声乐类型的歌曲。

assistant: SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "后台"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 没有“后台”声乐类型的不同歌曲的名字是什么？

assistant: SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "后台"
Schema: CREATE TABLE vocals (bandmate VARCHAR), CREATE TABLE band (id VARCHAR)
user: 哪一个声乐类型被有成员名字是“俊杰”的乐队演奏得最多？

assistant: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  "俊杰" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE vocals (bandmate VARCHAR), CREATE TABLE band (id VARCHAR)
user: 名字为“俊杰”的乐队成员所在地乐队最常演奏的声乐类型是什么？

assistant: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  "俊杰" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE vocals (bandmate VARCHAR, songid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR), CREATE TABLE band (id VARCHAR, lastname VARCHAR)
user: 姓“刘”的音乐家在歌曲“说好的幸福呢”中演唱了了哪种类型声乐？

assistant: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.lastname  =  "刘" AND T2.title  =  "说好的幸福呢"
Schema: CREATE TABLE vocals (bandmate VARCHAR, songid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR), CREATE TABLE band (id VARCHAR, lastname VARCHAR)
user: 在歌曲“说好的幸福呢”中，姓“刘”的音乐家所延长的声乐类型是什么？

assistant: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid JOIN band AS T3 ON T1.bandmate  =  T3.id WHERE T3.lastname  =  "刘" AND T2.title  =  "说好的幸福呢"
Schema: CREATE TABLE Performance (bandmate VARCHAR), CREATE TABLE Band (firstname VARCHAR, id VARCHAR), CREATE TABLE Songs (SongId VARCHAR)
user: 找出在最多数歌曲中有过表演的乐队成员的名字。

assistant: SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Performance (bandmate VARCHAR), CREATE TABLE Band (firstname VARCHAR, id VARCHAR), CREATE TABLE Songs (SongId VARCHAR)
user: 在演奏过最多数歌曲的乐队的成员的名字是什么？

assistant: SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate  =  t2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE vocals (bandmate VARCHAR), CREATE TABLE band (id VARCHAR)
user: 在拥有成员名字是“贯中”的乐队中哪种声乐类型被演奏的最多？

assistant: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  "贯中" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE vocals (bandmate VARCHAR), CREATE TABLE band (id VARCHAR)
user: 成员名字包含“贯中”的乐队中唱得最多的声乐是什么类型的？

assistant: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  "贯中" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Performance (StagePosition VARCHAR, SongId VARCHAR, bandmate VARCHAR), CREATE TABLE Band (firstname VARCHAR, id VARCHAR, lastname VARCHAR), CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
user: 谁为“说好的幸福呢”的“后台”做舞台表演？显示姓名和姓氏。

assistant: SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  "说好的幸福呢" AND T1.StagePosition  =  "后台"
Schema: CREATE TABLE Performance (StagePosition VARCHAR, SongId VARCHAR, bandmate VARCHAR), CREATE TABLE Band (firstname VARCHAR, id VARCHAR, lastname VARCHAR), CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
user: 为歌曲“说好的幸福呢”表演“后台”的艺术家的名字和姓氏是什么？

assistant: SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  "说好的幸福呢" AND T1.StagePosition  =  "后台"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 找到没有“后台”声乐类型的歌曲的名字。

assistant: SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "后台"
Schema: CREATE TABLE vocals (songid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 那些没有没有声乐类型是“后台”的歌曲的名字是什么？

assistant: SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "后台"
Schema: CREATE TABLE albums (title VARCHAR, aid VARCHAR), CREATE TABLE tracklists (songid VARCHAR, albumid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 专辑“十一月的肖邦”中的歌曲有哪些？

assistant: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE T1.title  =  "十一月的肖邦"
Schema: CREATE TABLE albums (title VARCHAR, aid VARCHAR), CREATE TABLE tracklists (songid VARCHAR, albumid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 专辑“十一月的肖邦”包含的歌曲名字是什么？

assistant: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE T1.title  =  "十一月的肖邦"
Schema: CREATE TABLE albums (aid VARCHAR), CREATE TABLE tracklists (songid VARCHAR, albumid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 在标签是“环球音乐公司”下的专辑中的歌曲是什么？

assistant: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  "环球音乐公司"
Schema: CREATE TABLE albums (aid VARCHAR), CREATE TABLE tracklists (songid VARCHAR, albumid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 在专辑标签名称为“环球音乐公司”下的所有歌曲的名称是什么？

assistant: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  "环球音乐公司"
Schema: CREATE TABLE albums (aid VARCHAR), CREATE TABLE tracklists (songid VARCHAR, albumid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: 找出所有“我们的歌”专辑中的歌曲数量。

assistant: SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.type  =  "我们的歌"
Schema: CREATE TABLE albums (aid VARCHAR), CREATE TABLE tracklists (songid VARCHAR, albumid VARCHAR), CREATE TABLE songs (title VARCHAR, songid VARCHAR)
user: “我们的歌”专辑里有多少歌曲？

assistant: SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.type  =  "我们的歌"
Schema: CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)
user: “索尼”的创始人是谁？

assistant: SELECT founder FROM manufacturers WHERE name  =  '索尼'
Schema: CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)
user: 返回“索尼”的创始人。

assistant: SELECT founder FROM manufacturers WHERE name  =  '索尼'
Schema: CREATE TABLE manufacturers (founder VARCHAR, headquarter VARCHAR)
user: 由“强东”创立的公司的总部在哪里？

assistant: SELECT headquarter FROM manufacturers WHERE founder  =  '强东'
Schema: CREATE TABLE manufacturers (founder VARCHAR, headquarter VARCHAR)
user: 创始人是“强东”的公司的总部是什么？

assistant: SELECT headquarter FROM manufacturers WHERE founder  =  '强东'
Schema: CREATE TABLE manufacturers (revenue VARCHAR, name VARCHAR, headquarter VARCHAR)
user: 按收益最高的排序，找出所有制造商的名称和它们的总部。

assistant: SELECT name ,  headquarter FROM manufacturers ORDER BY revenue DESC
Schema: CREATE TABLE manufacturers (revenue VARCHAR, name VARCHAR, headquarter VARCHAR)
user: 按收益下降的顺序，所有制造商的名称和总部是什么？

assistant: SELECT name ,  headquarter FROM manufacturers ORDER BY revenue DESC
Schema: CREATE TABLE manufacturers (revenue INTEGER)
user: 所有公司的平均收益、最大收益和总收益是多少？

assistant: SELECT avg(revenue) ,  max(revenue) ,  sum(revenue) FROM manufacturers
Schema: CREATE TABLE manufacturers (revenue INTEGER)
user: 返回所有制造商的平均收益、最大收益和总收益。

assistant: SELECT avg(revenue) ,  max(revenue) ,  sum(revenue) FROM manufacturers
Schema: CREATE TABLE manufacturers (founder VARCHAR)
user: “林安”创建了多少家公司？

assistant: SELECT count(*) FROM manufacturers WHERE founder  =  '林安'
Schema: CREATE TABLE manufacturers (founder VARCHAR)
user: 返回“林安”创建的公司数量。

assistant: SELECT count(*) FROM manufacturers WHERE founder  =  '林安'
Schema: CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)
user: 找出总部位于“郑州”的公司创造的总收益。

assistant: SELECT sum(revenue) FROM manufacturers WHERE headquarter  =  '郑州'
Schema: CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)
user: 公司总部在“郑州”的公司的收益是多少？

assistant: SELECT sum(revenue) FROM manufacturers WHERE headquarter  =  '郑州'
Schema: CREATE TABLE manufacturers (headquarter VARCHAR)
user: 已列出的不同的城市有哪些？

assistant: SELECT DISTINCT headquarter FROM manufacturers
Schema: CREATE TABLE manufacturers (headquarter VARCHAR)
user: 给出制造商的不同的总部。

assistant: SELECT DISTINCT headquarter FROM manufacturers
Schema: CREATE TABLE manufacturers (headquarter VARCHAR)
user: 找出总部在“东京”或“北京”的制造商的数量。

assistant: SELECT count(*) FROM manufacturers WHERE headquarter  =  '日本' OR headquarter  =  '北京'
Schema: CREATE TABLE manufacturers (headquarter VARCHAR)
user: 有多少制造商在“东京”或“北京”拥有总部？

assistant: SELECT count(*) FROM manufacturers WHERE headquarter  =  '日本' OR headquarter  =  '北京'
Schema: CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)
user: 找到以字母“少”开头的公司的创始人的名字。

assistant: SELECT founder FROM manufacturers WHERE name LIKE '少'
Schema: CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)
user: 谁是首字母为“少”的公司的创始人？

assistant: SELECT founder FROM manufacturers WHERE name LIKE '少'
Schema: CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
user: 找出收益在100到150之间的公司的名称。

assistant: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
Schema: CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
user: 收益在100到150之间的公司名称是什么？

assistant: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
Schema: CREATE TABLE manufacturers (Headquarter VARCHAR, revenue INTEGER)
user: 所有在“东京”或“台湾”设有总办事处的公司的总收益是多少？

assistant: SELECT sum(revenue) FROM manufacturers WHERE Headquarter  =  '日本' OR Headquarter  =  '台湾'
Schema: CREATE TABLE manufacturers (Headquarter VARCHAR, revenue INTEGER)
user: 返回总部设在“东京”或“台湾”的公司的总收益。

assistant: SELECT sum(revenue) FROM manufacturers WHERE Headquarter  =  '日本' OR Headquarter  =  '台湾'
Schema: CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: 找到由“创新实验室”和“索尼”两家公司生产的产品的名称。

assistant: SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  '创造' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  '索尼'
Schema: CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: “创新实验室”和“索尼”生产的产品名称是什么？

assistant: SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  '创造' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  '索尼'
Schema: CREATE TABLE manufacturers (revenue VARCHAR, founder VARCHAR, name VARCHAR, headquarter VARCHAR)
user: 找出收益最高的制造商的名称、总部和创始人。

assistant: SELECT name ,  headquarter ,  founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Schema: CREATE TABLE manufacturers (revenue VARCHAR, founder VARCHAR, name VARCHAR, headquarter VARCHAR)
user: 收益最高的公司的名称、总部和创始人是什么？

assistant: SELECT name ,  headquarter ,  founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Schema: CREATE TABLE manufacturers (revenue VARCHAR, name VARCHAR, headquarter VARCHAR)
user: 按照收益的降序排序，查找所有制造商的名称、总部和收益。

assistant: SELECT name ,  headquarter ,  revenue FROM manufacturers ORDER BY revenue DESC
Schema: CREATE TABLE manufacturers (revenue VARCHAR, name VARCHAR, headquarter VARCHAR)
user: 按收益下降排序，制造商的名称、总部和收益是什么？

assistant: SELECT name ,  headquarter ,  revenue FROM manufacturers ORDER BY revenue DESC
Schema: CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
user: 找出收益大于所有公司平均收益的公司的名称。

assistant: SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)
Schema: CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
user: 收益高于所有制造商收益的平均值的公司的名字是什么？

assistant: SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)
Schema: CREATE TABLE manufacturers (headquarter VARCHAR, name VARCHAR, revenue INTEGER)
user: 查找收益小于所有位于“奥斯汀”的公司收益的公司的名称。

assistant: SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  '郑州')
Schema: CREATE TABLE manufacturers (headquarter VARCHAR, name VARCHAR, revenue INTEGER)
user: 收益低于“奥斯汀”最低收益的制造商的公司有哪些名字？

assistant: SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  '郑州')
Schema: CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)
user: 找出收益大于“奥斯汀”一些公司收益的公司的总收益。

assistant: SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  '郑州')
Schema: CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)
user: 收益高于在“奥斯汀”收益最低的制造商的所有公司的总收益是多少？

assistant: SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  '郑州')
Schema: CREATE TABLE manufacturers (founder VARCHAR, revenue INTEGER)
user: 找出每个创始人的公司总收益。

assistant: SELECT sum(revenue) ,  founder FROM manufacturers GROUP BY founder
Schema: CREATE TABLE manufacturers (founder VARCHAR, revenue INTEGER)
user: 每个创始人创办的公司的总收益是多少？

assistant: SELECT sum(revenue) ,  founder FROM manufacturers GROUP BY founder
Schema: CREATE TABLE manufacturers (Headquarter VARCHAR, name VARCHAR, revenue INTEGER)
user: 找出每个城市收益最高的公司的名称和收益。

assistant: SELECT name ,  max(revenue) ,  Headquarter FROM manufacturers GROUP BY Headquarter
Schema: CREATE TABLE manufacturers (Headquarter VARCHAR, name VARCHAR, revenue INTEGER)
user: 每个总部城市收益最高的公司的名称及其收益是多少？

assistant: SELECT name ,  max(revenue) ,  Headquarter FROM manufacturers GROUP BY Headquarter
Schema: CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
user: 找处每个制造商的总收益。

assistant: SELECT sum(revenue) ,  name FROM manufacturers GROUP BY name
Schema: CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
user: 每个制造商的总收益是多少？

assistant: SELECT sum(revenue) ,  name FROM manufacturers GROUP BY name
Schema: CREATE TABLE products (price INTEGER, Manufacturer VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: 找出每个制造商的所有产品的平均价格，并列出每个公司的名称。

assistant: SELECT avg(T1.price) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Schema: CREATE TABLE products (price INTEGER, Manufacturer VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: 每个制造商的平均产品价格是多少？

assistant: SELECT avg(T1.price) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Schema: CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR), CREATE TABLE manufacturers (Headquarter VARCHAR, code VARCHAR)
user: 找出不同总部城市的公司生产的不同产品的数量。

assistant: SELECT count(DISTINCT T1.name) ,  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter
Schema: CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR), CREATE TABLE manufacturers (Headquarter VARCHAR, code VARCHAR)
user: 每个总部城市生产多少种不同的产品？

assistant: SELECT count(DISTINCT T1.name) ,  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter
Schema: CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: 找出“索尼”不生产的产品的数量。

assistant: SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  '索尼')
Schema: CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: 有多少种产品不是“索尼”制造的？

assistant: SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  '索尼')
Schema: CREATE TABLE manufacturers (name VARCHAR, code VARCHAR), CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR)
user: 找出不做“DVD驱动器”的公司的名称。

assistant: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD播放机'
Schema: CREATE TABLE manufacturers (name VARCHAR, code VARCHAR), CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR)
user: 不制作“DVD驱动器”的公司的名称是什么？

assistant: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD播放机'
Schema: CREATE TABLE products (Manufacturer VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: 找出每个制造商的产品数量，显示每个公司的名称。

assistant: SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Schema: CREATE TABLE products (Manufacturer VARCHAR), CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
user: 每个制造商找出多少产品？

assistant: SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Schema: CREATE TABLE Products (Name VARCHAR)
user: 选择店里所有产品的名称。

assistant: SELECT Name FROM Products
Schema: CREATE TABLE Products (Name VARCHAR)
user: 所有产品的名称是什么？

assistant: SELECT Name FROM Products
Schema: CREATE TABLE products (price VARCHAR, name VARCHAR)
user: 选择店里所有产品的名称和价格。

assistant: SELECT name ,  price FROM products
Schema: CREATE TABLE products (price VARCHAR, name VARCHAR)
user: 商店里所有产品的名称和价格是多少？

assistant: SELECT name ,  price FROM products
Schema: CREATE TABLE products (price INTEGER, name VARCHAR)
user: 选择价格低于或等于200美元的产品名称。

assistant: SELECT name FROM products WHERE price  <=  200
Schema: CREATE TABLE products (price INTEGER, name VARCHAR)
user: 价格最多是200的产品名称是什么？

assistant: SELECT name FROM products WHERE price  <=  200
Schema: CREATE TABLE products (price INTEGER)
user: 找出所有价格在60到120美元之间的产品的所有信息，。

assistant: SELECT * FROM products WHERE price BETWEEN 60 AND 120
Schema: CREATE TABLE products (price INTEGER)
user: 所有价格在60到120之间的产品的所有信息是什么？

assistant: SELECT * FROM products WHERE price BETWEEN 60 AND 120
Schema: CREATE TABLE products (price INTEGER)
user: 计算所有产品的平均价格。

assistant: SELECT avg(price) FROM products
Schema: CREATE TABLE products (price INTEGER)
user: 所有产品的平均价格是多少？

assistant: SELECT avg(price) FROM products
Schema: CREATE TABLE products (price INTEGER, Manufacturer VARCHAR)
user: 计算制造商代码为2的所有产品的平均价格。

assistant: SELECT avg(price) FROM products WHERE Manufacturer  =  2
Schema: CREATE TABLE products (price INTEGER, Manufacturer VARCHAR)
user: 制造商代码为2的产品的平均价格是多少？

assistant: SELECT avg(price) FROM products WHERE Manufacturer  =  2
Schema: CREATE TABLE products (price INTEGER)
user: 计算价格大于或等于180美元的产品数量。

assistant: SELECT count(*) FROM products WHERE price >= 180
Schema: CREATE TABLE products (price INTEGER)
user: 多少产品的价格至少有180？

assistant: SELECT count(*) FROM products WHERE price >= 180
Schema: CREATE TABLE products (price INTEGER, name VARCHAR)
user: 选择所有价格大于或等于$180的产品的名称和价格，首先按价格（降序）排序，然后按名称（升序）排序。

assistant: SELECT name ,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC
Schema: CREATE TABLE products (price INTEGER, name VARCHAR)
user: 根据价格下降及名称上升排序，价格至少为180的产品的名称和价格是什么？

assistant: SELECT name ,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC
Schema: CREATE TABLE products (manufacturer VARCHAR), CREATE TABLE Manufacturers (code VARCHAR)
user: 从每个产品的制造商中选择所有产品数据。

assistant: SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code
Schema: CREATE TABLE products (manufacturer VARCHAR), CREATE TABLE Manufacturers (code VARCHAR)
user: 所有的产品数据，以及每个产品的制造商是什么？

assistant: SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code
Schema: CREATE TABLE Products (Manufacturer VARCHAR, Price INTEGER)
user: 选择每个制造商产品的平均价格，只显示制造商的代码。

assistant: SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer
Schema: CREATE TABLE Products (Manufacturer VARCHAR, Price INTEGER)
user: 按制造商代码分组的产品平均价格是多少？

assistant: SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer
Schema: CREATE TABLE products (manufacturer VARCHAR, Price INTEGER), CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR)
user: 选择每个制造商产品的平均价格，显示制造商的名称。

assistant: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name