NATURAL_LANG
stringlengths
12
244
SQL
stringlengths
18
336
SCHEMA
stringlengths
27
355
input_ids
list
attention_mask
list
labels
list
Show all document ids, names and the number of paragraphs in each document.
SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id
CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11167, 7, 41, 28244, 834, 4350, 584, 4280, 28027, 6, 1708, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4734, 9413, 7, 41, 28244, 834, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 28244, 834, 23, 26, 6, 332, 4416, 28244, 834, 4350, 6, 2847, 17161, 599, 1935, 61, 21680, 4734, 9413, 7, 6157, 332, 536, 3, 15355, 3162, 11167, 7, 6157, 332, 357, 9191, 332, 5411, 28244, 834, 23, 26, 32...
List all document ids with at least two paragraphs.
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2
CREATE TABLE Paragraphs (document_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4734, 9413, 7, 41, 28244, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 66, 1708, 3, 23, 26, 7, 28, 44, 709, 192, 8986, 7, 5, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 23, 26, 21680, 4734, 9413, 7, 350, 4630, 6880, 272, 476, 1708, 834, 23, 26, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 2423, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the document id and name with greatest number of paragraphs?
SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 11167, 7, 41, 28244, 834, 4350, 584, 4280, 28027, 6, 1708, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4734, 9413, 7, 41, 28244, 834, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 28244, 834, 23, 26, 6, 332, 4416, 28244, 834, 4350, 21680, 4734, 9413, 7, 6157, 332, 536, 3, 15355, 3162, 11167, 7, 6157, 332, 357, 9191, 332, 5411, 28244, 834, 23, 26, 3274, 332, 4416, 28244, 834, 23, ...
What is the document id with least number of paragraphs?
SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) LIMIT 1
CREATE TABLE Paragraphs (document_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4734, 9413, 7, 41, 28244, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1708, 3, 23, 26, 28, 709, 381, 13, 8986, 7, 58, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 23, 26, 21680, 4734, 9413, 7, 350, 4630, 6880, 272, 476, 1708, 834, 23, 26, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the document id with 1 to 2 paragraphs?
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2
CREATE TABLE Paragraphs (document_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4734, 9413, 7, 41, 28244, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1708, 3, 23, 26, 28, 209, 12, 204, 8986, 7, 58, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 23, 26, 21680, 4734, 9413, 7, 350, 4630, 6880, 272, 476, 1708, 834, 23, 26, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 272, 7969, 518, 23394, 209, 3430, 204, 1, -100, -100, -100, -100, -100, -100, -100,...
Show the document id with paragraph text 'Brazil' and 'Ireland'.
SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'
CREATE TABLE Paragraphs (document_id VARCHAR, paragraph_text VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4734, 9413, 7, 41, 28244, 834, 23, 26, 584, 4280, 28027, 6, 8986, 834, 6327, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 8, 1708, 3, 23, 26, 28, 8986, 1499, 3, 31, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1708, 834, 23, 26, 21680, 4734, 9413, 7, 549, 17444, 427, 8986, 834, 6327, 3274, 3, 31, 279, 7275, 173, 31, 3, 21342, 5249, 14196, 3, 23143, 14196, 1708, 834, 23, 26, 21680, 4734, 9413, 7, 549, 17444, 427, 8986, 8...
How many teachers are there?
SELECT COUNT(*) FROM teacher
CREATE TABLE teacher (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 3081, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 3145, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List the names of teachers in ascending order of age.
SELECT Name FROM teacher ORDER BY Age
CREATE TABLE teacher (Name VARCHAR, Age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 23954, 584, 4280, 28027, 6, 7526, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 3056, 13, 3081, 16, 25200, 53, 455, 13, 1246, 5, 1, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5570, 21680, 3145, 4674, 11300, 272, 476, 7526, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the age and hometown of teachers?
SELECT Age, Hometown FROM teacher
CREATE TABLE teacher (Age VARCHAR, Hometown VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 188, 397, 584, 4280, 28027, 6, 1210, 3540, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 1246, 11, 22295, 13, 3081, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7526, 6, 1210, 3540, 21680, 3145, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
List the name of teachers whose hometown is not `` Little Lever Urban District '' .
SELECT name FROM teacher WHERE hometown <> "little lever urban district"
CREATE TABLE teacher (name VARCHAR, hometown VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 4350, 584, 4280, 28027, 6, 22295, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 564, 13, 3081, 3, 2544, 22295, 19, 59, 3, 2, 5258, 312, 624, 10127, 3570, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 3145, 549, 17444, 427, 22295, 3, 2, 3155, 96, 26192, 19540, 4150, 3939, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the name of teachers aged either 32 or 33?
SELECT Name FROM teacher WHERE Age = 32 OR Age = 33
CREATE TABLE teacher (Name VARCHAR, Age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 23954, 584, 4280, 28027, 6, 7526, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 8, 564, 13, 3081, 9742, 893, 3538, 42, 5400, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5570, 21680, 3145, 549, 17444, 427, 7526, 3274, 3538, 4674, 7526, 3274, 5400, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the hometown of the youngest teacher?
SELECT Hometown FROM teacher ORDER BY Age LIMIT 1
CREATE TABLE teacher (Hometown VARCHAR, Age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 19040, 3540, 584, 4280, 28027, 6, 7526, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 22295, 13, 8, 19147, 3145, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1210, 3540, 21680, 3145, 4674, 11300, 272, 476, 7526, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show different hometown of teachers and the number of teachers from each hometown.
SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown
CREATE TABLE teacher (Hometown VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 19040, 3540, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 315, 22295, 13, 3081, 11, 8, 381, 13, 3081, 45, 284, 22295, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1210, 3540, 6, 2847, 17161, 599, 1935, 61, 21680, 3145, 350, 4630, 6880, 272, 476, 1210, 3540, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the most common hometown of teachers.
SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE teacher (Hometown VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 19040, 3540, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 167, 1017, 22295, 13, 3081, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1210, 3540, 21680, 3145, 350, 4630, 6880, 272, 476, 1210, 3540, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Show the hometowns shared by at least two teachers.
SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2
CREATE TABLE teacher (Hometown VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 19040, 3540, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 3111, 8, 22295, 7, 2471, 57, 44, 709, 192, 3081, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1210, 3540, 21680, 3145, 350, 4630, 6880, 272, 476, 1210, 3540, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 2423, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show names of teachers and the courses they are arranged to teach.
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 503, 834, 291, 5517, 41, 3881, 3589, 15, 834, 4309, 584, 4280, 28027, 6, 17476, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3145, 41, 23954, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 23954, 6, 332, 4416, 3881, 3589, 15, 21680, 503, 834, 291, 5517, 6157, 332, 536, 3, 15355, 3162, 503, 6157, 332, 357, 9191, 332, 5411, 3881, 3589, 15, 834, 4309, 3274, 332, 4416, 3881, 3589, 15, 834, 4309...
Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 503, 834, 291, 5517, 41, 3881, 3589, 15, 834, 4309, 584, 4280, 28027, 6, 17476, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3145, 41, 23954, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 23954, 6, 332, 4416, 3881, 3589, 15, 21680, 503, 834, 291, 5517, 6157, 332, 536, 3, 15355, 3162, 503, 6157, 332, 357, 9191, 332, 5411, 3881, 3589, 15, 834, 4309, 3274, 332, 4416, 3881, 3589, 15, 834, 4309...
Show the name of the teacher for the math course.
SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = "Math"
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 503, 834, 291, 5517, 41, 3881, 3589, 15, 834, 4309, 584, 4280, 28027, 6, 17476, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 503, 41, 3881, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 23954, 21680, 503, 834, 291, 5517, 6157, 332, 536, 3, 15355, 3162, 503, 6157, 332, 357, 9191, 332, 5411, 3881, 3589, 15, 834, 4309, 3274, 332, 4416, 3881, 3589, 15, 834, 4309, 3, 15355, 3162, 3145, 6157, ...
Show names of teachers and the number of courses they teach.
SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name
CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 23954, 584, 4280, 28027, 6, 17476, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 503, 834, 291, 5517, 41, 382, 15, 9, 1703, 834, 4309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 2847, 17161, 599, 1935, 61, 21680, 503, 834, 291, 5517, 6157, 332, 536, 3, 15355, 3162, 3145, 6157, 332, 357, 9191, 332, 5411, 382, 15, 9, 1703, 834, 4309, 3274, 332, 4416, 382, 15, 9, 1703, 8...
Show names of teachers that teach at least two courses.
SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2
CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3145, 41, 23954, 584, 4280, 28027, 6, 17476, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 503, 834, 291, 5517, 41, 382, 15, 9, 1703, 834, 4309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 332, 4416, 23954, 21680, 503, 834, 291, 5517, 6157, 332, 536, 3, 15355, 3162, 3145, 6157, 332, 357, 9191, 332, 5411, 382, 15, 9, 1703, 834, 4309, 3274, 332, 4416, 382, 15, 9, 1703, 834, 4309, 350, 4630, 6880, 272, ...
List the names of teachers who have not been arranged to teach courses.
SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange)
CREATE TABLE course_arrange (Name VARCHAR, Teacher_id VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 503, 834, 291, 5517, 41, 23954, 584, 4280, 28027, 6, 17476, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3145, 41, 23954, 584, 4280, 28027, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5570, 21680, 3145, 549, 17444, 427, 4486, 17476, 834, 23, 26, 3388, 41, 23143, 14196, 17476, 834, 23, 26, 21680, 503, 834, 291, 5517, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many visitors below age 30 are there?
SELECT COUNT(*) FROM visitor WHERE age < 30
CREATE TABLE visitor (age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7019, 41, 545, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 2692, 666, 1246, 604, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 7019, 549, 17444, 427, 1246, 3, 2, 604, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.
SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC
CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7019, 41, 4350, 584, 4280, 28027, 6, 7166, 834, 858, 834, 12066, 2009, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 3056, 13, 8, 2692, 3, 2544, 4757, 593, 19, 1146, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 7019, 549, 17444, 427, 7166, 834, 858, 834, 12066, 2009, 2490, 314, 4674, 11300, 272, 476, 7166, 834, 858, 834, 12066, 2009, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average age of the visitors whose membership level is not higher than 4?
SELECT AVG(age) FROM visitor WHERE Level_of_membership <= 4
CREATE TABLE visitor (age INTEGER, Level_of_membership VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7019, 41, 545, 3, 21342, 17966, 6, 7166, 834, 858, 834, 12066, 2009, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1348, 1246, 13, 8, 2692, 3, 2544, 4757, 593, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 545, 61, 21680, 7019, 549, 17444, 427, 7166, 834, 858, 834, 12066, 2009, 3, 2, 2423, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.
SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC
CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER, age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7019, 41, 4350, 584, 4280, 28027, 6, 7166, 834, 858, 834, 12066, 2009, 3, 21342, 17966, 6, 1246, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 11, 4757, 593, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 564, 6, 7166, 834, 858, 834, 12066, 2009, 21680, 7019, 549, 17444, 427, 7166, 834, 858, 834, 12066, 2009, 2490, 314, 4674, 11300, 272, 476, 1246, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the id and name of the museum that has the most staff members?
SELECT museum_id, name FROM museum ORDER BY num_of_staff DESC LIMIT 1
CREATE TABLE museum (museum_id VARCHAR, name VARCHAR, num_of_staff VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7071, 41, 25581, 834, 23, 26, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 6, 3, 5525, 834, 858, 834, 26416, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 3, 23, 26, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7071, 834, 23, 26, 6, 564, 21680, 7071, 4674, 11300, 272, 476, 3, 5525, 834, 858, 834, 26416, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the average number of staff working for the museums that were open before 2009.
SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009
CREATE TABLE museum (num_of_staff INTEGER, open_year INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7071, 41, 5525, 834, 858, 834, 26416, 3, 21342, 17966, 6, 539, 834, 1201, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 1348, 381, 13, 871, 464, 21, 8, 17385, 24, 130,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 5525, 834, 858, 834, 26416, 61, 21680, 7071, 549, 17444, 427, 539, 834, 1201, 3, 2, 2464, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the opening year and staff number of the museum named Plaza Museum?
SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum'
CREATE TABLE museum (Num_of_Staff VARCHAR, Open_Year VARCHAR, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7071, 41, 567, 440, 834, 858, 834, 134, 17, 4127, 584, 4280, 28027, 6, 2384, 834, 476, 2741, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1174, 51, 834, 858, 834, 134, 17, 4127, 6, 2384, 834, 476, 2741, 21680, 7071, 549, 17444, 427, 564, 3274, 3, 31, 345, 40, 5246, 3312, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.
SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010)
CREATE TABLE museum (name VARCHAR, num_of_staff INTEGER, open_year INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7071, 41, 4350, 584, 4280, 28027, 6, 3, 5525, 834, 858, 834, 26416, 3, 21342, 17966, 6, 539, 834, 1201, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 253, 8, 3056, 13, 17385, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 7071, 549, 17444, 427, 3, 5525, 834, 858, 834, 26416, 2490, 41, 23143, 14196, 3, 17684, 599, 5525, 834, 858, 834, 26416, 61, 21680, 7071, 549, 17444, 427, 539, 834, 1201, 2490, 2735, 61, 1, -100, -100, -...
find the id, name and age for visitors who visited some museums more than once.
SELECT t1.id, t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING COUNT(*) > 1
CREATE TABLE visit (visitor_id VARCHAR); CREATE TABLE visitor (id VARCHAR, name VARCHAR, age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 719, 41, 3466, 155, 127, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 7019, 41, 23, 26, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 6, 1246...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 5411, 23, 26, 6, 3, 17, 5411, 4350, 6, 3, 17, 5411, 545, 21680, 7019, 6157, 3, 17, 536, 3, 15355, 3162, 719, 6157, 3, 17, 357, 9191, 3, 17, 5411, 23, 26, 3274, 3, 17, 4416, 3466, 155, 127, 834, 23, ...
What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1
CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 719, 41, 3466, 155, 127, 834, 23, 26, 584, 4280, 28027, 6, 9273, 834, 7, 102, 295, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 7019, 41, 4350, 584, 4280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 4416, 3466, 155, 127, 834, 23, 26, 6, 3, 17, 5411, 4350, 6, 3, 17, 5411, 25465, 834, 858, 834, 12066, 2009, 21680, 7019, 6157, 3, 17, 536, 3, 15355, 3162, 719, 6157, 3, 17, 357, 9191, 3, 17, 5411, 23, ...
What are the id and name of the museum visited most times?
SELECT t2.Museum_ID, t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR); CREATE TABLE visit (Museum_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7071, 41, 4350, 584, 4280, 28027, 6, 3312, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 719, 41, 329, 1074, 440, 834, 4309, 584, 4280, 28027, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 3, 17, 4416, 329, 1074, 440, 834, 4309, 6, 3, 17, 5411, 4350, 21680, 7071, 6157, 3, 17, 536, 3, 15355, 3162, 719, 6157, 3, 17, 357, 9191, 3, 17, 5411, 329, 1074, 440, 834, 4309, 3274, 3, 17, 4416, 329, 1074, 4...
What is the name of the museum that had no visitor yet?
SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit)
CREATE TABLE visit (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR); CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 719, 41, 4350, 584, 4280, 28027, 6, 3312, 834, 4309, 584, 4280, 28027, 6, 7071, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 7071, 41, 4350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 21680, 7071, 549, 17444, 427, 4486, 3312, 834, 4309, 3388, 41, 23143, 14196, 7071, 834, 23, 26, 21680, 719, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the name and age of the visitor who bought the most tickets at once.
SELECT t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1
CREATE TABLE visitor (name VARCHAR, age VARCHAR, id VARCHAR); CREATE TABLE visit (visitor_id VARCHAR, num_of_ticket VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7019, 41, 4350, 584, 4280, 28027, 6, 1246, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 719, 41, 3466, 155, 127, 834, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 5411, 4350, 6, 3, 17, 5411, 545, 21680, 7019, 6157, 3, 17, 536, 3, 15355, 3162, 719, 6157, 3, 17, 357, 9191, 3, 17, 5411, 23, 26, 3274, 3, 17, 4416, 3466, 155, 127, 834, 23, 26, 4674, 11300, 272, 476, ...
What are the average and maximum number of tickets bought in all visits?
SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit
CREATE TABLE visit (num_of_ticket INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 719, 41, 5525, 834, 858, 834, 26639, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 1348, 11, 2411, 381, 13, 3500, 2944, 16, 66, 8305, 58, 1, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 5525, 834, 858, 834, 26639, 201, 4800, 4, 599, 5525, 834, 858, 834, 26639, 61, 21680, 719, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the total ticket expense of the visitors whose membership level is 1?
SELECT SUM(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1
CREATE TABLE visit (Total_spent INTEGER, visitor_id VARCHAR); CREATE TABLE visitor (id VARCHAR, Level_of_membership VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 719, 41, 3696, 1947, 834, 7, 102, 295, 3, 21342, 17966, 6, 7019, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 7019, 41, 23, 26, 584, 4280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 17, 4416, 3696, 1947, 834, 7, 102, 295, 61, 21680, 7019, 6157, 3, 17, 536, 3, 15355, 3162, 719, 6157, 3, 17, 357, 9191, 3, 17, 5411, 23, 26, 3274, 3, 17, 4416, 3466, 155, 127, 834, 23, 26, 549,...
Find the number of visitors who did not visit any museum opened after 2010.
SELECT COUNT(*) FROM visitor WHERE NOT id IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)
CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visitor (id VARCHAR); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7071, 41, 329, 1074, 440, 834, 4309, 584, 4280, 28027, 6, 539, 834, 1201, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 7019, 41, 23, 26, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 7019, 549, 17444, 427, 4486, 3, 23, 26, 3388, 41, 23143, 14196, 3, 17, 4416, 3466, 155, 127, 834, 23, 26, 21680, 7071, 6157, 3, 17, 536, 3, 15355, 3162, 719, 6157, 3, 17, 357, ...
How many museums were opened after 2013 or before 2008?
SELECT COUNT(*) FROM museum WHERE open_year > 2013 OR open_year < 2008
CREATE TABLE museum (open_year VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7071, 41, 8751, 834, 1201, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 17385, 130, 2946, 227, 2038, 42, 274, 2628, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 7071, 549, 17444, 427, 539, 834, 1201, 2490, 2038, 4674, 539, 834, 1201, 3, 2, 2628, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Find the total number of players.
SELECT COUNT(*) FROM players
CREATE TABLE players (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 381, 13, 1508, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 1508, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the total number of matches.
SELECT COUNT(*) FROM matches
CREATE TABLE matches (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 381, 13, 6407, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 6407, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List the first name and birth date of all players from the country with code USA.
SELECT first_name, birth_date FROM players WHERE country_code = 'USA'
CREATE TABLE players (first_name VARCHAR, birth_date VARCHAR, country_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 3879, 834, 5522, 584, 4280, 28027, 6, 684, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 166, 564, 11, 3879,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 166, 834, 4350, 6, 3879, 834, 5522, 21680, 1508, 549, 17444, 427, 684, 834, 4978, 3274, 3, 31, 17663, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the average age of losers and winners of all matches.
SELECT AVG(loser_age), AVG(winner_age) FROM matches
CREATE TABLE matches (loser_age INTEGER, winner_age INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 2298, 49, 834, 545, 3, 21342, 17966, 6, 4668, 834, 545, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 1348, 1246, 13, 10381, 277, 11, 8969, 13, 66, 6407, 5, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 2298, 49, 834, 545, 201, 71, 17217, 599, 3757, 687, 834, 545, 61, 21680, 6407, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find the average rank of winners in all matches.
SELECT AVG(winner_rank) FROM matches
CREATE TABLE matches (winner_rank INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 6254, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 1348, 11003, 13, 8969, 16, 66, 6407, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 3757, 687, 834, 6254, 61, 21680, 6407, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find the highest rank of losers in all matches.
SELECT MIN(loser_rank) FROM matches
CREATE TABLE matches (loser_rank INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 2298, 49, 834, 6254, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 2030, 11003, 13, 10381, 277, 16, 66, 6407, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 2298, 49, 834, 6254, 61, 21680, 6407, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
find the number of distinct country codes of all players.
SELECT COUNT(DISTINCT country_code) FROM players
CREATE TABLE players (country_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 17529, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 253, 8, 381, 13, 6746, 684, 5633, 13, 66, 1508, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 684, 834, 4978, 61, 21680, 1508, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the number of distinct name of losers.
SELECT COUNT(DISTINCT loser_name) FROM matches
CREATE TABLE matches (loser_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 2298, 49, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 381, 13, 6746, 564, 13, 10381, 277, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 2615, 52, 834, 4350, 61, 21680, 6407, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the name of tourney that has more than 10 matches.
SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10
CREATE TABLE matches (tourney_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 17, 1211, 3186, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 13, 22942, 63, 24, 65, 72, 145, 335, 6407, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 22942, 63, 834, 4350, 21680, 6407, 350, 4630, 6880, 272, 476, 22942, 63, 834, 4350, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 335, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
List the names of all winners who played in both 2013 and 2016.
SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016
CREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 4350, 584, 4280, 28027, 6, 30431, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 3056, 13, 66, 8969, 113, 1944, 16, 321, 2038, 11, 4619, 1, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4668, 834, 4350, 21680, 6407, 549, 17444, 427, 30431, 3274, 2038, 3, 21342, 5249, 14196, 3, 23143, 14196, 4668, 834, 4350, 21680, 6407, 549, 17444, 427, 30431, 3274, 1421, 1, -100, -100, -100, -100, -100, -100, -100, -1...
List the number of all matches who played in years of 2013 or 2016.
SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016
CREATE TABLE matches (YEAR VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 476, 19356, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 381, 13, 66, 6407, 113, 1944, 16, 203, 13, 2038, 42, 4619, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 6407, 549, 17444, 427, 30431, 3274, 2038, 4674, 30431, 3274, 1421, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'
CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 23, 26, 584, 4280, 28027, 6, 22942, 63, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1508, 41, 17529, 834, 4978, 584,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 17529, 834, 4978, 6, 332, 5411, 14672, 834, 4350, 21680, 1508, 6157, 332, 536, 3, 15355, 3162, 6407, 6157, 332, 357, 9191, 332, 5411, 20846, 834, 23, 26, 3274, 332, 4416, 3757, 687, 834, 23, 26, 549, 1744...
Find the first name and country code of the oldest player.
SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1
CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 684, 834, 4978, 584, 4280, 28027, 6, 3879, 834, 5522, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 166, 564, 11, 684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 166, 834, 4350, 6, 684, 834, 4978, 21680, 1508, 4674, 11300, 272, 476, 3879, 834, 5522, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the first and last name of all players in the order of birth date.
SELECT first_name, last_name FROM players ORDER BY birth_date
CREATE TABLE players (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 336, 834, 4350, 584, 4280, 28027, 6, 3879, 834, 5522, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 166, 11, 336, 564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 166, 834, 4350, 6, 336, 834, 4350, 21680, 1508, 4674, 11300, 272, 476, 3879, 834, 5522, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the first and last name of all players who are left / L hand in the order of birth date.
SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date
CREATE TABLE players (first_name VARCHAR, last_name VARCHAR, hand VARCHAR, birth_date VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 336, 834, 4350, 584, 4280, 28027, 6, 609, 584, 4280, 28027, 6, 3879, 834, 5522, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 166, 834, 4350, 6, 336, 834, 4350, 21680, 1508, 549, 17444, 427, 609, 3274, 3, 31, 434, 31, 4674, 11300, 272, 476, 3879, 834, 5522, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the first name and country code of the player who did the most number of tours.
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1
CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 17529, 834, 4978, 584, 4280, 28027, 6, 166, 834, 4350, 584, 4280, 28027, 6, 1959, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1689...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 17529, 834, 4978, 6, 332, 5411, 14672, 834, 4350, 21680, 1508, 6157, 332, 536, 3, 15355, 3162, 16890, 6157, 332, 357, 9191, 332, 5411, 20846, 834, 23, 26, 3274, 332, 4416, 20846, 834, 23, 26, 4674, 11300, ...
Find the year that has the most number of matches.
SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE matches (YEAR VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 476, 19356, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 215, 24, 65, 8, 167, 381, 13, 6407, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 30431, 21680, 6407, 350, 4630, 6880, 272, 476, 30431, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Find the name and rank points of the winner who won the most times.
SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE matches (winner_name VARCHAR, winner_rank_points VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 4350, 584, 4280, 28027, 6, 4668, 834, 6254, 834, 2700, 7, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 11, 11003, 979, 13, 8, 4668, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4668, 834, 4350, 6, 4668, 834, 6254, 834, 2700, 7, 21680, 6407, 350, 4630, 6880, 272, 476, 4668, 834, 4350, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, ...
Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.
SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1
CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_rank_points VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 4350, 584, 4280, 28027, 6, 22942, 63, 834, 4350, 584, 4280, 28027, 6, 4668, 834, 6254, 834, 2700, 7, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 4668, 834, 4350, 21680, 6407, 549, 17444, 427, 22942, 63, 834, 4350, 3274, 3, 31, 31971, 29, 2384, 31, 4674, 11300, 272, 476, 4668, 834, 6254, 834, 2700, 7, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -...
find the names of loser and winner who played in the match with greatest number of minutes.
SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1
CREATE TABLE matches (winner_name VARCHAR, loser_name VARCHAR, minutes VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 4350, 584, 4280, 28027, 6, 2615, 52, 834, 4350, 584, 4280, 28027, 6, 676, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 253, 8, 3056, 13, 2615, 52, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4668, 834, 4350, 6, 2615, 52, 834, 4350, 21680, 6407, 4674, 11300, 272, 476, 676, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the average ranking for each player and their first name.
SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name
CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 1959, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 16890, 41, 20846, 834, 23, 26, 584, 4280,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 6254, 53, 201, 332, 5411, 14672, 834, 4350, 21680, 1508, 6157, 332, 536, 3, 15355, 3162, 16890, 6157, 332, 357, 9191, 332, 5411, 20846, 834, 23, 26, 3274, 332, 4416, 20846, 834, 23, 26, 350, 4630, 68...
Find the total ranking points for each player and their first name.
SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name
CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 1959, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 16890, 41, 20846, 834, 23, 26, 584, 4280,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 180, 6122, 599, 6254, 53, 834, 2700, 7, 201, 332, 5411, 14672, 834, 4350, 21680, 1508, 6157, 332, 536, 3, 15355, 3162, 16890, 6157, 332, 357, 9191, 332, 5411, 20846, 834, 23, 26, 3274, 332, 4416, 20846, 834, 23, 26,...
find the number of players for each country.
SELECT COUNT(*), country_code FROM players GROUP BY country_code
CREATE TABLE players (country_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 17529, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 253, 8, 381, 13, 1508, 21, 284, 684, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 684, 834, 4978, 21680, 1508, 350, 4630, 6880, 272, 476, 684, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
find the code of the country where has the greatest number of players.
SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE players (country_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 17529, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 253, 8, 1081, 13, 8, 684, 213, 65, 8, 4016, 381, 13, 1508, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 834, 4978, 21680, 1508, 350, 4630, 6880, 272, 476, 684, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the codes of countries that have more than 50 players.
SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50
CREATE TABLE players (country_code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 17529, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 5633, 13, 1440, 24, 43, 72, 145, 943, 1508, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 834, 4978, 21680, 1508, 350, 4630, 6880, 272, 476, 684, 834, 4978, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 943, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the total number of tours for each ranking date.
SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date
CREATE TABLE rankings (ranking_date VARCHAR, tours INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 16890, 41, 6254, 53, 834, 5522, 584, 4280, 28027, 6, 8108, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 381, 13, 8108, 21, 284, 11592, 833, 5, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 17, 1211, 7, 201, 11592, 834, 5522, 21680, 16890, 350, 4630, 6880, 272, 476, 11592, 834, 5522, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the number of matches happened in each year.
SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR
CREATE TABLE matches (YEAR VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 476, 19356, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 381, 13, 6407, 2817, 16, 284, 215, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 30431, 21680, 6407, 350, 4630, 6880, 272, 476, 30431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find the name and rank of the 3 youngest winners across all matches.
SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3
CREATE TABLE matches (winner_name VARCHAR, winner_rank VARCHAR, winner_age VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 4350, 584, 4280, 28027, 6, 4668, 834, 6254, 584, 4280, 28027, 6, 4668, 834, 545, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 11, 11003,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 4668, 834, 4350, 6, 4668, 834, 6254, 21680, 6407, 4674, 11300, 272, 476, 4668, 834, 545, 8729, 12604, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many different winners both participated in the WTA Championships and were left handed?
SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'
CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6407, 41, 3757, 687, 834, 4350, 584, 4280, 28027, 6, 22942, 63, 834, 4350, 584, 4280, 28027, 6, 4668, 834, 2894, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 315, 896...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 4668, 834, 4350, 61, 21680, 6407, 549, 17444, 427, 22942, 63, 834, 4350, 3274, 3, 31, 518, 3221, 7666, 7, 31, 3430, 4668, 834, 2894, 3274, 3, 31, 434, 31, 1, -100, -100, -100, ...
Find the first name, country code and birth date of the winner who has the highest rank points in all matches.
SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1
CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR, player_id VARCHAR); CREATE TABLE matches (winner_id VARCHAR, winner_rank_points VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 684, 834, 4978, 584, 4280, 28027, 6, 3879, 834, 5522, 584, 4280, 28027, 6, 1959, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 14672, 834, 4350, 6, 332, 5411, 17529, 834, 4978, 6, 332, 5411, 20663, 834, 5522, 21680, 1508, 6157, 332, 536, 3, 15355, 3162, 6407, 6157, 332, 357, 9191, 332, 5411, 20846, 834, 23, 26, 3274, 332, 4416, 3...
Find the number of players for each hand type.
SELECT COUNT(*), hand FROM players GROUP BY hand
CREATE TABLE players (hand VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1508, 41, 2894, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 381, 13, 1508, 21, 284, 609, 686, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 609, 21680, 1508, 350, 4630, 6880, 272, 476, 609, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many ships ended up being 'Captured'?
SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured'
CREATE TABLE ship (disposition_of_ship VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4383, 41, 26, 159, 4718, 834, 858, 834, 2009, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 10911, 3492, 95, 271, 3, 31, 19566, 2693, 26, 31, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 4383, 549, 17444, 427, 8295, 834, 858, 834, 2009, 3274, 3, 31, 19566, 2693, 26, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
List the name and tonnage ordered by in descending alphaetical order for the names.
SELECT name, tonnage FROM ship ORDER BY name DESC
CREATE TABLE ship (name VARCHAR, tonnage VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4383, 41, 4350, 584, 4280, 28027, 6, 12, 29, 9761, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 564, 11, 12, 29, 9761, 5563, 57, 16, 3, 30960, 491, 6977, 7578, 138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 12, 29, 9761, 21680, 4383, 4674, 11300, 272, 476, 564, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List the name, date and result of each battle.
SELECT name, date FROM battle
CREATE TABLE battle (name VARCHAR, date VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3392, 41, 4350, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 564, 6, 833, 11, 741, 13, 284, 3392, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 833, 21680, 3392, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is maximum and minimum death toll caused each time?
SELECT MAX(killed), MIN(killed) FROM death
CREATE TABLE death (killed INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1687, 41, 10824, 15, 26, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 2411, 11, 2559, 1687, 12, 195, 2953, 284, 97, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 10824, 15, 26, 201, 3, 17684, 599, 10824, 15, 26, 61, 21680, 1687, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average number of injuries caused each time?
SELECT AVG(injured) FROM death
CREATE TABLE death (injured INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1687, 41, 77, 2047, 1271, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1348, 381, 13, 5157, 2953, 284, 97, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 77, 2047, 1271, 61, 21680, 1687, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the death and injury situations caused by the ship with tonnage 't'?
SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'
CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4383, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1687, 41, 10824, 15, 26, 584, 4280, 28027, 6, 7532, 584, 4280, 28027, 6, 2953, 834, 969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 10824, 15, 26, 6, 332, 5411, 77, 2047, 1271, 21680, 1687, 6157, 332, 536, 3, 15355, 3162, 4383, 6157, 3, 17, 357, 9191, 332, 5411, 658, 10064, 834, 969, 834, 2009, 834, 23, 26, 3274, 332, 4416, 23, 26, ...
What are the name and results of the battles when the bulgarian commander is not 'Boril'
SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril'
CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3392, 41, 4350, 584, 4280, 28027, 6, 4083, 4138, 9012, 584, 4280, 28027, 6, 25876, 6855, 834, 13695, 49, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 564, 11, 772, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 4083, 4138, 9012, 21680, 3392, 549, 17444, 427, 25876, 6855, 834, 13695, 49, 3, 2, 3155, 3, 31, 279, 127, 173, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the different ids and names of the battles that lost any 'Brig' type shipes?
SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'
CREATE TABLE ship (lost_in_battle VARCHAR, ship_type VARCHAR); CREATE TABLE battle (id VARCHAR, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4383, 41, 2298, 17, 834, 77, 834, 115, 9, 8692, 584, 4280, 28027, 6, 4383, 834, 6137, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3392, 41, 23, 26, 584...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 5411, 23, 26, 6, 332, 5411, 4350, 21680, 3392, 6157, 332, 536, 3, 15355, 3162, 4383, 6157, 332, 357, 9191, 332, 5411, 23, 26, 3274, 332, 4416, 2298, 17, 834, 77, 834, 115, 9, 8692, 549,...
What are the ids and names of the battles that led to more than 10 people killed in total.
SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10
CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1687, 41, 658, 10064, 834, 969, 834, 2009, 834, 23, 26, 584, 4280, 28027, 6, 4792, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3392, 41, 23, 26, 584, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23, 26, 6, 332, 5411, 4350, 21680, 3392, 6157, 332, 536, 3, 15355, 3162, 4383, 6157, 332, 357, 9191, 332, 5411, 23, 26, 3274, 332, 4416, 2298, 17, 834, 77, 834, 115, 9, 8692, 3, 15355, 3162, 1687, 6157,...
What is the ship id and name that caused most total injuries?
SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1687, 41, 658, 10064, 834, 969, 834, 2009, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4383, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 332, 4416, 23, 26, 6, 332, 4416, 4350, 21680, 1687, 6157, 332, 536, 3, 15355, 3162, 4383, 6157, 3, 17, 357, 9191, 332, 5411, 658, 10064, 834, 969, 834, 2009, 834, 23, 26, 3274, 332, 4416, 23, 26, 350, 4630, 6880, ...
What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'
CREATE TABLE battle (name VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3392, 41, 4350, 584, 4280, 28027, 6, 25876, 6855, 834, 13695, 49, 584, 4280, 28027, 6, 3, 14098, 834, 13695, 49, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 6746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 21680, 3392, 549, 17444, 427, 25876, 6855, 834, 13695, 49, 3274, 3, 31, 439, 138, 32, 63, 152, 31, 3430, 3, 14098, 834, 13695, 49, 3274, 3, 31, 279, 138, 26, 3757, 27, 31, 1, -100, -100, -100, -100, -100, -...
How many different results are there for the battles?
SELECT COUNT(DISTINCT RESULT) FROM battle
CREATE TABLE battle (RESULT VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3392, 41, 12200, 4254, 382, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 315, 772, 33, 132, 21, 8, 3392, 7, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 4083, 4138, 9012, 61, 21680, 3392, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many battles did not lose any ship with tonnage '225'?
SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225')
CREATE TABLE ship (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR); CREATE TABLE battle (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4383, 41, 23, 26, 584, 4280, 28027, 6, 1513, 834, 77, 834, 115, 9, 8692, 584, 4280, 28027, 6, 12, 29, 9761, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 3392, 549, 17444, 427, 4486, 3, 23, 26, 3388, 41, 23143, 14196, 1513, 834, 77, 834, 115, 9, 8692, 21680, 4383, 549, 17444, 427, 12, 29, 9761, 3274, 3, 31, 20489, 31, 61, 1, -100,...
List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'
CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4383, 41, 2298, 17, 834, 77, 834, 115, 9, 8692, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3392, 41, 4350, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 6, 332, 5411, 5522, 21680, 3392, 6157, 332, 536, 3, 15355, 3162, 4383, 6157, 332, 357, 9191, 332, 5411, 23, 26, 3274, 332, 4416, 2298, 17, 834, 77, 834, 115, 9, 8692, 549, 17444, 427, 332, 4416, 4...
Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.
SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'
CREATE TABLE ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4383, 41, 2298, 17, 834, 77, 834, 115, 9, 8692, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3392, 41, 4350, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 6, 4083, 4138, 9012, 6, 25876, 6855, 834, 13695, 49, 21680, 3392, 262, 4, 30416, 3, 23143, 14196, 332, 5411, 4350, 6, 332, 5411, 60, 7, 83, 17, 6, 332, 5411, 6724, 122, 6855, 834, 13695, 49, 21680, 3392, 6157...
What are the notes of the death events which has substring 'East'?
SELECT note FROM death WHERE note LIKE '%East%'
CREATE TABLE death (note VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1687, 41, 7977, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 3358, 13, 8, 1687, 984, 84, 65, 769, 16099, 3, 31, 25235, 31, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2232, 21680, 1687, 549, 17444, 427, 2232, 8729, 9914, 3, 31, 1454, 25235, 1454, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what are all the addresses including line 1 and line 2?
SELECT line_1, line_2 FROM addresses
CREATE TABLE addresses (line_1 VARCHAR, line_2 VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7181, 41, 747, 834, 536, 584, 4280, 28027, 6, 689, 834, 357, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 125, 33, 66, 8, 7181, 379, 689, 209, 11, 689, 204, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 689, 834, 4347, 689, 834, 357, 21680, 7181, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many courses in total are listed?
SELECT COUNT(*) FROM Courses
CREATE TABLE Courses (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 8670, 7, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 2996, 16, 792, 33, 2616, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 8670, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How is the math course described?
SELECT course_description FROM Courses WHERE course_name = 'math'
CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 8670, 7, 41, 19221, 834, 221, 11830, 584, 4280, 28027, 6, 503, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 19, 8, 7270, 503, 3028, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 503, 834, 221, 11830, 21680, 8670, 7, 549, 17444, 427, 503, 834, 4350, 3274, 3, 31, 3357, 107, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the zip code of the address in the city Port Chelsea?
SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'
CREATE TABLE Addresses (zip_postcode VARCHAR, city VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 13246, 15, 7, 41, 13453, 834, 5950, 4978, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 10658, 1081, 13, 8, 1115, 16, 8, 690, 3625, 14373...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 10658, 834, 5950, 4978, 21680, 13246, 15, 7, 549, 17444, 427, 690, 3274, 3, 31, 14714, 14373, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which department offers the most number of degrees? List department name and id.
SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_name VARCHAR, department_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 15125, 834, 3174, 5096, 7, 41, 221, 2274, 297, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1775, 7, 41, 221, 2274, 297, 834, 4350, 584, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 221, 2274, 297, 834, 4350, 6, 332, 5411, 221, 2274, 297, 834, 23, 26, 21680, 15125, 834, 3174, 5096, 7, 6157, 332, 536, 3, 15355, 3162, 1775, 7, 6157, 332, 357, 9191, 332, 5411, 221, 2274, 297, 834, 23,...
What is the name and id of the department with the most number of degrees ?
SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1952, 834, 1409, 5096, 7, 41, 221, 2274, 297, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 221, 2274, 297, 834, 4350, 584, 4280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 4416, 221, 2274, 297, 834, 4350, 6, 3, 17, 5411, 221, 2274, 297, 834, 23, 26, 21680, 1952, 834, 1409, 5096, 7, 6157, 3, 17, 536, 3, 15355, 3162, 10521, 6157, 3, 17, 357, 9191, 3, 17, 5411, 221, 2274, 29...
How many departments offer any degree?
SELECT COUNT(DISTINCT department_id) FROM Degree_Programs
CREATE TABLE Degree_Programs (department_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 15125, 834, 3174, 5096, 7, 41, 221, 2274, 297, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 10521, 462, 136, 1952, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 3066, 834, 23, 26, 61, 21680, 15125, 834, 3174, 5096, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many different degree names are offered?
SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs
CREATE TABLE Degree_Programs (degree_summary_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 15125, 834, 3174, 5096, 7, 41, 19706, 834, 4078, 51, 1208, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 315, 1952, 3056, 33, 1860, 58, 1, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 1952, 834, 4078, 51, 1208, 834, 4350, 61, 21680, 15125, 834, 3174, 5096, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many degrees does the engineering department offer?
SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'
CREATE TABLE Degree_Programs (department_id VARCHAR); CREATE TABLE Departments (department_id VARCHAR, department_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 15125, 834, 3174, 5096, 7, 41, 221, 2274, 297, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1775, 7, 41, 221, 2274, 297, 834, 23, 26, 584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 1775, 7, 6157, 332, 536, 3, 15355, 3162, 15125, 834, 3174, 5096, 7, 6157, 332, 357, 9191, 332, 5411, 221, 2274, 297, 834, 23, 26, 3274, 332, 4416, 221, 2274, 297, 834, 23, 26, 54...
What are the names and descriptions of all the sections?
SELECT section_name, section_description FROM Sections
CREATE TABLE Sections (section_name VARCHAR, section_description VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5568, 7, 41, 14309, 834, 4350, 584, 4280, 28027, 6, 1375, 834, 221, 11830, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 3056, 11, 15293, 13, 66, 8, 6795, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1375, 834, 4350, 6, 1375, 834, 221, 11830, 21680, 5568, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the names and id of courses having at most 2 sections?
SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 8670, 7, 41, 19221, 834, 4350, 584, 4280, 28027, 6, 503, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5568, 7, 41, 19221, 834, 23, 26, 584,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 19221, 834, 4350, 6, 332, 5411, 19221, 834, 23, 26, 21680, 8670, 7, 6157, 332, 536, 3, 15355, 3162, 5568, 7, 6157, 332, 357, 9191, 332, 5411, 19221, 834, 23, 26, 3274, 332, 4416, 19221, 834, 23, 26, 350...
List the section_name in reversed lexicographical order.
SELECT section_name FROM Sections ORDER BY section_name DESC
CREATE TABLE Sections (section_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5568, 7, 41, 14309, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 6792, 8, 1375, 834, 4350, 16, 7211, 26, 3, 30949, 32, 16982, 455, 5, 1, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1375, 834, 4350, 21680, 5568, 7, 4674, 11300, 272, 476, 1375, 834, 4350, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the semester which most student registered in? Show both the name and the id.
SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE Student_Enrolment (semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6341, 834, 8532, 3491, 297, 41, 7, 15, 526, 1370, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 31112, 7, 41, 7, 15, 526, 1370, 834, 4350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 7, 15, 526, 1370, 834, 4350, 6, 332, 5411, 7, 15, 526, 1370, 834, 23, 26, 21680, 31112, 7, 6157, 332, 536, 3, 15355, 3162, 6341, 834, 8532, 3491, 297, 6157, 332, 357, 9191, 332, 5411, 7, 15, 526, 1370...
What is the description of the department whose name has the substring the computer?
SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'
CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1775, 7, 41, 221, 2274, 297, 834, 221, 11830, 584, 4280, 28027, 6, 3066, 834, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 4210, 13, 8, 3066, 3, 2544, 564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3066, 834, 221, 11830, 21680, 1775, 7, 549, 17444, 427, 3066, 834, 4350, 8729, 9914, 3, 31, 1454, 25750, 1454, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.
SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2
CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4375, 41, 14672, 834, 4350, 584, 4280, 28027, 6, 2214, 834, 4350, 584, 4280, 28027, 6, 336, 834, 4350, 584, 4280, 28027, 6, 1236, 834, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 14672, 834, 4350, 6, 332, 5411, 51, 23, 8437, 834, 4350, 6, 332, 5411, 5064, 834, 4350, 6, 332, 5411, 8637, 295, 834, 23, 26, 21680, 4375, 6157, 332, 536, 3, 15355, 3162, 6341, 834, 8532, 3491, 297, 615...