jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 同时有“大型商场”和“便利店”的地区叫什么名字？

SQL: SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  "大型商场" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  "便利店"
问题: 所有大学的总入学人数是多少？

SQL: SELECT sum(enr) FROM College
问题: 有多少学生进入大学？

SQL: SELECT sum(enr) FROM College
问题: 平均入学人数是多少？

SQL: SELECT avg(enr) FROM College
问题: 每个大学平均有多少学生入学？

SQL: SELECT avg(enr) FROM College
问题: 一共有多少所大学？

SQL: SELECT count(*) FROM College
问题: 有多少所不同的大学？

SQL: SELECT count(*) FROM College
问题: 有多少球员有超过1000小时的训练？

SQL: SELECT count(*) FROM Player WHERE HS  >  1000
问题: 有多少不同的球员训练超过1000小时？

SQL: SELECT count(*) FROM Player WHERE HS  >  1000
问题: 有多少大学有超过15000名学生？

SQL: SELECT count(*) FROM College WHERE enr  >  15000
问题: 学生人数超过15000的大学数量是多少？

SQL: SELECT count(*) FROM College WHERE enr  >  15000
问题: 所有运动员的平均训练时间是多少？

SQL: SELECT avg(HS) FROM Player
问题: 球员平均训练多少小时？

SQL: SELECT avg(HS) FROM Player
问题: 找出小时数低于1500的球员的名字和训练时间。

SQL: SELECT pName ,  HS FROM Player WHERE HS  <  1500
问题: 训练时间少于1500小时的每个运动员的姓名和训练时间是多少？

SQL: SELECT pName ,  HS FROM Player WHERE HS  <  1500
问题: 有多少不同的大学参加选拔赛？

SQL: SELECT count(DISTINCT cName) FROM tryout
问题: 选拔赛中有多少所不同的大学？

SQL: SELECT count(DISTINCT cName) FROM tryout
问题: 选拔赛中球员的不同的位置是什么？

SQL: SELECT count(DISTINCT pPos) FROM tryout
问题: 有多少不同的球员的位置？

SQL: SELECT count(DISTINCT pPos) FROM tryout
问题: 选拔赛后有多少学生被录取的“确定”？

SQL: SELECT count(*) FROM tryout WHERE decision  =  '确定'
问题: 有多少学生从选拔赛中得到了录取的“确定”？

SQL: SELECT count(*) FROM tryout WHERE decision  =  '确定'
问题: 有多少学生担任“守门员”的角色？

SQL: SELECT count(*) FROM tryout WHERE pPos  =  '守门员'
问题: 作为“守门员”的学生人数是多少？

SQL: SELECT count(*) FROM tryout WHERE pPos  =  '守门员'
问题: 找出所有球员的最大，平均和最少训练时间。

SQL: SELECT avg(HS) ,  max(HS) ,  min(HS) FROM Player
问题: 平均、最大和最小训练时间是多少？

SQL: SELECT avg(HS) ,  max(HS) ,  min(HS) FROM Player
问题: 在“河北”省的平均入学率是多少？

SQL: SELECT avg(enr) FROM College WHERE state  =  '河北'
问题: “河北”省高校学生平均入学人数是多少？

SQL: SELECT avg(enr) FROM College WHERE state  =  '河北'
问题: 训练时间在500到1500之间的球员的名字是什么？

SQL: SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500
问题: 在500到1500小时之间有训练的球员的名字是什么？

SQL: SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500
问题: 找到那些名字包含字母“a”的球员。

SQL: SELECT DISTINCT pName FROM Player WHERE pName LIKE 'a'
问题: 谁的名字包含字母“a”的玩家？

SQL: SELECT DISTINCT pName FROM Player WHERE pName LIKE 'a'
问题: 查找名称，招生规模大于10000，地点在“江苏”省的大学。

SQL: SELECT cName ,  enr FROM College WHERE enr  >  10000 AND state = "江苏"
问题: “江苏”省有10000多学生入学的大学的名字和招生号码是多少？

SQL: SELECT cName ,  enr FROM College WHERE enr  >  10000 AND state = "江苏"
问题: 按招生号升序列出关于大学的信息。

SQL: SELECT * FROM College ORDER BY enr
问题: 按招生号升序列出关于大学的信息有哪些？

