text2SQL
stringlengths 192
7.27k
|
---|
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 外文书籍 (
词条id,
名称,
英文名,
原著作者,
字数)
CREATE TABLE 译者 (
词条id,
姓名,
国籍,
翻译作品数量)
CREATE TABLE 出版社 (
词条id,
名称,
成立时间,
成立地点)
CREATE TABLE 书籍出版信息 (
书籍id,
译者id,
出版社id,
出版册数,
出版时间)
-- Using valid SQLite, answer the following questions for the tables provided above.
--简爱包含的字数比飘多多少
SELECT### Response: select a.字数 - b.字数 from ( select 字数 from 外文书籍 where 名称 == '简爱' ) a , ( select 字数 from 外文书籍 where 名称 == '飘' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 诺贝尔奖项 (
词条id,
名称,
领域,
第一次颁奖时间,
获奖者最大年龄,
获奖者最小年龄,
获奖者平均年龄)
CREATE TABLE 高校 (
词条id,
名称,
所属国家,
世界排名,
独立科研机构数量,
重点学科数量)
CREATE TABLE 高校获奖名单 (
高校id,
奖项id,
人数,
排名)
CREATE TABLE 各国获奖名单 (
国家,
奖项id,
人数)
CREATE TABLE 科学家 (
词条id,
姓名,
性别,
国籍,
出生日期,
职业)
CREATE TABLE 毕业院校 (
科学家id,
高校id,
获得学位)
CREATE TABLE 诺贝尔奖科学家名单 (
年份,
奖项id,
科学家id,
理由)
-- Using valid SQLite, answer the following questions for the tables provided above.
--清华大学开设的独立科研机构是东京大学的多少倍
SELECT### Response: select a.独立科研机构数量 / b.独立科研机构数量 from ( select 独立科研机构数量 from 高校 where 名称 == '清华大学' ) a , ( select 独立科研机构数量 from 高校 where 名称 == '东京大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 诺贝尔奖项 (
词条id,
名称,
领域,
第一次颁奖时间,
获奖者最大年龄,
获奖者最小年龄,
获奖者平均年龄)
CREATE TABLE 高校 (
词条id,
名称,
所属国家,
世界排名,
独立科研机构数量,
重点学科数量)
CREATE TABLE 高校获奖名单 (
高校id,
奖项id,
人数,
排名)
CREATE TABLE 各国获奖名单 (
国家,
奖项id,
人数)
CREATE TABLE 科学家 (
词条id,
姓名,
性别,
国籍,
出生日期,
职业)
CREATE TABLE 毕业院校 (
科学家id,
高校id,
获得学位)
CREATE TABLE 诺贝尔奖科学家名单 (
年份,
奖项id,
科学家id,
理由)
-- Using valid SQLite, answer the following questions for the tables provided above.
--清华大学世界排名比东京大学高多少
SELECT### Response: select a.世界排名 - b.世界排名 from ( select 世界排名 from 高校 where 名称 == '清华大学' ) a , ( select 世界排名 from 高校 where 名称 == '东京大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 诺贝尔奖项 (
词条id,
名称,
领域,
第一次颁奖时间,
获奖者最大年龄,
获奖者最小年龄,
获奖者平均年龄)
CREATE TABLE 高校 (
词条id,
名称,
所属国家,
世界排名,
独立科研机构数量,
重点学科数量)
CREATE TABLE 高校获奖名单 (
高校id,
奖项id,
人数,
排名)
CREATE TABLE 各国获奖名单 (
国家,
奖项id,
人数)
CREATE TABLE 科学家 (
词条id,
姓名,
性别,
国籍,
出生日期,
职业)
CREATE TABLE 毕业院校 (
科学家id,
高校id,
获得学位)
CREATE TABLE 诺贝尔奖科学家名单 (
年份,
奖项id,
科学家id,
理由)
-- Using valid SQLite, answer the following questions for the tables provided above.
--清华大学开设的独立科研机构比东京大学开设的多多少所
SELECT### Response: select a.独立科研机构数量 - b.独立科研机构数量 from ( select 独立科研机构数量 from 高校 where 名称 == '清华大学' ) a , ( select 独立科研机构数量 from 高校 where 名称 == '东京大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 诺贝尔奖项 (
词条id,
名称,
领域,
第一次颁奖时间,
获奖者最大年龄,
获奖者最小年龄,
获奖者平均年龄)
CREATE TABLE 高校 (
词条id,
名称,
所属国家,
世界排名,
独立科研机构数量,
重点学科数量)
CREATE TABLE 高校获奖名单 (
高校id,
奖项id,
人数,
排名)
CREATE TABLE 各国获奖名单 (
国家,
奖项id,
人数)
CREATE TABLE 科学家 (
词条id,
姓名,
性别,
国籍,
出生日期,
职业)
CREATE TABLE 毕业院校 (
科学家id,
高校id,
获得学位)
CREATE TABLE 诺贝尔奖科学家名单 (
年份,
奖项id,
科学家id,
理由)
-- Using valid SQLite, answer the following questions for the tables provided above.
--清华大学和东京大学一共开设了多少个独立科研机构
SELECT### Response: select a.独立科研机构数量 + b.独立科研机构数量 from ( select 独立科研机构数量 from 高校 where 名称 == '清华大学' ) a , ( select 独立科研机构数量 from 高校 where 名称 == '东京大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 比赛 (
词条id,
名称,
方向,
举办单位,
单位性质,
奖金数,
录取队伍数量,
比赛平台)
CREATE TABLE 参赛队伍 (
词条id,
队名,
人数)
CREATE TABLE 参赛学生 (
词条id,
姓名,
年龄,
学历,
学校)
CREATE TABLE 参赛成绩 (
学生id,
加入队伍id,
参加比赛id,
成绩)
-- Using valid SQLite, answer the following questions for the tables provided above.
--知识驱动型对话比赛录取的队伍比开放领域知识挖掘比赛的多多少个
SELECT### Response: select a.录取队伍数量 - b.录取队伍数量 from ( select 录取队伍数量 from 比赛 where 名称 == '知识驱动型对话' ) a , ( select 录取队伍数量 from 比赛 where 名称 == '开放领域知识挖掘' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 比赛 (
词条id,
名称,
方向,
举办单位,
单位性质,
奖金数,
录取队伍数量,
比赛平台)
CREATE TABLE 参赛队伍 (
词条id,
队名,
人数)
CREATE TABLE 参赛学生 (
词条id,
姓名,
年龄,
学历,
学校)
CREATE TABLE 参赛成绩 (
学生id,
加入队伍id,
参加比赛id,
成绩)
-- Using valid SQLite, answer the following questions for the tables provided above.
--知识驱动型对话比赛所设立的奖金比开放领域知识挖掘比赛多多少
SELECT### Response: select a.奖金数 - b.奖金数 from ( select 奖金数 from 比赛 where 名称 == '知识驱动型对话' ) a , ( select 奖金数 from 比赛 where 名称 == '开放领域知识挖掘' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 汽车公司 (
词条id,
名称,
所属国家,
经营范围,
母公司,
主要车系数量,
世界500强排名,
主要荣誉)
CREATE TABLE 汽车公司中国事业部 (
公司id,
中国事业部名称,
位于城市,
所属省份,
总投资金额,
负责产品数量,
主要产品)
CREATE TABLE 汽车产品 (
词条id,
名称,
推出时间,
车型,
车款数量,
保值率,
生产公司id)
CREATE TABLE 车型 (
词条id,
名称,
排量,
油耗,
售价,
所属产品id,
关注指数,
累计销量,
安全排行,
性能排行,
油耗排行,
空间排行,
舒适排行)
-- Using valid SQLite, answer the following questions for the tables provided above.
--奔驰A级的保值率比奔驰GLC级高多少
SELECT### Response: select a.保值率 - b.保值率 from ( select 保值率 from 汽车产品 where 名称 == '奔驰A级' ) a , ( select 保值率 from 汽车产品 where 名称 == '奔驰GLC级' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 汽车公司 (
词条id,
名称,
所属国家,
经营范围,
母公司,
主要车系数量,
世界500强排名,
主要荣誉)
CREATE TABLE 汽车公司中国事业部 (
公司id,
中国事业部名称,
位于城市,
所属省份,
总投资金额,
负责产品数量,
主要产品)
CREATE TABLE 汽车产品 (
词条id,
名称,
推出时间,
车型,
车款数量,
保值率,
生产公司id)
CREATE TABLE 车型 (
词条id,
名称,
排量,
油耗,
售价,
所属产品id,
关注指数,
累计销量,
安全排行,
性能排行,
油耗排行,
空间排行,
舒适排行)
-- Using valid SQLite, answer the following questions for the tables provided above.
--奔驰A级比奔驰GLC级多生产了多少款车
SELECT### Response: select a.车款数量 - b.车款数量 from ( select 车款数量 from 汽车产品 where 名称 == '奔驰A级' ) a , ( select 车款数量 from 汽车产品 where 名称 == '奔驰GLC级' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 作者 (
词条id,
姓名,
性别,
国籍,
职业,
所在单位)
CREATE TABLE 论文 (
词条id,
名称,
作者id,
会议名称,
年份,
引用量)
CREATE TABLE 论文引用 (
论文id,
引用论文id,
是否对比论文)
-- Using valid SQLite, answer the following questions for the tables provided above.
--论文“基于对齐的机器翻译”的引用量比论文“基于神经网络的文本分类”多多少
SELECT### Response: select a.引用量 - b.引用量 from ( select 引用量 from 论文 where 名称 == '基于对齐的机器翻译' ) a , ( select 引用量 from 论文 where 名称 == '基于神经网络的文本分类' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 作者 (
词条id,
姓名,
性别,
国籍,
职业,
所在单位)
CREATE TABLE 论文 (
词条id,
名称,
作者id,
会议名称,
年份,
引用量)
CREATE TABLE 论文引用 (
论文id,
引用论文id,
是否对比论文)
-- Using valid SQLite, answer the following questions for the tables provided above.
--论文“基于对齐的机器翻译”的引用量是论文“基于神经网络的文本分类”的多少倍
SELECT### Response: select a.引用量 / b.引用量 from ( select 引用量 from 论文 where 名称 == '基于对齐的机器翻译' ) a , ( select 引用量 from 论文 where 名称 == '基于神经网络的文本分类' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 学校 (
词条id,
名称,
类型,
国家,
世界排名)
CREATE TABLE 课程 (
词条id,
名称,
所属专业,
适合学者类型)
CREATE TABLE 平台 (
词条id,
名称,
课程数量,
合作学校数量,
是否免费)
CREATE TABLE 平台合作学校 (
平台id,
学校id,
合作课程数量)
CREATE TABLE 学校的开源课程 (
词条id,
开源课程名称,
课程id,
学校id,
课时,
主讲教师)
CREATE TABLE 平台课程 (
开源课程id,
平台id,
是否直播,
课程时长,
价格)
-- Using valid SQLite, answer the following questions for the tables provided above.
--均一教学平台比中国大学Mooc多合作了多少所学校
SELECT### Response: select a.合作学校数量 - b.合作学校数量 from ( select 合作学校数量 from 平台 where 名称 == '均一教学平台' ) a , ( select 合作学校数量 from 平台 where 名称 == '中国大学Mooc' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 学校 (
词条id,
名称,
类型,
国家,
世界排名)
CREATE TABLE 课程 (
词条id,
名称,
所属专业,
适合学者类型)
CREATE TABLE 平台 (
词条id,
名称,
课程数量,
合作学校数量,
是否免费)
CREATE TABLE 平台合作学校 (
平台id,
学校id,
合作课程数量)
CREATE TABLE 学校的开源课程 (
词条id,
开源课程名称,
课程id,
学校id,
课时,
主讲教师)
CREATE TABLE 平台课程 (
开源课程id,
平台id,
是否直播,
课程时长,
价格)
-- Using valid SQLite, answer the following questions for the tables provided above.
--均一教学平台比中国大学Mooc多开设了多少门课程
SELECT### Response: select a.课程数量 - b.课程数量 from ( select 课程数量 from 平台 where 名称 == '均一教学平台' ) a , ( select 课程数量 from 平台 where 名称 == '中国大学Mooc' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
行业,
校招人数)
CREATE TABLE 学校 (
词条id,
名称,
所在城市,
毕业人数)
CREATE TABLE 学校各专业 (
学校id,
专业,
毕业人数,
专业全国排名,
平均薪资)
CREATE TABLE 公司对口专业 (
公司id,
专业,
对应岗位,
拟招聘人数,
基本工资,
工资幅度)
CREATE TABLE 公司宣讲会 (
公司id,
学校id,
宣讲时间,
拟招聘人数,
参加笔试人数,
参加面试人数,
实际招聘人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--阿里巴巴和国家电网在校招时一共招了多少名学生
SELECT### Response: select a.校招人数 + b.校招人数 from ( select 校招人数 from 公司 where 名称 == '阿里巴巴' ) a , ( select 校招人数 from 公司 where 名称 == '国家电网' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
行业,
校招人数)
CREATE TABLE 学校 (
词条id,
名称,
所在城市,
毕业人数)
CREATE TABLE 学校各专业 (
学校id,
专业,
毕业人数,
专业全国排名,
平均薪资)
CREATE TABLE 公司对口专业 (
公司id,
专业,
对应岗位,
拟招聘人数,
基本工资,
工资幅度)
CREATE TABLE 公司宣讲会 (
公司id,
学校id,
宣讲时间,
拟招聘人数,
参加笔试人数,
参加面试人数,
实际招聘人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在校园招聘中,阿里巴巴公司比国家电网多招了多少名学生
SELECT### Response: select a.校招人数 - b.校招人数 from ( select 校招人数 from 公司 where 名称 == '阿里巴巴' ) a , ( select 校招人数 from 公司 where 名称 == '国家电网' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
行业,
校招人数)
CREATE TABLE 学校 (
词条id,
名称,
所在城市,
毕业人数)
CREATE TABLE 学校各专业 (
学校id,
专业,
毕业人数,
专业全国排名,
平均薪资)
CREATE TABLE 公司对口专业 (
公司id,
专业,
对应岗位,
拟招聘人数,
基本工资,
工资幅度)
CREATE TABLE 公司宣讲会 (
公司id,
学校id,
宣讲时间,
拟招聘人数,
参加笔试人数,
参加面试人数,
实际招聘人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在校园招聘中,阿里巴巴公司招聘人数是国家电网的多少倍
SELECT### Response: select a.校招人数 / b.校招人数 from ( select 校招人数 from 公司 where 名称 == '阿里巴巴' ) a , ( select 校招人数 from 公司 where 名称 == '国家电网' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 植物 (
词条id,
学名,
花期,
花期时长,
果期)
CREATE TABLE 药用植物 (
植物id,
用途说明,
毒性,
种植方式)
CREATE TABLE 植物分布城市 (
植物id,
城市,
保护级别)
CREATE TABLE 食肉植物分布区域 (
植物id,
区域,
种类数)
CREATE TABLE 植物繁殖 (
植物id,
方式)
-- Using valid SQLite, answer the following questions for the tables provided above.
--凤梨的花期比郁金香长多少
SELECT### Response: select a.花期时长 - b.花期时长 from ( select 花期时长 from 植物 where 学名 == '凤梨' ) a , ( select 花期时长 from 植物 where 学名 == '郁金香' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 电商 (
词条id,
名称,
所属公司,
类型,
影响力指数,
排名,
上线国家数量)
CREATE TABLE 电商覆盖国家 (
电商id,
支持国家,
上线时间,
负责的分公司名称)
CREATE TABLE 商家 (
词条id,
名称,
所属国家,
主营类别,
网店覆盖国家数量,
实体店数量,
入驻电商数量)
CREATE TABLE 商家网点覆盖国家 (
商家id,
国家,
实体店数量,
年平均营业额)
CREATE TABLE 商家交易额 (
商家id,
电商平台id,
上线品类数量,
促销品类数量,
平均折扣,
交易额,
占全年销售额比例)
CREATE TABLE 电商活动交易额 (
电商平台id,
活动日,
参加活动商家数量,
促销商品数量,
交易额)
-- Using valid SQLite, answer the following questions for the tables provided above.
--松下电器覆盖的国家比only多多少个
SELECT### Response: select a.网店覆盖国家数量 - b.网店覆盖国家数量 from ( select 网店覆盖国家数量 from 商家 where 名称 == '松下电器' ) a , ( select 网店覆盖国家数量 from 商家 where 名称 == 'only' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 电商 (
词条id,
名称,
所属公司,
类型,
影响力指数,
排名,
上线国家数量)
CREATE TABLE 电商覆盖国家 (
电商id,
支持国家,
上线时间,
负责的分公司名称)
CREATE TABLE 商家 (
词条id,
名称,
所属国家,
主营类别,
网店覆盖国家数量,
实体店数量,
入驻电商数量)
CREATE TABLE 商家网点覆盖国家 (
商家id,
国家,
实体店数量,
年平均营业额)
CREATE TABLE 商家交易额 (
商家id,
电商平台id,
上线品类数量,
促销品类数量,
平均折扣,
交易额,
占全年销售额比例)
CREATE TABLE 电商活动交易额 (
电商平台id,
活动日,
参加活动商家数量,
促销商品数量,
交易额)
-- Using valid SQLite, answer the following questions for the tables provided above.
--松下电器拥有的实体店比only多多少个
SELECT### Response: select a.实体店数量 - b.实体店数量 from ( select 实体店数量 from 商家 where 名称 == '松下电器' ) a , ( select 实体店数量 from 商家 where 名称 == 'only' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 电商 (
词条id,
名称,
所属公司,
类型,
影响力指数,
排名,
上线国家数量)
CREATE TABLE 电商覆盖国家 (
电商id,
支持国家,
上线时间,
负责的分公司名称)
CREATE TABLE 商家 (
词条id,
名称,
所属国家,
主营类别,
网店覆盖国家数量,
实体店数量,
入驻电商数量)
CREATE TABLE 商家网点覆盖国家 (
商家id,
国家,
实体店数量,
年平均营业额)
CREATE TABLE 商家交易额 (
商家id,
电商平台id,
上线品类数量,
促销品类数量,
平均折扣,
交易额,
占全年销售额比例)
CREATE TABLE 电商活动交易额 (
电商平台id,
活动日,
参加活动商家数量,
促销商品数量,
交易额)
-- Using valid SQLite, answer the following questions for the tables provided above.
--松下电器比only多入驻了几家电商
SELECT### Response: select a.入驻电商数量 - b.入驻电商数量 from ( select 入驻电商数量 from 商家 where 名称 == '松下电器' ) a , ( select 入驻电商数量 from 商家 where 名称 == 'only' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--第38届世界经济论坛比第34届多来了多少国家
SELECT### Response: select a.参加国家数量 - b.参加国家数量 from ( select 参加国家数量 from 世界经济论坛 where 届次 == '38届' ) a , ( select 参加国家数量 from 世界经济论坛 where 届次 == '34届' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--第38届世界经济论坛比第34届多来了多少国家元首
SELECT### Response: select a.参加的元首人数 - b.参加的元首人数 from ( select 参加的元首人数 from 世界经济论坛 where 届次 == '38届' ) a , ( select 参加的元首人数 from 世界经济论坛 where 届次 == '34届' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--第38届世界经济论坛总参加人数比第34届多了多少
SELECT### Response: select a.参加总人数 - b.参加总人数 from ( select 参加总人数 from 世界经济论坛 where 届次 == '38届' ) a , ( select 参加总人数 from 世界经济论坛 where 届次 == '34届' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--第38届世界经济论坛比第34届多开设了多少个论坛
SELECT### Response: select a.研讨会数量 - b.研讨会数量 from ( select 研讨会数量 from 世界经济论坛 where 届次 == '38届' ) a , ( select 研讨会数量 from 世界经济论坛 where 届次 == '34届' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 作者 (
词条id,
姓名,
国籍,
毕业院校,
民族)
CREATE TABLE 文集 (
词条id,
名称,
作者id,
页数,
定价,
出版社,
出版时间,
开本)
-- Using valid SQLite, answer the following questions for the tables provided above.
--冰心全集比郭沫若全集多了几页
SELECT### Response: select a.页数 - b.页数 from ( select 页数 from 文集 where 名称 == '冰心全集' ) a , ( select 页数 from 文集 where 名称 == '郭沫若全集' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 作者 (
词条id,
姓名,
国籍,
毕业院校,
民族)
CREATE TABLE 文集 (
词条id,
名称,
作者id,
页数,
定价,
出版社,
出版时间,
开本)
-- Using valid SQLite, answer the following questions for the tables provided above.
--冰心全集比郭沫若全集贵多少钱
SELECT### Response: select a.定价 - b.定价 from ( select 定价 from 文集 where 名称 == '冰心全集' ) a , ( select 定价 from 文集 where 名称 == '郭沫若全集' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 各届金曲奖 (
词条id,
名称,
年份,
奖项数量,
主持人,
参赛作品数量,
入围作品数量)
CREATE TABLE 歌手 (
词条id,
姓名,
性别,
出生地,
专辑数量,
歌曲数量,
演唱会总场次,
粉丝总数,
红粉数量)
CREATE TABLE 歌手签约唱片公司 (
歌手id,
唱片公司,
签约时间)
CREATE TABLE 金曲奖提名名单 (
奖届id,
奖项名称,
提名歌手id,
提名作品)
CREATE TABLE 金曲奖获奖名单 (
奖届id,
奖项名称,
获奖歌手id,
歌手唱片公司)
-- Using valid SQLite, answer the following questions for the tables provided above.
--周杰伦的红粉比李荣浩的多多少
SELECT### Response: select a.红粉数量 - b.红粉数量 from ( select 红粉数量 from 歌手 where 姓名 == '周杰伦' ) a , ( select 红粉数量 from 歌手 where 姓名 == '李荣浩' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 各届金曲奖 (
词条id,
名称,
年份,
奖项数量,
主持人,
参赛作品数量,
入围作品数量)
CREATE TABLE 歌手 (
词条id,
姓名,
性别,
出生地,
专辑数量,
歌曲数量,
演唱会总场次,
粉丝总数,
红粉数量)
CREATE TABLE 歌手签约唱片公司 (
歌手id,
唱片公司,
签约时间)
CREATE TABLE 金曲奖提名名单 (
奖届id,
奖项名称,
提名歌手id,
提名作品)
CREATE TABLE 金曲奖获奖名单 (
奖届id,
奖项名称,
获奖歌手id,
歌手唱片公司)
-- Using valid SQLite, answer the following questions for the tables provided above.
--周杰伦比李荣浩多开了多少场次的演唱会
SELECT### Response: select a.演唱会总场次 - b.演唱会总场次 from ( select 演唱会总场次 from 歌手 where 姓名 == '周杰伦' ) a , ( select 演唱会总场次 from 歌手 where 姓名 == '李荣浩' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 各届金曲奖 (
词条id,
名称,
年份,
奖项数量,
主持人,
参赛作品数量,
入围作品数量)
CREATE TABLE 歌手 (
词条id,
姓名,
性别,
出生地,
专辑数量,
歌曲数量,
演唱会总场次,
粉丝总数,
红粉数量)
CREATE TABLE 歌手签约唱片公司 (
歌手id,
唱片公司,
签约时间)
CREATE TABLE 金曲奖提名名单 (
奖届id,
奖项名称,
提名歌手id,
提名作品)
CREATE TABLE 金曲奖获奖名单 (
奖届id,
奖项名称,
获奖歌手id,
歌手唱片公司)
-- Using valid SQLite, answer the following questions for the tables provided above.
--周杰伦的粉丝比李荣浩的多多少
SELECT### Response: select a.粉丝总数 - b.粉丝总数 from ( select 粉丝总数 from 歌手 where 姓名 == '周杰伦' ) a , ( select 粉丝总数 from 歌手 where 姓名 == '李荣浩' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 各届金曲奖 (
词条id,
名称,
年份,
奖项数量,
主持人,
参赛作品数量,
入围作品数量)
CREATE TABLE 歌手 (
词条id,
姓名,
性别,
出生地,
专辑数量,
歌曲数量,
演唱会总场次,
粉丝总数,
红粉数量)
CREATE TABLE 歌手签约唱片公司 (
歌手id,
唱片公司,
签约时间)
CREATE TABLE 金曲奖提名名单 (
奖届id,
奖项名称,
提名歌手id,
提名作品)
CREATE TABLE 金曲奖获奖名单 (
奖届id,
奖项名称,
获奖歌手id,
歌手唱片公司)
-- Using valid SQLite, answer the following questions for the tables provided above.
--周杰伦比李荣浩多唱了多少首歌曲
SELECT### Response: select a.歌曲数量 - b.歌曲数量 from ( select 歌曲数量 from 歌手 where 姓名 == '周杰伦' ) a , ( select 歌曲数量 from 歌手 where 姓名 == '李荣浩' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 各届金曲奖 (
词条id,
名称,
年份,
奖项数量,
主持人,
参赛作品数量,
入围作品数量)
CREATE TABLE 歌手 (
词条id,
姓名,
性别,
出生地,
专辑数量,
歌曲数量,
演唱会总场次,
粉丝总数,
红粉数量)
CREATE TABLE 歌手签约唱片公司 (
歌手id,
唱片公司,
签约时间)
CREATE TABLE 金曲奖提名名单 (
奖届id,
奖项名称,
提名歌手id,
提名作品)
CREATE TABLE 金曲奖获奖名单 (
奖届id,
奖项名称,
获奖歌手id,
歌手唱片公司)
-- Using valid SQLite, answer the following questions for the tables provided above.
--周杰伦比李荣浩多出了多少张专辑
SELECT### Response: select a.专辑数量 - b.专辑数量 from ( select 专辑数量 from 歌手 where 姓名 == '周杰伦' ) a , ( select 专辑数量 from 歌手 where 姓名 == '李荣浩' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 网红食品 (
词条id,
名称,
品类数量,
商家数量,
出现年份)
CREATE TABLE 网红食品销售 (
类型id,
年份,
销售额,
购买人数)
CREATE TABLE 网红食品购买者 (
类型id,
年龄段,
人数占比)
CREATE TABLE 网红食品分布城市 (
类型id,
省份,
销售量占比,
商家占比,
安全事件关注度)
-- Using valid SQLite, answer the following questions for the tables provided above.
--奶茶饮料比休闲食品多多少个商家
SELECT### Response: select a.商家数量 - b.商家数量 from ( select 商家数量 from 网红食品 where 名称 == '奶茶饮料' ) a , ( select 商家数量 from 网红食品 where 名称 == '休闲食品' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 网红食品 (
词条id,
名称,
品类数量,
商家数量,
出现年份)
CREATE TABLE 网红食品销售 (
类型id,
年份,
销售额,
购买人数)
CREATE TABLE 网红食品购买者 (
类型id,
年龄段,
人数占比)
CREATE TABLE 网红食品分布城市 (
类型id,
省份,
销售量占比,
商家占比,
安全事件关注度)
-- Using valid SQLite, answer the following questions for the tables provided above.
--奶茶饮料比休闲食品多多少个品类
SELECT### Response: select a.品类数量 - b.品类数量 from ( select 品类数量 from 网红食品 where 名称 == '奶茶饮料' ) a , ( select 品类数量 from 网红食品 where 名称 == '休闲食品' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 网红食品 (
词条id,
名称,
品类数量,
商家数量,
出现年份)
CREATE TABLE 网红食品销售 (
类型id,
年份,
销售额,
购买人数)
CREATE TABLE 网红食品购买者 (
类型id,
年龄段,
人数占比)
CREATE TABLE 网红食品分布城市 (
类型id,
省份,
销售量占比,
商家占比,
安全事件关注度)
-- Using valid SQLite, answer the following questions for the tables provided above.
--奶茶饮料比休闲食品早出现了几年
SELECT### Response: select a.出现年份 - b.出现年份 from ( select 出现年份 from 网红食品 where 名称 == '奶茶饮料' ) a , ( select 出现年份 from 网红食品 where 名称 == '休闲食品' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 诗人 (
词条id,
姓名,
性别,
所处朝代,
年龄,
作品数量,
称号)
CREATE TABLE 诗词 (
词条id,
诗词名,
作者id,
文学体裁,
传播度)
CREATE TABLE 做官的诗人 (
诗人id,
所处年号,
做官时间)
CREATE TABLE 纪念景点 (
词条id,
名称,
所属城市,
地址,
纪念人物id)
-- Using valid SQLite, answer the following questions for the tables provided above.
--诗人item_dynasties_words_5_28比item_dynasties_words_5_26多做了几年官?
SELECT### Response: select a.做官时间 - b.做官时间 from ( select 做官时间 from 做官的诗人 where 诗人id == 'item_dynasties_words_5_28' ) a , ( select 做官时间 from 做官的诗人 where 诗人id == 'item_dynasties_words_5_26' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 地产集团 (
词条id,
名称,
位于城市,
所属省份,
年销售额,
销售额同比增长,
销售额市场占比,
商品房销售面积,
销售面积同比增长,
销售面积,
市场占比)
CREATE TABLE 2019年房地产企业500强 (
集团id,
总排名,
发展潜力排名,
成长速度排名,
综合发展排名,
创新能力排名)
CREATE TABLE 2019年房地产企业运营100强 (
集团id,
运营效率排名,
区域运营排名,
稳健运营排名,
商业地产运营排名,
社区文化运营排名,
长租公寓运营排名)
CREATE TABLE 房地产各城市排名 (
集团id,
城市,
排名,
销售面积,
销售额)
CREATE TABLE 房产公司典型项目 (
项目名称,
所属集团id,
位于城市,
占地面积,
总户数,
户型面积)
-- Using valid SQLite, answer the following questions for the tables provided above.
--绿地比万科多销售了多少商品房
SELECT### Response: select a.商品房销售面积 - b.商品房销售面积 from ( select 商品房销售面积 from 地产集团 where 名称 == '绿地' ) a , ( select 商品房销售面积 from 地产集团 where 名称 == '万科' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 地产集团 (
词条id,
名称,
位于城市,
所属省份,
年销售额,
销售额同比增长,
销售额市场占比,
商品房销售面积,
销售面积同比增长,
销售面积,
市场占比)
CREATE TABLE 2019年房地产企业500强 (
集团id,
总排名,
发展潜力排名,
成长速度排名,
综合发展排名,
创新能力排名)
CREATE TABLE 2019年房地产企业运营100强 (
集团id,
运营效率排名,
区域运营排名,
稳健运营排名,
商业地产运营排名,
社区文化运营排名,
长租公寓运营排名)
CREATE TABLE 房地产各城市排名 (
集团id,
城市,
排名,
销售面积,
销售额)
CREATE TABLE 房产公司典型项目 (
项目名称,
所属集团id,
位于城市,
占地面积,
总户数,
户型面积)
-- Using valid SQLite, answer the following questions for the tables provided above.
--绿地的年销售金额比万科的高多少
SELECT### Response: select a.年销售额 - b.年销售额 from ( select 年销售额 from 地产集团 where 名称 == '绿地' ) a , ( select 年销售额 from 地产集团 where 名称 == '万科' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 地产集团 (
词条id,
名称,
位于城市,
所属省份,
年销售额,
销售额同比增长,
销售额市场占比,
商品房销售面积,
销售面积同比增长,
销售面积,
市场占比)
CREATE TABLE 2019年房地产企业500强 (
集团id,
总排名,
发展潜力排名,
成长速度排名,
综合发展排名,
创新能力排名)
CREATE TABLE 2019年房地产企业运营100强 (
集团id,
运营效率排名,
区域运营排名,
稳健运营排名,
商业地产运营排名,
社区文化运营排名,
长租公寓运营排名)
CREATE TABLE 房地产各城市排名 (
集团id,
城市,
排名,
销售面积,
销售额)
CREATE TABLE 房产公司典型项目 (
项目名称,
所属集团id,
位于城市,
占地面积,
总户数,
户型面积)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在销售额市场占比方面,绿地比万科的高多少
SELECT### Response: select a.销售额市场占比 - b.销售额市场占比 from ( select 销售额市场占比 from 地产集团 where 名称 == '绿地' ) a , ( select 销售额市场占比 from 地产集团 where 名称 == '万科' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 世博会 (
词条id,
名称,
时间,
地点,
种类,
举办天数,
主题,
参展方数量,
投资成本,
会场面积,
参观人数,
单日客流)
CREATE TABLE 世博会场馆 (
世博会id,
场馆,
场馆所属国家,
排名,
占比面积,
参观人数)
CREATE TABLE 世界园博会 (
词条id,
名称,
时间,
地点,
级别,
会期,
主题,
场馆数量,
会场面积,
参观人数,
票价)
CREATE TABLE 中国花卉园博会 (
时间,
届数,
举办城市,
地点,
展园数量,
参与机构数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--安塔利亚世界园艺博览会的参观人比北京世界园艺博览会多了多少
SELECT### Response: select a.参观人数 - b.参观人数 from ( select 参观人数 from 世界园博会 where 名称 == '安塔利亚世界园艺博览会' ) a , ( select 参观人数 from 世界园博会 where 名称 == '北京世界园艺博览会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 世博会 (
词条id,
名称,
时间,
地点,
种类,
举办天数,
主题,
参展方数量,
投资成本,
会场面积,
参观人数,
单日客流)
CREATE TABLE 世博会场馆 (
世博会id,
场馆,
场馆所属国家,
排名,
占比面积,
参观人数)
CREATE TABLE 世界园博会 (
词条id,
名称,
时间,
地点,
级别,
会期,
主题,
场馆数量,
会场面积,
参观人数,
票价)
CREATE TABLE 中国花卉园博会 (
时间,
届数,
举办城市,
地点,
展园数量,
参与机构数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--安塔利亚世界园艺博览会建立的场馆比北京世界园艺博览会多了多少
SELECT### Response: select a.场馆数量 - b.场馆数量 from ( select 场馆数量 from 世界园博会 where 名称 == '安塔利亚世界园艺博览会' ) a , ( select 场馆数量 from 世界园博会 where 名称 == '北京世界园艺博览会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 世博会 (
词条id,
名称,
时间,
地点,
种类,
举办天数,
主题,
参展方数量,
投资成本,
会场面积,
参观人数,
单日客流)
CREATE TABLE 世博会场馆 (
世博会id,
场馆,
场馆所属国家,
排名,
占比面积,
参观人数)
CREATE TABLE 世界园博会 (
词条id,
名称,
时间,
地点,
级别,
会期,
主题,
场馆数量,
会场面积,
参观人数,
票价)
CREATE TABLE 中国花卉园博会 (
时间,
届数,
举办城市,
地点,
展园数量,
参与机构数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--安塔利亚世界园艺博览会的会场大小比北京世界园艺博览会的大了多少
SELECT### Response: select a.会场面积 - b.会场面积 from ( select 会场面积 from 世界园博会 where 名称 == '安塔利亚世界园艺博览会' ) a , ( select 会场面积 from 世界园博会 where 名称 == '北京世界园艺博览会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 世博会 (
词条id,
名称,
时间,
地点,
种类,
举办天数,
主题,
参展方数量,
投资成本,
会场面积,
参观人数,
单日客流)
CREATE TABLE 世博会场馆 (
世博会id,
场馆,
场馆所属国家,
排名,
占比面积,
参观人数)
CREATE TABLE 世界园博会 (
词条id,
名称,
时间,
地点,
级别,
会期,
主题,
场馆数量,
会场面积,
参观人数,
票价)
CREATE TABLE 中国花卉园博会 (
时间,
届数,
举办城市,
地点,
展园数量,
参与机构数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--安塔利亚世界园艺博览会的票价比北京世界园艺博览会的贵了多少
SELECT### Response: select a.票价 - b.票价 from ( select 票价 from 世界园博会 where 名称 == '安塔利亚世界园艺博览会' ) a , ( select 票价 from 世界园博会 where 名称 == '北京世界园艺博览会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 图书 (
词条id,
书名,
作者,
评分,
总排名)
CREATE TABLE 五星榜单 (
图书id,
评价人数)
CREATE TABLE 本月特价书籍 (
图书id,
现价格,
原价格)
CREATE TABLE 人气榜单 (
图书id,
购买人数,
收藏人数)
CREATE TABLE 必读榜单 (
图书id,
推荐人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--图书item_book.2_8_84比item_book.2_8_82多卖出多少本
SELECT### Response: select a.购买人数 - b.购买人数 from ( select 购买人数 from 人气榜单 where 图书id == 'item_book.2_8_84' ) a , ( select 购买人数 from 人气榜单 where 图书id == 'item_book.2_8_82' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 图书 (
词条id,
书名,
作者,
评分,
总排名)
CREATE TABLE 五星榜单 (
图书id,
评价人数)
CREATE TABLE 本月特价书籍 (
图书id,
现价格,
原价格)
CREATE TABLE 人气榜单 (
图书id,
购买人数,
收藏人数)
CREATE TABLE 必读榜单 (
图书id,
推荐人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--图书item_book.2_8_84比item_book.2_8_82多多少人收藏
SELECT### Response: select a.收藏人数 - b.收藏人数 from ( select 收藏人数 from 人气榜单 where 图书id == 'item_book.2_8_84' ) a , ( select 收藏人数 from 人气榜单 where 图书id == 'item_book.2_8_82' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 商家 (
词条id,
名称,
起送价格,
送达用时,
评分,
月售单数)
CREATE TABLE 平台 (
词条id,
名称,
入驻商家数量,
市场占比)
CREATE TABLE 商家平台活动 (
商家id,
平台id,
优惠活动,
配送费)
-- Using valid SQLite, answer the following questions for the tables provided above.
--点我达的市场占比比百度外卖高多少
SELECT### Response: select a.市场占比 - b.市场占比 from ( select 市场占比 from 平台 where 名称 == '点我达' ) a , ( select 市场占比 from 平台 where 名称 == '百度外卖' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 商家 (
词条id,
名称,
起送价格,
送达用时,
评分,
月售单数)
CREATE TABLE 平台 (
词条id,
名称,
入驻商家数量,
市场占比)
CREATE TABLE 商家平台活动 (
商家id,
平台id,
优惠活动,
配送费)
-- Using valid SQLite, answer the following questions for the tables provided above.
--点我达的入驻的商家比百度外卖入驻的多多少家
SELECT### Response: select a.入驻商家数量 - b.入驻商家数量 from ( select 入驻商家数量 from 平台 where 名称 == '点我达' ) a , ( select 入驻商家数量 from 平台 where 名称 == '百度外卖' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
总部地点,
成立时间,
创始人,
首席执行官,
年营业额,
员工数)
CREATE TABLE 品牌 (
词条id,
名称,
成立时间,
所属公司id,
法定代表人,
注册资本)
CREATE TABLE 公司品牌历年收入 (
年份,
品牌id,
营收,
利润,
营收同比增长,
利润同比增长)
CREATE TABLE 公司各品牌收入排名 (
公司id,
品牌id,
营收占比,
利润占比,
支出占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在注册时所用资本方面,腾讯游戏比京东金融多用了多少资金
SELECT### Response: select a.注册资本 - b.注册资本 from ( select 注册资本 from 品牌 where 名称 == '腾讯游戏' ) a , ( select 注册资本 from 品牌 where 名称 == '京东金融' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
总部地点,
成立时间,
创始人,
首席执行官,
年营业额,
员工数)
CREATE TABLE 品牌 (
词条id,
名称,
成立时间,
所属公司id,
法定代表人,
注册资本)
CREATE TABLE 公司品牌历年收入 (
年份,
品牌id,
营收,
利润,
营收同比增长,
利润同比增长)
CREATE TABLE 公司各品牌收入排名 (
公司id,
品牌id,
营收占比,
利润占比,
支出占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--腾讯游戏比京东金融早成立了几年
SELECT### Response: select a.成立时间 - b.成立时间 from ( select 成立时间 from 品牌 where 名称 == '腾讯游戏' ) a , ( select 成立时间 from 品牌 where 名称 == '京东金融' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
总部地点,
成立时间,
创始人,
首席执行官,
年营业额,
员工数)
CREATE TABLE 品牌 (
词条id,
名称,
成立时间,
所属公司id,
法定代表人,
注册资本)
CREATE TABLE 公司品牌历年收入 (
年份,
品牌id,
营收,
利润,
营收同比增长,
利润同比增长)
CREATE TABLE 公司各品牌收入排名 (
公司id,
品牌id,
营收占比,
利润占比,
支出占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--腾讯游戏注册时所用资本是京东金融的多少倍
SELECT### Response: select a.注册资本 / b.注册资本 from ( select 注册资本 from 品牌 where 名称 == '腾讯游戏' ) a , ( select 注册资本 from 品牌 where 名称 == '京东金融' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 比赛 (
词条id,
名称,
方向,
举办单位,
单位性质,
奖金数,
录取队伍数量,
比赛平台)
CREATE TABLE 参赛队伍 (
词条id,
队名,
人数)
CREATE TABLE 参赛学生 (
词条id,
姓名,
年龄,
学历,
学校)
CREATE TABLE 参赛成绩 (
学生id,
加入队伍id,
参加比赛id,
成绩)
-- Using valid SQLite, answer the following questions for the tables provided above.
--参赛队伍“爆写规则一万行”拥有的队员比队伍“三人行必有我师“多多少个
SELECT### Response: select a.人数 - b.人数 from ( select 人数 from 参赛队伍 where 队名 == '爆写规则一万行' ) a , ( select 人数 from 参赛队伍 where 队名 == '三人行必有我师' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 两院院士学校名单 (
学校,
所在省市,
所在城市,
院士人数)
CREATE TABLE 两院院士民族名单 (
民族,
院士人数,
所占比例)
CREATE TABLE 各国女院士比例 (
国家,
女院士人数,
所占比例)
CREATE TABLE 各学部院士分布 (
年份,
学部,
院士人数,
所占比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--回族院士比土家族院士多多少个
SELECT### Response: select a.院士人数 - b.院士人数 from ( select 院士人数 from 两院院士民族名单 where 民族 == '回族' ) a , ( select 院士人数 from 两院院士民族名单 where 民族 == '土家族' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 两院院士学校名单 (
学校,
所在省市,
所在城市,
院士人数)
CREATE TABLE 两院院士民族名单 (
民族,
院士人数,
所占比例)
CREATE TABLE 各国女院士比例 (
国家,
女院士人数,
所占比例)
CREATE TABLE 各学部院士分布 (
年份,
学部,
院士人数,
所占比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--回族院士和土家族院士一共有多少个
SELECT### Response: select a.院士人数 + b.院士人数 from ( select 院士人数 from 两院院士民族名单 where 民族 == '回族' ) a , ( select 院士人数 from 两院院士民族名单 where 民族 == '土家族' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
行业,
校招人数)
CREATE TABLE 学校 (
词条id,
名称,
所在城市,
毕业人数)
CREATE TABLE 学校各专业 (
学校id,
专业,
毕业人数,
专业全国排名,
平均薪资)
CREATE TABLE 公司对口专业 (
公司id,
专业,
对应岗位,
拟招聘人数,
基本工资,
工资幅度)
CREATE TABLE 公司宣讲会 (
公司id,
学校id,
宣讲时间,
拟招聘人数,
参加笔试人数,
参加面试人数,
实际招聘人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--电子科技大学毕业学生是浙江大学的多少倍
SELECT### Response: select a.毕业人数 / b.毕业人数 from ( select 毕业人数 from 学校 where 名称 == '电子科技大学' ) a , ( select 毕业人数 from 学校 where 名称 == '浙江大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
行业,
校招人数)
CREATE TABLE 学校 (
词条id,
名称,
所在城市,
毕业人数)
CREATE TABLE 学校各专业 (
学校id,
专业,
毕业人数,
专业全国排名,
平均薪资)
CREATE TABLE 公司对口专业 (
公司id,
专业,
对应岗位,
拟招聘人数,
基本工资,
工资幅度)
CREATE TABLE 公司宣讲会 (
公司id,
学校id,
宣讲时间,
拟招聘人数,
参加笔试人数,
参加面试人数,
实际招聘人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--电子科技大学比浙江大学多毕业了多少名学生
SELECT### Response: select a.毕业人数 - b.毕业人数 from ( select 毕业人数 from 学校 where 名称 == '电子科技大学' ) a , ( select 毕业人数 from 学校 where 名称 == '浙江大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
行业,
校招人数)
CREATE TABLE 学校 (
词条id,
名称,
所在城市,
毕业人数)
CREATE TABLE 学校各专业 (
学校id,
专业,
毕业人数,
专业全国排名,
平均薪资)
CREATE TABLE 公司对口专业 (
公司id,
专业,
对应岗位,
拟招聘人数,
基本工资,
工资幅度)
CREATE TABLE 公司宣讲会 (
公司id,
学校id,
宣讲时间,
拟招聘人数,
参加笔试人数,
参加面试人数,
实际招聘人数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--电子科技大学和浙江大学一共有多少名毕业生
SELECT### Response: select a.毕业人数 + b.毕业人数 from ( select 毕业人数 from 学校 where 名称 == '电子科技大学' ) a , ( select 毕业人数 from 学校 where 名称 == '浙江大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 作者 (
词条id,
姓名,
年龄,
出版作品数,
网络作品数)
CREATE TABLE 出版图书 (
词条id,
书名,
作者id,
评分,
评价人数,
字数,
点击数,
类型)
CREATE TABLE 网络小说 (
词条id,
书名,
作者id,
评分,
类型,
状态,
价格)
CREATE TABLE 畅销榜 (
网络小说id,
周排名,
月排名,
总排名)
CREATE TABLE 收藏榜 (
网络小说id,
周排名,
月排名,
总排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--小说“蓝桥几顾”的评价比“重生之锦绣皇后”高了几分
SELECT### Response: select a.评分 - b.评分 from ( select 评分 from 网络小说 where 书名 == '蓝桥几顾' ) a , ( select 评分 from 网络小说 where 书名 == '重生之锦绣皇后' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 作者 (
词条id,
姓名,
年龄,
出版作品数,
网络作品数)
CREATE TABLE 出版图书 (
词条id,
书名,
作者id,
评分,
评价人数,
字数,
点击数,
类型)
CREATE TABLE 网络小说 (
词条id,
书名,
作者id,
评分,
类型,
状态,
价格)
CREATE TABLE 畅销榜 (
网络小说id,
周排名,
月排名,
总排名)
CREATE TABLE 收藏榜 (
网络小说id,
周排名,
月排名,
总排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--小说“蓝桥几顾”比“重生之锦绣皇后”贵了多少钱
SELECT### Response: select a.价格 - b.价格 from ( select 价格 from 网络小说 where 书名 == '蓝桥几顾' ) a , ( select 价格 from 网络小说 where 书名 == '重生之锦绣皇后' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 动物 (
词条id,
学名,
属性)
CREATE TABLE 最聪明的动物 (
动物id,
排名,
理由)
CREATE TABLE 最毒的动物 (
动物id,
称号,
毒性排名,
攻击力排名,
中毒后死亡时间)
CREATE TABLE 最大的动物 (
动物id,
排名,
体重,
说明)
CREATE TABLE 飞得最高的动物 (
动物id,
排名,
飞行高度)
CREATE TABLE 速度最快的动物 (
动物id,
排名,
速度)
-- Using valid SQLite, answer the following questions for the tables provided above.
--动物item_animal_food_10_81飞行的高度比item_animal_food_10_83高了多少
SELECT### Response: select a.飞行高度 - b.飞行高度 from ( select 飞行高度 from 飞得最高的动物 where 动物id == 'item_animal_food_10_81' ) a , ( select 飞行高度 from 飞得最高的动物 where 动物id == 'item_animal_food_10_83' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 动物 (
词条id,
学名,
属性)
CREATE TABLE 最聪明的动物 (
动物id,
排名,
理由)
CREATE TABLE 最毒的动物 (
动物id,
称号,
毒性排名,
攻击力排名,
中毒后死亡时间)
CREATE TABLE 最大的动物 (
动物id,
排名,
体重,
说明)
CREATE TABLE 飞得最高的动物 (
动物id,
排名,
飞行高度)
CREATE TABLE 速度最快的动物 (
动物id,
排名,
速度)
-- Using valid SQLite, answer the following questions for the tables provided above.
--动物item_animal_food_10_81飞行的高度是item_animal_food_10_83的多少倍
SELECT### Response: select a.飞行高度 / b.飞行高度 from ( select 飞行高度 from 飞得最高的动物 where 动物id == 'item_animal_food_10_81' ) a , ( select 飞行高度 from 飞得最高的动物 where 动物id == 'item_animal_food_10_83' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 应用商店 (
词条id,
名称,
应用软件数,
累计下载次数)
CREATE TABLE 应用商店支持国家 (
应用商店id,
国家,
用户是否可以购买应用程序,
开发人员是否可以出售应用程序)
CREATE TABLE 软件 (
词条id,
名称,
用途)
CREATE TABLE 软件下载量 (
软件id,
应用商店id,
下载量,
评价人数,
好评数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--应用商店“酷安”上线的应用软件比“苹果store”的多多少个
SELECT### Response: select a.应用软件数 - b.应用软件数 from ( select 应用软件数 from 应用商店 where 名称 == '酷安' ) a , ( select 应用软件数 from 应用商店 where 名称 == '苹果store' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 应用商店 (
词条id,
名称,
应用软件数,
累计下载次数)
CREATE TABLE 应用商店支持国家 (
应用商店id,
国家,
用户是否可以购买应用程序,
开发人员是否可以出售应用程序)
CREATE TABLE 软件 (
词条id,
名称,
用途)
CREATE TABLE 软件下载量 (
软件id,
应用商店id,
下载量,
评价人数,
好评数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--应用商店“酷安”上累计下载次数比“苹果store”的多多少次
SELECT### Response: select a.累计下载次数 - b.累计下载次数 from ( select 累计下载次数 from 应用商店 where 名称 == '酷安' ) a , ( select 累计下载次数 from 应用商店 where 名称 == '苹果store' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 地产集团 (
词条id,
名称,
位于城市,
所属省份,
年销售额,
销售额同比增长,
销售额市场占比,
商品房销售面积,
销售面积同比增长,
销售面积,
市场占比)
CREATE TABLE 2019年房地产企业500强 (
集团id,
总排名,
发展潜力排名,
成长速度排名,
综合发展排名,
创新能力排名)
CREATE TABLE 2019年房地产企业运营100强 (
集团id,
运营效率排名,
区域运营排名,
稳健运营排名,
商业地产运营排名,
社区文化运营排名,
长租公寓运营排名)
CREATE TABLE 房地产各城市排名 (
集团id,
城市,
排名,
销售面积,
销售额)
CREATE TABLE 房产公司典型项目 (
项目名称,
所属集团id,
位于城市,
占地面积,
总户数,
户型面积)
-- Using valid SQLite, answer the following questions for the tables provided above.
--房产典型项目“大信新都汇”的户型比“龙湖新城”的大多少
SELECT### Response: select a.户型面积 - b.户型面积 from ( select 户型面积 from 房产公司典型项目 where 项目名称 == '大信新都汇' ) a , ( select 户型面积 from 房产公司典型项目 where 项目名称 == '龙湖新城' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 地产集团 (
词条id,
名称,
位于城市,
所属省份,
年销售额,
销售额同比增长,
销售额市场占比,
商品房销售面积,
销售面积同比增长,
销售面积,
市场占比)
CREATE TABLE 2019年房地产企业500强 (
集团id,
总排名,
发展潜力排名,
成长速度排名,
综合发展排名,
创新能力排名)
CREATE TABLE 2019年房地产企业运营100强 (
集团id,
运营效率排名,
区域运营排名,
稳健运营排名,
商业地产运营排名,
社区文化运营排名,
长租公寓运营排名)
CREATE TABLE 房地产各城市排名 (
集团id,
城市,
排名,
销售面积,
销售额)
CREATE TABLE 房产公司典型项目 (
项目名称,
所属集团id,
位于城市,
占地面积,
总户数,
户型面积)
-- Using valid SQLite, answer the following questions for the tables provided above.
--房产典型项目“大信新都汇”比“龙湖新城”多了多少户
SELECT### Response: select a.总户数 - b.总户数 from ( select 总户数 from 房产公司典型项目 where 项目名称 == '大信新都汇' ) a , ( select 总户数 from 房产公司典型项目 where 项目名称 == '龙湖新城' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 地产集团 (
词条id,
名称,
位于城市,
所属省份,
年销售额,
销售额同比增长,
销售额市场占比,
商品房销售面积,
销售面积同比增长,
销售面积,
市场占比)
CREATE TABLE 2019年房地产企业500强 (
集团id,
总排名,
发展潜力排名,
成长速度排名,
综合发展排名,
创新能力排名)
CREATE TABLE 2019年房地产企业运营100强 (
集团id,
运营效率排名,
区域运营排名,
稳健运营排名,
商业地产运营排名,
社区文化运营排名,
长租公寓运营排名)
CREATE TABLE 房地产各城市排名 (
集团id,
城市,
排名,
销售面积,
销售额)
CREATE TABLE 房产公司典型项目 (
项目名称,
所属集团id,
位于城市,
占地面积,
总户数,
户型面积)
-- Using valid SQLite, answer the following questions for the tables provided above.
--房产典型项目“大信新都汇”占地比“龙湖新城”的大多少
SELECT### Response: select a.占地面积 - b.占地面积 from ( select 占地面积 from 房产公司典型项目 where 项目名称 == '大信新都汇' ) a , ( select 占地面积 from 房产公司典型项目 where 项目名称 == '龙湖新城' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--2018年世博会来参加的企业比2015年世博会多了几家
SELECT### Response: select a.参会企业数 - b.参会企业数 from ( select 参会企业数 from 世界物联网博览会 where 名称 == '2018世博会' ) a , ( select 参会企业数 from 世界物联网博览会 where 名称 == '2015世博会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--2018年世博会来参加的嘉宾比2015年世博会多了几名
SELECT### Response: select a.参会嘉宾数 - b.参会嘉宾数 from ( select 参会嘉宾数 from 世界物联网博览会 where 名称 == '2018世博会' ) a , ( select 参会嘉宾数 from 世界物联网博览会 where 名称 == '2015世博会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--2018年世博会比2015年世博会多了多少人参观
SELECT### Response: select a.观展人数 - b.观展人数 from ( select 观展人数 from 世界物联网博览会 where 名称 == '2018世博会' ) a , ( select 观展人数 from 世界物联网博览会 where 名称 == '2015世博会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--2018年世博会开设的论坛比2015年世博会多了几个
SELECT### Response: select a.高峰论坛数量 - b.高峰论坛数量 from ( select 高峰论坛数量 from 世界物联网博览会 where 名称 == '2018世博会' ) a , ( select 高峰论坛数量 from 世界物联网博览会 where 名称 == '2015世博会' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 世博会 (
词条id,
名称,
时间,
地点,
种类,
举办天数,
主题,
参展方数量,
投资成本,
会场面积,
参观人数,
单日客流)
CREATE TABLE 世博会场馆 (
世博会id,
场馆,
场馆所属国家,
排名,
占比面积,
参观人数)
CREATE TABLE 世界园博会 (
词条id,
名称,
时间,
地点,
级别,
会期,
主题,
场馆数量,
会场面积,
参观人数,
票价)
CREATE TABLE 中国花卉园博会 (
时间,
届数,
举办城市,
地点,
展园数量,
参与机构数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--第九届中国花卉园博会比第一届多来了多少机构
SELECT### Response: select a.参与机构数量 - b.参与机构数量 from ( select 参与机构数量 from 中国花卉园博会 where 届数 == '第九届' ) a , ( select 参与机构数量 from 中国花卉园博会 where 届数 == '第十一届' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 世博会 (
词条id,
名称,
时间,
地点,
种类,
举办天数,
主题,
参展方数量,
投资成本,
会场面积,
参观人数,
单日客流)
CREATE TABLE 世博会场馆 (
世博会id,
场馆,
场馆所属国家,
排名,
占比面积,
参观人数)
CREATE TABLE 世界园博会 (
词条id,
名称,
时间,
地点,
级别,
会期,
主题,
场馆数量,
会场面积,
参观人数,
票价)
CREATE TABLE 中国花卉园博会 (
时间,
届数,
举办城市,
地点,
展园数量,
参与机构数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--第九届中国花卉园博会开设的展园比第一届多了多少个
SELECT### Response: select a.展园数量 - b.展园数量 from ( select 展园数量 from 中国花卉园博会 where 届数 == '第九届' ) a , ( select 展园数量 from 中国花卉园博会 where 届数 == '第十一届' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 商家 (
词条id,
名称,
起送价格,
送达用时,
评分,
月售单数)
CREATE TABLE 平台 (
词条id,
名称,
入驻商家数量,
市场占比)
CREATE TABLE 商家平台活动 (
商家id,
平台id,
优惠活动,
配送费)
-- Using valid SQLite, answer the following questions for the tables provided above.
--德克士外卖起送价格比吉野家的高多少
SELECT### Response: select a.起送价格 - b.起送价格 from ( select 起送价格 from 商家 where 名称 == '德克士' ) a , ( select 起送价格 from 商家 where 名称 == '吉野家' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 商家 (
词条id,
名称,
起送价格,
送达用时,
评分,
月售单数)
CREATE TABLE 平台 (
词条id,
名称,
入驻商家数量,
市场占比)
CREATE TABLE 商家平台活动 (
商家id,
平台id,
优惠活动,
配送费)
-- Using valid SQLite, answer the following questions for the tables provided above.
--德克士外卖送达时间比吉野家的多多少
SELECT### Response: select a.送达用时 - b.送达用时 from ( select 送达用时 from 商家 where 名称 == '德克士' ) a , ( select 送达用时 from 商家 where 名称 == '吉野家' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 商家 (
词条id,
名称,
起送价格,
送达用时,
评分,
月售单数)
CREATE TABLE 平台 (
词条id,
名称,
入驻商家数量,
市场占比)
CREATE TABLE 商家平台活动 (
商家id,
平台id,
优惠活动,
配送费)
-- Using valid SQLite, answer the following questions for the tables provided above.
--德克士外卖评价比吉野家的高多少
SELECT### Response: select a.评分 - b.评分 from ( select 评分 from 商家 where 名称 == '德克士' ) a , ( select 评分 from 商家 where 名称 == '吉野家' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 商家 (
词条id,
名称,
起送价格,
送达用时,
评分,
月售单数)
CREATE TABLE 平台 (
词条id,
名称,
入驻商家数量,
市场占比)
CREATE TABLE 商家平台活动 (
商家id,
平台id,
优惠活动,
配送费)
-- Using valid SQLite, answer the following questions for the tables provided above.
--德克士外卖每月比吉野家多多少单
SELECT### Response: select a.月售单数 - b.月售单数 from ( select 月售单数 from 商家 where 名称 == '德克士' ) a , ( select 月售单数 from 商家 where 名称 == '吉野家' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 奢侈品牌 (
词条id,
名称,
国家,
熟识度,
购买力排名)
CREATE TABLE 奢侈品消费国家 (
奢侈品id,
国家,
年份,
消费额,
消费额占比)
CREATE TABLE 奢侈品购买人群 (
奢侈品id,
年龄段,
购买人数,
人数占比,
消费额,
消费额占比)
CREATE TABLE 奢侈品渠道 (
奢侈品id,
了解渠道,
人数占比)
CREATE TABLE 奢侈品用户在意维度分布 (
年龄段,
看中维度,
人数占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在购买力方面,奢侈品牌 “香奈儿”比“加拿大鹅”高了几名
SELECT### Response: select a.购买力排名 - b.购买力排名 from ( select 购买力排名 from 奢侈品牌 where 名称 == '香奈儿' ) a , ( select 购买力排名 from 奢侈品牌 where 名称 == '加拿大鹅' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 驾校 (
词条id,
驾校名称,
驾校地址,
报名电话,
车辆数量,
教练数量,
班车点数量,
学员数量)
CREATE TABLE 驾校班型 (
词条id,
班型名称,
驾照类型,
拿证时间)
CREATE TABLE 驾校费用 (
班型id,
学校id,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--远大驾校比平安驾校多多少名学员
SELECT### Response: select a.学员数量 - b.学员数量 from ( select 学员数量 from 驾校 where 驾校名称 == '远大驾校' ) a , ( select 学员数量 from 驾校 where 驾校名称 == '平安驾校' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 驾校 (
词条id,
驾校名称,
驾校地址,
报名电话,
车辆数量,
教练数量,
班车点数量,
学员数量)
CREATE TABLE 驾校班型 (
词条id,
班型名称,
驾照类型,
拿证时间)
CREATE TABLE 驾校费用 (
班型id,
学校id,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--远大驾校比平安驾校多拥有多少辆车
SELECT### Response: select a.车辆数量 - b.车辆数量 from ( select 车辆数量 from 驾校 where 驾校名称 == '远大驾校' ) a , ( select 车辆数量 from 驾校 where 驾校名称 == '平安驾校' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 驾校 (
词条id,
驾校名称,
驾校地址,
报名电话,
车辆数量,
教练数量,
班车点数量,
学员数量)
CREATE TABLE 驾校班型 (
词条id,
班型名称,
驾照类型,
拿证时间)
CREATE TABLE 驾校费用 (
班型id,
学校id,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--远大驾校比平安驾校多拥有多少名教练
SELECT### Response: select a.教练数量 - b.教练数量 from ( select 教练数量 from 驾校 where 驾校名称 == '远大驾校' ) a , ( select 教练数量 from 驾校 where 驾校名称 == '平安驾校' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 驾校 (
词条id,
驾校名称,
驾校地址,
报名电话,
车辆数量,
教练数量,
班车点数量,
学员数量)
CREATE TABLE 驾校班型 (
词条id,
班型名称,
驾照类型,
拿证时间)
CREATE TABLE 驾校费用 (
班型id,
学校id,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--远大驾校比平安驾校多设立了几个班车点
SELECT### Response: select a.班车点数量 - b.班车点数量 from ( select 班车点数量 from 驾校 where 驾校名称 == '远大驾校' ) a , ( select 班车点数量 from 驾校 where 驾校名称 == '平安驾校' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 戏剧 (
词条id,
名称,
非遗级别,
发源地,
起源时间)
CREATE TABLE 戏剧分布城市 (
戏剧id,
城市,
受欢迎热度,
戏迷数量,
活动数量)
CREATE TABLE 戏剧演出活动 (
活动名称,
戏剧id,
城市,
演出时间,
售出票数,
最高票价,
最低票价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--戏剧活动“大凉山国际戏剧节”比“北京国际青年戏剧节”多售出多少张票
SELECT### Response: select a.售出票数 - b.售出票数 from ( select 售出票数 from 戏剧演出活动 where 活动名称 == '大凉山国际戏剧节' ) a , ( select 售出票数 from 戏剧演出活动 where 活动名称 == '北京国际青年戏剧节' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 戏剧 (
词条id,
名称,
非遗级别,
发源地,
起源时间)
CREATE TABLE 戏剧分布城市 (
戏剧id,
城市,
受欢迎热度,
戏迷数量,
活动数量)
CREATE TABLE 戏剧演出活动 (
活动名称,
戏剧id,
城市,
演出时间,
售出票数,
最高票价,
最低票价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--戏剧活动“大凉山国际戏剧节”售出的票数是“北京国际青年戏剧节”的多少倍
SELECT### Response: select a.售出票数 / b.售出票数 from ( select 售出票数 from 戏剧演出活动 where 活动名称 == '大凉山国际戏剧节' ) a , ( select 售出票数 from 戏剧演出活动 where 活动名称 == '北京国际青年戏剧节' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 文学奖 (
词条id,
名称,
设立时间,
设立原因,
举办间隔年限)
CREATE TABLE 文学奖项颁奖奖项 (
文学奖id,
奖项)
CREATE TABLE 文学作品 (
词条id,
名称,
作者,
创作年代,
首版时间,
字数)
CREATE TABLE 文学奖获奖名单 (
届数,
作品id,
作者,
出版社)
-- Using valid SQLite, answer the following questions for the tables provided above.
--小说“平凡的世界”比“蛙”多包含了多少字
SELECT### Response: select a.字数 - b.字数 from ( select 字数 from 文学作品 where 名称 == '平凡的世界' ) a , ( select 字数 from 文学作品 where 名称 == '蛙' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 文学奖 (
词条id,
名称,
设立时间,
设立原因,
举办间隔年限)
CREATE TABLE 文学奖项颁奖奖项 (
文学奖id,
奖项)
CREATE TABLE 文学作品 (
词条id,
名称,
作者,
创作年代,
首版时间,
字数)
CREATE TABLE 文学奖获奖名单 (
届数,
作品id,
作者,
出版社)
-- Using valid SQLite, answer the following questions for the tables provided above.
--小说“平凡的世界”包含的字数是“蛙”的多少倍
SELECT### Response: select a.字数 / b.字数 from ( select 字数 from 文学作品 where 名称 == '平凡的世界' ) a , ( select 字数 from 文学作品 where 名称 == '蛙' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 快递公司 (
词条id,
名称,
总部地点,
成立时间,
员工数量,
运输车辆数,
覆盖城市数量,
网点数量)
CREATE TABLE 省份 (
词条id,
名称,
所属区域)
CREATE TABLE 快递费 (
快递公司id,
区域,
起步价格,
起步公斤数,
每公斤价格)
CREATE TABLE 包邮范围 (
快递公司id,
发货区域,
包邮区域)
-- Using valid SQLite, answer the following questions for the tables provided above.
--快递韵达比圆通多建立了多少网店
SELECT### Response: select a.网点数量 - b.网点数量 from ( select 网点数量 from 快递公司 where 名称 == '韵达' ) a , ( select 网点数量 from 快递公司 where 名称 == '圆通' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 快递公司 (
词条id,
名称,
总部地点,
成立时间,
员工数量,
运输车辆数,
覆盖城市数量,
网点数量)
CREATE TABLE 省份 (
词条id,
名称,
所属区域)
CREATE TABLE 快递费 (
快递公司id,
区域,
起步价格,
起步公斤数,
每公斤价格)
CREATE TABLE 包邮范围 (
快递公司id,
发货区域,
包邮区域)
-- Using valid SQLite, answer the following questions for the tables provided above.
--快递韵达比圆通多覆盖了多少个城市
SELECT### Response: select a.覆盖城市数量 - b.覆盖城市数量 from ( select 覆盖城市数量 from 快递公司 where 名称 == '韵达' ) a , ( select 覆盖城市数量 from 快递公司 where 名称 == '圆通' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 快递公司 (
词条id,
名称,
总部地点,
成立时间,
员工数量,
运输车辆数,
覆盖城市数量,
网点数量)
CREATE TABLE 省份 (
词条id,
名称,
所属区域)
CREATE TABLE 快递费 (
快递公司id,
区域,
起步价格,
起步公斤数,
每公斤价格)
CREATE TABLE 包邮范围 (
快递公司id,
发货区域,
包邮区域)
-- Using valid SQLite, answer the following questions for the tables provided above.
--快递韵达比圆通多雇用了多少名员工
SELECT### Response: select a.员工数量 - b.员工数量 from ( select 员工数量 from 快递公司 where 名称 == '韵达' ) a , ( select 员工数量 from 快递公司 where 名称 == '圆通' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 快递公司 (
词条id,
名称,
总部地点,
成立时间,
员工数量,
运输车辆数,
覆盖城市数量,
网点数量)
CREATE TABLE 省份 (
词条id,
名称,
所属区域)
CREATE TABLE 快递费 (
快递公司id,
区域,
起步价格,
起步公斤数,
每公斤价格)
CREATE TABLE 包邮范围 (
快递公司id,
发货区域,
包邮区域)
-- Using valid SQLite, answer the following questions for the tables provided above.
--快递韵达比圆通多拥有多少辆运输车
SELECT### Response: select a.运输车辆数 - b.运输车辆数 from ( select 运输车辆数 from 快递公司 where 名称 == '韵达' ) a , ( select 运输车辆数 from 快递公司 where 名称 == '圆通' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 学校 (
词条id,
名称,
类型,
所在城市,
所属省份,
是否985院校,
是否211院校,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪)
CREATE TABLE 学校毕业人数 (
学校id,
学历,
2016届人数,
2014届人数,
2012届人数)
CREATE TABLE 专业 (
词条id,
名称,
学科类型,
冷热门)
CREATE TABLE 学校专业 (
专业id,
学校id,
是否重点专业)
CREATE TABLE 专业就业情况 (
专业id,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪,
2016届就业率,
2014届就业率,
2012届就业率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在2014届平均月薪中,中国农业大学的平均月薪比北京大学的高多少
SELECT### Response: select a.2014届平均月薪 - b.2014届平均月薪 from ( select 2014届平均月薪 from 学校 where 名称 == '中国农业大学' ) a , ( select 2014届平均月薪 from 学校 where 名称 == '北京大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 学校 (
词条id,
名称,
类型,
所在城市,
所属省份,
是否985院校,
是否211院校,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪)
CREATE TABLE 学校毕业人数 (
学校id,
学历,
2016届人数,
2014届人数,
2012届人数)
CREATE TABLE 专业 (
词条id,
名称,
学科类型,
冷热门)
CREATE TABLE 学校专业 (
专业id,
学校id,
是否重点专业)
CREATE TABLE 专业就业情况 (
专业id,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪,
2016届就业率,
2014届就业率,
2012届就业率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在2016届平均月薪中,中国农业大学的平均月薪比北京大学的高多少
SELECT### Response: select a.2016届平均月薪 - b.2016届平均月薪 from ( select 2016届平均月薪 from 学校 where 名称 == '中国农业大学' ) a , ( select 2016届平均月薪 from 学校 where 名称 == '北京大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 学校 (
词条id,
名称,
类型,
所在城市,
所属省份,
是否985院校,
是否211院校,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪)
CREATE TABLE 学校毕业人数 (
学校id,
学历,
2016届人数,
2014届人数,
2012届人数)
CREATE TABLE 专业 (
词条id,
名称,
学科类型,
冷热门)
CREATE TABLE 学校专业 (
专业id,
学校id,
是否重点专业)
CREATE TABLE 专业就业情况 (
专业id,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪,
2016届就业率,
2014届就业率,
2012届就业率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在2012届平均月薪中,中国农业大学的平均月薪比北京大学的高多少
SELECT### Response: select a.2012届平均月薪 - b.2012届平均月薪 from ( select 2012届平均月薪 from 学校 where 名称 == '中国农业大学' ) a , ( select 2012届平均月薪 from 学校 where 名称 == '北京大学' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 车展 (
词条id,
名称,
车展时间,
参展天数,
车展地点,
位于城市,
参展品牌数)
CREATE TABLE 汽车品牌 (
词条id,
名称,
所属公司,
最低价格,
最高价格,
代言人)
CREATE TABLE 车展参展品牌 (
品牌id,
车展id,
站台模特,
热度排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--车展“2018年惠民促销车展”来参加展览的品牌比“2018年终钜惠感恩回馈汽车盛典“的多多少个
SELECT### Response: select a.参展品牌数 - b.参展品牌数 from ( select 参展品牌数 from 车展 where 名称 == '2018年惠民促销车展' ) a , ( select 参展品牌数 from 车展 where 名称 == '2018年终钜惠感恩回馈汽车盛典' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 饭店 (
词条id,
名称,
地址,
菜系,
口味评分,
环境评分,
服务评分,
人均价格,
包房最低消费)
CREATE TABLE 特色菜 (
饭店id,
菜名,
口味,
月销售量,
必点比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--素虎净素餐厅的人均价格比“十九号海鲜火锅”的高多少
SELECT### Response: select a.人均价格 - b.人均价格 from ( select 人均价格 from 饭店 where 名称 == '素虎净素餐厅' ) a , ( select 人均价格 from 饭店 where 名称 == '十九号海鲜火锅' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 饭店 (
词条id,
名称,
地址,
菜系,
口味评分,
环境评分,
服务评分,
人均价格,
包房最低消费)
CREATE TABLE 特色菜 (
饭店id,
菜名,
口味,
月销售量,
必点比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--素虎净素餐厅的服务评价比“十九号海鲜火锅”的高多少分
SELECT### Response: select a.服务评分 - b.服务评分 from ( select 服务评分 from 饭店 where 名称 == '素虎净素餐厅' ) a , ( select 服务评分 from 饭店 where 名称 == '十九号海鲜火锅' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 饭店 (
词条id,
名称,
地址,
菜系,
口味评分,
环境评分,
服务评分,
人均价格,
包房最低消费)
CREATE TABLE 特色菜 (
饭店id,
菜名,
口味,
月销售量,
必点比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--素虎净素餐厅的口味评价比“十九号海鲜火锅”的高多少分
SELECT### Response: select a.口味评分 - b.口味评分 from ( select 口味评分 from 饭店 where 名称 == '素虎净素餐厅' ) a , ( select 口味评分 from 饭店 where 名称 == '十九号海鲜火锅' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 饭店 (
词条id,
名称,
地址,
菜系,
口味评分,
环境评分,
服务评分,
人均价格,
包房最低消费)
CREATE TABLE 特色菜 (
饭店id,
菜名,
口味,
月销售量,
必点比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--素虎净素餐厅的包房最低消费比“十九号海鲜火锅”的高多少
SELECT### Response: select a.包房最低消费 - b.包房最低消费 from ( select 包房最低消费 from 饭店 where 名称 == '素虎净素餐厅' ) a , ( select 包房最低消费 from 饭店 where 名称 == '十九号海鲜火锅' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 饭店 (
词条id,
名称,
地址,
菜系,
口味评分,
环境评分,
服务评分,
人均价格,
包房最低消费)
CREATE TABLE 特色菜 (
饭店id,
菜名,
口味,
月销售量,
必点比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--素虎净素餐厅的环境评价比“十九号海鲜火锅”的高多少分
SELECT### Response: select a.环境评分 - b.环境评分 from ( select 环境评分 from 饭店 where 名称 == '素虎净素餐厅' ) a , ( select 环境评分 from 饭店 where 名称 == '十九号海鲜火锅' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 建筑奖项 (
词条id,
名称,
发起时间,
发起人,
称号,
总奖金,
评选间隔年数,
举办届数)
CREATE TABLE 建筑奖各国名单 (
奖项id,
国家,
数量)
CREATE TABLE 建筑师 (
词条id,
姓名,
国籍,
毕业院校,
作品数量)
CREATE TABLE 普利兹克奖获奖名单 (
年份,
届数,
获奖人id,
国籍)
CREATE TABLE 阿卡汗建筑奖获奖名单 (
届数,
获奖建筑名称,
位于城市,
位于国家,
设计者id)
-- Using valid SQLite, answer the following questions for the tables provided above.
--建筑师王澍设计的作品比矶崎新多多少部
SELECT### Response: select a.作品数量 - b.作品数量 from ( select 作品数量 from 建筑师 where 姓名 == '王澍' ) a , ( select 作品数量 from 建筑师 where 姓名 == '矶崎新' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 建筑奖项 (
词条id,
名称,
发起时间,
发起人,
称号,
总奖金,
评选间隔年数,
举办届数)
CREATE TABLE 建筑奖各国名单 (
奖项id,
国家,
数量)
CREATE TABLE 建筑师 (
词条id,
姓名,
国籍,
毕业院校,
作品数量)
CREATE TABLE 普利兹克奖获奖名单 (
年份,
届数,
获奖人id,
国籍)
CREATE TABLE 阿卡汗建筑奖获奖名单 (
届数,
获奖建筑名称,
位于城市,
位于国家,
设计者id)
-- Using valid SQLite, answer the following questions for the tables provided above.
--建筑师王澍设计的作品是矶崎新的多少倍
SELECT### Response: select a.作品数量 / b.作品数量 from ( select 作品数量 from 建筑师 where 姓名 == '王澍' ) a , ( select 作品数量 from 建筑师 where 姓名 == '矶崎新' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
总部地点,
成立时间,
创始人,
首席执行官,
年营业额,
员工数)
CREATE TABLE 品牌 (
词条id,
名称,
成立时间,
所属公司id,
法定代表人,
注册资本)
CREATE TABLE 公司品牌历年收入 (
年份,
品牌id,
营收,
利润,
营收同比增长,
利润同比增长)
CREATE TABLE 公司各品牌收入排名 (
公司id,
品牌id,
营收占比,
利润占比,
支出占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--腾讯公司的年营业额比百度公司的高多少
SELECT### Response: select a.年营业额 - b.年营业额 from ( select 年营业额 from 公司 where 名称 == '深圳市腾讯计算机系统有限公司' ) a , ( select 年营业额 from 公司 where 名称 == '百度集团' ) b. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 公司 (
词条id,
名称,
总部地点,
成立时间,
创始人,
首席执行官,
年营业额,
员工数)
CREATE TABLE 品牌 (
词条id,
名称,
成立时间,
所属公司id,
法定代表人,
注册资本)
CREATE TABLE 公司品牌历年收入 (
年份,
品牌id,
营收,
利润,
营收同比增长,
利润同比增长)
CREATE TABLE 公司各品牌收入排名 (
公司id,
品牌id,
营收占比,
利润占比,
支出占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--腾讯公司比百度公司早成立了几年
SELECT### Response: select a.成立时间 - b.成立时间 from ( select 成立时间 from 公司 where 名称 == '深圳市腾讯计算机系统有限公司' ) a , ( select 成立时间 from 公司 where 名称 == '百度集团' ) b. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.