text2SQL
stringlengths 192
7.27k
|
---|
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 银行总部 (
词条id,
名称,
总部地点,
成立时间,
公司类型)
CREATE TABLE 年营业额 (
年份,
银行id,
营业额,
员工数,
世界五百强排名)
CREATE TABLE 城市 (
词条id,
名称,
所属省份,
所属区域)
CREATE TABLE 银行服务网点 (
银行id,
城市id,
建成数量,
规划数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个省份拥有城市最多
SELECT### Response: select 所属省份 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.
--哪3个省份拥有城市最少
SELECT### Response: select 所属省份 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,
省份,
销售量占比,
商家占比,
安全事件关注度)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个省份的网红食品总销售量占比最小
SELECT### Response: select 省份 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,
名称,
特性,
适合季节,
每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.
--哪种气候对应的省份最多
SELECT### Response: select 气候 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,
名称,
特性,
适合季节,
每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种气候对应的省份最少
SELECT### Response: select 气候 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,
人群,
使用占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个创始人创办公司最多
SELECT### Response: select 创始人 from 公司 group by 创始人 order by count ( * ) desc 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,
人群,
使用占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个创始人所创办公司年营业额总和最小
SELECT### Response: select 创始人 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 作者 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 作者 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,
平台,
售价,
最高价格,
最低价格,
售卖量,
用户评分)
CREATE TABLE 各城市电视机售卖 (
城市,
所属省份,
电视机售卖量,
观看电视日平均用时)
-- Using valid SQLite, answer the following questions for the tables provided above.
--市民观看电视每日平均用时加起来最少的3个省份是哪些
SELECT### Response: select 所属省份 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,
峰会id,
演讲主题,
论坛,
开始时间,
演讲时长)
CREATE TABLE 峰会赞助公司 (
峰会id,
公司,
赞助级别)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个峰会论坛的演讲总时长最长
SELECT### Response: select 论坛 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,
播放日期,
播放时间,
票价,
会员票价,
余票)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3种类型对应的电影最多
SELECT### Response: select 类型 from 电影 group by 类型 order by count ( * ) desc 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 类型 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 MVP记录 (
赛季,
球员id,
国籍,
所属球队)
CREATE TABLE 球队 (
词条id,
中文队名,
赛区,
所属联盟,
夺冠次数)
CREATE TABLE NBA总冠军 (
赛季,
球队id,
总教练)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个赛区拥有球队最少
SELECT### Response: select 赛区 from 球队 group by 赛区 order by count ( * ) 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 MVP记录 (
赛季,
球员id,
国籍,
所属球队)
CREATE TABLE 球队 (
词条id,
中文队名,
赛区,
所属联盟,
夺冠次数)
CREATE TABLE NBA总冠军 (
赛季,
球队id,
总教练)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个赛区夺冠总次数最多
SELECT### Response: select 赛区 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,
优惠活动,
配送费)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个平台id配送费加起来最多
SELECT### Response: select 平台id from 商家平台活动 group by 平台id order by sum ( 配送费 ) desc 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.
--哪个平台id的平均配送费最小
SELECT### Response: select 平台id from 商家平台活动 group by 平台id 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,
合作时间,
是否有电子银行)
CREATE TABLE 理财产品 (
产品,
公司id,
支持银行id,
年化收益率,
期限,
起投金额)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个城市拥有的银行最少
SELECT### Response: select 所属城市 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,
支持银行id,
年化收益率,
期限,
起投金额)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个城市拥有的银行最少
SELECT### Response: select 所属城市 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 学历 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,
加入队伍id,
参加比赛id,
成绩)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个学历对应的参加比赛的学生年龄加起来最小
SELECT### Response: select 学历 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,
影名,
语言,
类型,
豆瓣评分,
评价人数,
5星占比)
CREATE TABLE 一周口碑榜 (
电影id,
名次,
名次变化)
CREATE TABLE top10票房榜 (
电影id,
上映日期,
总票房,
制作预算)
CREATE TABLE top100电影 (
电影id,
名次,
点赞次数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪种对白语言对应的电影最多
SELECT### Response: select 语言 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星占比)
CREATE TABLE 一周口碑榜 (
电影id,
名次,
名次变化)
CREATE TABLE top10票房榜 (
电影id,
上映日期,
总票房,
制作预算)
CREATE TABLE top100电影 (
电影id,
名次,
点赞次数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3种对白语言对应的电影最少
SELECT### Response: select 语言 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 2018年具体赛事 (
赛事名称,
赛事类型id,
场馆id,
时间,
观众人数)
CREATE TABLE 2018年演唱会 (
词条id,
名称,
歌手,
场馆id,
时间,
最低票价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在2018年演唱会中,最低票价平均最高的前5歌手有哪些
SELECT### Response: select 歌手 from 2018年演唱会 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 2018年具体赛事 (
赛事名称,
赛事类型id,
场馆id,
时间,
观众人数)
CREATE TABLE 2018年演唱会 (
词条id,
名称,
歌手,
场馆id,
时间,
最低票价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在2018年演唱会中,最低票价平均最低的前3歌手有哪些
SELECT### Response: select 歌手 from 2018年演唱会 group by 歌手 order by avg ( 最低票价 ) 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,
房型,
早餐,
价格,
剩余房间数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪条地铁线到所有酒店的平均步行距离最大
SELECT### Response: select 地铁线路 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 地铁线路 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.
--哪3个国家拥有节日最多
SELECT### Response: select 国家 from 节日流行国家 group by 国家 order by count ( * ) desc 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.
--哪3个国家拥有节日最少
SELECT### Response: select 国家 from 节日流行国家 group by 国家 order by count ( * ) asc limit 3. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 房龄影响 (
城市,
房龄,
交易占比)
CREATE TABLE 电梯影响 (
城市,
是否带电梯,
平均成交周期,
平均带看次数)
CREATE TABLE 月供分布 (
城市,
月供段,
占比)
CREATE TABLE 购房者年龄分布 (
城市,
购房者年龄段,
占比)
CREATE TABLE 购房者性别分布 (
城市,
购房者性别,
占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个城市购房者占比总和最大
SELECT### Response: select 城市 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 电梯影响 (
城市,
是否带电梯,
平均成交周期,
平均带看次数)
CREATE TABLE 月供分布 (
城市,
月供段,
占比)
CREATE TABLE 购房者年龄分布 (
城市,
购房者年龄段,
占比)
CREATE TABLE 购房者性别分布 (
城市,
购房者性别,
占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个城市购房者平均占比最大
SELECT### Response: select 城市 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,
书名,
讲述名人)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪些战事对应的描述书籍最少
SELECT### Response: select 描述战事 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 描述战事 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 2018年具体赛事 (
赛事名称,
赛事类型id,
场馆id,
时间,
观众人数)
CREATE TABLE 2018年演唱会 (
词条id,
名称,
歌手,
场馆id,
时间,
最低票价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个城市建立的体育场馆最多
SELECT### Response: select 所在城市 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 2018年具体赛事 (
赛事名称,
赛事类型id,
场馆id,
时间,
观众人数)
CREATE TABLE 2018年演唱会 (
词条id,
名称,
歌手,
场馆id,
时间,
最低票价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个城市所建的体育场总的占地面积最大
SELECT### Response: select 所在城市 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,
名称,
演出时长,
剧目亮点,
演出团队,
导演,
VIP票余量,
888票价余量,
688票价余量,
488票价余量,
288票价余量,
188票价余量,
100票价余量)
CREATE TABLE 话剧一周上映 (
话剧id,
上映日期,
时间段,
演出场馆)
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 城市 from 上映城市 group by 城市 order by count ( * ) desc limit 3. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 话剧 (
词条id,
名称,
演出时长,
剧目亮点,
演出团队,
导演,
VIP票余量,
888票价余量,
688票价余量,
488票价余量,
288票价余量,
188票价余量,
100票价余量)
CREATE TABLE 话剧一周上映 (
话剧id,
上映日期,
时间段,
演出场馆)
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 城市 from 上映城市 group by 城市 order by count ( * ) 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 劳伦斯获奖国家名单 (
国家,
获奖人性别,
获奖人数,
所占比例)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个性别拥有运动员最少
SELECT### Response: select 性别 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 性别 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,
合作课程数量)
CREATE TABLE 学校的开源课程 (
词条id,
开源课程名称,
课程id,
学校id,
课时,
主讲教师)
CREATE TABLE 平台课程 (
开源课程id,
平台id,
是否直播,
课程时长,
价格)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个专业对应的课程数最少
SELECT### Response: select 所属专业 from 课程 group by 所属专业 order by count ( * ) 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,
学校id,
合作课程数量)
CREATE TABLE 学校的开源课程 (
词条id,
开源课程名称,
课程id,
学校id,
课时,
主讲教师)
CREATE TABLE 平台课程 (
开源课程id,
平台id,
是否直播,
课程时长,
价格)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个专业对应的课程数最多
SELECT### Response: select 所属专业 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最具价值品牌排名,
全球酒店集团300强排名)
CREATE TABLE 酒店 (
词条id,
名称,
酒店地址,
开业时间,
酒店星级,
所属集团id,
客房数量,
大厅容纳人数)
CREATE TABLE 机场 (
词条id,
名称,
所属城市,
类型)
CREATE TABLE 火车站 (
词条id,
名称,
所属城市,
类型)
CREATE TABLE 酒店距离机场路程 (
酒店id,
机场id,
距离,
打车费用,
高峰用时,
平时用时)
CREATE TABLE 酒店距离火车站路程 (
酒店id,
火车站id,
公交线路数,
地铁线路数,
地铁用时)
CREATE TABLE 酒店活动费用 (
酒店id,
活动类型,
人数规模,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个城市拥有的火车站最少
SELECT### Response: select 所属城市 from 火车站 group by 所属城市 order by count ( * ) asc limit 3. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 酒店集团 (
词条id,
名称,
总部所在省,
上级主管部门,
酒店数量,
客房数量,
省排名,
中国500最具价值品牌排名,
全球酒店集团300强排名)
CREATE TABLE 酒店 (
词条id,
名称,
酒店地址,
开业时间,
酒店星级,
所属集团id,
客房数量,
大厅容纳人数)
CREATE TABLE 机场 (
词条id,
名称,
所属城市,
类型)
CREATE TABLE 火车站 (
词条id,
名称,
所属城市,
类型)
CREATE TABLE 酒店距离机场路程 (
酒店id,
机场id,
距离,
打车费用,
高峰用时,
平时用时)
CREATE TABLE 酒店距离火车站路程 (
酒店id,
火车站id,
公交线路数,
地铁线路数,
地铁用时)
CREATE TABLE 酒店活动费用 (
酒店id,
活动类型,
人数规模,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个城市拥有的火车站最多
SELECT### Response: select 所属城市 from 火车站 group by 所属城市 order by count ( * ) desc limit 3. |
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 作者 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,
名称,
作者,
作者国籍,
豆瓣评分,
评价人数,
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 作者 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,
上线品类数量,
促销品类数量,
平均折扣,
交易额,
占全年销售额比例)
CREATE TABLE 电商活动交易额 (
电商平台id,
活动日,
参加活动商家数量,
促销商品数量,
交易额)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个国家开设的商家实体店总数最少
SELECT### Response: select 国家 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,
名称,
总部所在省,
上级主管部门,
酒店数量,
客房数量,
省排名,
中国500最具价值品牌排名,
全球酒店集团300强排名)
CREATE TABLE 酒店 (
词条id,
名称,
酒店地址,
开业时间,
酒店星级,
所属集团id,
客房数量,
大厅容纳人数)
CREATE TABLE 机场 (
词条id,
名称,
所属城市,
类型)
CREATE TABLE 火车站 (
词条id,
名称,
所属城市,
类型)
CREATE TABLE 酒店距离机场路程 (
酒店id,
机场id,
距离,
打车费用,
高峰用时,
平时用时)
CREATE TABLE 酒店距离火车站路程 (
酒店id,
火车站id,
公交线路数,
地铁线路数,
地铁用时)
CREATE TABLE 酒店活动费用 (
酒店id,
活动类型,
人数规模,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪种活动类型对应的人数平均规模最小
SELECT### Response: select 活动类型 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,
公司名称,
总部地点,
成立时间,
IATA代码,
ICAO代码,
年营业额,
员工数)
CREATE TABLE 航空公司入驻机场 (
航空公司id,
机场id,
城市,
航点数)
CREATE TABLE 机场吞吐量 (
年份,
机场id,
旅客吞吐量,
客运航线数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪种机场类型对应的机场最多
SELECT### Response: select 机场类型 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,
公司名称,
总部地点,
成立时间,
IATA代码,
ICAO代码,
年营业额,
员工数)
CREATE TABLE 航空公司入驻机场 (
航空公司id,
机场id,
城市,
航点数)
CREATE TABLE 机场吞吐量 (
年份,
机场id,
旅客吞吐量,
客运航线数量)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪2种机场类型对应的机场最少
SELECT### Response: select 机场类型 from 机场 group by 机场类型 order by count ( * ) asc limit 2. |
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,
会员性别,
25~30岁会员数量,
31~35岁会员数量,
36~40岁会员数量,
41~45岁会员数量,
45~55岁会员数量)
CREATE TABLE 会员城市分布 (
软件id,
会员性别,
城市,
会员数量,
成功率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在所有相亲软件中,哪个性别对应的会员总数最多
SELECT### Response: select 会员性别 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,
上线时间,
官网,
百度权重,
PR值,
反链数,
综合分数,
总排名,
所在省排名,
电商网站排名)
CREATE TABLE 活动日 (
词条id,
活动名称,
时间,
发明公司id)
CREATE TABLE 网站活动收入 (
网站id,
活动id,
年份,
下单金额,
同比增长)
CREATE TABLE 网站打假 (
网站id,
年份,
315提名次数,
买家打假次数,
同比增长)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个省份拥有的公司最多
SELECT### Response: select 所属省份 from 公司 group by 所属省份 order by count ( * ) desc 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,
上线时间,
官网,
百度权重,
PR值,
反链数,
综合分数,
总排名,
所在省排名,
电商网站排名)
CREATE TABLE 活动日 (
词条id,
活动名称,
时间,
发明公司id)
CREATE TABLE 网站活动收入 (
网站id,
活动id,
年份,
下单金额,
同比增长)
CREATE TABLE 网站打假 (
网站id,
年份,
315提名次数,
买家打假次数,
同比增长)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个省份拥有的公司最少
SELECT### Response: select 所属省份 from 公司 group by 所属省份 order by count ( * ) 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 作者 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 作者 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.
--哪3个省份登陆的台风登陆总强度最高
SELECT### Response: select 省份 from 台风影响的中国省份 group by 省份 order by sum ( 登陆强度 ) desc 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,
来自电视剧id)
CREATE TABLE 历届获奖影视剧名单 (
年份,
届数,
电视剧奖id,
具体奖项,
获奖电视剧id)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3种类型对应的电视剧最少
SELECT### Response: select 类型 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,
颁奖地点)
CREATE TABLE 历届获奖演职员名单 (
年份,
届数,
电视剧奖id,
具体奖项,
获奖人id,
来自电视剧id)
CREATE TABLE 历届获奖影视剧名单 (
年份,
届数,
电视剧奖id,
具体奖项,
获奖电视剧id)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪种类型对应的电视剧总集数最多
SELECT### Response: select 类型 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,
名称,
类型,
所在城市,
所属省份,
是否985院校,
是否211院校,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪)
CREATE TABLE 学校毕业人数 (
学校id,
学历,
2016届人数,
2014届人数,
2012届人数)
CREATE TABLE 专业 (
词条id,
名称,
学科类型,
冷热门)
CREATE TABLE 学校专业 (
专业id,
学校id,
是否重点专业)
CREATE TABLE 专业就业情况 (
专业id,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪,
2016届就业率,
2014届就业率,
2012届就业率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪种学校类型在2016年平均月薪总和最低
SELECT### Response: select 类型 from 学校 group by 类型 order by sum ( 2016届平均月薪 ) asc limit 1. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 学校 (
词条id,
名称,
类型,
所在城市,
所属省份,
是否985院校,
是否211院校,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪)
CREATE TABLE 学校毕业人数 (
学校id,
学历,
2016届人数,
2014届人数,
2012届人数)
CREATE TABLE 专业 (
词条id,
名称,
学科类型,
冷热门)
CREATE TABLE 学校专业 (
专业id,
学校id,
是否重点专业)
CREATE TABLE 专业就业情况 (
专业id,
2016届平均月薪,
2014届平均月薪,
2012届平均月薪,
2016届就业率,
2014届就业率,
2012届就业率)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪种学校类型在2016年平均月薪总和最高
SELECT### Response: select 类型 from 学校 group by 类型 order by sum ( 2016届平均月薪 ) 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.
--哪2个国家拥有的篮球运动员平均身高最低
SELECT### Response: select 国籍 from 篮球运动员 group by 国籍 order by avg ( 身高 ) asc limit 2. |
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 国籍 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.
--哪3个歌手开设的演唱会最少
SELECT### Response: select 歌手 from 演唱会 group by 歌手 order by count ( * ) 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,
演出日期,
开始时间,
票数,
售出数量,
最低票价,
最高票价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个歌手举办的演唱会最多
SELECT### Response: select 歌手 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 了解渠道 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 奢侈品用户在意维度分布 (
年龄段,
看中维度,
人数占比)
-- Using valid SQLite, answer the following questions for the tables provided above.
--了解奢侈品的所有渠道中,哪5种渠道人数平均占比最小
SELECT### Response: select 了解渠道 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 2018年奖牌榜 (
排名,
国家,
金牌数,
银牌数,
铜牌数,
奖牌总数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪5个城市举办的冬奥会中平均参加比赛国家最多
SELECT### Response: select 举办城市 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 2018年奖牌榜 (
排名,
国家,
金牌数,
银牌数,
铜牌数,
奖牌总数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个城市举办的冬奥会中平均参加比赛国家最少
SELECT### Response: select 举办城市 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,
名称,
创始人,
所属国家,
世界500强排名)
CREATE TABLE 笔记本产品 (
词条id,
名称,
代言人,
公司id)
CREATE TABLE 笔记本型号系列 (
词条id,
名称,
屏幕尺寸,
分辨率,
内存容量,
硬盘容量,
CPU主频,
CPU型号,
售价,
上市时间,
产品id)
CREATE TABLE 笔记本型号平台售卖 (
型号id,
平台,
售卖量,
评分,
最好评价,
最差评价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个创始人创办的笔记本公司最少
SELECT### Response: select 创始人 from 笔记本公司 group by 创始人 order by count ( * ) 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,
名称,
代言人,
公司id)
CREATE TABLE 笔记本型号系列 (
词条id,
名称,
屏幕尺寸,
分辨率,
内存容量,
硬盘容量,
CPU主频,
CPU型号,
售价,
上市时间,
产品id)
CREATE TABLE 笔记本型号平台售卖 (
型号id,
平台,
售卖量,
评分,
最好评价,
最差评价)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个创始人创办的笔记本公司最高
SELECT### Response: select 创始人 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 毕业院校 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 毕业院校 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 产品定位 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,
名称,
产品定位,
屏幕尺寸,
屏幕比例,
分辨率,
背光灯寿命,
定价,
品牌id)
CREATE TABLE 电视机平台售卖 (
型号id,
平台,
售价,
最高价格,
最低价格,
售卖量,
用户评分)
CREATE TABLE 各城市电视机售卖 (
城市,
所属省份,
电视机售卖量,
观看电视日平均用时)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪2种定位对应的电视机背光灯平均寿命最高
SELECT### Response: select 产品定位 from 电视机型号 group by 产品定位 order by avg ( 背光灯寿命 ) desc limit 2. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 足球运动员 (
词条id,
中文名,
国籍,
出生地,
出生日期,
身高,
体重,
专业特点,
场上位置,
惯用脚)
CREATE TABLE 欧冠赛事 (
赛季,
球员id,
所属球队,
出场次数,
进球次数,
助攻次数)
CREATE TABLE 欧冠最佳球员 (
届数,
年份,
最佳球员id,
国家,
场上位置,
球队成绩)
CREATE TABLE 欧冠最佳射手 (
届数,
年份,
最佳射手id,
国家,
场上位置,
进球数)
CREATE TABLE 运动员欧冠出场次数 (
名次,
出场次数,
运动员id,
国家,
场上位置)
-- Using valid SQLite, answer the following questions for the tables provided above.
--在欧冠最佳射手中,哪3个国家的进球总数最多
SELECT### Response: select 国家 from 欧冠最佳射手 group by 国家 order by sum ( 进球数 ) desc 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 统计平台 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.
--哪5种游戏发行形式对应的平均收益额最低
SELECT### Response: select 发行形式 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.
--哪种游戏发行形式对应的总收益额最高
SELECT### Response: select 发行形式 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,
季度,
销售量,
销售量增长)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个季度所有产品平均销量最低
SELECT### Response: select 季度 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,
名称,
所属公司id,
售价,
排名,
上升名次)
CREATE TABLE 产品销售 (
产品id,
季度,
销售量,
销售量增长)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个季度所有产品总销量最高
SELECT### Response: select 季度 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 专业 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,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个驾照类型拥有的班型最少
SELECT### Response: select 驾照类型 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 驾照类型 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 火星探测国家 (
探测器,
发射时间,
国家,
结果)
CREATE TABLE 月球探测国家 (
飞行器,
时间,
国家,
有无航天员,
探测目的)
CREATE TABLE 载人飞船 (
飞船名称,
发射时间,
发射数量,
国家,
航天员数量,
航天员出舱时间)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个导演执导的行星类相关电影豆瓣总评分最高
SELECT### Response: select 导演 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 火星探测国家 (
探测器,
发射时间,
国家,
结果)
CREATE TABLE 月球探测国家 (
飞行器,
时间,
国家,
有无航天员,
探测目的)
CREATE TABLE 载人飞船 (
飞船名称,
发射时间,
发射数量,
国家,
航天员数量,
航天员出舱时间)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个导演执导的行星类相关电影豆瓣平均评分最低
SELECT### Response: select 导演 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,
歌曲名称,
音乐人id,
播放次数,
下载次数)
CREATE TABLE 歌单 (
词条id,
歌单名称,
类型,
歌曲数量,
收藏次数,
播放次数)
CREATE TABLE 歌曲歌单 (
歌曲id,
歌单id)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪种类型对应的歌单最少
SELECT### Response: select 类型 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 类型 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 2018年奖牌榜 (
排名,
国家,
金牌数,
银牌数,
铜牌数,
奖牌总数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个赞助商赞助的奥运会届数最多
SELECT### Response: select 赞助商名称 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 2018年奖牌榜 (
排名,
国家,
金牌数,
银牌数,
铜牌数,
奖牌总数)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个赞助商赞助的奥运会届数最少
SELECT### Response: select 赞助商名称 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,
同食益处,
推荐做法)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪2种相克原因对应的相克食物对最少
SELECT### Response: select 原因 from 相克食物 group by 原因 order by count ( * ) asc limit 2. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 食物 (
词条id,
名称,
功效)
CREATE TABLE 相克食物 (
食物id,
相克食物id,
原因,
是否致命)
CREATE TABLE 互补食物 (
食物id,
互补食物id,
同食益处,
推荐做法)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪2种相克原因对应的相克食物对最多
SELECT### Response: select 原因 from 相克食物 group by 原因 order by count ( * ) desc limit 2. |
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 平台 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 平台 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)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪2个国家的建筑师出品作品总数最高
SELECT### Response: select 国籍 from 建筑师 group by 国籍 order by sum ( 作品数量 ) desc limit 2. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 建筑奖项 (
词条id,
名称,
发起时间,
发起人,
称号,
总奖金,
评选间隔年数,
举办届数)
CREATE TABLE 建筑奖各国名单 (
奖项id,
国家,
数量)
CREATE TABLE 建筑师 (
词条id,
姓名,
国籍,
毕业院校,
作品数量)
CREATE TABLE 普利兹克奖获奖名单 (
年份,
届数,
获奖人id,
国籍)
CREATE TABLE 阿卡汗建筑奖获奖名单 (
届数,
获奖建筑名称,
位于城市,
位于国家,
设计者id)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个国家拥有建筑师最多
SELECT### Response: select 国籍 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 卫视综艺节目 (
卫视,
节目名,
日期,
播放时间,
期数)
CREATE TABLE 央视栏目 (
频道,
栏目名,
类型,
日期,
播放时间)
CREATE TABLE 付费栏目 (
频道,
栏目名,
类型,
日期,
播放时间,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个央视频道拥有的栏目最少
SELECT### Response: select 频道 from 央视栏目 group by 频道 order by count ( * ) limit 1. |
Below is an instruction that describes a task. Write a MySQL query that appropriately completes the request. ### Instruction: CREATE TABLE 卫视电视剧 (
卫视,
电视剧名,
日期,
播放时间,
集数)
CREATE TABLE 卫视综艺节目 (
卫视,
节目名,
日期,
播放时间,
期数)
CREATE TABLE 央视栏目 (
频道,
栏目名,
类型,
日期,
播放时间)
CREATE TABLE 付费栏目 (
频道,
栏目名,
类型,
日期,
播放时间,
费用)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪个央视频道拥有的栏目最多
SELECT### Response: select 频道 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 城市 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 城市 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,
名称,
所属省份,
气候条件,
景点数量,
5A级景点数量)
CREATE TABLE 国家森林城市 (
词条id,
名称,
所属省份,
森林覆盖率,
森林公园数量)
CREATE TABLE 国家中心城市 (
词条id,
名称,
所属省份,
排名,
GDP,
GDP同比增速)
CREATE TABLE 世界一线城市 (
词条id,
名称,
所属省份,
世界排名,
户籍人口,
常住流动人口)
-- Using valid SQLite, answer the following questions for the tables provided above.
--哪3个省拥有世界一线城市最少
SELECT### Response: select 所属省份 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,
名称,
所属省份,
气候条件,
景点数量,
5A级景点数量)
CREATE TABLE 国家森林城市 (
词条id,
名称,
所属省份,
森林覆盖率,
森林公园数量)
CREATE TABLE 国家中心城市 (
词条id,
名称,
所属省份,
排名,
GDP,
GDP同比增速)
CREATE TABLE 世界一线城市 (
词条id,
名称,
所属省份,
世界排名,
户籍人口,
常住流动人口)
-- Using valid SQLite, answer the following questions for the tables provided above.
--拥有世界一线城市最多的省份是哪个
SELECT### Response: select 所属省份 from 世界一线城市 group by 所属省份 order by count ( * ) desc limit 1. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.