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. --公司和游戏的收益额平均值排名前5的发行形式,收益占公司比例的最小值 SELECT### Response: select 发行形式 , min ( 收益占公司比例 ) from 公司和游戏 group by 发行形式 order by avg ( 收益额 ) desc limit 5.
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 发行形式 , sum ( 收益额 ) from 公司和游戏 group by 发行形式 order by count ( * ) desc limit 1.
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 发行形式 , sum ( 收益占公司比例 ) from 公司和游戏 group by 发行形式 order by avg ( 收益额 ) desc limit 1.
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. --公司和游戏的收益额平均值排名后5的发行形式,公司和游戏的收益占公司比例的最小值 SELECT### Response: select 发行形式 , min ( 收益占公司比例 ) from 公司和游戏 group by 发行形式 order by avg ( 收益额 ) asc limit 5.
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. --发行游戏最少的3个形式,公司和游戏的收益额的最小值 SELECT### Response: select 发行形式 , min ( 收益额 ) from 公司和游戏 group by 发行形式 order by count ( * ) limit 3.
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, 是否重点, 是否研究中心) -- Using valid SQLite, answer the following questions for the tables provided above. --城市的三甲医院数量总和最小的省份,城市的老年人口占比的总和 SELECT### Response: select 所属省份 , sum ( 老年人口占比 ) from 城市 group by 所属省份 order by sum ( 三甲医院数量 ) asc limit 1.
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, 是否重点, 是否研究中心) -- Using valid SQLite, answer the following questions for the tables provided above. --城市的三甲医院数量总和最小的省份,城市的老年人口占比的平均值 SELECT### Response: select 所属省份 , avg ( 老年人口占比 ) from 城市 group by 所属省份 order by sum ( 三甲医院数量 ) asc limit 1.
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, 是否重点, 是否研究中心) -- Using valid SQLite, answer the following questions for the tables provided above. --城市最少的3省,城市的三甲医院数量的总和 SELECT### Response: select 所属省份 , sum ( 三甲医院数量 ) from 城市 group by 所属省份 order by count ( * ) limit 3.
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, 是否重点, 是否研究中心) -- Using valid SQLite, answer the following questions for the tables provided above. --城市的三甲医院数量平均值排名后5的省份,城市的人口数量的最大值 SELECT### Response: select 所属省份 , max ( 人口数量 ) from 城市 group by 所属省份 order by avg ( 三甲医院数量 ) asc limit 5.
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, 是否重点, 是否研究中心) -- Using valid SQLite, answer the following questions for the tables provided above. --城市的三甲医院数量平均值排名前5的省份,城市的人口数量的平均值 SELECT### Response: select 所属省份 , avg ( 人口数量 ) from 城市 group by 所属省份 order by avg ( 三甲医院数量 ) desc limit 5.
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. --产品销售的销售量平均值排名前5的季度,产品销售的销售量增长的平均值 SELECT### Response: select 季度 , avg ( 销售量增长 ) from 产品销售 group by 季度 order by avg ( 销售量 ) desc limit 5.
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. --产品销售的数量最少的季度,产品销售的销售量的总和 SELECT### Response: select 季度 , sum ( 销售量 ) from 产品销售 group by 季度 order by count ( * ) asc limit 1.
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. --产品销售的数量最少的季度,产品销售的销售量的最大值 SELECT### Response: select 季度 , max ( 销售量 ) from 产品销售 group by 季度 order by count ( * ) asc limit 1.
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. --产品销售的数量最多的季度,产品销售的销售量的最大值 SELECT### Response: select 季度 , max ( 销售量 ) from 产品销售 group by 季度 order by count ( * ) desc limit 1.
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. --产品销售最低的3个季度,产品销售的销售量的最大值 SELECT### Response: select 季度 , max ( 销售量 ) from 产品销售 group by 季度 order by count ( * ) limit 3.
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. --菜品的数量最多的起源地,菜品的版本数量的平均值 SELECT### Response: select 起源地 , avg ( 版本数量 ) from 菜品 group by 起源地 order by count ( * ) desc limit 1.
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. --菜品的数量最少的起源地,菜品的版本数量的最小值 SELECT### Response: select 起源地 , min ( 版本数量 ) from 菜品 group by 起源地 order by count ( * ) asc limit 1.
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. --发源菜品最少的3地,菜品的版本数量的最大值 SELECT### Response: select 起源地 , max ( 版本数量 ) from 菜品 group by 起源地 order by count ( * ) limit 3.
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. --菜品的数量最多的起源地,菜品的版本数量的总和 SELECT### Response: select 起源地 , sum ( 版本数量 ) from 菜品 group by 起源地 order by count ( * ) desc limit 1.
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. --菜品的数量最少的起源地,菜品的版本数量的平均值 SELECT### Response: select 起源地 , avg ( 版本数量 ) from 菜品 group by 起源地 order by count ( * ) asc limit 1.
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 专业 , max ( 毕业人数 ) from 学校各专业 group by 专业 order by count ( * ) asc limit 1.
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 专业 , max ( 平均薪资 ) from 学校各专业 group by 专业 order by sum ( 毕业人数 ) desc limit 1.
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 专业 , sum ( 平均薪资 ) from 学校各专业 group by 专业 order by sum ( 毕业人数 ) desc limit 1.
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. --学校各专业的毕业人数总和排名后3的专业,学校各专业的平均薪资的最小值 SELECT### Response: select 专业 , min ( 平均薪资 ) from 学校各专业 group by 专业 order by sum ( 毕业人数 ) asc limit 3.
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 专业 , sum ( 毕业人数 ) from 学校各专业 group by 专业 order by count ( * ) asc limit 1.
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 公司类型 , max ( 年营业额 ) from 银行 group by 公司类型 order by count ( * ) desc limit 1.
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. --所有银行最少的5个类型,银行的年营业额的总和 SELECT### Response: select 公司类型 , sum ( 年营业额 ) from 银行 group by 公司类型 order by count ( * ) limit 5.
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 公司类型 , min ( 年营业额 ) from 银行 group by 公司类型 order by count ( * ) desc limit 1.
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. --拥有银行最少的5个类型,银行的年营业额的最大值 SELECT### Response: select 公司类型 , max ( 年营业额 ) from 银行 group by 公司类型 order by count ( * ) limit 5.
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. --银行数排名后3的公司类型,年营业额的最大值 SELECT### Response: select 公司类型 , max ( 年营业额 ) from 银行 group by 公司类型 order by count ( * ) limit 3.
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. --世博会场馆的占比面积平均值排名前5的场馆所属国家,世博会场馆的参观人数的最小值 SELECT### Response: select 场馆所属国家 , min ( 参观人数 ) from 世博会场馆 group by 场馆所属国家 order by avg ( 占比面积 ) desc limit 5.
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 场馆所属国家 , min ( 占比面积 ) from 世博会场馆 group by 场馆所属国家 order by count ( * ) desc limit 1.
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 场馆所属国家 , min ( 参观人数 ) from 世博会场馆 group by 场馆所属国家 order by avg ( 占比面积 ) asc limit 1.
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. --世博会场馆数最少的3个国家,世博会场馆的占比面积的总和 SELECT### Response: select 场馆所属国家 , sum ( 占比面积 ) from 世博会场馆 group by 场馆所属国家 order by count ( * ) limit 3.
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 场馆所属国家 , sum ( 占比面积 ) from 世博会场馆 group by 场馆所属国家 order by count ( * ) desc limit 1.
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, 赢方兵力, 败方将军id, 败方兵力) -- Using valid SQLite, answer the following questions for the tables provided above. --战役的历时时间总和最小的朝代,战役的死亡人数的总和 SELECT### Response: select 朝代 , sum ( 死亡人数 ) from 战役 group by 朝代 order by sum ( 历时时间 ) asc limit 1.
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, 赢方兵力, 败方将军id, 败方兵力) -- Using valid SQLite, answer the following questions for the tables provided above. --战役的数量最多的朝代,战役的历时时间的最小值 SELECT### Response: select 朝代 , min ( 历时时间 ) from 战役 group by 朝代 order by count ( * ) desc limit 1.
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, 赢方兵力, 败方将军id, 败方兵力) -- Using valid SQLite, answer the following questions for the tables provided above. --战役的历时时间平均值最小的朝代,战役的参战人数的最大值 SELECT### Response: select 朝代 , max ( 参战人数 ) from 战役 group by 朝代 order by avg ( 历时时间 ) asc limit 1.
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, 赢方兵力, 败方将军id, 败方兵力) -- Using valid SQLite, answer the following questions for the tables provided above. --战役的历时时间平均值最小的朝代,战役的参战人数的平均值 SELECT### Response: select 朝代 , avg ( 参战人数 ) from 战役 group by 朝代 order by avg ( 历时时间 ) asc limit 1.
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, 赢方兵力, 败方将军id, 败方兵力) -- Using valid SQLite, answer the following questions for the tables provided above. --战役的数量最少的朝代,战役的历时时间的最大值 SELECT### Response: select 朝代 , max ( 历时时间 ) from 战役 group by 朝代 order by count ( * ) asc limit 1.
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. --餐饮公司的数量最多的总部城市,餐饮公司的经营年数的总和 SELECT### Response: select 总部城市id , sum ( 经营年数 ) from 餐饮公司 group by 总部城市id order by count ( * ) desc limit 1.
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. --餐饮公司的数量最多的总部城市,餐饮公司的经营年数的平均值 SELECT### Response: select 总部城市id , avg ( 经营年数 ) from 餐饮公司 group by 总部城市id order by count ( * ) desc limit 1.
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. --饭店总部最少的3城市,餐饮公司的经营年数的最小值 SELECT### Response: select 总部城市id , min ( 经营年数 ) from 餐饮公司 group by 总部城市id order by count ( * ) limit 3.
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. --餐饮总部数最低的3个城市,餐饮公司的经营年数的最小值 SELECT### Response: select 总部城市id , min ( 经营年数 ) from 餐饮公司 group by 总部城市id order by count ( * ) limit 3.
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. --餐饮公司的数量最少的总部城市,餐饮公司的经营年数的最大值 SELECT### Response: select 总部城市id , max ( 经营年数 ) from 餐饮公司 group by 总部城市id order by count ( * ) asc limit 1.
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. --外文书最少的3位作者,外文书籍的字数的总和 SELECT### Response: select 原著作者 , sum ( 字数 ) from 外文书籍 group by 原著作者 order by count ( * ) limit 3.
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. --外文书最少的5名作者,外文书籍的字数的最小值 SELECT### Response: select 原著作者 , min ( 字数 ) from 外文书籍 group by 原著作者 order by count ( * ) limit 5.
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. --著书最少的3位作者,外文书籍的字数的最大值 SELECT### Response: select 原著作者 , max ( 字数 ) from 外文书籍 group by 原著作者 order by count ( * ) limit 3.
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. --书籍最少的3名外文作者,外文书籍的字数的最大值 SELECT### Response: select 原著作者 , max ( 字数 ) from 外文书籍 group by 原著作者 order by count ( * ) limit 3.
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. --作品最少的3位外文原著作者,外文书籍的字数的平均值 SELECT### Response: select 原著作者 , avg ( 字数 ) from 外文书籍 group by 原著作者 order by count ( * ) limit 3.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 40城消费力排名 ( 城市, 所在省份, 社消总额(亿), 总额排名, 增速, 增速排名, 人均社消(万), 总GDP(亿), 人均GDP(万), 常住人口(万), 参考房价) CREATE TABLE 各城市消费结构 ( 城市, 人均可支配收入, 餐饮消费占比, 奢侈品消费占比, 旅游占比, 人均网购消费额, 电子产品消费占比) CREATE TABLE 生态文明消费 ( 环保消费品, 增长率) CREATE TABLE 品牌消费 ( 品牌, 类型, 销量占比, 销量排名) CREATE TABLE 商品种类消费增速 ( 种类, 2013年增速, 2015年增速, 2017年增速) -- Using valid SQLite, answer the following questions for the tables provided above. --40城消费力排名的数量最多的省份,社消总额(亿)的最小值 SELECT### Response: select 所在省份 , min ( 社消总额(亿) ) from 40城消费力排名 group by 所在省份 order by count ( * ) desc limit 1.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 40城消费力排名 ( 城市, 所在省份, 社消总额(亿), 总额排名, 增速, 增速排名, 人均社消(万), 总GDP(亿), 人均GDP(万), 常住人口(万), 参考房价) CREATE TABLE 各城市消费结构 ( 城市, 人均可支配收入, 餐饮消费占比, 奢侈品消费占比, 旅游占比, 人均网购消费额, 电子产品消费占比) CREATE TABLE 生态文明消费 ( 环保消费品, 增长率) CREATE TABLE 品牌消费 ( 品牌, 类型, 销量占比, 销量排名) CREATE TABLE 商品种类消费增速 ( 种类, 2013年增速, 2015年增速, 2017年增速) -- Using valid SQLite, answer the following questions for the tables provided above. --40城消费力排名的社消总额(亿)平均值最小的省份,参考房价的总和 SELECT### Response: select 所在省份 , sum ( 参考房价 ) from 40城消费力排名 group by 所在省份 order by avg ( 社消总额(亿) ) asc limit 1.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 40城消费力排名 ( 城市, 所在省份, 社消总额(亿), 总额排名, 增速, 增速排名, 人均社消(万), 总GDP(亿), 人均GDP(万), 常住人口(万), 参考房价) CREATE TABLE 各城市消费结构 ( 城市, 人均可支配收入, 餐饮消费占比, 奢侈品消费占比, 旅游占比, 人均网购消费额, 电子产品消费占比) CREATE TABLE 生态文明消费 ( 环保消费品, 增长率) CREATE TABLE 品牌消费 ( 品牌, 类型, 销量占比, 销量排名) CREATE TABLE 商品种类消费增速 ( 种类, 2013年增速, 2015年增速, 2017年增速) -- Using valid SQLite, answer the following questions for the tables provided above. --40城消费力排名的社消总额(亿)平均值排名后5的省份,人均GDP(万)的平均值 SELECT### Response: select 所在省份 , avg ( 人均GDP(万) ) from 40城消费力排名 group by 所在省份 order by avg ( 社消总额(亿) ) asc limit 5.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 40城消费力排名 ( 城市, 所在省份, 社消总额(亿), 总额排名, 增速, 增速排名, 人均社消(万), 总GDP(亿), 人均GDP(万), 常住人口(万), 参考房价) CREATE TABLE 各城市消费结构 ( 城市, 人均可支配收入, 餐饮消费占比, 奢侈品消费占比, 旅游占比, 人均网购消费额, 电子产品消费占比) CREATE TABLE 生态文明消费 ( 环保消费品, 增长率) CREATE TABLE 品牌消费 ( 品牌, 类型, 销量占比, 销量排名) CREATE TABLE 商品种类消费增速 ( 种类, 2013年增速, 2015年增速, 2017年增速) -- Using valid SQLite, answer the following questions for the tables provided above. --40城消费力排名的社消总额(亿)总和排名后3的省份,常住人口(万)的平均值 SELECT### Response: select 所在省份 , avg ( 常住人口(万) ) from 40城消费力排名 group by 所在省份 order by sum ( 社消总额(亿) ) asc limit 3.
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 40城消费力排名 ( 城市, 所在省份, 社消总额(亿), 总额排名, 增速, 增速排名, 人均社消(万), 总GDP(亿), 人均GDP(万), 常住人口(万), 参考房价) CREATE TABLE 各城市消费结构 ( 城市, 人均可支配收入, 餐饮消费占比, 奢侈品消费占比, 旅游占比, 人均网购消费额, 电子产品消费占比) CREATE TABLE 生态文明消费 ( 环保消费品, 增长率) CREATE TABLE 品牌消费 ( 品牌, 类型, 销量占比, 销量排名) CREATE TABLE 商品种类消费增速 ( 种类, 2013年增速, 2015年增速, 2017年增速) -- Using valid SQLite, answer the following questions for the tables provided above. --40城消费力排名的社消总额(亿)总和排名后3的省份,40城消费力排名的增速的总和 SELECT### Response: select 所在省份 , sum ( 增速 ) from 40城消费力排名 group by 所在省份 order by sum ( 社消总额(亿) ) asc limit 3.
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 所属国家 , max ( 独立科研机构数量 ) from 高校 group by 所属国家 order by count ( * ) desc limit 1.
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 所属国家 , min ( 独立科研机构数量 ) from 高校 group by 所属国家 order by count ( * ) desc limit 1.
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 所属国家 , avg ( 重点学科数量 ) from 高校 group by 所属国家 order by sum ( 独立科研机构数量 ) desc limit 1.
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 所属国家 , avg ( 重点学科数量 ) from 高校 group by 所属国家 order by avg ( 独立科研机构数量 ) desc limit 1.
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. --高校数最低的5个国家,高校的独立科研机构数量的最大值 SELECT### Response: select 所属国家 , max ( 独立科研机构数量 ) from 高校 group by 所属国家 order by count ( * ) limit 5.
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. --运动员的数量排名后5的性别,运动员的体重的总和 SELECT### Response: select 性别 , sum ( 体重 ) from 运动员 group by 性别 order by count ( * ) asc limit 5.
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 性别 , max ( 体重 ) from 运动员 group by 性别 order by count ( * ) asc limit 1.
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 性别 , max ( 体重 ) from 运动员 group by 性别 order by count ( * ) desc limit 1.
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 方向 , sum ( 奖金数 ) from 比赛 group by 方向 order by count ( * ) asc limit 1.
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 方向 , min ( 奖金数 ) from 比赛 group by 方向 order by count ( * ) asc limit 1.
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 方向 , sum ( 录取队伍数量 ) from 比赛 group by 方向 order by sum ( 奖金数 ) desc limit 1.
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. --汽车产品的车款数量平均值排名前5的车型,汽车产品的保值率的平均值 SELECT### Response: select 车型 , avg ( 保值率 ) from 汽车产品 group by 车型 order by avg ( 车款数量 ) desc limit 5.
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. --汽车产品的数量最多的车型,汽车产品的车款数量的最小值 SELECT### Response: select 车型 , min ( 车款数量 ) from 汽车产品 group by 车型 order by count ( * ) desc limit 1.
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. --汽车产品的车款数量总和最大的车型,汽车产品保值率的最大值 SELECT### Response: select 车型 , max ( 保值率 ) from 汽车产品 group by 车型 order by sum ( 车款数量 ) desc limit 1.
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 房型 , max ( 价格 ) from 酒店客房 group by 房型 order by count ( * ) asc limit 1.
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 房型 , sum ( 剩余房间数 ) from 酒店客房 group by 房型 order by sum ( 价格 ) asc limit 1.
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 房型 , sum ( 剩余房间数 ) from 酒店客房 group by 房型 order by avg ( 价格 ) desc limit 1.
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 房型 , max ( 剩余房间数 ) from 酒店客房 group by 房型 order by avg ( 价格 ) desc limit 1.
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 各城市电视机售卖 ( 城市, 所属省份, 电视机售卖量, 观看电视日平均用时) -- Using valid SQLite, answer the following questions for the tables provided above. --电视机品牌的数量最多的公司,市场份额的总和 SELECT### Response: select 所属公司 , sum ( 市场份额 ) from 电视机品牌 group by 所属公司 order by count ( * ) desc limit 1.
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 各城市电视机售卖 ( 城市, 所属省份, 电视机售卖量, 观看电视日平均用时) -- Using valid SQLite, answer the following questions for the tables provided above. --电视机品牌的数量最多的公司,电视机品牌的市场份额的最小值 SELECT### Response: select 所属公司 , min ( 市场份额 ) from 电视机品牌 group by 所属公司 order by count ( * ) desc limit 1.
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 各城市电视机售卖 ( 城市, 所属省份, 电视机售卖量, 观看电视日平均用时) -- Using valid SQLite, answer the following questions for the tables provided above. --电视机品牌的数量最少的公司,电视机品牌的市场份额的总和 SELECT### Response: select 所属公司 , sum ( 市场份额 ) from 电视机品牌 group by 所属公司 order by count ( * ) asc limit 1.
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 行业 , max ( 校招人数 ) from 公司 group by 行业 order by count ( * ) desc limit 1.
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 行业 , sum ( 校招人数 ) from 公司 group by 行业 order by count ( * ) asc limit 1.
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, 配音演员id, 出场作品) CREATE TABLE 电视剧 ( 词条id, 剧名, 导演, 编剧, 制片人, 集数, 类型) CREATE TABLE 演员及导演作品 ( 演员id, 导演id, 合作作品id, 作品出品时间) CREATE TABLE 演员与导演的合作 ( 演员id, 导演id, 合作次数) CREATE TABLE 演员的作品 ( 演员id, 作品id, 角色类型) -- Using valid SQLite, answer the following questions for the tables provided above. --电视剧的数量最少的导演,电视剧的集数的最小值 SELECT### Response: select 导演 , min ( 集数 ) from 电视剧 group by 导演 order by count ( * ) asc limit 1.
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, 配音演员id, 出场作品) CREATE TABLE 电视剧 ( 词条id, 剧名, 导演, 编剧, 制片人, 集数, 类型) CREATE TABLE 演员及导演作品 ( 演员id, 导演id, 合作作品id, 作品出品时间) CREATE TABLE 演员与导演的合作 ( 演员id, 导演id, 合作次数) CREATE TABLE 演员的作品 ( 演员id, 作品id, 角色类型) -- Using valid SQLite, answer the following questions for the tables provided above. --电视剧的数量最少的导演,电视剧的集数的平均值 SELECT### Response: select 导演 , avg ( 集数 ) from 电视剧 group by 导演 order by count ( * ) asc limit 1.
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 举办城市 , avg ( 参与机构数量 ) from 中国花卉园博会 group by 举办城市 order by avg ( 展园数量 ) asc limit 1.
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 举办城市 , sum ( 展园数量 ) from 中国花卉园博会 group by 举办城市 order by count ( * ) asc limit 1.
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 举办城市 , sum ( 参与机构数量 ) from 中国花卉园博会 group by 举办城市 order by avg ( 展园数量 ) desc limit 1.
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 举办城市 , avg ( 展园数量 ) from 中国花卉园博会 group by 举办城市 order by count ( * ) desc limit 1.
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, 俱乐部id, 加入日期, 服役时间, 号码, 薪资) CREATE TABLE 教练 ( 词条id, 中文名, 国籍, 毕业院校, 执教时长, 年薪) CREATE TABLE 俱乐部教练 ( 教练id, 俱乐部id, 加入日期, 身份) -- Using valid SQLite, answer the following questions for the tables provided above. --教练的数量最少的国家,教练的年薪的最小值 SELECT### Response: select 国籍 , min ( 年薪 ) from 教练 group by 国籍 order by count ( * ) asc limit 1.
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, 俱乐部id, 加入日期, 服役时间, 号码, 薪资) CREATE TABLE 教练 ( 词条id, 中文名, 国籍, 毕业院校, 执教时长, 年薪) CREATE TABLE 俱乐部教练 ( 教练id, 俱乐部id, 加入日期, 身份) -- Using valid SQLite, answer the following questions for the tables provided above. --教练的数量最多的国家,教练的年薪的总和 SELECT### Response: select 国籍 , sum ( 年薪 ) from 教练 group by 国籍 order by count ( * ) desc limit 1.
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 流动人口年龄 ( 年份, 年龄段, 占比) CREATE TABLE 流动人口学历 ( 年份, 学历, 占比) CREATE TABLE 城市酒吧活力 ( 城市id, 酒吧数量, 排名, 周末客流量, 节假日客流量, 平日客流量) CREATE TABLE 酒吧顾客年龄 ( 顾客年龄段, 占比) CREATE TABLE 城市美食 ( 城市id, 美食名称, 搜索指数, 关注排名) CREATE TABLE 城市文化 ( 城市id, 文化名称, 关注热度, 关注排名) -- Using valid SQLite, answer the following questions for the tables provided above. --城市美食的数量最多的城市,城市美食的搜索指数的总和 SELECT### Response: select 城市id , sum ( 搜索指数 ) from 城市美食 group by 城市id order by count ( * ) desc limit 1.
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 流动人口年龄 ( 年份, 年龄段, 占比) CREATE TABLE 流动人口学历 ( 年份, 学历, 占比) CREATE TABLE 城市酒吧活力 ( 城市id, 酒吧数量, 排名, 周末客流量, 节假日客流量, 平日客流量) CREATE TABLE 酒吧顾客年龄 ( 顾客年龄段, 占比) CREATE TABLE 城市美食 ( 城市id, 美食名称, 搜索指数, 关注排名) CREATE TABLE 城市文化 ( 城市id, 文化名称, 关注热度, 关注排名) -- Using valid SQLite, answer the following questions for the tables provided above. --城市美食的数量最多的城市,城市美食的搜索指数的最大值 SELECT### Response: select 城市id , max ( 搜索指数 ) from 城市美食 group by 城市id order by count ( * ) desc limit 1.
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 流动人口年龄 ( 年份, 年龄段, 占比) CREATE TABLE 流动人口学历 ( 年份, 学历, 占比) CREATE TABLE 城市酒吧活力 ( 城市id, 酒吧数量, 排名, 周末客流量, 节假日客流量, 平日客流量) CREATE TABLE 酒吧顾客年龄 ( 顾客年龄段, 占比) CREATE TABLE 城市美食 ( 城市id, 美食名称, 搜索指数, 关注排名) CREATE TABLE 城市文化 ( 城市id, 文化名称, 关注热度, 关注排名) -- Using valid SQLite, answer the following questions for the tables provided above. --城市美食的数量最少的城市,城市美食的搜索指数的最小值 SELECT### Response: select 城市id , min ( 搜索指数 ) from 城市美食 group by 城市id order by count ( * ) asc limit 1.
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. --购买平台的数量最少的平台,购买平台的售价的最大值 SELECT### Response: select 平台 , max ( 售价 ) from 购买平台 group by 平台 order by count ( * ) asc limit 1.
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. --购买平台的数量最多的平台,购买平台的售价的总和 SELECT### Response: select 平台 , sum ( 售价 ) from 购买平台 group by 平台 order by count ( * ) desc limit 1.
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. --购买平台的数量最少的平台,购买平台的售价的总和 SELECT### Response: select 平台 , sum ( 售价 ) from 购买平台 group by 平台 order by count ( * ) asc limit 1.
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 所属省份 , avg ( 第三产业总值 ) from 城市 group by 所属省份 order by avg ( 地区生产总值 ) asc limit 1.
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 所属省份 , max ( 第一产业总值 ) from 城市 group by 所属省份 order by sum ( 地区生产总值 ) asc limit 1.
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 所属省份 , min ( 地区生产总值 ) from 城市 group by 所属省份 order by count ( * ) desc limit 1.
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 所属省份 , sum ( 地区生产总值 ) from 城市 group by 所属省份 order by count ( * ) asc limit 1.
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 所属省份 , sum ( 地区生产总值 ) from 城市 group by 所属省份 order by count ( * ) desc limit 1.
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 流动人口年龄 ( 年份, 年龄段, 占比) CREATE TABLE 流动人口学历 ( 年份, 学历, 占比) CREATE TABLE 城市酒吧活力 ( 城市id, 酒吧数量, 排名, 周末客流量, 节假日客流量, 平日客流量) CREATE TABLE 酒吧顾客年龄 ( 顾客年龄段, 占比) CREATE TABLE 城市美食 ( 城市id, 美食名称, 搜索指数, 关注排名) CREATE TABLE 城市文化 ( 城市id, 文化名称, 关注热度, 关注排名) -- Using valid SQLite, answer the following questions for the tables provided above. --流动人口学历的数量最少的学历,流动人口学历的占比的最大值 SELECT### Response: select 学历 , max ( 占比 ) from 流动人口学历 group by 学历 order by count ( * ) asc limit 1.
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 流动人口年龄 ( 年份, 年龄段, 占比) CREATE TABLE 流动人口学历 ( 年份, 学历, 占比) CREATE TABLE 城市酒吧活力 ( 城市id, 酒吧数量, 排名, 周末客流量, 节假日客流量, 平日客流量) CREATE TABLE 酒吧顾客年龄 ( 顾客年龄段, 占比) CREATE TABLE 城市美食 ( 城市id, 美食名称, 搜索指数, 关注排名) CREATE TABLE 城市文化 ( 城市id, 文化名称, 关注热度, 关注排名) -- Using valid SQLite, answer the following questions for the tables provided above. --流动人口学历的数量最少的学历,流动人口学历的占比的最小值 SELECT### Response: select 学历 , min ( 占比 ) from 流动人口学历 group by 学历 order by count ( * ) asc limit 1.
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 热门出境游城市 ( 城市, 所在国家, 国内游客数量, 排名) -- Using valid SQLite, answer the following questions for the tables provided above. --城市的城市面积总和最大的省份,城市的通勤高峰拥堵指数的总和 SELECT### Response: select 所属省份 , sum ( 通勤高峰拥堵指数 ) from 城市 group by 所属省份 order by sum ( 城市面积 ) desc limit 1.