jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: 展览平均吸引200多位参展者的艺术家的名字是什么？

SQL: SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id JOIN artist AS T3 ON T3.artist_id  =  T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance)  >  200
问题: 找到标题为“橙色”的项目的ID。

SQL: SELECT i_id FROM item WHERE title  =  "橙色"
问题: 列出项目表中的所有信息。

SQL: SELECT * FROM item
问题: 找到评论的数量。

SQL: SELECT count(*) FROM review
问题: 有多少用户？

SQL: SELECT count(*) FROM useracct
问题: 查找所有评论的平均和最大评级。

SQL: SELECT avg(rating) ,  max(rating) FROM review
问题: 找到所有评论的最高评级。

SQL: SELECT min(rank) FROM review
问题: 有多少不同的用户写了一些评论？

SQL: SELECT count(DISTINCT u_id) FROM review
问题: 有多少不同的项目被一些用户评论？

SQL: SELECT count(DISTINCT i_id) FROM review
问题: 查找没有收到任何评论的项目的数量。

SQL: SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)
问题: 查找没有留下任何评论的用户的姓名。

SQL: SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)
问题: 查找评级为10的商品名称。

SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  =  10
问题: 查找评级高于所有项目的平均评级的项目的标题。

SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  (SELECT avg(rating) FROM review)
问题: 找到任何评分低于5的项目的标题。

SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5
问题: 查找同时获得高于8和低于5的评分的项目的标题。

SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5
问题: 查找评分高于3且平均评分高于5的项目的名称。

SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rank  >  3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating)  >  5
问题: 查找具有最低平均评分的项目的名称。

SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) LIMIT 1
问题: 按字母顺序列出所有项目的标题。

SQL: SELECT title FROM item ORDER BY title
问题: 查找提供最多评论的用户的名称。

SQL: SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1
问题: 查找具有最高平均评级的项目的名称和ID。

SQL: SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) DESC LIMIT 1
问题: 找出具有最高平均评分的项目的名称和ID。

SQL: SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rank) DESC LIMIT 1
问题: 对于每个用户，返回他们给出的评论的名称和平均评级。

SQL: SELECT T1.name ,  avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id
问题: 对于每个用户，找到他们的名字和他们写的评论的数量。

SQL: SELECT T1.name ,  count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id
问题: 找到最高评级的用户的名字。

SQL: SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id ORDER BY T2.rating DESC LIMIT 1
问题: 查找具有最高平均信任分数的源用户的名称。

SQL: SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1
问题: 查找每个目标用户的姓名和平均信任分数。

SQL: SELECT T1.name ,  avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id GROUP BY T2.target_u_id
问题: 查找最低信任分数的目标用户的姓名。

SQL: SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id ORDER BY trust LIMIT 1
问题: 查找没有收到任何评论的项目的名称。

SQL: SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review)
问题: 找到没有写任何评论的用户的数量。

SQL: SELECT count(*) FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)
问题: 查找没有任何评论的项目的数量。

SQL: SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)
问题: 有多少运动员？

SQL: SELECT count(*) FROM player
问题: 按升序排列运动员的名字。

SQL: SELECT Player_name FROM player ORDER BY Votes ASC
问题: 运动员的性别和职业是什么？

SQL: SELECT Gender ,  Occupation FROM player
问题: 列出职业不是“研究员”的运动员的姓名和住所。

SQL: SELECT Player_name ,  residence FROM player WHERE Occupation != "研究员"
问题: 显示住在“池”或“皓”的球员的赞助商的名字。

SQL: SELECT Sponsor_name FROM player WHERE Residence  =  "池" OR Residence  =  "皓"
问题: 票数最多的运动员叫什么名字？

SQL: SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1
问题: 显示不同的职业和每个职业运动员的数量。

SQL: SELECT Occupation ,  COUNT(*) FROM player GROUP BY Occupation
问题: 请显示最常见的运动员职业。

SQL: SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1
问题: 显示至少有两个运动员的住址。

SQL: SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*)  >=  2
问题: 显示运动员姓名和教练员姓名。

