jtjt520j/CSpider_for_Qwen huggingface dataset:
问题: “袁” “熙”的电话号码是多少？

SQL: SELECT phone FROM employees WHERE first_name = "袁" AND last_name = "熙";
问题: 谁是公司里最年轻的员工？列出员工的名字和姓氏。

SQL: SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;
问题: 最年轻的雇员的名字和姓是什么？

SQL: SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;
问题: 列出10大在公司工作最长的时间的员工。列出员工的名字和姓氏。

SQL: SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;
问题: 前10名任职时间最长的员工的名字和姓氏是什么？

SQL: SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;
问题: 找到每个城市的头衔为IT员工的数目？

SQL: SELECT count(*) ,  city FROM employees WHERE title  =  '运维职员' GROUP BY city
问题: 每一个城市的IT员工有多少？

SQL: SELECT count(*) ,  city FROM employees WHERE title  =  '运维职员' GROUP BY city
问题: 哪个员工管理最多的人？列出员工的姓名，以及报告该员工管理的人数。

SQL: SELECT T2.first_name , T2.last_name ,  count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;
问题: 所有员工的名字和姓氏是什么？有多少人向他们报告？

SQL: SELECT T2.first_name , T2.last_name ,  count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;
问题: “周” “浩歌”有多少个订单？

SQL: SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "周" AND T1.last_name = "浩歌";
问题: “周” “浩歌”的发票有多少个订单？

SQL: SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "周" AND T1.last_name = "浩歌";
问题: “周” “浩歌”花了多少钱？

SQL: SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "周" AND T1.last_name = "浩歌";
问题: 列出所有媒体类型。

SQL: SELECT name FROM media_types;
问题: 所有媒体类型的名称是什么？

SQL: SELECT name FROM media_types;
问题: 列出所有不同的体裁类型。

SQL: SELECT DISTINCT name FROM genres;
问题: 有什么不同的体裁名字？

SQL: SELECT DISTINCT name FROM genres;
问题: 列出所有播放列表的名称。

SQL: SELECT name FROM playlists;
问题: 所有播放列表的名字是什么？

SQL: SELECT name FROM playlists;
问题: 谁是“逆战”的作曲家？

SQL: SELECT composer FROM tracks WHERE name = "逆战";
问题: 哪位作曲家创造了“逆战”曲子？

SQL: SELECT composer FROM tracks WHERE name = "逆战";
问题: 曲子“逆战”有多长？

SQL: SELECT milliseconds FROM tracks WHERE name = "逆战";
问题: “逆战”有多少毫秒长？

SQL: SELECT milliseconds FROM tracks WHERE name = "逆战";
问题: “摇滚”是什么类型的曲目的名字？

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "摇滚";
问题: “摇滚”乐曲中所有曲目的名称是什么？

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "摇滚";
问题: “奇幻旅程”这首歌所属的专辑是什么？

SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "奇幻旅程";
问题: 哪张专辑有名字为“奇幻旅程”这首歌？

SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "奇幻旅程";
问题: 列出“奇幻旅程”中的歌曲名字。

SQL: SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = "奇幻旅程";
问题: 这张“奇幻旅程”专辑中的所有歌曲的名字是什么？

SQL: SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = "奇幻旅程";
问题: 列出曲目数高于10的专辑标题。

SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;
问题: 有超过10首曲目的专辑名称是什么？

SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;
问题: 列出属于“摇滚”类型的曲目名称，并且其媒体类型是MPEG音频文件。

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "摇滚" AND T3.name = "MPEG";
问题: 以MPEG音频格式存储的所有摇滚曲目的名称是什么？

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "摇滚" AND T3.name = "MPEG";
问题: 列出属于摇滚风格或媒体类型是MPEG音频文件的曲目名称。

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "摇滚" OR T3.name = "MPEG";
问题: 属于摇滚音乐并且其媒体类型是MPEG的所有曲目的名称是什么？

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "摇滚" OR T3.name = "MPEG";
问题: 列出属于摇滚或爵士乐类型的曲目的名称。

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "摇滚" OR T1.name = "爵士"
问题: 摇滚乐或爵士乐歌曲的名字是什么？

SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "摇滚" OR T1.name = "爵士"
问题: 列出电影播放列表中所有曲目的名称。

SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "电影";
问题: 标题为电影的播放列表中所有曲目的名称是什么？

SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "电影";
问题: 列出有大于100首曲目的播放列表的名称。

SQL: SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;
问题: 有超过100条曲目的所有播放列表的名称是什么？

SQL: SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;
问题: 列出客户'“康” “伯约”'购买的所有曲目。

SQL: SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "康" AND T4.last_name = "伯约";
问题: “康” “伯约”'买的曲目是什么？

SQL: SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "康" AND T4.last_name = "伯约";
问题: “逆战”要多少钱？

SQL: SELECT unit_price FROM tracks WHERE name = "逆战";
问题: “逆战”的单价是多少？

SQL: SELECT unit_price FROM tracks WHERE name = "逆战";
问题: 找到在电影播放列表中但不在音乐播放列表中的曲目名称。

SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '电影' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '音乐'
问题: 在电影播放列表中但不在音乐播放列表中的所有曲目名称是什么？

SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '电影' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '音乐'
问题: 找到同时在电影和音乐播放列表中的曲目名称。

SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '电影' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '音乐'
问题: 在电影和音乐播放列表中共同都有哪些曲目？

SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '电影' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  '音乐'
问题: 找出每种体裁中的曲目数量？

SQL: SELECT count(*) ,  T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;
问题: 每种体裁有多少条曲目？

SQL: SELECT count(*) ,  T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;
问题: 有多少编辑？

SQL: SELECT count(*) FROM editor
问题: 按年龄升序排列给出编辑的名称。

SQL: SELECT Name FROM editor ORDER BY Age ASC
问题: 编辑的姓名和年龄是多少？

SQL: SELECT Name ,  Age FROM editor
问题: 列出超过25岁的编辑的名字。

SQL: SELECT Name FROM editor WHERE Age  >  25
问题: 显示24岁或25岁的编辑的名字。

SQL: SELECT Name FROM editor WHERE Age  =  24 OR Age  =  25
问题: 最年轻的编辑的名字是什么？

SQL: SELECT Name FROM editor ORDER BY Age ASC LIMIT 1
问题: 编辑有哪些不同的年龄？每一个年龄段有多少编辑。

SQL: SELECT Age ,  COUNT(*) FROM editor GROUP BY Age
问题: 请显示编辑中最常见的年龄。

SQL: SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1
问题: 展示期刊的不同主题。

SQL: SELECT DISTINCT Theme FROM journal
问题: 显示编辑的姓名和他们作为委员会服务的期刊的主题。

SQL: SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID
问题: 对于每个期刊委员会，找出编辑名称和期刊主题。

SQL: SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID
问题: 按照主题的字母顺序递增排序，显示编辑的姓名和年龄以及他们作为委员会服务的期刊的主题。

SQL: SELECT T2.Name ,  T2.age ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID ORDER BY T3.Theme ASC
问题: 列出销售量超过3000份的期刊的委员会的编辑的姓名。

SQL: SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Sales  >  3000
问题: 显示每个编辑的ID、姓名以及他们所在的期刊委员会的数量。

SQL: SELECT T1.editor_id ,  T1.Name ,  COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.editor_id
问题: 显示参与至少两个期刊委员会的编辑的名字。

SQL: SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*)  >=  2
问题: 列出不在任何期刊委员会上的编辑的名字。

SQL: SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee)
问题: 列出没有任何编辑在委员会任职的杂志的日期、主题和销售情况。

SQL: SELECT date ,  theme ,  sales FROM journal EXCEPT SELECT T1.date ,  T1.theme ,  T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID
问题: 有一个工作类型是“照片”的编辑所属的期刊的平均销量是多少？

