NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who directed episode 21? | CREATE TABLE table_23958944_5 (directed_by VARCHAR, no_by_season VARCHAR) | SELECT directed_by FROM table_23958944_5 WHERE no_by_season = 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3301,
3914,
3628,
834,
755,
41,
22955,
834,
969,
584,
4280,
28027,
6,
150,
834,
969,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
5640,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
2773,
3301,
3914,
3628,
834,
755,
549,
17444,
427,
150,
834,
969,
834,
9476,
3274,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the province is Nunavut, what is the Arabs 2011 amount? | CREATE TABLE table_1939367_1 (
arabs_2011 VARCHAR,
province VARCHAR
) | SELECT arabs_2011 FROM table_1939367_1 WHERE province = "Nunavut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3288,
519,
3708,
834,
536,
41,
21165,
7,
834,
13907,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
7985,
19,
1174,
14128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21165,
7,
834,
13907,
21680,
953,
834,
2294,
3288,
519,
3708,
834,
536,
549,
17444,
427,
7985,
3274,
96,
12924,
14128,
76,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the career SR for the tournament of wimbledon? | CREATE TABLE table_48547 (
"Tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"Career SR" text,
"Career W\u2013L" text
) | SELECT "Career SR" FROM table_48547 WHERE "Tournament" = 'wimbledon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4433,
4177,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
24898,
121,
1499,
6,
96,
23948,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
6936,
15,
49,
3,
6857,
121,
21680,
953,
834,
591,
4433,
4177,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
210,
603,
2296,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the build year for total production of 150 | CREATE TABLE table_31852 (
"Model" text,
"Build year" text,
"Top speed (In operation) \uff08km/h\uff09" real,
"Power output \uff08kW\uff09" text,
"Total production" real
) | SELECT "Build year" FROM table_31852 WHERE "Total production" = '150' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
4433,
357,
41,
96,
24663,
121,
1499,
6,
96,
24752,
215,
121,
1499,
6,
96,
22481,
1634,
41,
1570,
2986,
61,
3,
2,
2999,
4018,
5848,
87,
107,
2,
2999,
4198,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
24752,
215,
121,
21680,
953,
834,
3341,
4433,
357,
549,
17444,
427,
96,
3696,
1947,
999,
121,
3274,
3,
31,
12278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Trevard Lindley's height? | CREATE TABLE table_name_42 (height VARCHAR, name VARCHAR) | SELECT height FROM table_name_42 WHERE name = "trevard lindley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
88,
2632,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4691,
4331,
26,
14482,
1306,
31,
7,
3902,
58,
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,
3902,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
564,
3274,
96,
929,
4331,
26,
3,
9230,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Bar chart of the total number from each location, I want to order bars in asc order. | CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
)
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
)
CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
) | SELECT Location, COUNT(*) FROM performance GROUP BY Location ORDER BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
8541,
834,
4309,
1499,
6,
5570,
1499,
6,
868,
485,
1499,
6,
2158,
109,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
8233,
834,
4309,
490,
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,
10450,
6,
2847,
17161,
599,
1935,
61,
21680,
821,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
10450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which left end player made the most points? | CREATE TABLE table_14342210_6 (
points INTEGER,
position VARCHAR
) | SELECT MAX(points) FROM table_14342210_6 WHERE position = "Left end" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
15239,
834,
948,
41,
979,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
646,
414,
1959,
263,
8,
167,
979,
58,
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,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
25133,
4165,
15239,
834,
948,
549,
17444,
427,
1102,
3274,
96,
2796,
89,
17,
414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many of the patients diagnosed with ac/chr syst/dia hrt fail received drug via iv route? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Ac/chr syst/dia hrt fail" AND prescriptions.route = "ID" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What cataglogue has 27 tracks? | CREATE TABLE table_57995 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Time" text
) | SELECT "Catalogue" FROM table_57995 WHERE "Track" = '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3264,
755,
41,
96,
382,
16729,
121,
490,
6,
96,
1649,
7621,
15,
26,
121,
1499,
6,
96,
18610,
9,
10384,
121,
1499,
6,
96,
1649,
40,
14608,
7678,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
18610,
9,
10384,
121,
21680,
953,
834,
3436,
3264,
755,
549,
17444,
427,
96,
382,
16729,
121,
3274,
3,
31,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is born on 1982-01-29? | CREATE TABLE table_name_7 (name VARCHAR, date_of_birth VARCHAR) | SELECT name FROM table_name_7 WHERE date_of_birth = "1982-01-29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
4350,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
2170,
30,
14505,
14772,
18,
3166,
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,
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,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
833,
834,
858,
834,
20663,
3274,
96,
24151,
19423,
9596,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When the bleeding time is unaffected and prothrombin time is prolonged, what are the platelet counts? | CREATE TABLE table_2951 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
) | SELECT "Platelet count" FROM table_2951 WHERE "Bleeding time" = 'Unaffected' AND "Prothrombin time" = 'Prolonged' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
5553,
41,
96,
4302,
10569,
121,
1499,
6,
96,
3174,
8514,
51,
4517,
97,
121,
1499,
6,
96,
13212,
10646,
3,
8514,
6310,
23918,
77,
97,
121,
1499,
6,
96,
279,
40,
6958... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
10146,
400,
17,
3476,
121,
21680,
953,
834,
3166,
5553,
549,
17444,
427,
96,
279,
40,
6958,
53,
97,
121,
3274,
3,
31,
5110,
9,
27488,
31,
3430,
96,
3174,
8514,
51,
4517,
97,
121,
3274,
3,
31,
3174,
23629,
31... |
Find Name and Height , and visualize them by a bar chart, and order by the y axis in desc. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT Name, Height FROM people ORDER BY Height DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
24231,
21680,
151,
4674,
11300,
272,
476,
24231,
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,
-100,
-1... |
What was the result for the 2007 WCC when Sun Yue was the alternate? | CREATE TABLE table_9345 (
"Event" text,
"Skip" text,
"Lead" text,
"Alternate" text,
"Result" text
) | SELECT "Result" FROM table_9345 WHERE "Alternate" = 'sun yue' AND "Event" = '2007 wcc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4271,
2128,
41,
96,
427,
2169,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
2796,
9,
26,
121,
1499,
6,
96,
188,
40,
2947,
342,
121,
1499,
6,
96,
20119,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
20119,
121,
21680,
953,
834,
4271,
2128,
549,
17444,
427,
96,
188,
40,
2947,
342,
121,
3274,
3,
31,
7,
202,
3,
63,
76,
15,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
20615,
3,
210,
75,
75,
31,
1,
-100,
-... |
How many yards for the RB with over 4 carries, 2 TDs, and a long greater than 8? | CREATE TABLE table_11824 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
) | SELECT COUNT("Yards") FROM table_11824 WHERE "Car." > '4' AND "TD's" = '2' AND "Long" > '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
2266,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
208,
122,
535,
490,
6,
96,
10494,
31,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
476,
986,
7,
8512,
21680,
953,
834,
20056,
2266,
549,
17444,
427,
96,
6936,
535,
2490,
3,
31,
591,
31,
3430,
96,
10494,
31,
7,
121,
3274,
3,
31,
357,
31,
3430,
96,
434,
2444,
121,
2490,
3,... |
Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0? | CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR, series VARCHAR) | SELECT team FROM table_name_29 WHERE location_attendance = "staples center 18,997" AND series = "1–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
11650,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
7,
8873,
965,
1530,
14985,
3264,
940,
121,
3430,
939,
3274,
96,
536,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a scatter chart about the correlation between employee_id and salary . | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT EMPLOYEE_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
1... |
Name the nec record for 11th standing | CREATE TABLE table_20774360_2 (
nec_record VARCHAR,
standing VARCHAR
) | SELECT nec_record FROM table_20774360_2 WHERE standing = "11th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
4581,
19208,
834,
357,
41,
9705,
834,
60,
7621,
584,
4280,
28027,
6,
4125,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
9705,
1368,
21,
850,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9705,
834,
60,
7621,
21680,
953,
834,
26426,
4581,
19208,
834,
357,
549,
17444,
427,
4125,
3274,
96,
2596,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How man "other" millions of smartphones were shipped when 181.1 million total were shipped? | CREATE TABLE table_14260687_3 (other VARCHAR, total VARCHAR) | SELECT COUNT(other) FROM table_14260687_3 WHERE total = "181.1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2688,
5176,
4225,
834,
519,
41,
9269,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
388,
96,
9269,
121,
4040,
13,
13864,
130,
1073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
9269,
61,
21680,
953,
834,
2534,
2688,
5176,
4225,
834,
519,
549,
17444,
427,
792,
3274,
96,
2606,
11039,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What tournament did Pemra zgen play against julia kimmelmann in the finals? | CREATE TABLE table_name_54 (
tournament VARCHAR,
opponent_in_the_final VARCHAR
) | SELECT tournament FROM table_name_54 WHERE opponent_in_the_final = "julia kimmelmann" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5892,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
410,
1276,
51,
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,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
354,
83,
23,
9,
3,
19754,
2341,
2434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number of total pts for gbr challenge | CREATE TABLE table_21457754_2 (total_pts VARCHAR, team_name VARCHAR) | SELECT COUNT(total_pts) FROM table_21457754_2 WHERE team_name = "GBR Challenge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2128,
4013,
5062,
834,
357,
41,
235,
1947,
834,
102,
17,
7,
584,
4280,
28027,
6,
372,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
834,
102,
17,
7,
61,
21680,
953,
834,
2658,
2128,
4013,
5062,
834,
357,
549,
17444,
427,
372,
834,
4350,
3274,
96,
3443,
448,
7729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the cfl team for lb position | CREATE TABLE table_27276 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "CFL Team" FROM table_27276 WHERE "Position" = 'LB' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
357,
3959,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
254,
10765,
2271,
121,
21680,
953,
834,
2555,
357,
3959,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
16976,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many bookings did each customer make? List the customer id, first name, and the count. | CREATE TABLE discount_coupons (
coupon_id number,
date_issued time,
coupon_amount number
)
CREATE TABLE view_product_availability (
product_id number,
booking_id number,
status_date time,
available_yn text
)
CREATE TABLE products_for_hire (
product_id number,
product_type_code text... | SELECT T1.customer_id, T1.first_name, COUNT(*) FROM customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3898,
834,
15976,
106,
7,
41,
8133,
834,
23,
26,
381,
6,
833,
834,
13159,
26,
97,
6,
8133,
834,
9,
11231,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
903,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25697,
49,
834,
23,
26,
6,
332,
5411,
14672,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
5038,
7,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,... |
What is the poor law union of the Kilmaloda townland? | CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR) | SELECT poor_law_union FROM table_30121046_1 WHERE townland = "Kilmaloda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25626,
15239,
4448,
834,
536,
41,
18450,
52,
834,
4207,
834,
16598,
584,
4280,
28027,
6,
1511,
40,
232,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2714,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2714,
834,
4207,
834,
16598,
21680,
953,
834,
25626,
15239,
4448,
834,
536,
549,
17444,
427,
1511,
40,
232,
3274,
96,
439,
173,
1982,
32,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average age for a male in each job Visualize by bar chart, and show total number in asc order. | CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY AVG(age) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
17701,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1565,
3,
4331,
4059,
599,
1755,
201,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
613,
6,
71,
17217,
599,
545,
61,
21680,
5780,
549,
17444,
427,
7285,
3274,
3,
31,
13513,
31,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
71,
17217,
599,
545,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many stations have a distance below 15km ? | CREATE TABLE table_203_273 (
id number,
"name" text,
"japanese" text,
"distance\n(km)" number,
"connections" text,
"location" text
) | SELECT COUNT(*) FROM table_203_273 WHERE "distance\n(km)" < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2555,
519,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
1191,
2837,
15,
7,
15,
121,
1499,
6,
96,
26,
23,
8389,
2,
29,
599,
5848,
61,
121,
381,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
2555,
519,
549,
17444,
427,
96,
26,
23,
8389,
2,
29,
599,
5848,
61,
121,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the atorvastatin calcium 80 mg po tabs price? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CRE... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'atorvastatin calcium 80 mg po tabs') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
526,
17530,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
7757,
5,
526,
17530,
23,
26,
21680,
... |
Which city is the address of the store named 'FJA Filming' located in? | CREATE TABLE Addresses (
City_Town VARCHAR,
Address_ID VARCHAR
)
CREATE TABLE Stores (
Address_ID VARCHAR,
Store_Name VARCHAR
) | SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = "FJA Filming" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
896,
834,
382,
9197,
584,
4280,
28027,
6,
13246,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4493,
7,
41,
13246,
834,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
485,
834,
382,
9197,
21680,
13246,
15,
7,
6157,
332,
536,
3,
15355,
3162,
4493,
7,
6157,
332,
357,
9191,
332,
5411,
20773,
9377,
834,
4309,
3274,
332,
4416,
20773,
9377,
834,
4309,
549,
17444,
427,
3... |
without diagnosis of neuromuscular diseases, | CREATE TABLE table_train_18 (
"id" int,
"with_cardiac_pacemaker" bool,
"neuromuscular_disease" bool,
"diabetic_polyneuropathy" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_18 WHERE neuromuscular_disease = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2606,
41,
96,
23,
26,
121,
16,
17,
6,
96,
4065,
834,
16464,
9,
75,
834,
5379,
15,
8337,
121,
3,
12840,
40,
6,
96,
8992,
3522,
302,
4866,
834,
26,
159,
14608,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
21680,
953,
834,
9719,
834,
2606,
549,
17444,
427,
6567,
3252,
4866,
834,
26,
159,
14608,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is maximum age of patients whose marital status is married and primary disease is posterior communicating aneurysm/sda? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
16034,
5946,
196,
2990,
3,
66... |
What is the average age of the members of the club 'Bootup Baltimore'? | CREATE TABLE member_of_club (
clubid VARCHAR,
stuid VARCHAR
)
CREATE TABLE student (
age INTEGER,
stuid VARCHAR
)
CREATE TABLE club (
clubid VARCHAR,
clubname VARCHAR
) | SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
858,
834,
13442,
41,
1886,
23,
26,
584,
4280,
28027,
6,
21341,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
1246,
3,
213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
17,
5787,
545,
61,
21680,
1886,
6157,
3,
17,
536,
3,
15355,
3162,
1144,
834,
858,
834,
13442,
6157,
3,
17,
357,
9191,
3,
17,
5411,
13442,
23,
26,
3274,
3,
17,
4416,
13442,
23,
26,
3,
15355,
3162,... |
What was the score for the South American Championship dated December 13, 1925? | CREATE TABLE table_name_40 (result VARCHAR, competition VARCHAR, date VARCHAR) | SELECT result FROM table_name_40 WHERE competition = "south american championship" AND date = "december 13, 1925" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2259,
3274,
96,
7,
670,
107,
10211,
10183,
121,
3430,
833,
3274,
96,
221,
75,
18247,
10670,
28484,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the game site for the game that had a packers record of 2-2? | CREATE TABLE table_34081 (
"Week" real,
"Date" text,
"Opponent" text,
"Time / Time Zone" text,
"Game Site" text,
"Final Score" text,
"Record" text,
"Match Report" text
) | SELECT "Game Site" FROM table_34081 WHERE "Record" = '2-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
4959,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
13368,
3,
87,
2900,
11628,
121,
1499,
6,
96,
23055,
3238,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
23055,
3238,
121,
21680,
953,
834,
21129,
4959,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
22451,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What residence hall has the vermin mascot? | CREATE TABLE table_20364 (
"Residence Hall" text,
"Sex" text,
"Established" real,
"Rector" text,
"Campus" text,
"Capacity" real,
"Colors" text,
"Mascot" text
) | SELECT "Residence Hall" FROM table_20364 WHERE "Mascot" = 'Vermin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
4389,
41,
96,
1649,
1583,
3772,
2501,
121,
1499,
6,
96,
134,
994,
121,
1499,
6,
96,
14997,
15403,
11904,
121,
490,
6,
96,
1649,
5317,
121,
1499,
6,
96,
24626,
302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
1649,
1583,
3772,
2501,
121,
21680,
953,
834,
23330,
4389,
549,
17444,
427,
96,
329,
9,
7,
4310,
121,
3274,
3,
31,
5000,
1109,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many competitors were from russia ? | CREATE TABLE table_204_712 (
id number,
"rank" number,
"athlete" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT COUNT("athlete") FROM table_204_712 WHERE "nationality" = 'russia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4450,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
7,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
26170,
15,
8512,
21680,
953,
834,
26363,
834,
4450,
357,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
26165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total win % of manager viktor prokopenko, when he lost fewer than 2? | CREATE TABLE table_name_43 (win__percentage VARCHAR, manager VARCHAR, lost VARCHAR) | SELECT COUNT(win__percentage) FROM table_name_43 WHERE manager = "viktor prokopenko" AND lost < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3757,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
2743,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
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,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
2743,
3274,
96,
2099,
10377,
813,
17466,
18994,
121,
3430,
1513,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What number is Tony Dixon? | CREATE TABLE table_name_22 (
number VARCHAR,
name VARCHAR
) | SELECT number FROM table_name_22 WHERE name = "tony dixon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
381,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
381,
19,
9137,
30368,
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,
381,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
564,
3274,
96,
17,
106,
63,
20679,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the game at Essendon? | CREATE TABLE table_55684 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_55684 WHERE "Away team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3651,
591,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
308,
342,
121,
21680,
953,
834,
3769,
3651,
591,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what year was number 445 and 446 entered into service ? | CREATE TABLE table_204_882 (
id number,
"number" number,
"builder" text,
"entered service" text,
"withdrawn" text,
"notes" text
) | SELECT "entered service" FROM table_204_882 WHERE "number" = 445 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4060,
357,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
16422,
49,
121,
1499,
6,
96,
35,
11196,
313,
121,
1499,
6,
96,
28032,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
35,
11196,
313,
121,
21680,
953,
834,
26363,
834,
4060,
357,
549,
17444,
427,
96,
5525,
1152,
121,
3274,
314,
2128,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Season has a UFL Cup of quarter-finals? | CREATE TABLE table_name_42 (
season VARCHAR,
ufl_cup VARCHAR
) | SELECT season FROM table_name_42 WHERE ufl_cup = "quarter-finals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
774,
584,
4280,
28027,
6,
3,
76,
89,
40,
834,
4658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7960,
65,
3,
9,
412,
10765,
3802,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
3,
76,
89,
40,
834,
4658,
3274,
96,
19973,
18,
12406,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Country is listed for the Director Thomas Vinterberg? | CREATE TABLE table_name_74 (
country VARCHAR,
director VARCHAR
) | SELECT country FROM table_name_74 WHERE director = "thomas vinterberg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
684,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
19,
2616,
21,
8,
2578,
3576,
584,
3870,
2235,
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,
684,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2090,
3274,
96,
189,
32,
2754,
4671,
449,
2235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Date, when Tie no is '3'? | CREATE TABLE table_name_33 (
date VARCHAR,
tie_no VARCHAR
) | SELECT date FROM table_name_33 WHERE tie_no = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
833,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
2262,
15,
150,
19,
3,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a pie chart on what is the average song rating for each language? | CREATE TABLE artist (
artist_name varchar2(50),
country varchar2(20),
gender varchar2(20),
preferred_genre varchar2(50)
)
CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE song (
so... | SELECT languages, AVG(rating) FROM song GROUP BY languages | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
684,
3,
4331,
4059,
357,
599,
1755,
201,
7285,
3,
4331,
4059,
357,
599,
1755,
201,
6241,
834,
729,
60,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8024,
6,
71,
17217,
599,
52,
1014,
61,
21680,
2324,
350,
4630,
6880,
272,
476,
8024,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Faith of rc, and a Opened larger than 1966 which has the highest DCSF number? | CREATE TABLE table_name_22 (
dcsf_number INTEGER,
faith VARCHAR,
opened VARCHAR
) | SELECT MAX(dcsf_number) FROM table_name_22 WHERE faith = "rc" AND opened > 1966 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
3,
26,
75,
7,
89,
834,
5525,
1152,
3,
21342,
17966,
6,
3251,
584,
4280,
28027,
6,
2946,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
15364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
26,
75,
7,
89,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
3251,
3274,
96,
52,
75,
121,
3430,
2946,
2490,
20658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Did the Bulls win or lose at Valley Parade? | CREATE TABLE table_10492 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text,
"Goals" text
) | SELECT "Result" FROM table_10492 WHERE "Venue" = 'valley parade' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
4508,
41,
96,
308,
342,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
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,
96,
20119,
121,
21680,
953,
834,
15442,
4508,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
2165,
1306,
16314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show all statement id and the number of accounts for each statement. | CREATE TABLE Accounts (
STATEMENT_ID VARCHAR
) | SELECT STATEMENT_ID, COUNT(*) FROM Accounts GROUP BY STATEMENT_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
5097,
6048,
11810,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
2493,
3,
23,
26,
11,
8,
381,
13,
3744,
21,
284,
2493,
5,
1,
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,
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,
5097,
6048,
11810,
834,
4309,
6,
2847,
17161,
599,
1935,
61,
21680,
6288,
7,
350,
4630,
6880,
272,
476,
5097,
6048,
11810,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
when the position is forward and the league is 5 what number is the Champion league | CREATE TABLE table_21769 (
"P" real,
"Player" text,
"Position" text,
"League" real,
"Copa del Rey" real,
"Champions League" real,
"Total" real
) | SELECT COUNT("Champions League") FROM table_21769 WHERE "League" = '5' AND "Position" = 'Forward' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
3951,
41,
96,
345,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
3881,
102,
9,
20,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
3541,
4624,
2865,
3815,
8512,
21680,
953,
834,
357,
2517,
3951,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3274,
3,
31,
755,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
3809,
2239,
31,
... |
How many institutions are there? | CREATE TABLE inst (Id VARCHAR) | SELECT COUNT(*) FROM inst | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16,
7,
17,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4222,
33,
132,
58,
1,
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,
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,
16,
7,
17,
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,
... |
Which Format is listed that has a Region of China? | CREATE TABLE table_name_93 (format VARCHAR, region VARCHAR) | SELECT format FROM table_name_93 WHERE region = "china" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
8995,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
12439,
19,
2616,
24,
65,
3,
9,
6163,
13,
1473,
58,
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,
1910,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1719,
3274,
96,
5675,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the sum of Silver with total smaller than 560, a Bronze larger than 6, and a Gold of 3? | CREATE TABLE table_name_70 (
silver INTEGER,
gold VARCHAR,
total VARCHAR,
bronze VARCHAR
) | SELECT SUM(silver) FROM table_name_70 WHERE total < 560 AND bronze > 6 AND gold = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
4294,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
792,
3,
2,
305,
3328,
3430,
13467,
2490,
431,
3430,
2045,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where is the headquarter of the conglomerate industry? | CREATE TABLE table_name_42 (headquarters VARCHAR, primary_industry VARCHAR) | SELECT headquarters FROM table_name_42 WHERE primary_industry = "conglomerate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
3313,
19973,
7,
584,
4280,
28027,
6,
2329,
834,
13580,
7,
8224,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
819,
19973,
13,
8,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13767,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2329,
834,
13580,
7,
8224,
3274,
96,
1018,
24422,
342,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player was picked after 23? | CREATE TABLE table_name_89 (player VARCHAR, pick INTEGER) | SELECT player FROM table_name_89 WHERE pick > 23 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
20846,
584,
4280,
28027,
6,
1432,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
47,
4758,
227,
1902,
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,
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,
1959,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1432,
2490,
1902,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the drawn for tries for of 42 | CREATE TABLE table_name_95 (drawn VARCHAR, tries_for VARCHAR) | SELECT drawn FROM table_name_95 WHERE tries_for = "42" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
19489,
29,
584,
4280,
28027,
6,
3,
9000,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6796,
21,
3,
9000,
21,
13,
6426,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6796,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
3,
9000,
834,
1161,
3274,
96,
4165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What 2009 has lq as the 2011? | CREATE TABLE table_name_58 (
Id VARCHAR
) | SELECT 2009 FROM table_name_58 WHERE 2011 = "lq" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2464,
65,
3,
40,
1824,
38,
8,
2722,
58,
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,
2464,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
2722,
3274,
96,
40,
1824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many schools are there in the department? | CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class text,
stu_gp... | SELECT COUNT(DISTINCT school_code) FROM department | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
853,
41,
853,
834,
4978,
1499,
6,
5764,
7,
834,
4978,
1499,
6,
853,
834,
14309,
1499,
6,
853,
834,
715,
1499,
6,
853,
834,
3082,
1499,
6,
7108,
834,
5525,
381,
3,
61,
3,
32102,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
496,
834,
4978,
61,
21680,
3066,
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,
-... |
What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals? | CREATE TABLE table_name_47 (
gold INTEGER,
bronze VARCHAR,
silver VARCHAR,
rank VARCHAR
) | SELECT MIN(gold) FROM table_name_47 WHERE silver > 11 AND rank = "1" AND bronze < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
2045,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2982... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
4294,
2490,
850,
3430,
11003,
3274,
96,
536,
121,
3430,
13467,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How large a crowd did the Fitzroy Away team draw? | CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR) | SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
75,
3623,
26,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
508,
3,
9,
4374,
410,
8,
9783,
172,
8170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates? | CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,
unsure_rate number
)
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height nu... | SELECT MAX(support_rate), MIN(consider_rate), MIN(oppose_rate) FROM candidate | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
4775,
834,
23,
26,
381,
6,
151,
834,
23,
26,
381,
6,
5492,
834,
7928,
1499,
6,
833,
1499,
6,
380,
834,
2206,
381,
6,
1099,
834,
2206,
381,
6,
10720,
15,
834,
2206,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
20390,
834,
2206,
201,
3,
17684,
599,
31750,
834,
2206,
201,
3,
17684,
599,
28236,
7,
15,
834,
2206,
61,
21680,
4775,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was his minimum number wins in a single year? | CREATE TABLE table_27776 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
) | SELECT MIN("Wins") FROM table_27776 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
3959,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
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,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
357,
4013,
3959,
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,
... |
What is the rnag for kippure transmitter? | CREATE TABLE table_18475946_2 (
rnag__mhz_ VARCHAR,
transmitter VARCHAR
) | SELECT rnag__mhz_ FROM table_18475946_2 WHERE transmitter = "Kippure" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4177,
3390,
4448,
834,
357,
41,
3,
52,
15603,
834,
834,
51,
107,
172,
834,
584,
4280,
28027,
6,
27707,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
52,
15603,
834,
834,
51,
107,
172,
834,
21680,
953,
834,
2606,
4177,
3390,
4448,
834,
357,
549,
17444,
427,
27707,
3274,
96,
439,
23,
1572,
1462,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the june 10-11 when august 21-22 is august 21, 2017? | CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, august_21_22 VARCHAR) | SELECT june_10_11 FROM table_25355392_2 WHERE august_21_22 = "August 21, 2017" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2469,
4867,
4508,
834,
357,
41,
6959,
15,
834,
1714,
834,
2596,
584,
4280,
28027,
6,
14663,
834,
2658,
834,
2884,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
6959,
15,
834,
1714,
834,
2596,
21680,
953,
834,
1828,
2469,
4867,
4508,
834,
357,
549,
17444,
427,
14663,
834,
2658,
834,
2884,
3274,
96,
26579,
12026,
1233,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the episodes when region 1 is september 19, 2006 | CREATE TABLE table_19401 (
"Volume" real,
"Discs" real,
"Episodes" real,
"Region 1" text,
"Region 2" text,
"Region 4" text
) | SELECT "Episodes" FROM table_19401 WHERE "Region 1" = 'September 19, 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
20016,
41,
96,
22803,
440,
15,
121,
490,
6,
96,
15683,
7,
121,
490,
6,
96,
427,
102,
159,
32,
1395,
121,
490,
6,
96,
17748,
23,
106,
209,
121,
1499,
6,
96,
17748,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
427,
102,
159,
32,
1395,
121,
21680,
953,
834,
2294,
20016,
549,
17444,
427,
96,
17748,
23,
106,
209,
121,
3274,
3,
31,
27652,
12370,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Pos has a First round smaller than 10? | CREATE TABLE table_name_11 (pos VARCHAR, first_round INTEGER) | SELECT pos FROM table_name_11 WHERE first_round < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
2748,
584,
4280,
28027,
6,
166,
834,
7775,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
13995,
65,
3,
9,
1485,
1751,
2755,
145,
335,
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,
3,
2748,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
166,
834,
7775,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What nationality has 1:55.35 as the time? | CREATE TABLE table_name_96 (
nationality VARCHAR,
time VARCHAR
) | SELECT nationality FROM table_name_96 WHERE time = "1:55.35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1157,
485,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
65,
209,
10,
3769,
5,
2469,
38,
8,
97,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
97,
3274,
96,
536,
10,
3769,
5,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What number of examines after 2005 has a pass percentage of 78.35% with less than 297 students? | CREATE TABLE table_62497 (
"Year" real,
"Number of Examinees" real,
"Number of Passed Students" real,
"Pass Percentage" text,
"Obtained GPA-5" real
) | SELECT COUNT("Number of Examinees") FROM table_62497 WHERE "Year" > '2005' AND "Pass Percentage" = '78.35%' AND "Number of Passed Students" < '297' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2266,
4327,
41,
96,
476,
2741,
121,
490,
6,
96,
567,
5937,
49,
13,
9723,
630,
15,
7,
121,
490,
6,
96,
567,
5937,
49,
13,
3424,
15,
26,
4375,
121,
490,
6,
96,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
567,
5937,
49,
13,
9723,
630,
15,
7,
8512,
21680,
953,
834,
948,
2266,
4327,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
22594,
31,
3430,
96,
20192,
1915,
3728,
545,
121,
3274,
3,
31,
... |
What country has a time of 7:28.66 and a rank less than 3? | CREATE TABLE table_name_27 (
country VARCHAR,
rank VARCHAR,
time VARCHAR
) | SELECT country FROM table_name_27 WHERE rank < 3 AND time = "7:28.66" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
684,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
9,
97,
13,
489,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
11003,
3,
2,
220,
3430,
97,
3274,
96,
940,
10,
2577,
5,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If Tuesday 1 June is 21' 05.27 107.351mph, what is the rider total number? | CREATE TABLE table_25220821_3 (
rider VARCHAR,
tues_1_june VARCHAR
) | SELECT COUNT(rider) FROM table_25220821_3 WHERE tues_1_june = "21' 05.27 107.351mph" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2884,
4018,
2658,
834,
519,
41,
2564,
52,
584,
4280,
28027,
6,
3,
17,
76,
15,
7,
834,
536,
834,
6959,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4055,
49,
61,
21680,
953,
834,
1828,
2884,
4018,
2658,
834,
519,
549,
17444,
427,
3,
17,
76,
15,
7,
834,
536,
834,
6959,
15,
3274,
96,
2658,
31,
3,
3076,
5,
2555,
335,
27914,
5553,
7656,
121,
1... |
What is Country, when ICAO is "Hesh"? | CREATE TABLE table_name_89 (country VARCHAR, icao VARCHAR) | SELECT country FROM table_name_89 WHERE icao = "hesh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
17529,
584,
4280,
28027,
6,
3,
2617,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
3,
15038,
667,
19,
96,
3845,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
3,
2617,
32,
3274,
96,
88,
7,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Natural change (per 1000) smaller than 14.3, and a Deaths of 104 000 had how many live births? | CREATE TABLE table_6689 (
"Average population (x 1000)" text,
"Live births" text,
"Deaths" text,
"Natural change" text,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) | SELECT "Live births" FROM table_6689 WHERE "Natural change (per 1000)" < '14.3' AND "Deaths" = '104 000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3914,
41,
96,
188,
624,
545,
2074,
41,
226,
5580,
61,
121,
1499,
6,
96,
24179,
3879,
7,
121,
1499,
6,
96,
2962,
9,
189,
7,
121,
1499,
6,
96,
567,
13149,
40,
483,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
24179,
3879,
7,
121,
21680,
953,
834,
3539,
3914,
549,
17444,
427,
96,
567,
13149,
40,
483,
41,
883,
5580,
61,
121,
3,
2,
3,
31,
536,
21841,
31,
3430,
96,
2962,
9,
189,
7,
121,
3274,
3,
31,
15442,
6078,
31... |
When the finish is t27 what is the year (s) won? | CREATE TABLE table_12504 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Year(s) won" FROM table_12504 WHERE "Finish" = 't27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
6348,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
476,
2741,
599,
7,
61,
751,
121,
21680,
953,
834,
10124,
6348,
549,
17444,
427,
96,
371,
77,
1273,
121,
3274,
3,
31,
17,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the 1968 for 1r | CREATE TABLE table_name_76 (
Id VARCHAR
) | SELECT 1968 FROM table_name_76 WHERE 1967 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
16506,
21,
209,
52,
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,
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,
16506,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
18148,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
is the usa on the chart more or less than 7 times ? | CREATE TABLE table_204_15 (
id number,
"year" number,
"date" text,
"venue" text,
"city" text,
"country" text,
"notes" text
) | SELECT (SELECT COUNT(*) FROM table_204_15 WHERE "country" = 'usa') > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1808,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
1808,
549,
17444,
427,
96,
17529,
121,
3274,
3,
31,
302,
9,
31,
61,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the power output (kw) of model hxd3d? | CREATE TABLE table_name_6 (power_output__kw_ VARCHAR, model VARCHAR) | SELECT power_output__kw_ FROM table_name_6 WHERE model = "hxd3d" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
6740,
834,
670,
2562,
834,
834,
157,
210,
834,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
579,
3911,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
579,
834,
670,
2562,
834,
834,
157,
210,
834,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
825,
3274,
96,
107,
226,
26,
519,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was the Opponent when the Score was 31-6? | CREATE TABLE table_name_83 (
opponent VARCHAR,
score VARCHAR
) | SELECT opponent FROM table_name_83 WHERE score = "31-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
4495,
9977,
116,
8,
17763,
47,
220,
27019,
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,
15264,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
2604,
3274,
96,
3341,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients whose marital status is married and item id is 51382? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.itemid = "51382" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the name of the player with the High rebounds when there was a Score of l 108 114 (ot)? | CREATE TABLE table_41280 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_41280 WHERE "Score" = 'l 108–114 (ot)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
17518,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
3,
23768,
121,
21680,
953,
834,
4853,
17518,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
40,
3,
16169,
104,
18959,
41,
32,
17,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the score of player jay haas? | CREATE TABLE table_name_48 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_48 WHERE player = "jay haas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
7,
9022,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
1959,
2662,
63,
4244,
9,
7,
58,
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,
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,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1959,
3274,
96,
1191,
63,
4244,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date did the game at Windy Hill take place? | CREATE TABLE table_name_24 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_24 WHERE venue = "windy hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
8,
467,
44,
5634,
63,
3588,
240,
286,
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,
833,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
5669,
3274,
96,
5165,
63,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the population of Green County? | CREATE TABLE table_name_15 (
population INTEGER,
county VARCHAR
) | SELECT MIN(population) FROM table_name_15 WHERE county = "green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
2074,
3,
21342,
17966,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2074,
13,
1862,
1334,
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,
3,
17684,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
5435,
3274,
96,
9423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who is the athlete with the rank smaller than 2? | CREATE TABLE table_name_10 (
athlete VARCHAR,
rank INTEGER
) | SELECT athlete FROM table_name_10 WHERE rank < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
17893,
584,
4280,
28027,
6,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
17893,
28,
8,
11003,
2755,
145,
204,
58,
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,
17893,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
11003,
3,
2,
204,
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 number of attempts were recorded when the completions were 223? | CREATE TABLE table_name_17 (attempts VARCHAR, completions VARCHAR) | SELECT attempts FROM table_name_17 WHERE completions = "223" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
144,
17,
9045,
7,
584,
4280,
28027,
6,
6929,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
381,
13,
9048,
130,
4381,
116,
8,
6929,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9048,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
6929,
7,
3274,
96,
357,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice? | CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR) | SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
13739,
4055,
584,
4280,
28027,
6,
21,
15,
4350,
584,
4280,
28027,
6,
244,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14941,
715,
7,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13739,
4055,
6,
332,
5411,
1161,
15,
4350,
6,
332,
5411,
3042,
4350,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
14941,
715,
7,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
... |
Who was the writer for the episode originally airing on March 1, 2004? | CREATE TABLE table_23916272_6 (written_by VARCHAR, original_air_date VARCHAR) | SELECT written_by FROM table_23916272_6 WHERE original_air_date = "March 1, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4729,
4056,
5865,
834,
948,
41,
14973,
834,
969,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4346,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
2773,
4729,
4056,
5865,
834,
948,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
25019,
1914,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which player has no 0 results and multiples ties? | CREATE TABLE table_name_41 (
player VARCHAR,
no_result VARCHAR,
tied VARCHAR
) | SELECT player FROM table_name_41 WHERE no_result = 0 AND tied > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
1959,
584,
4280,
28027,
6,
150,
834,
60,
7,
83,
17,
584,
4280,
28027,
6,
10422,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
150,
834,
60,
7,
83,
17,
3274,
3,
632,
3430,
10422,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is '4'? | CREATE TABLE table_name_81 (
total VARCHAR,
rank VARCHAR,
silver VARCHAR,
bronze VARCHAR
) | SELECT total FROM table_name_81 WHERE silver < 65 AND bronze > "4" AND rank = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
4294,
3,
2,
7123,
3430,
13467,
2490,
96,
20364,
3430,
11003,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Circuit in the ATCC Round 1 Series with Winner Jim Richards? | CREATE TABLE table_79664 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
) | SELECT "Circuit" FROM table_79664 WHERE "Winner" = 'jim richards' AND "Series" = 'atcc round 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
3539,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
18455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
4440,
3539,
591,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
354,
603,
2354,
986,
7,
31,
3430,
96,
12106,
7,
121,
3274,
3,
31,
144,
75,
75,
1751,
209,
31,
1... |
Who is the player that played for the school/club team Maryland? | CREATE TABLE table_name_13 (player VARCHAR, school_club_team VARCHAR) | SELECT player FROM table_name_13 WHERE school_club_team = "maryland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
20846,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
24,
1944,
21,
8,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
1635,
28900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all allergies with number of students affected with a bar chart, sort bars in desc order. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT Allergy, COUNT(*) FROM Has_Allergy GROUP BY Allergy ORDER BY Allergy DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
432,
49,
122,
63,
6,
2847,
17161,
599,
1935,
61,
21680,
4498,
834,
6838,
49,
122,
63,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
4674,
11300,
272,
476,
432,
49,
122,
63,
309,
25067,
1,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, find job_id and commission_pct , and visualize them by a bar chart, I want to list from high to low by the names. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... | SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
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,
446,
10539,
834,
4309,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
42... |
Name the period active for enya | CREATE TABLE table_name_42 (period_active VARCHAR, artist VARCHAR) | SELECT period_active FROM table_name_42 WHERE artist = "enya" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
4267,
32,
26,
834,
6645,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1059,
1676,
21,
3,
35,
63,
9,
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,
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,
1059,
834,
6645,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2377,
3274,
96,
35,
63,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position did the player from maynard evans hs play | CREATE TABLE table_11545282_4 (
position VARCHAR,
school_club_team VARCHAR
) | SELECT position FROM table_11545282_4 WHERE school_club_team = "Maynard Evans HS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
2128,
2577,
357,
834,
591,
41,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
410,
8,
1959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1102,
21680,
953,
834,
15660,
2128,
2577,
357,
834,
591,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
15881,
29,
986,
18305,
3,
4950,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the percentage of yes when there were 218846 yes votes | CREATE TABLE table_27955 (
"meas. num." real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | SELECT "% YES" FROM table_27955 WHERE "YES votes" = '218846' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
3769,
41,
96,
526,
9,
7,
5,
3,
5525,
535,
490,
6,
96,
3968,
15,
26,
121,
1499,
6,
96,
476,
3205,
11839,
121,
490,
6,
96,
7400,
11839,
121,
490,
6,
96,
1454... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
1454,
3,
476,
3205,
121,
21680,
953,
834,
357,
4440,
3769,
549,
17444,
427,
96,
476,
3205,
11839,
121,
3274,
3,
31,
2658,
4060,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414? | CREATE TABLE table_name_98 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR) | SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = "total northern villages" AND population__2006_ > 11414 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
9791,
7830,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
2074,
834,
834,
21196,
834,
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,
2847,
17161,
599,
9791,
7830,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
564,
3274,
96,
235,
1947,
8390,
12293,
121,
3430,
2074,
834,
834,
21196,
834... |
Which tournament was Dieter Kindlmann a partner? | CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR) | SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
47,
316,
449,
6557,
40,
2434,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2397,
3274,
96,
2498,
449,
773,
40,
2434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Just show the id and name of each editor using a bar chart, and could you show in desc by the Editor_ID? | CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
) | SELECT T1.Name, T1.Editor_ID FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID ORDER BY T1.Editor_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
834,
287,
1538,
17,
15,
15,
41,
11953,
834,
4309,
16,
17,
6,
3559,
834,
4309,
16,
17,
6,
3118,
834,
25160,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
332,
5411,
23954,
6,
332,
5411,
26527,
127,
834,
4309,
21680,
6005,
6157,
332,
536,
3,
15355,
3162,
6378,
834,
287,
1538,
17,
15,
15,
6157,
332,
357,
9191,
332,
5411,
26527,
127,
834,
4309,
3274,
332,
4416,
26527,
1... |
How many players made 4 touchdowns? | CREATE TABLE table_14342210_14 (
player VARCHAR,
touchdowns__5_points_ VARCHAR
) | SELECT COUNT(player) FROM table_14342210_14 WHERE touchdowns__5_points_ = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
15239,
834,
2534,
41,
1959,
584,
4280,
28027,
6,
19396,
7,
834,
834,
755,
834,
2700,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
25133,
4165,
15239,
834,
2534,
549,
17444,
427,
19396,
7,
834,
834,
755,
834,
2700,
7,
834,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id, and sort x axis from low to high order. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JO... | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
2168... |
What is the home team score at princes park? | CREATE TABLE table_52517 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_52517 WHERE "Venue" = 'princes park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
2517,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
19040,
372,
2604,
121,
21680,
953,
834,
755,
1828,
2517,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
12298,
2319,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of hire_date and the sum of salary bin hire_date by time, order by the Y-axis from high to low. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
CO... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
180,
6122,
599,
134,
4... |
what is june 10-11 when march 27-29 is 149? | CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, march_27_29 VARCHAR) | SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = "149" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2469,
4867,
4508,
834,
357,
41,
6959,
15,
834,
1714,
834,
2596,
584,
4280,
28027,
6,
10556,
834,
2555,
834,
3166,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
6959,
15,
834,
1714,
834,
2596,
21680,
953,
834,
1828,
2469,
4867,
4508,
834,
357,
549,
17444,
427,
10556,
834,
2555,
834,
3166,
3274,
96,
24816,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the maximum speed for the 1.150 ton ships? | CREATE TABLE table_26184 (
"Warship" text,
"tons ( L.ton )" text,
"Horse- power" real,
"Speed ( Knots )" real,
"Main Artillery" text,
"Built Year" real
) | SELECT "Speed ( Knots )" FROM table_26184 WHERE "tons ( L.ton )" = '1.150' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
25987,
41,
96,
21032,
2009,
121,
1499,
6,
96,
8057,
41,
301,
5,
17,
106,
3,
61,
121,
1499,
6,
96,
566,
127,
7,
15,
18,
579,
121,
490,
6,
96,
28328,
41,
10624,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
28328,
41,
10624,
17,
7,
3,
61,
121,
21680,
953,
834,
2688,
25987,
549,
17444,
427,
96,
8057,
41,
301,
5,
17,
106,
3,
61,
121,
3274,
3,
31,
11039,
1752,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.