SQL: SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID
问题: 显示排名第1的教练执教的球员的名字。

SQL: SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T2.Rank  =  1
问题: 显示2011年后开始有教练的球员的名字和性别。

SQL: SELECT T3.Player_name ,  T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T1.Starting_year  >  2011
问题: 按照选手投票的降序，显示选手姓名和教练姓名。

SQL: SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID ORDER BY T3.Votes DESC
问题: 列出没有教练的运动员的名字。

SQL: SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach)
问题: 显示既有性别为“男”又有性别为“女”的运动员的住址。

SQL: SELECT Residence FROM player WHERE gender  =  "男" INTERSECT SELECT Residence FROM player WHERE gender  =  "女"
问题: 每个俱乐部有多少教练？列出教练员的ID、姓名和教练员数量。

SQL: SELECT T1.club_id ,  T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id
问题: 拥有最多教练的俱乐部有多少枚金牌？

SQL: SELECT T1.club_id ,  T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id ORDER BY count(*) DESC LIMIT 1
问题: 有多少体操运动员？

SQL: SELECT count(*) FROM gymnast
问题: 计算体操运动员的数量。

SQL: SELECT count(*) FROM gymnast
问题: 按降序，列出体操运动员的总分。

SQL: SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
问题: 按降序排列，所有体操运动员的总分是多少？

SQL: SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
问题: 按自由体操点数降序列出体操运动员的总分。

SQL: SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
问题: 体操运动员按自由体操点数的下降顺序，总分是多少？

SQL: SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
问题: 所有体操运动员的平均单杠得分是多少？

SQL: SELECT avg(Horizontal_Bar_Points) FROM gymnast
问题: 返回所有体操运动员的平均单杠得分。

SQL: SELECT avg(Horizontal_Bar_Points) FROM gymnast
问题: 按字母顺序排列的人的名字是什么？

SQL: SELECT Name FROM People ORDER BY Name ASC
问题: 按字母顺序排列人名。

SQL: SELECT Name FROM People ORDER BY Name ASC
问题: 体操运动员的名字是什么？

SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
问题: 返回体操运动员的名字。

SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
问题: 家乡不是“洛阳”的体操运动员的名字是什么？

SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "洛阳"
问题: 返回不是在“洛阳”长大的体操运动员的名字。

SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "洛阳"
问题: 最高的人年龄是多少岁？

SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
问题: 返回身高最大的人的年龄。

SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
问题: 列出5个最老的人的名字。

SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
问题: 五个最老的人的名字是什么？

SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
问题: 最年轻的体操运动员的总得分是多少？

SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
问题: 返回最年轻的体操运动员的总得分。

SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
问题: 所有体操运动员的平均年龄是多少？

SQL: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
问题: 返回所有体操运动员的平均年龄。

SQL: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
问题: 总得分超过57.5的体操运动员的不同家乡是什么？

SQL: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
问题: 给出总分在57.5以上的体操运动员的不同家乡。

SQL: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
问题: 体操运动员的家乡和体操运动员的数量是多少？

SQL: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
问题: 每个家乡有多少体操运动员？

SQL: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
问题: 体操运动员最多的家乡是什么？

SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
问题: 返回体操运动员中最多的家乡。

SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
问题: 哪些家乡有至少两名体操运动员？

SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
问题: 给我两个或更多体操运动员来自的家乡。

SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
问题: 按身高顺序排列体操运动员的名字。

SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC
问题: 按照身高排序，体操运动员的名字是什么？

SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC
问题: 列出没有体操运动员的不同家乡。

SQL: SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
问题: 哪一个家乡没有体操运动员？

SQL: SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
问题: 展示有23岁以上和20岁以下的人的家乡。

SQL: SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20
问题: 哪个家乡有23岁以上和20岁以下的人？

SQL: SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20
问题: 这些人有多少不同的家乡？

SQL: SELECT count(DISTINCT Hometown) FROM people
问题: 数一数这些人的不同家乡。