SQL: SELECT * FROM College ORDER BY enr
问题: 按大学名称排序，列出招生人数超过18000人的大学的名称。

SQL: SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName
问题: 按字母顺序排列的招生人数超过18000人的每所大学叫什么名字？

SQL: SELECT cName FROM College WHERE enr  >  18000 ORDER BY cName
问题: 按照训练时间的降序且卡片为“确定”的球员的姓名。

SQL: SELECT pName FROM Player WHERE yCard  =  '确定' ORDER BY HS DESC
问题: 按训练小时数递减顺序且收到卡片的运动员叫什么名字？

SQL: SELECT pName FROM Player WHERE yCard  =  '确定' ORDER BY HS DESC
问题: 按字母顺序查找参与选拔赛的不同大学的名称。

SQL: SELECT DISTINCT cName FROM tryout ORDER BY cName
问题: 按字母顺序参加选拔赛的大学名称有哪些不同？

SQL: SELECT DISTINCT cName FROM tryout ORDER BY cName
问题: 选拔赛中哪些球员最受欢迎？

SQL: SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1
问题: 选拔赛中最受欢迎的位置是什么？

SQL: SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1
问题: 按数量递减查找每所大学参加选拔赛的学生人数。

SQL: SELECT count(*) ,  cName FROM tryout GROUP BY cName ORDER BY count(*) DESC
问题: 有多少学生参加了每一所大学的选拔赛？

SQL: SELECT count(*) ,  cName FROM tryout GROUP BY cName ORDER BY count(*) DESC
问题: 学生在不同的位置上花费的最短时间是多少？

SQL: SELECT min(T2.HS) ,   T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID GROUP BY T1.pPos
问题: 每一个职位，学生实习的最低时间是多少？

SQL: SELECT min(T2.HS) ,   T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID GROUP BY T1.pPos
问题: 规模前3大学校的名字是什么？

SQL: SELECT cName FROM college ORDER BY enr DESC LIMIT 3
问题: 有前3大规模班级的学校名称是什么？

SQL: SELECT cName FROM college ORDER BY enr DESC LIMIT 3
问题: 每个省招生人数最少的学校叫什么名字？

SQL: SELECT cName ,  state ,  min(enr) FROM college GROUP BY state
问题: 每个省招生规模最小的学校叫什么名字？

SQL: SELECT cName ,  state ,  min(enr) FROM college GROUP BY state
问题: 找到大学生参加选拔赛的省。

SQL: SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName
问题: 学生参加选拔赛的不同的省是什么？

SQL: SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName
问题: 找一些有大学生参加试行的省，他们的决定是肯定的。

SQL: SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  '确定'
问题: 学生成功尝试的状态有哪些？

SQL: SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  '确定'
问题: 找出在选拔赛的决定是“确定”的学生的名字和大学。

SQL: SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定'
问题: 所有在选拔赛中得到“确定”的选手的名字是什么？他们的大学叫什么名字？

SQL: SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定'
问题: 按字母顺序排序找出所有参加选拔赛的学生的名字。

SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName
问题: 所有按字母顺序参加选拔赛的学生的名字是什么？

SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName
问题: 找出选拔赛决定是“确定”的学生的名字和时间。

SQL: SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定'
问题: 每个在试用中得到“确定”的学生的姓名和练习时间是多少？

SQL: SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定'
问题: 找出那些有学生在选拔赛中打“前锋”位置的大学的所在省。

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '前锋'
问题: 那些在选拔赛中是“前锋”职位的学生所在的学校在那些省？

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '前锋'
问题: 找出在选拔赛中获得“确定”的“前锋”位置的学生的名字。

SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定' AND T2.pPos  =  '前锋'
问题: 所有成功申请“前锋”职位的学生都叫什么名字？

SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定' AND T2.pPos  =  '前锋'
问题: 找到“小刚”所就读的大学的省份。

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  '小刚'
问题: “小刚”所在的大学是哪一个省？

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  '小刚'
问题: 找出学生的选拔赛决定是“确定”的平均和最长时间。

SQL: SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定'
问题: 参与团队练习的学生平均和最长练习时间是多少？

SQL: SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '确定'
问题: 找出选拔赛决定为“否定”的学生的平均小时数。

