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, 影院id, 上映时间, 票价, 余票数量) -- Using valid SQLite, answer the following questions for the tables provided above. --在影院item_task_dialogue_5_27上映的电影中,电影item_task_dialogue_5_31比item_task_dialogue_5_35贵多少钱 SELECT### Response: select a.票价 - b.票价 from ( select 票价 from 影院上映电影 where 影院id == 'item_task_dialogue_5_27' and 电影id == 'item_task_dialogue_5_31' ) a , ( select 票价 from 影院上映电影 where 影院id == 'item_task_dialogue_5_27' and 电影id == 'item_task_dialogue_5_35' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91和item_enterprise_9_93开设的分店一共占地多少面积 SELECT### Response: select a.占地面积 + b.占地面积 from ( select 占地面积 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 占地面积 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_93' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --在城市item_enterprise_9_91中,公司item_enterprise_9_97和item_enterprise_9_96所开设的分店一共有多大面积 SELECT### Response: select a.占地面积 + b.占地面积 from ( select 占地面积 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select 占地面积 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_96' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91开设的分店比在城市item_enterprise_9_93开设的分店多占地多少面积 SELECT### Response: select a.占地面积 - b.占地面积 from ( select 占地面积 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 占地面积 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_93' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --在城市item_enterprise_9_91中,公司item_enterprise_9_97和item_enterprise_9_96所开设的分店多了多大面积 SELECT### Response: select a.占地面积 - b.占地面积 from ( select 占地面积 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select 占地面积 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_96' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91和item_enterprise_9_92一共开设了多少家分店 SELECT### Response: select a.分店数量 + b.分店数量 from ( select 分店数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 分店数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_92' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --在城市item_enterprise_9_91中,公司item_enterprise_9_97和item_enterprise_9_96一共开设了多少家分店 SELECT### Response: select a.分店数量 + b.分店数量 from ( select 分店数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select 分店数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_96' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91开设的分店比在城市item_enterprise_9_93多开设了多少家 SELECT### Response: select a.分店数量 - b.分店数量 from ( select 分店数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 分店数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_93' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --在城市item_enterprise_9_91中,公司item_enterprise_9_97比item_enterprise_9_96多开设了多少家分店 SELECT### Response: select a.分店数量 - b.分店数量 from ( select 分店数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select 分店数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_96' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91和item_enterprise_9_93一共设立了多少餐位 SELECT### Response: select a.餐位数量 + b.餐位数量 from ( select 餐位数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 餐位数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_93' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --在城市item_enterprise_9_91中,公司item_enterprise_9_97比item_enterprise_9_96多设立了多少餐位 SELECT### Response: select a.餐位数量 + b.餐位数量 from ( select 餐位数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select 餐位数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_96' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91设立的餐位数量比在城市item_enterprise_9_93多了多少个 SELECT### Response: select a.餐位数量 - b.餐位数量 from ( select 餐位数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 餐位数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_93' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --在城市item_enterprise_9_91中,公司item_enterprise_9_96和item_enterprise_9_97一共有多少员工 SELECT### Response: select a.员工数量 + b.员工数量 from ( select 员工数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_96' ) a , ( select 员工数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91和item_enterprise_9_93一共有多少员工 SELECT### Response: select a.员工数量 + b.员工数量 from ( select 员工数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 员工数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_93' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91比在城市item_enterprise_9_93多雇佣了多少员工 SELECT### Response: select a.员工数量 - b.员工数量 from ( select 员工数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select 员工数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_93' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --在城市item_enterprise_9_91中,公司item_enterprise_9_96比item_enterprise_9_97多雇佣了多少员工 SELECT### Response: select a.员工数量 - b.员工数量 from ( select 员工数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_96' ) a , ( select 员工数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91设立的餐位数量占该城市所有餐位的比例是多少 SELECT### Response: select a.餐位数量 / b.餐位数量 from ( select 餐位数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select sum ( 餐位数量 ) from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91设立的餐位数量占该公司所有餐位的比例是多少 SELECT### Response: select a.餐位数量 / b.餐位数量 from ( select 餐位数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select sum ( 餐位数量 ) from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91开设的分店数量占该城市所有分店比例是多少 SELECT### Response: select a.分店数量 / b.分店数量 from ( select 分店数量 from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' and 公司id == 'item_enterprise_9_97' ) a , ( select sum ( 分店数量 ) from 餐饮公司城市连锁 where 城市id == 'item_enterprise_9_91' ) 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, 城市id, 总消费额, 人均消费额, 人气, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_enterprise_9_97在城市item_enterprise_9_91开设的分店数量占该公司所有分店的比例是多少 SELECT### Response: select a.分店数量 / b.分店数量 from ( select 分店数量 from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' and 城市id == 'item_enterprise_9_91' ) a , ( select sum ( 分店数量 ) from 餐饮公司城市连锁 where 公司id == 'item_enterprise_9_97' ) 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. --学校item_book.2_14_174在平台item_book.2_14_182上开源的课程占该学校所有开源课程的比例是多少 SELECT### Response: select a.合作课程数量 / b.合作课程数量 from ( select 合作课程数量 from 平台合作学校 where 学校id == 'item_book.2_14_174' and 平台id == 'item_book.2_14_182' ) a , ( select sum ( 合作课程数量 ) from 平台合作学校 where 学校id == 'item_book.2_14_174' ) 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. --学校item_book.2_14_174在平台item_book.2_14_182上开源的课程是在平台item_book.2_14_183上开源课程的多少倍 SELECT### Response: select a.合作课程数量 / b.合作课程数量 from ( select 合作课程数量 from 平台合作学校 where 学校id == 'item_book.2_14_174' and 平台id == 'item_book.2_14_182' ) a , ( select 合作课程数量 from 平台合作学校 where 学校id == 'item_book.2_14_174' and 平台id == 'item_book.2_14_183' ) 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. --学校item_book.2_14_174在平台item_book.2_14_182上开源的课程占该平台上所有开源课程的比例是多少 SELECT### Response: select a.合作课程数量 / b.合作课程数量 from ( select 合作课程数量 from 平台合作学校 where 平台id == 'item_book.2_14_182' and 学校id == 'item_book.2_14_174' ) a , ( select sum ( 合作课程数量 ) from 平台合作学校 where 平台id == 'item_book.2_14_182' ) 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. --学校item_book.2_14_174在平台item_book.2_14_183和item_book.2_14_182上一共开源了多少课程 SELECT### Response: select a.合作课程数量 + b.合作课程数量 from ( select 合作课程数量 from 平台合作学校 where 学校id == 'item_book.2_14_174' and 平台id == 'item_book.2_14_183' ) a , ( select 合作课程数量 from 平台合作学校 where 学校id == 'item_book.2_14_174' and 平台id == 'item_book.2_14_182' ) 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. --在平台item_book.2_14_182上,学校item_book.2_14_171和item_book.2_14_174一共开源了多少课程 SELECT### Response: select a.合作课程数量 + b.合作课程数量 from ( select 合作课程数量 from 平台合作学校 where 平台id == 'item_book.2_14_182' and 学校id == 'item_book.2_14_171' ) a , ( select 合作课程数量 from 平台合作学校 where 平台id == 'item_book.2_14_182' and 学校id == 'item_book.2_14_174' ) 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. --在平台item_book.2_14_182上,学校item_book.2_14_171比item_book.2_14_174多开源了多少课程 SELECT### Response: select a.合作课程数量 - b.合作课程数量 from ( select 合作课程数量 from 平台合作学校 where 平台id == 'item_book.2_14_182' and 学校id == 'item_book.2_14_171' ) a , ( select 合作课程数量 from 平台合作学校 where 平台id == 'item_book.2_14_182' and 学校id == 'item_book.2_14_174' ) 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. --学校item_book.2_14_174在平台item_book.2_14_182上开源的课程比在平台item_book.2_14_183上多开源了多少课程 SELECT### Response: select a.合作课程数量 - b.合作课程数量 from ( select 合作课程数量 from 平台合作学校 where 学校id == 'item_book.2_14_174' and 平台id == 'item_book.2_14_182' ) a , ( select 合作课程数量 from 平台合作学校 where 学校id == 'item_book.2_14_174' and 平台id == 'item_book.2_14_183' ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --部门item_enterprise_8_82在2017年拥有的员工数是2016年的多少倍 SELECT### Response: select a.员工数量 / b.员工数量 from ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2016 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82拥有的员工是部门item_enterprise_8_81的多少倍 SELECT### Response: select a.员工数量 / b.员工数量 from ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --部门item_enterprise_8_82在2017年比2016年多了多少员工 SELECT### Response: select a.员工数量 - b.员工数量 from ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2016 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82比部门item_enterprise_8_81多了多少员工 SELECT### Response: select a.员工数量 - b.员工数量 from ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 员工数量 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82和item_enterprise_8_81一共招了多少员工 SELECT### Response: select a.招聘人数 + b.招聘人数 from ( select 招聘人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 招聘人数 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82比item_enterprise_8_81多招了多少员工 SELECT### Response: select a.招聘人数 - b.招聘人数 from ( select 招聘人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 招聘人数 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82招聘员工数是item_enterprise_8_81的多少倍 SELECT### Response: select a.招聘人数 - b.招聘人数 from ( select 招聘人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 招聘人数 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82和item_enterprise_8_81一共有多少人离职 SELECT### Response: select a.离职人数 + b.离职人数 from ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82比item_enterprise_8_81多离职了多少员工 SELECT### Response: select a.离职人数 - b.离职人数 from ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --部门item_enterprise_8_82在2017年比2016年多了多少员工离职 SELECT### Response: select a.离职人数 - b.离职人数 from ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2016 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --在2017年,部门item_enterprise_8_82离职的员工是item_enterprise_8_81的多少倍 SELECT### Response: select a.离职人数 / b.离职人数 from ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_81' and 年份 == 2017 ) 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, 年份, 员工数量, 离职人数, 招聘人数) -- Using valid SQLite, answer the following questions for the tables provided above. --部门item_enterprise_8_82在2017年离职的员工是2016年的多少倍 SELECT### Response: select a.离职人数 / b.离职人数 from ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2017 ) a , ( select 离职人数 from 部门人员 where 部门id == 'item_enterprise_8_82' and 年份 == 2016 ) 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, 影片名, 动物id, 拍摄国家, 类型) CREATE TABLE 动物寓言故事 ( 动物id, 寓言故事, 形象) -- Using valid SQLite, answer the following questions for the tables provided above. --动物item_animal_food_9_71在城市item_animal_food_9_68存有的数量是城市item_animal_food_9_66的多少倍 SELECT### Response: select a.现存数量 / b.现存数量 from ( select 现存数量 from 动物分布城市 where 动物id == 'item_animal_food_9_71' and 城市id == 'item_animal_food_9_68' ) a , ( select 现存数量 from 动物分布城市 where 动物id == 'item_animal_food_9_71' and 城市id == 'item_animal_food_9_66' ) 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, 影片名, 动物id, 拍摄国家, 类型) CREATE TABLE 动物寓言故事 ( 动物id, 寓言故事, 形象) -- Using valid SQLite, answer the following questions for the tables provided above. --动物item_animal_food_9_71在城市item_animal_food_9_66现存的数量占该动物所有数量的比例是多少 SELECT### Response: select a.现存数量 / b.现存数量 from ( select 现存数量 from 动物分布城市 where 动物id == 'item_animal_food_9_71' and 城市id == 'item_animal_food_9_66' ) a , ( select sum ( 现存数量 ) from 动物分布城市 where 动物id == 'item_animal_food_9_71' ) 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, 影片名, 动物id, 拍摄国家, 类型) CREATE TABLE 动物寓言故事 ( 动物id, 寓言故事, 形象) -- Using valid SQLite, answer the following questions for the tables provided above. --动物item_animal_food_9_71在城市item_animal_food_9_68和item_animal_food_9_66一共有多少活着的 SELECT### Response: select a.现存数量 + b.现存数量 from ( select 现存数量 from 动物分布城市 where 动物id == 'item_animal_food_9_71' and 城市id == 'item_animal_food_9_68' ) a , ( select 现存数量 from 动物分布城市 where 动物id == 'item_animal_food_9_71' and 城市id == 'item_animal_food_9_66' ) 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, 影片名, 动物id, 拍摄国家, 类型) CREATE TABLE 动物寓言故事 ( 动物id, 寓言故事, 形象) -- Using valid SQLite, answer the following questions for the tables provided above. --动物item_animal_food_9_71在城市item_animal_food_9_68存有的数量比城市item_animal_food_9_66多多少 SELECT### Response: select a.现存数量 - b.现存数量 from ( select 现存数量 from 动物分布城市 where 动物id == 'item_animal_food_9_71' and 城市id == 'item_animal_food_9_68' ) a , ( select 现存数量 from 动物分布城市 where 动物id == 'item_animal_food_9_71' and 城市id == 'item_animal_food_9_66' ) 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, 出发城市, 天数, 预售价格, 参团价格, 起团人数, 个人价格, 景点数) CREATE TABLE 邮轮路线 ( 词条id, 路线名称, 旅行社id, 出发城市, 天数, 内舱房价格, 海景房价格, 阳台房价格, 航行区域, 邮轮公司) -- Using valid SQLite, answer the following questions for the tables provided above. --在路线item_enterprise_7_61中,法国游玩的景点比爱尔兰的多几个 SELECT### Response: select a.景点数量 - b.景点数量 from ( select 景点数量 from 出境游所含国家 where 路线id == 'item_enterprise_7_61' and 国家 == '法国' ) a , ( select 景点数量 from 出境游所含国家 where 路线id == 'item_enterprise_7_61' and 国家 == '爱尔兰' ) 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, 出发城市, 天数, 预售价格, 参团价格, 起团人数, 个人价格, 景点数) CREATE TABLE 邮轮路线 ( 词条id, 路线名称, 旅行社id, 出发城市, 天数, 内舱房价格, 海景房价格, 阳台房价格, 航行区域, 邮轮公司) -- Using valid SQLite, answer the following questions for the tables provided above. --在路线item_enterprise_7_61中,在意大利游玩时间比在德国多几天 SELECT### Response: select a.旅行天数 - b.旅行天数 from ( select 旅行天数 from 出境游所含国家 where 路线id == 'item_enterprise_7_61' and 国家 == '意大利' ) a , ( select 旅行天数 from 出境游所含国家 where 路线id == 'item_enterprise_7_61' and 国家 == '德国' ) 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, 上线时间, 官网, 百度权重, PR值, 反链数, 综合分数, 总排名, 所在省排名, 电商网站排名) CREATE TABLE 活动日 ( 词条id, 活动名称, 时间, 发明公司id) CREATE TABLE 网站活动收入 ( 网站id, 活动id, 年份, 下单金额, 同比增长) CREATE TABLE 网站打假 ( 网站id, 年份, 315提名次数, 买家打假次数, 同比增长) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_software_7_71旗下的购物网站“天猫商城”和“淘宝网”在购物上的对比,天猫排名比淘宝网高多少 SELECT### Response: select a.电商网站排名 - b.电商网站排名 from ( select 电商网站排名 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '天猫商城' ) a , ( select 电商网站排名 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '淘宝城' ) 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, 上线时间, 官网, 百度权重, PR值, 反链数, 综合分数, 总排名, 所在省排名, 电商网站排名) CREATE TABLE 活动日 ( 词条id, 活动名称, 时间, 发明公司id) CREATE TABLE 网站活动收入 ( 网站id, 活动id, 年份, 下单金额, 同比增长) CREATE TABLE 网站打假 ( 网站id, 年份, 315提名次数, 买家打假次数, 同比增长) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_software_7_71旗下的“天猫商城”和“淘宝网”对比,淘宝网总排名比天猫高多少 SELECT### Response: select a.总排名 - b.总排名 from ( select 总排名 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '淘宝城' ) a , ( select 总排名 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '天猫商城' ) 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, 上线时间, 官网, 百度权重, PR值, 反链数, 综合分数, 总排名, 所在省排名, 电商网站排名) CREATE TABLE 活动日 ( 词条id, 活动名称, 时间, 发明公司id) CREATE TABLE 网站活动收入 ( 网站id, 活动id, 年份, 下单金额, 同比增长) CREATE TABLE 网站打假 ( 网站id, 年份, 315提名次数, 买家打假次数, 同比增长) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_software_7_71旗下的“天猫商城”和“淘宝网”对比,天猫在省内排名比淘宝网高多少 SELECT### Response: select a.所在省排名 - b.所在省排名 from ( select 所在省排名 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '天猫商城' ) a , ( select 所在省排名 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '淘宝城' ) 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, 上线时间, 官网, 百度权重, PR值, 反链数, 综合分数, 总排名, 所在省排名, 电商网站排名) CREATE TABLE 活动日 ( 词条id, 活动名称, 时间, 发明公司id) CREATE TABLE 网站活动收入 ( 网站id, 活动id, 年份, 下单金额, 同比增长) CREATE TABLE 网站打假 ( 网站id, 年份, 315提名次数, 买家打假次数, 同比增长) -- Using valid SQLite, answer the following questions for the tables provided above. --公司item_software_7_71旗下的“天猫商城”和“淘宝网”对比,天猫比淘宝网早上线多长时间 SELECT### Response: select a.上线时间 - b.上线时间 from ( select 上线时间 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '天猫商城' ) a , ( select 上线时间 from 购物网 where 所属公司id == 'item_software_7_71' and 网站名称 == '淘宝城' ) 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. --地产集团item_enterprise_16_161开发的项目中,天山世界一号户型面积占该集团所有户型的比例是多少 SELECT### Response: select a.户型面积 / b.户型面积 from ( select 户型面积 from 房产公司典型项目 where 所属集团id == 'item_enterprise_16_161' and 项目名称 == '天山世界一号' ) a , ( select sum ( 户型面积 ) from 房产公司典型项目 where 所属集团id == 'item_enterprise_16_161' ) 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. --地产集团item_enterprise_16_161开发的项目中,天山世界一号占地面积占该集团所有项目占地面积的比例是多少 SELECT### Response: select a.占地面积 / b.占地面积 from ( select 占地面积 from 房产公司典型项目 where 所属集团id == 'item_enterprise_16_161' and 项目名称 == '天山世界一号' ) a , ( select sum ( 占地面积 ) from 房产公司典型项目 where 所属集团id == 'item_enterprise_16_161' ) 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. --地产集团item_enterprise_16_161开发的项目中,天山世界一号户型面积占该集团所有户型的比例是多少 SELECT### Response: select a.户型面积 / b.户型面积 from ( select 户型面积 from 房产公司典型项目 where 所属集团id == 'item_enterprise_16_161' and 项目名称 == '天山世界一号' ) a , ( select sum ( 户型面积 ) from 房产公司典型项目 where 所属集团id == 'item_enterprise_16_161' ) 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. --公司item_product_10_83在中国建立的事业部中,在福建奔驰事业部投入资金比在福建奔驰事业部多投入了多少 SELECT### Response: select a.总投资金额 - b.总投资金额 from ( select 总投资金额 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '福建奔驰' ) a , ( select 总投资金额 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '北京奔驰' ) 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. --公司item_product_10_83在中国建立的事业部中,在东风本田投入的资金占该公司所有投入资金的比例是多少 SELECT### Response: select a.总投资金额 / b.总投资金额 from ( select 总投资金额 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '东风本田' ) a , ( select sum ( 总投资金额 ) from 汽车公司中国事业部 where 公司id == 'item_product_10_83' ) 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. --公司item_product_10_83在中国建立的事业部中,光束汽车公司负责的产品占该公司所产产品的比例是多少 SELECT### Response: select a.负责产品数量 / b.负责产品数量 from ( select 负责产品数量 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '光束汽车有限公司' ) a , ( select sum ( 负责产品数量 ) from 汽车公司中国事业部 where 公司id == 'item_product_10_83' ) 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. --公司item_product_10_83在中国建立的事业部中,在福建奔驰事业部投入资金是在福建奔驰事业部投入的多少倍 SELECT### Response: select a.总投资金额 / b.总投资金额 from ( select 总投资金额 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '福建奔驰' ) a , ( select 总投资金额 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '北京奔驰' ) 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. --公司item_product_10_83在中国建立的事业部中,在北京奔驰和福建奔驰事业部一共投入了多少资金 SELECT### Response: select a.总投资金额 + b.总投资金额 from ( select 总投资金额 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '北京奔驰' ) a , ( select 总投资金额 from 汽车公司中国事业部 where 公司id == 'item_product_10_83' and 中国事业部名称 == '福建奔驰' ) b.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 书籍 ( 词条id, 名称, 作者, 作者国籍, 豆瓣评分, 评价人数, 5星占比, 1星占比) 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_10_125在2018年售出数量比2017年多多少 SELECT### Response: select a.购买数 - b.购买数 from ( select 购买数 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2018 ) a , ( select 购买数 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2017 ) b.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 书籍 ( 词条id, 名称, 作者, 作者国籍, 豆瓣评分, 评价人数, 5星占比, 1星占比) 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_10_125在2018年售出数量是2017年的多少倍 SELECT### Response: select a.购买数 / b.购买数 from ( select 购买数 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2018 ) a , ( select 购买数 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2017 ) b.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 书籍 ( 词条id, 名称, 作者, 作者国籍, 豆瓣评分, 评价人数, 5星占比, 1星占比) 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_10_125在2018年和2017年一共售出多少本 SELECT### Response: select a.购买数 + b.购买数 from ( select 购买数 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2018 ) a , ( select 购买数 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2017 ) b.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 书籍 ( 词条id, 名称, 作者, 作者国籍, 豆瓣评分, 评价人数, 5星占比, 1星占比) 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_10_125在2018年排名比2017年高多少 SELECT### Response: select a.排名 - b.排名 from ( select 排名 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2018 ) a , ( select 排名 from 最畅销图书榜单 where 书籍id == 'item_book.2_10_125' and 年份 == 2017 ) 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. --汽车产品item_product_10_90生产的所有车型中,“奔驰2020款A200L运动型”的累计销售辆数占该产品所有销量的比例是多少 SELECT### Response: select a.累计销量 / b.累计销量 from ( select 累计销量 from 车型 where 所属产品id == 'item_product_10_90' and 名称 == '奔驰2020款A200L运动型' ) a , ( select sum ( 累计销量 ) from 车型 where 所属产品id == 'item_product_10_90' ) 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 所在省市 == '上海' and 学校 == '复旦大学' ) a , ( select sum ( 院士人数 ) 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. --在网红食品item_animal_food_1_3的购买人群中,00后和80后人数占比加起来有多少 SELECT### Response: select a.人数占比 + b.人数占比 from ( select 人数占比 from 网红食品购买者 where 类型id == 'item_animal_food_1_3' and 年龄段 == '00后' ) a , ( select 人数占比 from 网红食品购买者 where 类型id == 'item_animal_food_1_3' and 年龄段 == '80后' ) 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. --在网红食品item_animal_food_1_3的购买人群中,00后人数占比比90后人数占比高多少 SELECT### Response: select a.人数占比 - b.人数占比 from ( select 人数占比 from 网红食品购买者 where 类型id == 'item_animal_food_1_3' and 年龄段 == '00后' ) a , ( select 人数占比 from 网红食品购买者 where 类型id == 'item_animal_food_1_3' and 年龄段 == '90后' ) 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. --公司item_product_12_111在平台item_product_12_120上购买的关键词占该公司购买关键词总数的比例是多少 SELECT### Response: select a.购买关键词数量 / b.购买关键词数量 from ( select 购买关键词数量 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_120' ) a , ( select sum ( 购买关键词数量 ) from 公司在平台投入广告 where 公司id == 'item_product_12_111' ) 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. --在平台item_product_12_120上,公司item_product_12_111比item_product_12_112的转换率高了多少 SELECT### Response: select a.转换率 - b.转换率 from ( select 转换率 from 公司在平台投入广告 where 平台id == 'item_product_12_120' and 公司id == 'item_product_12_111' ) a , ( select 转换率 from 公司在平台投入广告 where 平台id == 'item_product_12_120' and 公司id == 'item_product_12_112' ) 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. --在平台item_product_12_116上,公司item_product_12_111比item_product_12_113的点击率高了多少 SELECT### Response: select a.点击率 - b.点击率 from ( select 点击率 from 公司在平台投入广告 where 平台id == 'item_product_12_116' and 公司id == 'item_product_12_111' ) a , ( select 点击率 from 公司在平台投入广告 where 平台id == 'item_product_12_116' and 公司id == 'item_product_12_113' ) 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. --公司item_product_12_111在平台item_product_12_119和item_product_12_120上一共购买了多少个关键词 SELECT### Response: select a.购买关键词数量 + b.购买关键词数量 from ( select 购买关键词数量 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_120' ) a , ( select 购买关键词数量 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_116' ) 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. --公司item_product_12_111在平台item_product_12_119上的购买的关键词比在平台item_product_12_120上多多少个 SELECT### Response: select a.购买关键词数量 - b.购买关键词数量 from ( select 购买关键词数量 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_119' ) a , ( select 购买关键词数量 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_120' ) 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. --在平台item_product_12_120上,公司item_product_12_111比item_product_12_112多购买了多少个关键词 SELECT### Response: select a.购买关键词数量 - b.购买关键词数量 from ( select 购买关键词数量 from 公司在平台投入广告 where 平台id == 'item_product_12_120' and 公司id == 'item_product_12_111' ) a , ( select 购买关键词数量 from 公司在平台投入广告 where 平台id == 'item_product_12_120' and 公司id == 'item_product_12_112' ) 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. --公司item_product_12_111在平台item_product_12_116上的点击率比在平台item_product_12_119上高多少 SELECT### Response: select a.点击率 - b.点击率 from ( select 点击率 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_116' ) a , ( select 点击率 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_119' ) 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. --公司item_product_12_111在平台item_product_12_120上的转化率比item_product_12_1116上高了多少 SELECT### Response: select a.转换率 - b.转换率 from ( select 转换率 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_120' ) a , ( select 转换率 from 公司在平台投入广告 where 公司id == 'item_product_12_111' and 平台id == 'item_product_12_116' ) 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. --针对戏剧item_dynasties_words_1_2,长沙和上海一共有多少戏迷 SELECT### Response: select a.戏迷数量 + b.戏迷数量 from ( select 戏迷数量 from 戏剧分布城市 where 戏剧id == 'item_dynasties_words_1_2' and 城市 == '长沙' ) a , ( select 戏迷数量 from 戏剧分布城市 where 戏剧id == 'item_dynasties_words_1_2' and 城市 == '上海' ) 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. --在苏州,戏剧item_dynasties_words_1_2的戏迷是tem_dynasties_words_1_4的多少倍 SELECT### Response: select a.戏迷数量 / b.戏迷数量 from ( select 戏迷数量 from 戏剧分布城市 where 城市 == '苏州' and 戏剧id == 'item_dynasties_words_1_2' ) a , ( select 戏迷数量 from 戏剧分布城市 where 城市 == '苏州' and 戏剧id == 'item_dynasties_words_1_4' ) 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. --针对戏剧item_dynasties_words_1_2,上海的戏迷是北京的多少倍 SELECT### Response: select a.戏迷数量 / b.戏迷数量 from ( select 戏迷数量 from 戏剧分布城市 where 戏剧id == 'item_dynasties_words_1_2' and 城市 == '上海' ) a , ( select 戏迷数量 from 戏剧分布城市 where 戏剧id == 'item_dynasties_words_1_2' and 城市 == '北京' ) 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. --在徽州,戏剧item_dynasties_words_1_2的戏迷数占该城市所有戏迷的比例是多少 SELECT### Response: select a.戏迷数量 / b.戏迷数量 from ( select 戏迷数量 from 戏剧分布城市 where 城市 == '徽州' and 戏剧id == 'item_dynasties_words_1_2' ) a , ( select sum ( 戏迷数量 ) 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. --针对戏剧item_dynasties_words_1_2,苏州比长沙多多少个戏迷 SELECT### Response: select a.戏迷数量 - b.戏迷数量 from ( select 戏迷数量 from 戏剧分布城市 where 戏剧id == 'item_dynasties_words_1_2' and 城市 == '苏州' ) a , ( select 戏迷数量 from 戏剧分布城市 where 戏剧id == 'item_dynasties_words_1_2' and 城市 == '长沙' ) 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. --在苏州,戏剧item_dynasties_words_1_3和tem_dynasties_words_1_2一共有多少戏迷 SELECT### Response: select a.戏迷数量 + b.戏迷数量 from ( select 戏迷数量 from 戏剧分布城市 where 城市 == '苏州' and 戏剧id == 'item_dynasties_words_1_3' ) a , ( select 戏迷数量 from 戏剧分布城市 where 城市 == '苏州' and 戏剧id == 'item_dynasties_words_1_2' ) 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. --在苏州,戏剧item_dynasties_words_1_4举办的活动占该城市所有活动的比例是多少 SELECT### Response: select a.活动数量 / b.活动数量 from ( select 活动数量 from 戏剧分布城市 where 城市 == '苏州' and 戏剧id == 'item_dynasties_words_1_4' ) a , ( select sum ( 活动数量 ) 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. --在苏州,戏剧item_dynasties_words_1_4比tem_dynasties_words_1_3多多少戏迷 SELECT### Response: select a.戏迷数量 - b.戏迷数量 from ( select 戏迷数量 from 戏剧分布城市 where 城市 == '苏州' and 戏剧id == 'item_dynasties_words_1_4' ) a , ( select 戏迷数量 from 戏剧分布城市 where 城市 == '苏州' and 戏剧id == 'item_dynasties_words_1_3' ) 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. --快递公司item_enterprise_3_17每公斤收费标准在东北比在西北高多少 SELECT### Response: select a.每公斤价格 - b.每公斤价格 from ( select 每公斤价格 from 快递费 where 快递公司id == 'item_enterprise_3_17' and 区域 == '东北' ) a , ( select 每公斤价格 from 快递费 where 快递公司id == 'item_enterprise_3_17' and 区域 == '华北' ) 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. --快递公司item_enterprise_3_17在东北的起步价格比在西北的起步价格高多少 SELECT### Response: select a.起步价格 - b.起步价格 from ( select 起步价格 from 快递费 where 快递公司id == 'item_enterprise_3_17' and 区域 == '东北' ) a , ( select 起步价格 from 快递费 where 快递公司id == 'item_enterprise_3_17' and 区域 == '西北' ) 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, 到达站id, 出发时间, 到达时间) CREATE TABLE 列车票价 ( 日期, 列车id, 车票类型, 票价, 余票) -- Using valid SQLite, answer the following questions for the tables provided above. --列车item_task_dialogue_1_6的一等座比特等座多剩余了多少张票 SELECT### Response: select a.余票 - b.余票 from ( select 余票 from 列车票价 where 列车id == 'item_task_dialogue_1_6' and 车票类型 == '一等座' ) a , ( select 余票 from 列车票价 where 列车id == 'item_task_dialogue_1_6' and 车票类型 == '特等座' ) 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, 到达站id, 出发时间, 到达时间) CREATE TABLE 列车票价 ( 日期, 列车id, 车票类型, 票价, 余票) -- Using valid SQLite, answer the following questions for the tables provided above. --列车item_task_dialogue_1_6的软卧比硬座贵多少 SELECT### Response: select a.票价 - b.票价 from ( select 票价 from 列车票价 where 列车id == 'item_task_dialogue_1_6' and 车票类型 == '软卧' ) a , ( select 票价 from 列车票价 where 列车id == 'item_task_dialogue_1_6' and 车票类型 == '硬座' ) 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, 到达站id, 出发时间, 到达时间) CREATE TABLE 列车票价 ( 日期, 列车id, 车票类型, 票价, 余票) -- Using valid SQLite, answer the following questions for the tables provided above. --列车item_task_dialogue_1_6的一等座和二等座一共剩余了多少张票 SELECT### Response: select a.余票 + b.余票 from ( select 余票 from 列车票价 where 列车id == 'item_task_dialogue_1_6' and 车票类型 == '一等座' ) a , ( select 余票 from 列车票价 where 列车id == 'item_task_dialogue_1_6' and 车票类型 == '二等座' ) 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, 区域, 人口占比) -- Using valid SQLite, answer the following questions for the tables provided above. --在东部地区,item_dynasties_words_10_91姓人口占该地区所有人口的比例是多少 SELECT### Response: select a.人口占比 / b.人口占比 from ( select 人口占比 from 姓氏分布区域 where 区域 == '东部' and 姓氏id == 'item_dynasties_words_10_91' ) a , ( select sum ( 人口占比 ) 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, 区域, 人口占比) -- Using valid SQLite, answer the following questions for the tables provided above. --item_dynasties_words_10_93姓在中部地区的人口比例是东部地区的多少倍 SELECT### Response: select a.人口占比 / b.人口占比 from ( select 人口占比 from 姓氏分布区域 where 姓氏id == 'item_dynasties_words_10_93' and 区域 == '中部' ) a , ( select 人口占比 from 姓氏分布区域 where 姓氏id == 'item_dynasties_words_10_93' and 区域 == '南部' ) 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, 区域, 人口占比) -- Using valid SQLite, answer the following questions for the tables provided above. --在东部地区,item_dynasties_words_10_91姓人口比例是item_dynasties_words_10_93姓的多少倍 SELECT### Response: select a.人口占比 / b.人口占比 from ( select 人口占比 from 姓氏分布区域 where 区域 == '东部' and 姓氏id == 'item_dynasties_words_10_91' ) a , ( select 人口占比 from 姓氏分布区域 where 区域 == '东部' and 姓氏id == 'item_dynasties_words_10_93' ) 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, 区域, 人口占比) -- Using valid SQLite, answer the following questions for the tables provided above. --在东部地区,item_dynasties_words_10_91姓人口比例比item_dynasties_words_10_93姓高多少 SELECT### Response: select a.人口占比 - b.人口占比 from ( select 人口占比 from 姓氏分布区域 where 区域 == '东部' and 姓氏id == 'item_dynasties_words_10_91' ) a , ( select 人口占比 from 姓氏分布区域 where 区域 == '东部' and 姓氏id == 'item_dynasties_words_10_93' ) 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, 区域, 人口占比) -- Using valid SQLite, answer the following questions for the tables provided above. --item_dynasties_words_10_93姓在中部地区的人口比例比东部地区高多少 SELECT### Response: select a.人口占比 - b.人口占比 from ( select 人口占比 from 姓氏分布区域 where 姓氏id == 'item_dynasties_words_10_93' and 区域 == '中部' ) a , ( select 人口占比 from 姓氏分布区域 where 姓氏id == 'item_dynasties_words_10_93' and 区域 == '东部' ) 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, 区域, 人口占比) -- Using valid SQLite, answer the following questions for the tables provided above. --item_dynasties_words_10_93姓在东部和中部地区人口加起来占比是多少 SELECT### Response: select a.人口占比 + b.人口占比 from ( select 人口占比 from 姓氏分布区域 where 姓氏id == 'item_dynasties_words_10_93' and 区域 == '东部' ) a , ( select 人口占比 from 姓氏分布区域 where 姓氏id == 'item_dynasties_words_10_93' and 区域 == '中部' ) 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, 区域, 人口占比) -- Using valid SQLite, answer the following questions for the tables provided above. --在东部地区,item_dynasties_words_10_91姓和item_dynasties_words_10_93姓加起来占比有多少 SELECT### Response: select a.人口占比 + b.人口占比 from ( select 人口占比 from 姓氏分布区域 where 区域 == '东部' and 姓氏id == 'item_dynasties_words_10_91' ) a , ( select 人口占比 from 姓氏分布区域 where 区域 == '东部' and 姓氏id == 'item_dynasties_words_10_93' ) 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. --在公司item_enterprise_11_122中,岗位item_enterprise_11_130招聘的基本工资占该公司所有岗位基本工资比例是多少 SELECT### Response: select a.基本月薪 / b.基本月薪 from ( select 基本月薪 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_130' ) a , ( select sum ( 基本月薪 ) from 公司招聘计划 where 公司id == 'item_enterprise_11_122' ) 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. --在公司item_enterprise_11_122,岗位item_enterprise_11_130的基础工资比item_enterprise_11_126多多少钱 SELECT### Response: select a.基本月薪 - b.基本月薪 from ( select 基本月薪 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_130' ) a , ( select 基本月薪 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_126' ) 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. --在公司item_enterprise_11_122,岗位item_enterprise_11_130和item_enterprise_11_131一共招了多少人 SELECT### Response: select a.招聘人数 + b.招聘人数 from ( select 招聘人数 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_130' ) a , ( select 招聘人数 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_131' ) 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. --在公司item_enterprise_11_122,岗位item_enterprise_11_130比item_enterprise_11_131多招了多少人 SELECT### Response: select a.招聘人数 - b.招聘人数 from ( select 招聘人数 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_130' ) a , ( select 招聘人数 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_131' ) 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. --在公司item_enterprise_11_122,岗位item_enterprise_11_130的基础工资是item_enterprise_11_126的多少倍 SELECT### Response: select a.基本月薪 / b.基本月薪 from ( select 基本月薪 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_130' ) a , ( select 基本月薪 from 公司招聘计划 where 公司id == 'item_enterprise_11_122' and 招聘岗位id == 'item_enterprise_11_126' ) 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. --在公司item_enterprise_11_121中,岗位item_enterprise_11_127招聘的人数占该公司所有招聘人数的比例是多少 SELECT### Response: select a.招聘人数 / b.招聘人数 from ( select 招聘人数 from 公司招聘计划 where 公司id == 'item_enterprise_11_121' and 招聘岗位id == 'item_enterprise_11_127' ) a , ( select sum ( 招聘人数 ) from 公司招聘计划 where 公司id == 'item_enterprise_11_121' ) 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 匹数对应面积 ( 匹数, 最小面积, 最大面积) CREATE TABLE 空调各季度售卖 ( 型号id, 季度, 售价, 最高价格, 最低价格, 售卖量) CREATE TABLE 空调各城市售卖 ( 城市, 空调售卖量, 空调日平均用时) -- Using valid SQLite, answer the following questions for the tables provided above. --空调item_product_6_41型号在第3季度售出价格比第4季度高多少 SELECT### Response: select a.售价 - b.售价 from ( select 售价 from 空调各季度售卖 where 型号id == 'item_product_6_41' and 季度 == 3 ) a , ( select 售价 from 空调各季度售卖 where 型号id == 'item_product_6_41' and 季度 == 4 ) b.