SQL: SELECT count(DISTINCT Hometown) FROM people
问题: 以总分递减顺序显示体操运动员的年龄。

SQL: SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T1.Total_Points DESC
问题: 按它们总得分降序，体操运动员的年龄是多少？

SQL: SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T1.Total_Points DESC
问题: 找出除了名为“小智”的账户的所有账户的总储蓄余额。

SQL: SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T1.name != '小智'
问题: 不属于“小智”这个名字的人的储蓄账户的总储蓄余额是多少？

SQL: SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T1.name != '小智'
问题: 总共有多少个帐户？

SQL: SELECT count(*) FROM accounts
问题: 计算账户数量。

SQL: SELECT count(*) FROM accounts
问题: 所有帐户的总储蓄余额是多少？

SQL: SELECT sum(balance) FROM checking
问题: 找到在支票账户上的总储蓄余额。

SQL: SELECT sum(balance) FROM checking
问题: 找到平均支票余额。

SQL: SELECT avg(balance) FROM checking
问题: 支票账户的平均余额是多少？

SQL: SELECT avg(balance) FROM checking
问题: 有多少账户储蓄余额高于平均储蓄余额？

SQL: SELECT count(*) FROM savings WHERE balance  >  (SELECT avg(balance) FROM savings)
问题: 查找存款余额高于平均存款余额的账户数量。

SQL: SELECT count(*) FROM savings WHERE balance  >  (SELECT avg(balance) FROM savings)
问题: 查找支票余额低于最大支票余额的帐户的名称和id。

SQL: SELECT T1.custid ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT max(balance) FROM checking)
问题: 支票余额小于最大支票余额的账户相对应的客户ID和名称是什么？

SQL: SELECT T1.custid ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT max(balance) FROM checking)
问题: 所有名字包含“怡”的所有者的账户支票余额是什么？

SQL: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name LIKE '怡'
问题: 找到属于名称包含“怡”的所有者的支票账户余额。

SQL: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name LIKE '怡'
问题: 查找“小智”账户的支票余额和储蓄余额。

SQL: SELECT T2.balance ,  T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T1.name  =  '小智'
问题: “小智”账户中的支票余额和储蓄余额是多少？

SQL: SELECT T2.balance ,  T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T1.name  =  '小智'
问题: 查找支票余额高于平均支票余额但储蓄余额低于平均储蓄余额的帐户的名称。

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM savings)
问题: 支票余额大于平均支票余额而储蓄余额低于平均储蓄余额的账户的名称是什么？

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM savings)
问题: 查找存款余额高于平均存款余额的账户的支票余额。

SQL: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM savings))
问题: 属于储蓄余额大于平均储蓄余额的人的支票账户的余额是多少？

SQL: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  >  (SELECT avg(balance) FROM savings))
问题: 按照字母序列出所有客户的名字。

SQL: SELECT name FROM accounts ORDER BY name
问题: 按字母顺序排列的所有客户的名字是什么？

SQL: SELECT name FROM accounts ORDER BY name
问题: 查找具有最低支票和储蓄总余额的帐户名称。

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
问题: 支票和储蓄余额总额最低的账户对应的名称是什么？

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
问题: 查找存款余额高于平均存款余额的账户的名称以及总的支票和存款余额。

SQL: SELECT T1.name ,  T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  >  (SELECT avg(balance) FROM savings)
问题: 对于存款余额高于平均存款余额的帐户，名称及支票和储蓄余额总额是什么？

SQL: SELECT T1.name ,  T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  >  (SELECT avg(balance) FROM savings)
问题: 找到存款余额最低的账户的名称和支票余额。

SQL: SELECT T1.name ,  T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1
问题: 属于储蓄余额最低的客户的支票账户的名称和余额是什么？

SQL: SELECT T1.name ,  T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1
问题: 查找每个帐户名称的支票帐户数。

SQL: SELECT count(*) ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name
问题: 开户客户的姓名是什么？每个客户有多少支票账户？

SQL: SELECT count(*) ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name
问题: 查找每个帐户名称的总储蓄余额。

