text2SQL
stringlengths 192
7.27k
|
---|
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 网红食品 (
词条id,
名称,
品类数量,
商家数量,
出现年份)
CREATE TABLE 网红食品销售 (
类型id,
年份,
销售额,
购买人数)
CREATE TABLE 网红食品购买者 (
类型id,
年龄段,
人数占比)
CREATE TABLE 网红食品分布城市 (
类型id,
省份,
销售量占比,
商家占比,
安全事件关注度)
-- Using valid SQLite, answer the following questions for the tables provided above.
--网红食品分布城市的销售量占比的平均值排名后5的省份,网红食品分布城市的商家占比的总和
SELECT### Response: select 省份 , sum ( 商家占比 ) 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,
年龄段,
人数占比)
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 ( 销售量占比 ) 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 省份 , 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,
省份,
销售量占比,
商家占比,
安全事件关注度)
-- 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,
峰会id,
演讲主题,
论坛,
开始时间,
演讲时长)
CREATE TABLE 峰会赞助公司 (
峰会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,
姓名,
任职单位,
职位)
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 ( * ) 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,
公司,
赞助级别)
-- 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,
峰会id,
演讲主题,
论坛,
开始时间,
演讲时长)
CREATE TABLE 峰会赞助公司 (
峰会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 峰会 (
词条id,
名称,
主办单位,
举办时间,
历时天数,
举办地点,
分论坛数量,
门票价格,
门票数量,
报名人数,
直播观看人数)
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,
破纪录时间)
CREATE TABLE 举重奥运会冠军 (
奥运会名称,
公斤级别,
运动员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)
-- 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)
-- 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)
-- 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)
-- Using valid SQLite, answer the following questions for the tables provided above.
--拥有举重世界纪录的数量排名后10的项目类型,举重世界记录的记录成绩的平均值
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 电影作品 (
词条id,
影片名,
导演,
国家,
提名次数,
获奖次数)
CREATE TABLE 获奖国家名单 (
年份,
影片拍摄国家,
获奖次数)
CREATE TABLE 各演员获奖次数 (
姓名,
奖项,
提名次数,
获奖次数)
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 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 获奖国家名单 (
年份,
影片拍摄国家,
获奖次数)
CREATE TABLE 各演员获奖次数 (
姓名,
奖项,
提名次数,
获奖次数)
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 获奖国家名单 (
年份,
影片拍摄国家,
获奖次数)
CREATE TABLE 各演员获奖次数 (
姓名,
奖项,
提名次数,
获奖次数)
CREATE TABLE 历届帝后影后名单 (
年份,
帝后姓名,
帝后来自作品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 获奖国家名单 (
年份,
影片拍摄国家,
获奖次数)
CREATE TABLE 各演员获奖次数 (
姓名,
奖项,
提名次数,
获奖次数)
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 获奖国家名单 (
年份,
影片拍摄国家,
获奖次数)
CREATE TABLE 各演员获奖次数 (
姓名,
奖项,
提名次数,
获奖次数)
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,
名称,
所属城市,
地址,
纪念人物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,
名称,
所属城市,
地址,
纪念人物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 诗人 (
词条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 文学体裁 , 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,
名称,
所属城市,
地址,
纪念人物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 诗人 (
词条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,
景点名称,
所属城市id,
平均拥堵指数,
周边路网平均速度(千米/时),
拥堵排名)
CREATE TABLE 全国热门景点 (
景点id,
日均接待游客数量,
日均外省游客数量,
热度排名)
CREATE TABLE 热门出境游城市 (
城市,
所在国家,
国内游客数量,
排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--拥有全国交通枢纽的数量排名后3的城市,全国交通枢纽的平均拥堵指数的最大值
SELECT### Response: select 所属城市id , max ( 平均拥堵指数 ) 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,
日均接待游客数量,
日均外省游客数量,
热度排名)
CREATE TABLE 热门出境游城市 (
城市,
所在国家,
国内游客数量,
排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--全国交通枢纽数后3的城市,全国交通枢纽的平均拥堵指数的平均值
SELECT### Response: select 所属城市id , avg ( 平均拥堵指数 ) 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,
日均接待游客数量,
日均外省游客数量,
热度排名)
CREATE TABLE 热门出境游城市 (
城市,
所在国家,
国内游客数量,
排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--全国交通枢纽的数量最多的所属城市id,全国交通枢纽的平均拥堵指数的最大值
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,
交通枢纽站,
所属城市id,
所属省份,
平均拥堵指数,
周边路网平均速度(千米/时),
拥堵排名)
CREATE TABLE 旅游景点 (
词条id,
景点名称,
所属城市id,
平均拥堵指数,
周边路网平均速度(千米/时),
拥堵排名)
CREATE TABLE 全国热门景点 (
景点id,
日均接待游客数量,
日均外省游客数量,
热度排名)
CREATE TABLE 热门出境游城市 (
城市,
所在国家,
国内游客数量,
排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--全国交通枢纽的平均拥堵指数排名后3位的城市,全国交通枢纽的平均拥堵指数的平均值
SELECT### Response: select 所属城市id , avg ( 平均拥堵指数 ) 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,
城市,
受欢迎热度,
戏迷数量,
活动数量)
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 ( 戏迷数量 ) 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.
--戏剧数后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,
城市,
演出时间,
售出票数,
最高票价,
最低票价)
-- 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,
城市,
演出时间,
售出票数,
最高票价,
最低票价)
-- 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 城市 , 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,
城市id,
分店数量,
占地面积,
餐位数量,
员工数量)
CREATE TABLE 餐饮公司城市消费 (
公司id,
城市id,
总消费额,
人均消费额,
人气,
排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--城市的餐饮收入的总和排名后3的所属省份,城市的同比增长的总和
SELECT### Response: select 所属省份 , sum ( 同比增长 ) 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,
名称,
总部城市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 ( * ) 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.
--城市数倒数top3的省中,城市的餐饮收入的总和
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,
城市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,
城市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,
名称,
特性,
适合季节,
每100克热量,
每100克水分)
CREATE TABLE 省份 (
词条id,
名称,
气候,
所属区域)
CREATE TABLE 水果产地 (
水果id,
省份id,
是否特产,
年平均产量,
销售形式)
CREATE TABLE 水果销售城市 (
水果id,
原产省份id,
销往省份id,
年销售量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--拥有水果最少的前3特性中,水果的每100克热量的最小值
SELECT### Response: select 特性 , min ( 每100克热量 ) 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,
名称,
特性,
适合季节,
每100克热量,
每100克水分)
CREATE TABLE 省份 (
词条id,
名称,
气候,
所属区域)
CREATE TABLE 水果产地 (
水果id,
省份id,
是否特产,
年平均产量,
销售形式)
CREATE TABLE 水果销售城市 (
水果id,
原产省份id,
销往省份id,
年销售量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--水果的每100克热量平均值最大的特性,水果的每100克水分的总和
SELECT### Response: select 特性 , sum ( 每100克水分 ) from 水果 group by 特性 order by avg ( 每100克热量 ) desc limit 1. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 水果 (
词条id,
名称,
特性,
适合季节,
每100克热量,
每100克水分)
CREATE TABLE 省份 (
词条id,
名称,
气候,
所属区域)
CREATE TABLE 水果产地 (
水果id,
省份id,
是否特产,
年平均产量,
销售形式)
CREATE TABLE 水果销售城市 (
水果id,
原产省份id,
销往省份id,
年销售量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--水果的每100克热量平均值排名后5的特性,水果的每100克水分的总和
SELECT### Response: select 特性 , sum ( 每100克水分 ) from 水果 group by 特性 order by avg ( 每100克热量 ) asc limit 5. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 水果 (
词条id,
名称,
特性,
适合季节,
每100克热量,
每100克水分)
CREATE TABLE 省份 (
词条id,
名称,
气候,
所属区域)
CREATE TABLE 水果产地 (
水果id,
省份id,
是否特产,
年平均产量,
销售形式)
CREATE TABLE 水果销售城市 (
水果id,
原产省份id,
销往省份id,
年销售量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--水果的每100克热量平均值排名后5的特性,水果每100克水分的平均值
SELECT### Response: select 特性 , avg ( 每100克水分 ) from 水果 group by 特性 order by avg ( 每100克热量 ) asc limit 5. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 水果 (
词条id,
名称,
特性,
适合季节,
每100克热量,
每100克水分)
CREATE TABLE 省份 (
词条id,
名称,
气候,
所属区域)
CREATE TABLE 水果产地 (
水果id,
省份id,
是否特产,
年平均产量,
销售形式)
CREATE TABLE 水果销售城市 (
水果id,
原产省份id,
销往省份id,
年销售量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--水果的每100克热量总和最大的特性,水果的每100克水分的平均值
SELECT### Response: select 特性 , avg ( 每100克水分 ) from 水果 group by 特性 order by sum ( 每100克热量 ) 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,
到达站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 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,
到达站id,
出发时间,
到达时间)
CREATE TABLE 列车票价 (
日期,
列车id,
车票类型,
票价,
余票)
-- Using valid SQLite, answer the following questions for the tables provided above.
--火车站距机场距离的总和最小的3个所属城市,火车站距市中心距离的平均值
SELECT### Response: select 所属城市 , avg ( 距市中心距离 ) 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,
名称,
类型,
始发站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,
到达站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 ( 距机场距离 ) 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,
到达站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 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 各城市电视机售卖 (
城市,
所属省份,
电视机售卖量,
观看电视日平均用时)
-- Using valid SQLite, answer the following questions for the tables provided above.
--电视机型号的背光灯寿命平均值排名前5的产品定位,电视机型号定价的最大值
SELECT### Response: select 产品定位 , max ( 定价 ) 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,
平台,
售价,
最高价格,
最低价格,
售卖量,
用户评分)
CREATE TABLE 各城市电视机售卖 (
城市,
所属省份,
电视机售卖量,
观看电视日平均用时)
-- 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,
平台,
售价,
最高价格,
最低价格,
售卖量,
用户评分)
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 G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--G20峰会的数量最少的主办国,G20峰会的参加国家数量的平均值
SELECT### Response: select 主办国 , avg ( 参加国家数量 ) from G20峰会 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 G20峰会 (
词条id,
名称,
年份,
届次,
主办国,
主办城市,
参加国家数量)
CREATE TABLE 世界经济论坛 (
年份,
届次,
参加国家数量,
参加的元首人数,
参加总人数,
研讨会数量)
CREATE TABLE 世界物联网博览会 (
词条id,
名称,
年份,
高峰论坛数量,
参会嘉宾数,
参会企业数,
观展人数)
CREATE TABLE 中国国际进口博览会 (
词条id,
名称,
年份,
参加企业数,
意向成交额,
成交额增长率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--G20峰会的数量最多的主办国,G20峰会的参加国家数量的平均值
SELECT### Response: select 主办国 , avg ( 参加国家数量 ) from G20峰会 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,
朝代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 都城 , 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,
中文名,
所处朝代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.
--朝代的数量最少的都城,朝代的人口数量的最大值
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,
上一年号,
下一年号)
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,
中文名,
所处朝代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.
--朝代的数量最多的都城,朝代的人口数量的最大值
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 滴滴打车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
日订单数量,
人均打车次数,
平均等待时间)
CREATE TABLE 共享单车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
人均骑车次数,
人均骑车距离)
-- 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 滴滴打车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
日订单数量,
人均打车次数,
平均等待时间)
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. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 滴滴打车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
日订单数量,
人均打车次数,
平均等待时间)
CREATE TABLE 共享单车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
人均骑车次数,
人均骑车距离)
-- 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 滴滴打车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
日订单数量,
人均打车次数,
平均等待时间)
CREATE TABLE 共享单车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
人均骑车次数,
人均骑车距离)
-- 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 滴滴打车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
日订单数量,
人均打车次数,
平均等待时间)
CREATE TABLE 共享单车出行 (
季节,
是否工作日,
温度,
湿度,
风速,
人均骑车次数,
人均骑车距离)
-- 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,
路线名称,
旅行社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 出发城市 , 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,
路线名称,
旅行社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 出发城市 , sum ( 儿童价格 ) 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,
国家,
旅行天数,
景点数量)
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 ( 成人价格 ) 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,
路线名称,
旅行社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,
路线名称,
旅行社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,
资产规模,
利润合计,
管理费合计)
-- 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,
资产规模,
利润合计,
管理费合计)
-- 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,
资产规模,
利润合计,
管理费合计)
-- 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,
资产规模,
利润合计,
管理费合计)
-- 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,
资产规模,
利润合计,
管理费合计)
-- 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 运动员 (
词条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 劳伦斯获奖国家名单 (
国家,
获奖人性别,
获奖人数,
所占比例)
-- 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.
--劳伦斯获奖数量排名后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.
--劳伦斯获奖国家名单的获奖人数平均值排名后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)
CREATE TABLE 劳伦斯获奖国家名单 (
国家,
获奖人性别,
获奖人数,
所占比例)
-- 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,
到达站id,
出发时间,
到达时间)
CREATE TABLE 列车票价 (
日期,
列车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 火车站 (
词条id,
名称,
所属城市,
是否有地铁站,
距机场距离,
距汽车站距离,
距市中心距离)
CREATE TABLE 列车 (
词条id,
名称,
类型,
始发站id,
到达站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 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,
到达站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,
名称,
类型,
始发站id,
到达站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 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,
到达站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,
车展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,
站台模特,
热度排名)
-- 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,
车展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 车展 (
词条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,
名称,
所属公司,
最低价格,
最高价格,
代言人)
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 ( 最低价格 ) 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,
上映时间,
票价,
余票数量)
-- 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,
上映时间,
票价,
余票数量)
-- 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,
影院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,
影院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,
影院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,
名称,
位于城市,
所属省份,
年营业额,
国内排名,
世界排名)
-- 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,
名称,
位于城市,
所属省份,
年营业额,
国内排名,
世界排名)
-- Using valid SQLite, answer the following questions for the tables provided above.
--拥有最赚钱公司最少的5个城市,年营业额的平均值
SELECT### Response: select 位于城市 , avg ( 年营业额 ) 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,
名称,
位于城市,
所属省份,
年营业额,
国内排名,
世界排名)
-- 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,
名称,
位于城市,
所属省份,
年营业额,
国内排名,
世界排名)
-- 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 奢侈品用户在意维度分布 (
年龄段,
看中维度,
人数占比)
-- 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 奢侈品用户在意维度分布 (
年龄段,
看中维度,
人数占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--奢侈品购买人群的购买人数平均值最大的年龄段,消费额占比的最小值
SELECT### Response: select 年龄段 , min ( 消费额占比 ) 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 奢侈品渠道 (
奢侈品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 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 奢侈品用户在意维度分布 (
年龄段,
看中维度,
人数占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--奢侈品购买人群的购买人数总和排名后3的年龄段,奢侈品购买人群的人数占比的平均值
SELECT### Response: select 年龄段 , avg ( 人数占比 ) from 奢侈品购买人群 group by 年龄段 order by sum ( 购买人数 ) asc limit 3. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.