SQL: SELECT avg(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID WHERE T2.work_type  =  '照片'
问题: 我们有多少个账户？

SQL: SELECT count(*) FROM Accounts
问题: 计算帐号数量。

SQL: SELECT count(*) FROM Accounts
问题: 显示ID，客户ID，所有帐户的名称。

SQL: SELECT account_id ,  customer_id ,  account_name FROM Accounts
问题: 所有账户的账户ID、客户ID和账户名称是什么？

SQL: SELECT account_id ,  customer_id ,  account_name FROM Accounts
问题: 显示帐户名称有“338”的其他账户信息。

SQL: SELECT other_account_details FROM Accounts WHERE account_name  =  "338"
问题: 有没有这个叫“338”的账号的其他信息？

SQL: SELECT other_account_details FROM Accounts WHERE account_name  =  "338"
问题: 帐户名“162”的客户的名字、姓氏和电话是什么？

SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  "162"
问题: 给出帐户名“162”的客户的全名和电话。

SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  "162"
问题: 名字为“艺术”和姓“王”的客户有多少个账户？

SQL: SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "艺术" AND T2.customer_last_name  =  "王"
问题: 返回具有名“艺术”和姓“王”的客户的帐户数。

SQL: SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "艺术" AND T2.customer_last_name  =  "王"
问题: 显示所有客户ID和每个客户的帐号。

SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id
问题: 每个客户ID有多少个帐户？

SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id
问题: 显示有最多个账户的客户ID和帐户数量。

SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
问题: 帐户最多的客户的客户ID是什么，这个人有多少个帐户？

SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
问题: 账户最少的客户的名字、姓氏和ID是什么？

SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
问题: 给出账户最少的客户的全名和客户ID。

SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
问题: 显示没有账户的所有客户的数量。

SQL: SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)
问题: 有多少客户没有账户？

SQL: SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)
问题: 显示没有任何帐户的客户的名字和姓氏。

SQL: SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
问题: 没有账户的客户的全名是什么？

SQL: SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
问题: 显示有账户的所有客户的不同的名字和姓氏。

SQL: SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
问题: 有账户的客户的全名是什么？

SQL: SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
问题: 有多少客户有账户？

SQL: SELECT count(DISTINCT customer_id) FROM Accounts
问题: 统计持有账户的客户数量。

SQL: SELECT count(DISTINCT customer_id) FROM Accounts
问题: 我们有多少客户？

SQL: SELECT count(*) FROM Customers
问题: 统计客户数量。

SQL: SELECT count(*) FROM Customers
问题: 显示所有客户的ID、名字、姓氏和电话。

SQL: SELECT customer_id ,  customer_first_name ,  customer_last_name ,  customer_phone FROM Customers
问题: 每个客户的ID、全名和电话是什么？

SQL: SELECT customer_id ,  customer_first_name ,  customer_last_name ,  customer_phone FROM Customers
问题: 名字是“许”姓氏是“海超”的客户的电话和电子邮箱是什么？

SQL: SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  "许" AND customer_last_name  =  "海超"
问题: 返回名字是“许”，姓氏是“海超”的客户的电话和电子邮件，。

SQL: SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  "许" AND customer_last_name  =  "海超"
问题: 显示客户卡的数量。

SQL: SELECT count(*) FROM Customers_cards
问题: 有多少客户卡？

SQL: SELECT count(*) FROM Customers_cards
问题: 显示所有卡的ID、客户ID、卡类型代码、卡号。

SQL: SELECT card_id ,  customer_id ,  card_type_code ,  card_number FROM Customers_cards
问题: 每张客户卡的卡ID、客户ID、卡类型和卡号是什么？

SQL: SELECT card_id ,  customer_id ,  card_type_code ,  card_number FROM Customers_cards
问题: 显示卡号“4560596484842”的卡的有效日期。

SQL: SELECT date_valid_from ,  date_valid_to FROM Customers_cards WHERE card_number  =  "4560596484842"
问题: 号码“4560596484842”的卡的有效日期是什么？

SQL: SELECT date_valid_from ,  date_valid_to FROM Customers_cards WHERE card_number  =  "4560596484842"
问题: 卡号“4560596484842”的客户的姓、名和电话是什么？

SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.card_number  =  "4560596484842"
问题: 返回具有卡号“4560596484842”的客户的全名和电话。

SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.card_number  =  "4560596484842"
问题: 客户'“艺术” “王”'有多少张卡？

SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "艺术" AND T2.customer_last_name  =  "王"
问题: 数一数顾客名叫“艺术”和姓“王”的卡数量。

SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "艺术" AND T2.customer_last_name  =  "王"
问题: 我们有多少借记卡？