SQL: SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '否定'
问题: 被“否定”的学生平均花多少时间练习？

SQL: SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  '否定'
问题: 不同位置上培训时间超过1000小时的学生的最长训练时间是多少？

SQL: SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos
问题: 对于每个位置，超过1000小时训练的学生最多的训练时间是多少？

SQL: SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos
问题: 哪些大学的名字是从名字是“东”开始试训球员的？

SQL: SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE '东'
问题: 从名字字母是“东”开始试训球员的大学是那些？

SQL: SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE '东'
问题: 哪个大学有哪个学生是在选拔赛中获胜的“守门员”。

SQL: SELECT cName FROM  tryout WHERE decision  =  '确定' AND pPos  =  '守门员'
问题: 哪所大学有学生以“守门员”的身份让球队成功？

SQL: SELECT cName FROM  tryout WHERE decision  =  '确定' AND pPos  =  '守门员'
问题: 找出来自最大规格大学的选拔球员的名字。

SQL: SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)
问题: 来自最大大学的所有选拔参与者的名字是什么？

SQL: SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)
问题: 在选呗赛制有学生被“接受”学校所在的省份和招生情况如何？

SQL: SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  '确定'
问题: 有多少学生在试用期间被“接受”且这些大学在哪些省？

SQL: SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  '确定'
问题: 请查找在“江苏”规模超过15000所或“山东”省注册人数少于13000人的大学的名称。

SQL: SELECT cName FROM College WHERE enr  <  13000 AND state = "山东" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = "江苏"
问题: 在“江苏”规模超过15000所或“山东”省注册人数少于13000人的大学的名称是什么？

SQL: SELECT cName FROM College WHERE enr  <  13000 AND state = "山东" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = "江苏"
问题: 找出有学生在“守门员”和“中场”位置踢球的学校的名字。

SQL: SELECT cName FROM  tryout WHERE pPos  =  '守门员' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  '中场'
问题: 那些让学生们在试训中以“守门员”位置和“中场”位置的学校叫什么名字？

SQL: SELECT cName FROM  tryout WHERE pPos  =  '守门员' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  '中场'
问题: 找出一些大学生在“守门员”和“中场”位置踢球的学校所在的省名。

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '守门员' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '中场'
问题: 那些让一些学生担任“守门员”和“中场”位置学校所在的省叫什么名字？

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '守门员' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '中场'
问题: 有多少学校的学生在“守门员”和“中场”位置比赛？

SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  '守门员' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  '中场')
问题: 有多少学校有学生既在“守门员”位置又在“中场”位置比赛？

SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  '守门员' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  '中场')
问题: 找出学校拥有的球员在“中场”位置但不在“守门员”位置的学校的名字。

SQL: SELECT cName FROM  tryout WHERE pPos  =  '中场' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  '守门员'
问题: 一些球员在“中场”位置，但没有“守门员”位置的学校名称是什么？

SQL: SELECT cName FROM  tryout WHERE pPos  =  '中场' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  '守门员'
问题: 找出一些大学生在“中场”位置打球，但“守门员”位置不打球的所在学校的省名。

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '中场' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '守门员'
问题: 有哪些学校所在省的大学生在“中场”位置打球，但没有“守门员”位置的球员？

SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '中场' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '守门员'
问题: 有多少省有部分大学的学生生打“中场”位置，但没有球员在“守门员”位置。

SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '中场' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '守门员')
问题: 有学生在“中场”位置而不是“守门员”位置打球的大学所在的省的数目是多少？

SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '中场' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  '守门员')
问题: 找到那些招生人数少于最大规模招生的大学所在的省。

SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
问题: 那些招生人数比其他大学少的大学所在的省是什么？

SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
问题: 查找在“河北”省注册人数比某些（至少一个）大学大的学校的名称。

SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  '河北')
问题: 那些比“河北”省至少一所大学大的大学叫什么名字？

SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  '河北')
问题: 查找所有招生人数比“河北”省所有大学都多的大学的名字。

SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  '河北')
问题: 查找所有招生人数比“河北”省所有大学都多的大学的名字？

SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  '河北')
问题: 没有“守门员”就读的学校的总入学人数是多少？

SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "守门员")
问题: 入学没有任何“守门员”的学校的学生总数是多少？

SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "守门员")
问题: 有多少省的大学入学率高于平均入学率？

SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
问题: 有多少省拥有人数比平均大学人数更大的大学？

SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
问题: 有多少省的大学入学率低于平均入学率？

SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
问题: 有多少省的大学入学比率比平均学校的入学规模小？

SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
问题: 有多少设备？

SQL: SELECT count(*) FROM device
问题: 计算设备的数量。

SQL: SELECT count(*) FROM device
问题: 列出按字母降序排列的设备的载体。

SQL: SELECT Carrier FROM device ORDER BY Carrier ASC
问题: 按字母顺序排列的设备不同的载体有什么？

SQL: SELECT Carrier FROM device ORDER BY Carrier ASC
问题: 哪些设备的运营商软件平台不是“安卓”？

SQL: SELECT Carrier FROM device WHERE Software_Platform != '安卓'
问题: 返回没有“安卓”的设备运营商作为他们的软件平台。

SQL: SELECT Carrier FROM device WHERE Software_Platform != '安卓'
问题: 按开店年度升序排列的名称是什么？

SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year ASC
问题: 按开业年度升序排序返回店铺的名称。

SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year ASC
问题: 库存的平均数量是多少？

SQL: SELECT avg(Quantity) FROM stock
问题: 给出库存的平均数量。

SQL: SELECT avg(Quantity) FROM stock
问题: 按名称的字母升序排列的商店的名称和位置是什么？

SQL: SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC
问题: 返回按名称字母顺序排列的商店名称和地点。

SQL: SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC
问题: 设备有多少种不同的软件平台？

SQL: SELECT count(DISTINCT Software_Platform) FROM device
问题: 计算不同软件平台的数量。

SQL: SELECT count(DISTINCT Software_Platform) FROM device
问题: 列出一个名为“苹果”的商店的开店年份和日期。

SQL: SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  "苹果"
问题: “苹果”店的开店日期和年份是多少？

SQL: SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  "苹果"
问题: 列出最近一年开业的商店名称。

SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1
问题: 最近一年开张的商店的店名是什么？

SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1
问题: 展示商店名称和他们所拥有的设备的载体。

SQL: SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID
问题: 设备商店的名称是什么以及他们携带设备库存的载体是什么？

SQL: SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID
问题: 显示商店里有不止一种设备库存的商店名称。

SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1
问题: 有多于一种设备库存的商店的名字叫什么？

SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1
问题: 显示拥有最多种类设备库存的商店名称。

SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1
问题: 有设备的库存种类最多的商店叫什么名字？

SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示库存量最大的商店的名称。

SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1
问题: 库存量最大的商店的名称是什么？

SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1
问题: 显示不同的软件平台以及每个平台相应的设备数量。

SQL: SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform
问题: 设备的不同软件平台是什么，每个平台对应的设备有多少个？

SQL: SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform
问题: 请以设备计数的递减顺序显示软件平台。

SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC
问题: 按频率下降顺序排列的设备的不同软件平台是什么？

SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC
问题: 列出最大数量的设备共享的软件平台。

SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1
问题: 在所有设备中最常见的软件平台是什么？

SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1
问题: 列出没有库存设备的商店名称。

SQL: SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)
问题: 没有库存设备的商店名称是什么？

SQL: SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)
问题: 显示开业年份迟于2012年或开业年份早于2008年的商店共有的地点。

SQL: SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008
问题: 哪些地方既包括2012年以后开张的商店又有2008年之前开张的商店？

SQL: SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008
问题: 列出没有设备库存的设备的载体。

SQL: SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)
问题: 没有设备库存的设备的载体是什么？

SQL: SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)
问题: 显示有超过一个商店库存的设备的载体。

SQL: SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1
问题: 有超过一个商店库存的设备的载体是什么？

SQL: SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1
问题: 我们有多少预订？

SQL: SELECT count(*) FROM BOOKINGS
问题: 统计预订的总人数。

SQL: SELECT count(*) FROM BOOKINGS
问题: 列出所有预订的订单日期。

SQL: SELECT Order_Date FROM BOOKINGS
问题: 每一个预订的预定日期是什么？

SQL: SELECT Order_Date FROM BOOKINGS
问题: 显示预定的发货日期和预订的实际交货日期。

