context
stringlengths
28
393
answer
stringlengths
17
532
question
stringlengths
5
112
CREATE TABLE Student (advisor VARCHAR)
SELECT advisor, COUNT(*) FROM Student GROUP BY advisor
每位导师有多少学生?
CREATE TABLE Student (advisor VARCHAR)
SELECT advisor FROM Student GROUP BY advisor ORDER BY COUNT(*) DESC LIMIT 1
哪位导师的学生最多?
CREATE TABLE Student (advisor VARCHAR)
SELECT advisor FROM Student GROUP BY advisor ORDER BY COUNT(*) DESC LIMIT 1
给出最多学生的导师。
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT COUNT(*) FROM Has_allergy WHERE Allergy = "猫"
有多少学生患有“猫”过敏?
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT COUNT(*) FROM Has_allergy WHERE Allergy = "猫"
有多少学生受到“猫”过敏的影响?
CREATE TABLE Has_allergy (StuID VARCHAR)
SELECT StuID FROM Has_allergy GROUP BY StuID HAVING COUNT(*) >= 2
显示所有至少有两种过敏症的学生。
CREATE TABLE Has_allergy (StuID VARCHAR)
SELECT StuID FROM Has_allergy GROUP BY StuID HAVING COUNT(*) >= 2
有多个过敏反应的的学生的学生ID是什么?
CREATE TABLE Student (StuID VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR)
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy
没有过敏的学生的学生ID是什么?
CREATE TABLE Student (StuID VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR)
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy
哪些学生不受过敏影响?
CREATE TABLE has_allergy (StuID VARCHAR, allergy VARCHAR), CREATE TABLE Student (StuID VARCHAR, sex VARCHAR)
SELECT COUNT(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "女" AND T1.allergy = "牛奶" OR T1.allergy = "鸡蛋"
有多少女学生有“鸡蛋”或“牛奶”过敏?
CREATE TABLE has_allergy (StuID VARCHAR, allergy VARCHAR), CREATE TABLE Student (StuID VARCHAR, sex VARCHAR)
SELECT COUNT(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "女" AND T1.allergy = "牛奶" OR T1.allergy = "鸡蛋"
有多少女生对“鸡蛋”或“牛奶"过敏?
CREATE TABLE Has_allergy (allergy VARCHAR), CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR)
SELECT COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "食物"
有多少学生有“食物”过敏?
CREATE TABLE Has_allergy (allergy VARCHAR), CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR)
SELECT COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "食物"
有多少学生受“食物”过敏的影响?
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY COUNT(*) DESC LIMIT 1
哪些过敏反应影响的学生数量最多?
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY COUNT(*) DESC LIMIT 1
哪种过敏最常见?
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT Allergy, COUNT(*) FROM Has_allergy GROUP BY Allergy
显示所有受过敏影响的学生人数。
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT Allergy, COUNT(*) FROM Has_allergy GROUP BY Allergy
每种过敏反应有多少学生?
CREATE TABLE Has_allergy (allergy VARCHAR), CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR)
SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype
显示所有过敏类型与受影响的学生数量。
CREATE TABLE Has_allergy (allergy VARCHAR), CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR)
SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype
每一种过敏类型有多少学生受影响?
CREATE TABLE Student (age VARCHAR, StuID VARCHAR, Allergy VARCHAR, lname VARCHAR), CREATE TABLE Has_allergy (age VARCHAR, StuID VARCHAR, Allergy VARCHAR, lname VARCHAR)
SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "牛奶" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "猫")
找出对“牛奶”和“猫”过敏的学生的姓氏和年龄。
CREATE TABLE Student (age VARCHAR, StuID VARCHAR, Allergy VARCHAR, lname VARCHAR), CREATE TABLE Has_allergy (age VARCHAR, StuID VARCHAR, Allergy VARCHAR, lname VARCHAR)
SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "牛奶" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "猫")
对“牛奶”和“猫”过敏的学生的姓氏和年龄是多少?
CREATE TABLE Allergy_type (Allergy VARCHAR, AllergyType VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR), CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR)
SELECT T1.Allergy, T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "莎莎" ORDER BY T1.Allergy
名字是“莎莎”的学生有哪些过敏症和过敏类型?并以过敏反应的名称来分类结果。
CREATE TABLE Allergy_type (Allergy VARCHAR, AllergyType VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR), CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR)
SELECT T1.Allergy, T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "莎莎" ORDER BY T1.Allergy
那个叫“莎莎”的女孩有什么过敏反应?它们的类型是什么?并以过敏反应的名称来分类结果。
CREATE TABLE Student (StuID VARCHAR, Allergy VARCHAR, fname VARCHAR, sex VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR, fname VARCHAR, sex VARCHAR)
SELECT fname, sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "牛奶" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "猫")
找出对“牛奶”过敏但不对“猫”过敏的学生的名字和性别。
CREATE TABLE Student (StuID VARCHAR, Allergy VARCHAR, fname VARCHAR, sex VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR, fname VARCHAR, sex VARCHAR)
SELECT fname, sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "牛奶" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "猫")
对“牛奶”过敏但能忍受“猫”的学生的名字和性别是什么?
CREATE TABLE Student (StuID VARCHAR, age INTEGER), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "动物")
找出对“动物”和“食物”类型过敏的学生的平均年龄。
CREATE TABLE Student (StuID VARCHAR, age INTEGER), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "动物")
对“动物”和“食物”过敏的学生的平均年龄有多大?
CREATE TABLE Student (StuID VARCHAR, fname VARCHAR, lname VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物")
列出没有“食物”过敏的学生的名字和姓氏。
CREATE TABLE Student (StuID VARCHAR, fname VARCHAR, lname VARCHAR), CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物")
对任何类型的“食物”都不过敏的每个学生的全名是什么?
CREATE TABLE Student (StuID VARCHAR, sex VARCHAR), CREATE TABLE Has_allergy (Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT COUNT(*) FROM Student WHERE sex = "男" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物")
找到有“食物”类型过敏的男性(性别是“男”)的数量。
CREATE TABLE Student (StuID VARCHAR, sex VARCHAR), CREATE TABLE Has_allergy (Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT COUNT(*) FROM Student WHERE sex = "男" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物")
有多少男学生(性别是“男”)对任何类型的“食物”过敏?
CREATE TABLE Student (city_code VARCHAR, stuid VARCHAR, fname VARCHAR), CREATE TABLE Has_Allergy (Allergy VARCHAR, stuid VARCHAR)
SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "牛奶" OR T2.Allergy = "猫"
找出对“牛奶”或“猫”过敏的学生的不同名字和城市。
CREATE TABLE Student (city_code VARCHAR, stuid VARCHAR, fname VARCHAR), CREATE TABLE Has_Allergy (Allergy VARCHAR, stuid VARCHAR)
SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "牛奶" OR T2.Allergy = "猫"
那些对“牛奶”或“猫”过敏的学生的不同名字和城市是什么?
CREATE TABLE Student (StuID VARCHAR, age INTEGER), CREATE TABLE Has_allergy (Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物" OR T2.allergytype = "动物")
找出18岁以上、对“食物”和“动物”不过敏的学生人数。
CREATE TABLE Student (StuID VARCHAR, age INTEGER), CREATE TABLE Has_allergy (Allergy VARCHAR), CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR)
SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "食物" OR T2.allergytype = "动物")
有多少学生超过18岁,对“食物”类型或“动物”类型不过敏?
CREATE TABLE Student (major VARCHAR, StuID VARCHAR, Allergy VARCHAR, fname VARCHAR), CREATE TABLE Has_allergy (major VARCHAR, StuID VARCHAR, Allergy VARCHAR, fname VARCHAR)
SELECT fname, major FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "大豆")
找到对“大豆”不过敏的学生的名字和专业。
CREATE TABLE Student (major VARCHAR, StuID VARCHAR, Allergy VARCHAR, fname VARCHAR), CREATE TABLE Has_allergy (major VARCHAR, StuID VARCHAR, Allergy VARCHAR, fname VARCHAR)
SELECT fname, major FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "大豆")
可以食用“大豆”的学生的名字和专业是什么?
CREATE TABLE invoices (billing_country VARCHAR)
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5
给我一个发票数量前5的国家的列表。列出国家名称和发票数量。
CREATE TABLE invoices (billing_country VARCHAR)
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5
发票数量最多的5个国家是什么?他们有多少发票?
CREATE TABLE invoices (total INTEGER, billing_country VARCHAR)
SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8
一个发票总额前8的国家的列表。列出国家名称和发票总额。
CREATE TABLE invoices (total INTEGER, billing_country VARCHAR)
SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8
按发票总额计算,前8个国家的名称是什么?那些总额有多大?
CREATE TABLE invoices (total INTEGER, billing_country VARCHAR)
SELECT billing_country, AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10
平均发票大小前10的国家的列表。列出国家名称和平均发票大小。
CREATE TABLE invoices (total INTEGER, billing_country VARCHAR)
SELECT billing_country, AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10
平均发票大小最大的国家的名称和平均发票大小是多少?
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (invoice_date VARCHAR, customer_id VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5
找出最近购买了东西的5个客户。列出客户的名字和姓氏。
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (invoice_date VARCHAR, customer_id VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5
最近买东西的5个顾客的名字和姓是什么?
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (customer_id VARCHAR)
SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10
从订单总数中找出前10名客户。列出客户的姓氏和总订单数量。
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (customer_id VARCHAR)
SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10
按订单总数计算,前十位客户的姓名和名字是什么?他们订了多少货?
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (total INTEGER, customer_id VARCHAR)
SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10
列出总销售额的前10名客户。列出客户的姓名和总销售额。
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (total INTEGER, customer_id VARCHAR)
SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10
销售总额最高的前10位客户的姓氏和名字是什么?销售量是多少?
CREATE TABLE genres (name VARCHAR, id VARCHAR), CREATE TABLE tracks (genre_id VARCHAR)
SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5
按照曲目数列出前5的流派。列出流派名称和总曲目。
CREATE TABLE genres (name VARCHAR, id VARCHAR), CREATE TABLE tracks (genre_id VARCHAR)
SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5
前5名的流派有多少曲目,名字是什么?
CREATE TABLE albums (title VARCHAR)
SELECT title FROM albums
列出每一张专辑的标题。
CREATE TABLE albums (title VARCHAR)
SELECT title FROM albums
所有专辑的标题是什么?
CREATE TABLE albums (title VARCHAR)
SELECT title FROM albums ORDER BY title
按专辑标题升序排列,列出每张专辑。
CREATE TABLE albums (title VARCHAR)
SELECT title FROM albums ORDER BY title
按字母升序排列的所有专辑的标题是什么?
CREATE TABLE albums (title VARCHAR)
SELECT title FROM albums WHERE title LIKE '安' ORDER BY title
将标题以字母顺序排序,列出每个专辑。
CREATE TABLE albums (title VARCHAR)
SELECT title FROM albums WHERE title LIKE '安' ORDER BY title
以字母顺序排序的所有专辑的标题是什么?
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (customer_id VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
列出10个最便宜的发票的客户的名字和姓氏。
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE invoices (customer_id VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
最便宜的10张发票的客户的姓名是什么?
CREATE TABLE invoices (total INTEGER, billing_city VARCHAR, billing_state VARCHAR)
SELECT SUM(total) FROM invoices WHERE billing_city = "成都" AND billing_state = "四川"
列出“四川”,“成都”市发票总额。
CREATE TABLE invoices (total INTEGER, billing_city VARCHAR, billing_state VARCHAR)
SELECT SUM(total) FROM invoices WHERE billing_city = "成都" AND billing_state = "四川"
“四川”州“成都”市的发票金额是多少?
CREATE TABLE invoices (billing_city VARCHAR, billing_state VARCHAR)
SELECT COUNT(*) FROM invoices WHERE billing_city = "成都" AND billing_state = "四川"
列出“四川”,“成都”的发票数量。
CREATE TABLE invoices (billing_city VARCHAR, billing_state VARCHAR)
SELECT COUNT(*) FROM invoices WHERE billing_city = "成都" AND billing_state = "四川"
从“四川”,“成都”开出多少发票?
CREATE TABLE invoices (billing_country VARCHAR, billing_state VARCHAR)
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "美国" GROUP BY billing_state
列出按州分组的美国发票数量。
CREATE TABLE invoices (billing_country VARCHAR, billing_state VARCHAR)
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "美国" GROUP BY billing_state
每个州有多少发票?
CREATE TABLE invoices (billing_country VARCHAR, billing_state VARCHAR)
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "美国" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1
列出美国发票最多的州。
CREATE TABLE invoices (billing_country VARCHAR, billing_state VARCHAR)
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "美国" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1
发票最多的州是什么州?
CREATE TABLE invoices (total INTEGER, billing_state VARCHAR)
SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "浙江"
列出“浙江”省的发票数量和发票总额。
CREATE TABLE invoices (total INTEGER, billing_state VARCHAR)
SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "浙江"
“浙江”省的发票金额和总金额是多少?
CREATE TABLE albums (title VARCHAR, artist_id VARCHAR), CREATE TABLE artists (name VARCHAR, id VARCHAR)
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "零点乐队"
列出“零点乐队”的专辑。
CREATE TABLE albums (title VARCHAR, artist_id VARCHAR), CREATE TABLE artists (name VARCHAR, id VARCHAR)
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "零点乐队"
所有“零点乐队”的专辑的标题是什么?
CREATE TABLE albums (artist_id VARCHAR), CREATE TABLE artists (name VARCHAR, id VARCHAR)
SELECT COUNT(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "周杰伦"
“周杰伦”有多少张专辑?
CREATE TABLE albums (artist_id VARCHAR), CREATE TABLE artists (name VARCHAR, id VARCHAR)
SELECT COUNT(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "周杰伦"
“周杰伦”发行了多少张专辑?
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, company VARCHAR)
SELECT company FROM customers WHERE first_name = "宋" AND last_name = "志鹏"
“宋” “志鹏”是哪家公司的客户?
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, company VARCHAR)
SELECT company FROM customers WHERE first_name = "宋" AND last_name = "志鹏"
客户为“宋” “志鹏”的公司是什么?
CREATE TABLE customers (first_name VARCHAR, email VARCHAR, last_name VARCHAR, phone VARCHAR)
SELECT email, phone FROM customers WHERE first_name = "卢" AND last_name = "军"
“卢” “军”的电子邮件和电话号码是多少?
CREATE TABLE customers (first_name VARCHAR, email VARCHAR, last_name VARCHAR, phone VARCHAR)
SELECT email, phone FROM customers WHERE first_name = "卢" AND last_name = "军"
客户“卢” “军”的电子邮件和电话号码是多少?
CREATE TABLE customers (city VARCHAR)
SELECT COUNT(*) FROM customers WHERE city = "唐山"
“唐山”市有多少客户?
CREATE TABLE customers (city VARCHAR)
SELECT COUNT(*) FROM customers WHERE city = "唐山"
“唐山”市有多少顾客?
CREATE TABLE customers (state VARCHAR)
SELECT COUNT(*) FROM customers WHERE state = "浙江"
“浙江”州有多少客户?
CREATE TABLE customers (state VARCHAR)
SELECT COUNT(*) FROM customers WHERE state = "浙江"
来自“浙江”的客户有多少?
CREATE TABLE customers (country VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT country FROM customers WHERE first_name = "姜" AND last_name = "子玉"
“姜” “子玉”住在哪个国家?
CREATE TABLE customers (country VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT country FROM customers WHERE first_name = "姜" AND last_name = "子玉"
“姜” “子玉”在哪个国家?
CREATE TABLE artists (name VARCHAR, id VARCHAR), CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '强'
列出由名为“强"的艺术家发布的专辑名称。
CREATE TABLE artists (name VARCHAR, id VARCHAR), CREATE TABLE albums (title VARCHAR, artist_id VARCHAR)
SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '强'
名字为“强"的艺术家发行的专辑的名称是什么?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE customers (support_rep_id VARCHAR)
SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "马" AND T1.last_name = "志强"
“马” “志强”拥有多少客户?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE customers (support_rep_id VARCHAR)
SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "马" AND T1.last_name = "志强"
“马” “志强”拥有的客户数是多少?
CREATE TABLE employees (phone VARCHAR, first_name VARCHAR, hire_date VARCHAR, last_name VARCHAR, title VARCHAR)
SELECT title, phone, hire_date FROM employees WHERE first_name = "袁" AND last_name = "熙"
“袁” “熙”的头衔、电话和租用日期是什么?
CREATE TABLE employees (phone VARCHAR, first_name VARCHAR, hire_date VARCHAR, last_name VARCHAR, title VARCHAR)
SELECT title, phone, hire_date FROM employees WHERE first_name = "袁" AND last_name = "熙"
叫“袁” “熙”的员工的头衔、电话号码和雇佣日期是什么?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)
SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "袁" AND T1.last_name = "熙"
找到向“袁” “熙”汇报的员工的全名?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)
SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "袁" AND T1.last_name = "熙"
向“袁” “熙”汇报工作的员工的名和姓氏是什么?
CREATE TABLE employees (address VARCHAR, last_name VARCHAR, first_name VARCHAR)
SELECT address FROM employees WHERE first_name = "袁" AND last_name = "熙"
雇员“袁” “熙”的地址是什么?
CREATE TABLE employees (address VARCHAR, last_name VARCHAR, first_name VARCHAR)
SELECT address FROM employees WHERE first_name = "袁" AND last_name = "熙"
“袁” “熙”的地址是什么?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE customers (support_rep_id VARCHAR)
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
查找拥有最多客户的雇员的全名。
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR), CREATE TABLE customers (support_rep_id VARCHAR)
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
拥有最多客户的员工的全名是什么?
CREATE TABLE employees (country VARCHAR)
SELECT COUNT(*) FROM employees WHERE country = "加拿大"
加拿大有多少员工?
CREATE TABLE employees (country VARCHAR)
SELECT COUNT(*) FROM employees WHERE country = "加拿大"
加拿大有多少员工?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, phone VARCHAR)
SELECT phone FROM employees WHERE first_name = "袁" AND last_name = "熙"
“袁” “熙”的电话号码是什么?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, phone VARCHAR)
SELECT phone FROM employees WHERE first_name = "袁" AND last_name = "熙"
“袁” “熙”的电话号码是多少?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)
SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1
谁是公司里最年轻的员工?列出员工的名字和姓氏。