SQL: SELECT count(*) FROM Customers_cards WHERE card_type_code  =  "借记卡"
问题: 计算客户的借记卡数量。

SQL: SELECT count(*) FROM Customers_cards WHERE card_type_code  =  "借记卡"
问题: 客户“白” “启光”有多少张信用卡？

SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "白" AND T2.customer_last_name  =  "启光" AND T1.card_type_code  =  "信用卡"
问题: 计算名为“白”姓氏为“启光”的客户拥有的信用卡数量。

SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "白" AND T2.customer_last_name  =  "启光" AND T1.card_type_code  =  "信用卡"
问题: 显示所有客户ID和每个客户拥有的卡的数量。

SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id
问题: 不同的客户ID是什么和每个用户持有多少张卡？

SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id
问题: 有最多的卡的客户是谁，他有多少卡？

SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
问题: 返回有最多卡的客户的ID，以及卡的数量。

SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
问题: 显示用至少两张卡所有客户的ID、名字和姓氏。

SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2
问题: 持有两张或更多张卡的客户的ID和全名是什么？

SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2
问题: 帐户数量最少的客户ID，名和姓氏是什么？

SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
问题: 返回帐户最少的客户的ID和全名。

SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
问题: 显示所有的卡类型代码和每种类型的卡片数量。

SQL: SELECT card_type_code ,  count(*) FROM Customers_cards GROUP BY card_type_code
问题: 有哪些不同的卡片类型？每种类型有多少张卡片？

SQL: SELECT card_type_code ,  count(*) FROM Customers_cards GROUP BY card_type_code
问题: 卡片最多的类型代码是什么？

SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1
问题: 返回使用最多的卡的类型代码。

SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1
问题: 显示至少有5张卡片的类型代码。

SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*)  >=  5
问题: 有5张或更多卡的卡类型代码是什么？

SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*)  >=  5
问题: 显示所有卡类型代码和客户的每个类型卡的数量。

SQL: SELECT card_type_code ,  count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code
问题: 不同的卡类型代码有哪些？每种类型有多少不同的客户？

SQL: SELECT card_type_code ,  count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code
问题: 显示没有信用卡的客户ID和名字。

SQL: SELECT customer_id ,  customer_first_name FROM Customers EXCEPT SELECT T1.customer_id ,  T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE card_type_code  =  "信用卡"
问题: 不持有信用卡的客户的ID和名字是什么？

SQL: SELECT customer_id ,  customer_first_name FROM Customers EXCEPT SELECT T1.customer_id ,  T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE card_type_code  =  "信用卡"
问题: 显示所有卡类型代码。

SQL: SELECT DISTINCT card_type_code FROM Customers_Cards
问题: 不同的卡片类型代码有哪些？

SQL: SELECT DISTINCT card_type_code FROM Customers_Cards
问题: 显示卡片类型的数量。

SQL: SELECT count(DISTINCT card_type_code) FROM Customers_Cards
问题: 有多少种不同的卡片类型？

SQL: SELECT count(DISTINCT card_type_code) FROM Customers_Cards
问题: 显示所有交易类型。

SQL: SELECT DISTINCT transaction_type FROM Financial_Transactions
问题: 有哪些不同类型的交易？

SQL: SELECT DISTINCT transaction_type FROM Financial_Transactions
问题: 显示交易类型的数目。

SQL: SELECT count(DISTINCT transaction_type) FROM Financial_Transactions
问题: 有多少种不同类型的交易？

SQL: SELECT count(DISTINCT transaction_type) FROM Financial_Transactions
问题: 交易的平均成交金额是多少？

SQL: SELECT avg(transaction_amount) ,  sum(transaction_amount) FROM Financial_transactions
问题: 返回平均交易金额以及所有交易的总金额。

SQL: SELECT avg(transaction_amount) ,  sum(transaction_amount) FROM Financial_transactions
问题: 显示卡类型代码和交易总数。

SQL: SELECT T2.card_type_code ,  count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id  =  T2.card_id GROUP BY T2.card_type_code
问题: 不同的卡类型有哪些，以及每张卡有多少次交易？

SQL: SELECT T2.card_type_code ,  count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id  =  T2.card_id GROUP BY T2.card_type_code
问题: 显示交易类型和交易数。