SQL: SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS
问题: 每一次预定的发货日期和实际交货日期是什么？

SQL: SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS
问题: 我们有多少客户？

SQL: SELECT count(*) FROM CUSTOMERS
问题: 统计记录的客户数量。

SQL: SELECT count(*) FROM CUSTOMERS
问题: 顾客“小勇”的电话和电子邮件是什么？

SQL: SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  "小勇"
问题: 找出客户名字是“小勇”的电话号码和电子邮件地址。

SQL: SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  "小勇"
问题: 显示戏剧工作室群的所有店名。

SQL: SELECT Store_Name FROM Drama_Workshop_Groups
问题: 戏剧工作室团体的店名是什么？

SQL: SELECT Store_Name FROM Drama_Workshop_Groups
问题: 显示所有发票的最小、平均、最大订单数量。

SQL: SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES
问题: 所有发票上订购的最低、平均和最大数量是多少？

SQL: SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES
问题: 所有发票中有哪些不同的付款方法代码？

SQL: SELECT DISTINCT payment_method_code FROM INVOICES
问题: 显示发票记录中不同的付款方法代码。

SQL: SELECT DISTINCT payment_method_code FROM INVOICES
问题: 对“中国”营销区域的描述是什么？

SQL: SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  "中国"
问题: 找出“中国”营销区域的描述。

SQL: SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  "中国"
问题: 显示价格高于平均水平的所有不同的产品名称。

SQL: SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)
问题: 哪些比平均值还要贵产品的名称是什么？

SQL: SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)
问题: 最贵的产品叫什么名字？

SQL: SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1
问题: 告诉我最昂贵产品的名称。

SQL: SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1
问题: 按价格升序列出所有产品名称。

SQL: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
问题: 按价格的升序排列所有的产品名称。

SQL: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
问题: 表演者“李红”的电话号码是多少？

SQL: SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  "李红"
问题: 找到名字是“李红”的表演者的电话号码。

SQL: SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  "李红"
问题: 显示所有支付方法代码和每个代码的订单数量。

SQL: SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code
问题: 列出不同的付款方法代码与订单数量

SQL: SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code
问题: 大多数订单使用的付款方法代码是什么？

SQL: SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
问题: 在所有发票中找到最常用的付款方法的代码。

SQL: SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
问题: 哪个是“东方”商店的地址所在的城市？

SQL: SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  "东方"
问题: 找出“东方”商店地址所在的城市。

SQL: SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  "东方"
问题: 有销售区域代码为“西南”的商店地址所在的省或县是什么？

SQL: SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  "西南"
问题: 找到有销售区域代码“西南”的商店所在的省或县。

SQL: SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  "西南"
问题: 名字是“友谊商店”的商店所属的营销区域的名称是什么？

SQL: SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  "友谊商店"
问题: 返回“友谊商店”商店所在的营销区域的名称。

SQL: SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  "友谊商店"
问题: 对产品价格高于100的服务类型有何描述？

SQL: SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100
问题: 请给我花费超过100的服务类型的描述。

SQL: SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100
问题: 每个服务类型的描述、代码和相应的计数是什么？

SQL: SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code
问题: 列出每个服务类型的描述、代码和服务数量。

SQL: SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code
问题: 最常执行的服务类型的描述和代码是什么？

SQL: SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
问题: 找出执行次数最多的服务类型的描述和代码。

SQL: SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
问题: 提供所有服务的工作组的电话和电子邮件是什么？

SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID
问题: 给我所有提供服务的工作组的电话号码和电子邮件地址。

SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID
问题: 提供产品名为“电影”服务的工作组的名称是什么？

SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  "电影"
问题: 查找提供产品名为“电影”服务的工作组的名称。

SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  "电影"
问题: 不同的产品名称是什么？每个产品的平均价格是多少？

SQL: SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
问题: 对于每一个不同的产品名称，显示其平均产品价格。

SQL: SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
问题: 平均产品价格小于100万的产品名称是什么？

SQL: SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
问题: 找出平均产品价格低于100万的产品名称。

SQL: SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
问题: “照片”产品的总订购量是多少？

SQL: SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  "照片"
问题: 计算产品“照片”的总订单数量。

SQL: SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  "照片"