SQL: SELECT sum(T2.balance) ,  T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name
问题: 有账户的客户的名字是什么，每个账户的储蓄余额是多少？

SQL: SELECT sum(T2.balance) ,  T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid GROUP BY T1.name
问题: 查找支票余额低于平均支票余额的帐户的名称。

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM checking)
问题: 支票余额低于平均支票余额的客户的名字是什么？

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid WHERE T2.balance  <  (SELECT avg(balance) FROM checking)
问题: 找出支票余额最高的账户的储蓄余额。

SQL: SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance DESC LIMIT 1
问题: 余额最高的客户的帐户的储蓄余额是多少？

SQL: SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance DESC LIMIT 1
问题: 查找按总余额升序排序的所有账户的总支票余额和储蓄余额。

SQL: SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T1.balance + T2.balance
问题: 按总余额排序，所有客户的支票余额和储蓄余额总和是多少？

SQL: SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T1.balance + T2.balance
问题: 找到存款余额最低的账户的名称和支票余额。

SQL: SELECT T2.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1
问题: 存款余额最低的账户的名称和支票余额是多少？

SQL: SELECT T2.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T3.balance LIMIT 1
问题: 查找银行所有账户的名称、支票余额和储蓄余额。

SQL: SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid
问题: 所有客户的姓名、支票余额和存款余额是多少？

SQL: SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid
问题: 讲支票余额和储蓄余额总额按降序排列,查找银行所有账户的名称、支票余额和储蓄余额。

SQL: SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance DESC
问题: 按支票存款和存款余额总和递减，客户的姓名、支票余额和存款余额是什么？

SQL: SELECT T2.balance ,  T3.balance ,  T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid ORDER BY T2.balance + T3.balance DESC
问题: 查找支票余额高于相应储蓄余额的帐户的名称。

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T2.balance  >  T3.balance
问题: 支票余额高于储蓄余额的客户有哪些名字？

SQL: SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T2.balance  >  T3.balance
问题: 查找存款余额低于相应支票余额的账户的名称及总支票和存款余额。

SQL: SELECT T1.name ,  T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  <  T2.balance
问题: 储蓄余额低于支票余额的客户的名字是什么？他们的支票余额和储蓄余额合计是多少？

SQL: SELECT T1.name ,  T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid  =  T2.custid JOIN savings AS T3 ON T1.custid  =  T3.custid WHERE T3.balance  <  T2.balance
问题: 按存款余额的降序排列，查找前3个账户的名称和存款余额。

SQL: SELECT T1.name ,  T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance DESC LIMIT 3
问题: 这三个有着最高储蓄余额的账户的名称和存款余额是什么？

SQL: SELECT T1.name ,  T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid  =  T2.custid ORDER BY T2.balance DESC LIMIT 3
问题: 市场占有率至少为5的主流浏览器有多少？

SQL: SELECT count(*) FROM browser WHERE market_share  >=  5
问题: 以市场份额降序的顺序列出浏览器的名称。

SQL: SELECT name FROM browser ORDER BY market_share DESC
问题: 列出所有浏览器的ID、名称和市场份额。

SQL: SELECT id ,  name ,  market_share FROM browser
问题: 列出的浏览器的最大、最小和平均市场占有率是多少？

SQL: SELECT max(market_share) ,  min(market_share) ,  avg(market_share) FROM browser
问题: 浏览器“Safari”的ID和市场份额是什么？

SQL: SELECT id ,  market_share FROM browser WHERE name  =  'Safari'
问题: 不只使用“广播” 类型的连接的网络客户端加速器的名称和操作系统是什么？

SQL: SELECT name ,  operating_system FROM web_client_accelerator WHERE CONNECTION != '广播'
问题: 1998年以后与加速器“代理服务器”兼容的浏览器叫什么名字？

SQL: SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id  =  T3.id WHERE T3.name  =  '代理服务器' AND T2.compatible_since_year  >  1998
问题: 与两个或多个浏览器兼容的网络加速器的ID和名称是什么？