SQL: SELECT transaction_type ,  count(*) FROM Financial_transactions GROUP BY transaction_type
问题: 不同的交易类型是什么，以及每个交易类型发生了多少次交易？

SQL: SELECT transaction_type ,  count(*) FROM Financial_transactions GROUP BY transaction_type
问题: 交易中总金额最大的交易类型是什么？

SQL: SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1
问题: 返回具有最高总金额的交易类型。

SQL: SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1
问题: 显示帐户ID和每个帐户的交易数量。

SQL: SELECT account_id ,  count(*) FROM Financial_transactions GROUP BY account_id
问题: 进行金融交易的不同账户ID是什么，以及每个账户对应多少个交易？

SQL: SELECT account_id ,  count(*) FROM Financial_transactions GROUP BY account_id
问题: 我们有多少轨道？

SQL: SELECT count(*) FROM track
问题: 计算轨道的数量。

SQL: SELECT count(*) FROM track
问题: 显示所有轨道的名称和位置。

SQL: SELECT name ,  LOCATION FROM track
问题: 所有轨道的名称和位置是什么？

SQL: SELECT name ,  LOCATION FROM track
问题: 按照座位数排序，显示2000年后所开放的所有轨道的名字和座位。

SQL: SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating
问题: 2000年后开通的所有轨道的名称和座位数都有哪些？

SQL: SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating
问题: 最近开通的轨道的名称、位置和座位数是什么？

SQL: SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1
问题: 返回最近一年开通的轨道的名称、位置和座位数。

SQL: SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1
问题: 所有轨道最小，最大，平均座位数是什么？

SQL: SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track
问题: 返回所有轨道上的最小、最大和平均座椅数。

SQL: SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track
问题: 显示座位数高于平均水平的所有轨道的名称、位置、开放年份。

SQL: SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)
问题: 座位数高于平均水平的轨道的名称、位置和开放年份是什么？

SQL: SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)
问题: 轨道的不同位置是什么？

SQL: SELECT DISTINCT LOCATION FROM track
问题: 给出轨道的不同位置。

SQL: SELECT DISTINCT LOCATION FROM track
问题: 一共有多少场比赛？

SQL: SELECT count(*) FROM race
问题: 计算比赛的次数。

SQL: SELECT count(*) FROM race
问题: 比赛有哪些不同的类别？

SQL: SELECT DISTINCT CLASS FROM race
问题: 返回比赛的不同种类。

SQL: SELECT DISTINCT CLASS FROM race
问题: 显示所有比赛的名字、类别和日期。

SQL: SELECT name ,  CLASS ,  date FROM race
问题: 所有比赛的名字、类别和日期是什么？

SQL: SELECT name ,  CLASS ,  date FROM race
问题: 显示比赛类别和每种类别的比赛数量。

SQL: SELECT CLASS ,  count(*) FROM race GROUP BY CLASS
问题: 不同的比赛类别是什么？每个类别有多少比赛？

SQL: SELECT CLASS ,  count(*) FROM race GROUP BY CLASS
问题: 比赛数量最多的比赛类别是什么？

SQL: SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1
问题: 给出比赛最多的类别。

SQL: SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1
问题: 列出有至少两个比赛的比赛类别。

SQL: SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2
问题: 有两个或多个比赛的比赛类别有哪些？

SQL: SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2
问题: 没有“GT”类别比赛的赛道名称是什么？

SQL: SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'
问题: 给出没有“GT”类别比赛的赛道的名称。

SQL: SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'
问题: 显示所有没有比赛的赛道名称。

SQL: SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)
问题: 返回没有任何比赛的赛道的名称。

SQL: SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)
问题: 显示至少有5000和不超过40000座位数的赛道开放的年份。

SQL: SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000
问题: 在4000到5000座位数的赛道的开放年是多少？

SQL: SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000
问题: 显示赛道的名称和每个赛道上的比赛数。

SQL: SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id
问题: 不同的赛道名称是什么，每个赛道有多少比赛？

SQL: SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id
问题: 显示比赛次数最多的赛道名称。

SQL: SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1
问题: 有最多比赛次数的赛道的名字是什么？

SQL: SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1