SQL: SELECT T1.id ,  T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2
问题: 与最多数量的网络加速器兼容的浏览器的id和名称是什么？

SQL: SELECT T1.id ,  T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id  =  T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
问题: 网络加速器“CACHEbox”和浏览器“IE浏览器”什么时候兼容的？

SQL: SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id  =  T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id  =  T3.id WHERE T3.name  =  'CACHEbox' AND T2.name  =  'IE浏览器'
问题: 网络客户端加速器支持多少种不同的客户端？

SQL: SELECT count(DISTINCT client) FROM web_client_accelerator
问题: 有多少个加速器与列出的浏览器不兼容？

SQL: SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser );
问题: 哪些不同的加速器与市场占有率高于15的浏览器兼容？

SQL: SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T3.market_share  >  15;
问题: 列出与“CACHEbox”和“Fasterfox”兼容的浏览器的名称。

SQL: SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T1.name  =  'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T1.name  =  'Fasterfox'
问题: 显示与名为“Opera”的浏览器不兼容的加速器名称和支持操作系统。

SQL: SELECT name ,  operating_system FROM web_client_accelerator EXCEPT SELECT T1.name ,  T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id  =  T1.id JOIN browser AS T3 ON T2.browser_id  =  T3.id WHERE T3.name  =  'Opera'
问题: 哪个加速器名称包含子字符串“Opera”？

SQL: SELECT name FROM web_client_accelerator WHERE name LIKE "Opera"
问题: 查找每个操作系统的网络加速器的数量。

SQL: SELECT Operating_system ,  count(*) FROM web_client_accelerator GROUP BY Operating_system
问题: 按照兼容年份的降序给出所有兼容浏览器和加速器的名称。

SQL: SELECT T2.name ,  T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id  =  T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id  =  T3.id ORDER BY T1.compatible_since_year DESC
问题: 有多少摔跤运动员？

SQL: SELECT count(*) FROM wrestler
问题: 计算摔跤运动员的数量。

SQL: SELECT count(*) FROM wrestler
问题: 列出摔跤运动员的姓名，按降序排列。

SQL: SELECT Name FROM wrestler ORDER BY Days_held DESC
问题: 摔跤运动员的名字是什么？

SQL: SELECT Name FROM wrestler ORDER BY Days_held DESC
问题: 最少保持天数的摔跤运动员叫什么名字？

SQL: SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1
问题: 返回最低保持天数的摔跤手的名字。

SQL: SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1
问题: 位置不是“广州，中国”的摔跤运动员的不同统治期是什么？

SQL: SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != "广州，中国"
问题: 给出不在“广州，中国”的摔跤运动员的不同统治期。

SQL: SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != "广州，中国"
问题: 摔跤运动员的名字和位置是什么？

SQL: SELECT Name ,  LOCATION FROM wrestler
问题: 说出所有摔跤运动员的姓名和位置。

SQL: SELECT Name ,  LOCATION FROM wrestler
问题: “奥神队”队的摔跤运动员的淘汰赛影片有哪些？

SQL: SELECT Elimination_Move FROM Elimination WHERE Team  =  "奥神队"
问题: 返回“奥神队”队摔跤运动员的淘汰赛影片。

SQL: SELECT Elimination_Move FROM Elimination WHERE Team  =  "奥神队"
问题: 摔跤运动员的名字和淘汰赛影片是什么？

SQL: SELECT T2.Name ,  T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID
问题: 给出摔跤手的名字及其淘汰赛影片。

SQL: SELECT T2.Name ,  T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID
问题: 列出摔跤选手和淘汰赛队伍的名单，按举行日数降序排列。

SQL: SELECT T2.Name ,  T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC
问题: 摔跤选手和他们的淘汰赛队伍的名字是什么？

SQL: SELECT T2.Name ,  T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC
问题: 列出最大保持天数的摔跤运动员被淘汰次数。

SQL: SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1
问题: 最多保持天数的摔跤运动员被淘汰的次数是多少？

SQL: SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID  =  T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1