NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the location for the 23-17 record? | CREATE TABLE table_47979 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Location" FROM table_47979 WHERE "Record" = '23-17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4440,
4440,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
591,
4440,
4440,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2773,
10794,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the score of the game when Maurice Williams (7) had the high assists? | CREATE TABLE table_name_8 (
score VARCHAR,
high_assists VARCHAR
) | SELECT score FROM table_name_8 WHERE high_assists = "maurice williams (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
2604,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
116,
7758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
51,
402,
4920,
56,
23,
265,
7,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the laps of october 26 | CREATE TABLE table_2267857_1 (laps VARCHAR, date VARCHAR) | SELECT laps FROM table_2267857_1 WHERE date = "October 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
3940,
3436,
834,
536,
41,
8478,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
14941,
7,
13,
3,
32,
75,
235,
1152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14941,
7,
21680,
953,
834,
357,
2688,
3940,
3436,
834,
536,
549,
17444,
427,
833,
3274,
96,
28680,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the earliest year that a candidate was first elected? | CREATE TABLE table_18443 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT MIN("First elected") FROM table_18443 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
4906,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
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,
3,
17684,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
25987,
4906,
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,
-10... |
if a man 's nationality was from belgium , how many medals total has his country won ? | CREATE TABLE table_203_374 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "total" FROM table_203_374 WHERE "nation" = 'belgium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
4581,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
121,
21680,
953,
834,
23330,
834,
519,
4581,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
31,
2370,
122,
2552,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Tony O'Sullivan's county? | CREATE TABLE table_name_67 (county VARCHAR, player VARCHAR) | SELECT county FROM table_name_67 WHERE player = "tony o'sullivan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
13362,
63,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9137,
411,
31,
23748,
31,
7,
5435,
58,
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,
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,
5435,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1959,
3274,
96,
17,
106,
63,
3,
32,
31,
7,
83,
20580,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the number of electorates for constituency number 56? | CREATE TABLE table_name_56 (
number_of_electorates__2009_ INTEGER,
constituency_number VARCHAR
) | SELECT SUM(number_of_electorates__2009_) FROM table_name_56 WHERE constituency_number = "56" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
381,
834,
858,
834,
400,
5317,
6203,
834,
834,
16660,
834,
3,
21342,
17966,
6,
6439,
4392,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
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,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
5525,
1152,
834,
858,
834,
400,
5317,
6203,
834,
834,
16660,
834,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
6439,
4392,
834,
5525,
1152,
3274,
96,
4834,
121,
1,
-100,
-100,
-100,
-100,
-... |
if there are 30 lifts, what is the name of the ski resort? | CREATE TABLE table_73848 (
"Name" text,
"Nearest city" text,
"Skiable area (acres)" real,
"Top elevation (feet)" real,
"Base elevation (feet)" real,
"Vertical (feet)" real,
"Runs" text,
"Lifts" real,
"Snowfall (in/year)" real
) | SELECT "Name" FROM table_73848 WHERE "Lifts" = '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3747,
3707,
41,
96,
23954,
121,
1499,
6,
96,
567,
2741,
222,
690,
121,
1499,
6,
96,
134,
2168,
179,
616,
41,
10610,
7,
61,
121,
490,
6,
96,
22481,
16417,
41,
89,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23954,
121,
21680,
953,
834,
940,
3747,
3707,
549,
17444,
427,
96,
434,
99,
17,
7,
121,
3274,
3,
31,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the genre for release-year of first charted record of 1988 | CREATE TABLE table_name_98 (
genre VARCHAR,
release_year_of_first_charted_record VARCHAR
) | SELECT genre FROM table_name_98 WHERE release_year_of_first_charted_record = 1988 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
5349,
584,
4280,
28027,
6,
1576,
834,
1201,
834,
858,
834,
14672,
834,
4059,
1054,
834,
60,
7621,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5349,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1576,
834,
1201,
834,
858,
834,
14672,
834,
4059,
1054,
834,
60,
7621,
3274,
10414,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose admission type is elective and procedure long title is transfusion of other serum? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Transfusion of other serum" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'? | CREATE TABLE tasks (
task_id number,
project_id number,
task_details text,
eg agree objectives text
)
CREATE TABLE organisations (
organisation_id number,
organisation_type text,
organisation_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
g... | SELECT role_code FROM project_staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4145,
41,
2491,
834,
23,
26,
381,
6,
516,
834,
23,
26,
381,
6,
2491,
834,
221,
5756,
7,
1499,
6,
3,
15,
122,
2065,
7233,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1075,
834,
4978,
21680,
516,
834,
26416,
549,
17444,
427,
833,
834,
7152,
2490,
3,
31,
23948,
18083,
4481,
627,
10,
5176,
10,
1755,
31,
3430,
833,
834,
235,
3,
2,
3,
31,
11505,
18,
4928,
10106,
3,
1206,
10,
4201,
... |
provide the number of patients whose year of birth is less than 2080 and drug code is posa200l? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2080" AND prescriptions.formulary_drug_cd = "POSA200L" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who won the 250cc in 1927? | CREATE TABLE table_name_31 (
year VARCHAR
) | SELECT 250 AS _cc FROM table_name_31 WHERE year = "1927" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
5986,
75,
75,
16,
957,
2555,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5986,
6157,
3,
834,
75,
75,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
215,
3274,
96,
2294,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the result where the opponent is Columbus Destroyers? | CREATE TABLE table_57325 (
"Week" real,
"Date" text,
"Opponent" text,
"Home/Away Game" text,
"Result" text
) | SELECT "Result" FROM table_57325 WHERE "Opponent" = 'columbus destroyers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
519,
1828,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
19040,
87,
188,
1343,
4435,
121,
1499,
6,
96,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3436,
519,
1828,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
3297,
440,
3465,
10123,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show all company names with a movie directed in year 1999. | CREATE TABLE culture_company (
company_name VARCHAR,
movie_id VARCHAR
)
CREATE TABLE movie (
movie_id VARCHAR,
year VARCHAR
) | SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1543,
834,
29179,
41,
349,
834,
4350,
584,
4280,
28027,
6,
1974,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
1974,
834,
23,
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,
332,
4416,
29179,
834,
4350,
21680,
1974,
6157,
332,
536,
3,
15355,
3162,
1543,
834,
29179,
6157,
332,
357,
9191,
332,
5411,
7168,
23,
15,
834,
23,
26,
3274,
332,
4416,
7168,
23,
15,
834,
23,
26,
549,
17444,
427,
... |
what was the daily maximum value of weight for patient 017-88691 on their current hospital encounter? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... | SELECT MAX(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-88691' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL GROUP BY STRFTIME('%y-%m-%d', patient.unitadmittime) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10061,
5,
9,
26,
5451,
9378,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
4... |
How many series numbers are there when there were 15.8 u.s. viewers (millions)? | CREATE TABLE table_27833469_1 (
series__number VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT COUNT(series__number) FROM table_27833469_1 WHERE us_viewers__millions_ = "15.8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4591,
3710,
3951,
834,
536,
41,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
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,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2555,
4591,
3710,
3951,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
1808,
5,
927,
121,
1,
-100,
-100,
-... |
What is the City 1 that has less than 8.211 million passengers and traveled 1075km in distance? | CREATE TABLE table_41107 (
"Rank" real,
"City 1" text,
"City 2" text,
"2012 Passengers (in millions)" real,
"2011 Passengers (in millions)" text,
"Distance" text
) | SELECT "City 1" FROM table_41107 WHERE "2012 Passengers (in millions)" < '8.211' AND "Distance" = '1075km' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
18057,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
209,
121,
1499,
6,
96,
254,
485,
204,
121,
1499,
6,
96,
12172,
3424,
4606,
277,
41,
77,
4040,
61,
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,
96,
254,
485,
209,
121,
21680,
953,
834,
4853,
18057,
549,
17444,
427,
96,
12172,
3424,
4606,
277,
41,
77,
4040,
61,
121,
3,
2,
3,
31,
927,
5,
27278,
31,
3430,
96,
308,
23,
8389,
121,
3274,
3,
31,
1714,
3072,
... |
How many opponents were there in a game higher than 20 on January 28? | CREATE TABLE table_name_15 (opponents VARCHAR, game VARCHAR, date VARCHAR) | SELECT opponents FROM table_name_15 WHERE game > 20 AND date = "january 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
32,
102,
9977,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
16383,
130,
132,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16383,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
467,
2490,
460,
3430,
833,
3274,
96,
7066,
76,
1208,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the malayalam name for leo | CREATE TABLE table_20354_7 (malayalam_name VARCHAR, zodiac_sign VARCHAR) | SELECT malayalam_name FROM table_20354_7 WHERE zodiac_sign = "Leo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
5062,
834,
940,
41,
51,
22858,
40,
265,
834,
4350,
584,
4280,
28027,
6,
26933,
9,
75,
834,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
51,
22858,
40,
265,
834,
4350,
21680,
953,
834,
23330,
5062,
834,
940,
549,
17444,
427,
26933,
9,
75,
834,
6732,
3274,
96,
2796,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the title of the episode with series number 36? | CREATE TABLE table_28146944_2 (title VARCHAR, no_in_series VARCHAR) | SELECT title FROM table_28146944_2 WHERE no_in_series = 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2534,
3951,
3628,
834,
357,
41,
21869,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2233,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2577,
2534,
3951,
3628,
834,
357,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the number of venue from each venue, display by the X in desc please. | CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
) | SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue ORDER BY Venue DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4786,
41,
9644,
834,
4309,
16,
17,
6,
7678,
1499,
6,
29940,
1499,
6,
5570,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
29779,
834,
4309,
16,
17,
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,
29940,
6,
2847,
17161,
599,
553,
35,
76,
15,
61,
21680,
4786,
350,
4630,
6880,
272,
476,
29940,
4674,
11300,
272,
476,
29940,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many were won when 5 were lost? | CREATE TABLE table_17625749_3 (won VARCHAR, lost VARCHAR) | SELECT won FROM table_17625749_3 WHERE lost = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4056,
3436,
3647,
834,
519,
41,
210,
106,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
130,
751,
116,
305,
130,
1513,
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... | [
3,
23143,
14196,
751,
21680,
953,
834,
2517,
4056,
3436,
3647,
834,
519,
549,
17444,
427,
1513,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What district did James O'Connor belong to? | CREATE TABLE table_1342451_16 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342451_16 WHERE incumbent = "James O'Connor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2266,
5553,
834,
2938,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
410,
2549,
411,
31,
22329,
13000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3939,
21680,
953,
834,
23747,
2266,
5553,
834,
2938,
549,
17444,
427,
28406,
3274,
96,
683,
9,
2687,
411,
31,
22329,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many weeks have an attendance less than 26,048? | CREATE TABLE table_name_7 (
week INTEGER,
attendance INTEGER
) | SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
471,
3,
21342,
17966,
6,
11364,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1274,
43,
46,
11364,
705,
145,
13597,
632,
3707,
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,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
11364,
3,
2,
2208,
3,
15316,
20788,
11484,
927,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose primary disease is st-segment elevation myocardial infarction\cardiac cath? | 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 WHERE demographic.diagnosis = "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\CARDIAC CATH" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
4209,
18,
134,
8579,
11810,
3,
16479,
553,
8015,
283,
476,
5618,
10327... |
Which Opponent has an Away of 1 1, and a Home of 3 3? | CREATE TABLE table_name_25 (
opponent VARCHAR,
away VARCHAR,
home VARCHAR
) | SELECT opponent FROM table_name_25 WHERE away = "1–1" AND home = "3–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
15264,
584,
4280,
28027,
6,
550,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,
46,
71,
1343,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
550,
3274,
96,
536,
104,
536,
121,
3430,
234,
3274,
96,
519,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location of the Asian Games after 2002 when Kim Hyun-soo won the gold? | CREATE TABLE table_name_57 (location VARCHAR, year VARCHAR, gold VARCHAR) | SELECT location FROM table_name_57 WHERE year > 2002 AND gold = "kim hyun-soo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
14836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
6578,
5880,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
215,
2490,
4407,
3430,
2045,
3274,
96,
19754,
3,
107,
63,
202,
18,
7,
32,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what ground was the game on 31 Jul 2007? | CREATE TABLE table_name_60 (
ground VARCHAR,
date VARCHAR
) | SELECT ground FROM table_name_60 WHERE date = "31 jul 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
1591,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
1591,
47,
8,
467,
30,
2664,
17829,
4101,
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,
1591,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
3341,
3,
354,
83,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On which week was the opponent the oakland raiders? | CREATE TABLE table_name_91 (
week INTEGER,
opponent VARCHAR
) | SELECT SUM(week) FROM table_name_91 WHERE opponent = "oakland raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
471,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
84,
471,
47,
8,
15264,
8,
11586,
40,
232,
15941,
277,
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... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
15264,
3274,
96,
32,
1639,
40,
232,
15941,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Barreto's song choice when the theme was samba? | CREATE TABLE table_27614571_1 (
song_choice VARCHAR,
theme VARCHAR
) | SELECT song_choice FROM table_27614571_1 WHERE theme = "Samba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4241,
2128,
4450,
834,
536,
41,
2324,
834,
3995,
867,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
1386,
60,
235,
31,
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,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
834,
3995,
867,
21680,
953,
834,
2555,
4241,
2128,
4450,
834,
536,
549,
17444,
427,
3800,
3274,
96,
134,
14303,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the opponent on april 26, 2003? | CREATE TABLE table_name_25 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_25 WHERE date = "april 26, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
30,
3,
9,
2246,
40,
13597,
3888,
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,
15264,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
13597,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the tournament for 2010 of grand slam tournaments | CREATE TABLE table_name_93 (tournament VARCHAR) | SELECT tournament FROM table_name_93 WHERE 2010 = "grand slam tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5892,
21,
2735,
13,
1907,
3,
7,
40,
265,
5892,
7,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2735,
3274,
96,
15448,
3,
7,
40,
265,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In which year was the Tournament of european indoor championships played where the Extra was 800 m and the Result was 2nd? | CREATE TABLE table_58030 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Year" FROM table_58030 WHERE "Extra" = '800 m' AND "Tournament" = 'european indoor championships' AND "Result" = '2nd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2079,
1458,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5420,
1313,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
755,
2079,
1458,
549,
17444,
427,
96,
5420,
1313,
121,
3274,
3,
31,
6192,
3,
51,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
28188,
152,
5297,
10183,
7,
31,
3430,
9... |
What were the options that were completed before the 4 th task that had viewers selecting nan? | CREATE TABLE table_6554 (
"Task No." real,
"Day announced" text,
"Options" text,
"Viewers' selection" text,
"Result" text
) | SELECT "Options" FROM table_6554 WHERE "Result" = 'completed' AND "Task No." < '4' AND "Viewers' selection" = 'nan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
5062,
41,
96,
382,
9,
7,
157,
465,
535,
490,
6,
96,
16803,
2162,
121,
1499,
6,
96,
9546,
106,
7,
121,
1499,
6,
96,
15270,
277,
31,
1801,
121,
1499,
6,
96,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9546,
106,
7,
121,
21680,
953,
834,
4122,
5062,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
25288,
26,
31,
3430,
96,
382,
9,
7,
157,
465,
535,
3,
2,
3,
31,
591,
31,
3430,
96,
15270,
277,
31,
1801,
121,
... |
What was the playoff result when they finished 5th, north in the regular sesason? | CREATE TABLE table_15056103_1 (
playoffs VARCHAR,
regular_season VARCHAR
) | SELECT playoffs FROM table_15056103_1 WHERE regular_season = "5th, North" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
4834,
17864,
834,
536,
41,
15289,
7,
584,
4280,
28027,
6,
1646,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
15289,
741,
116,
79,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15289,
7,
21680,
953,
834,
12278,
4834,
17864,
834,
536,
549,
17444,
427,
1646,
834,
9476,
3274,
96,
755,
189,
6,
1117,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the previous school of #22? | CREATE TABLE table_24925945_3 (previous_school VARCHAR, _number VARCHAR) | SELECT previous_school FROM table_24925945_3 WHERE _number = 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4508,
3390,
2128,
834,
519,
41,
2026,
19117,
834,
6646,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1767,
834,
6646,
21680,
953,
834,
2266,
4508,
3390,
2128,
834,
519,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the point value(s) for when the athlete was Barney Berlinger? | CREATE TABLE table_26454128_9 (points VARCHAR, athlete VARCHAR) | SELECT points FROM table_26454128_9 WHERE athlete = "Barney Berlinger" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2128,
4853,
2577,
834,
1298,
41,
2700,
7,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
500,
701,
599,
7,
61,
21,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
2688,
2128,
4853,
2577,
834,
1298,
549,
17444,
427,
17893,
3274,
96,
14851,
3186,
4308,
1304,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Nationality that shows 4 as the ranking? | CREATE TABLE table_name_57 (nationality VARCHAR, ranking VARCHAR) | SELECT nationality FROM table_name_57 WHERE ranking = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
16557,
485,
584,
4280,
28027,
6,
11592,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
868,
485,
24,
1267,
314,
38,
8,
11592,
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,
1157,
485,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
11592,
3274,
314,
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 player has defensive back as the position, with a round less than 2? | CREATE TABLE table_79059 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) | SELECT "Player" FROM table_79059 WHERE "Position" = 'defensive back' AND "Round" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2394,
3390,
41,
96,
15800,
49,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
12619,
434,
1949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
121,
21680,
953,
834,
940,
2394,
3390,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
221,
23039,
15,
223,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
... |
Record of 18 15 6 belongs to what lowest attendance? | CREATE TABLE table_name_32 (
attendance INTEGER,
record VARCHAR
) | SELECT MIN(attendance) FROM table_name_32 WHERE record = "18–15–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
11364,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
11392,
13,
507,
627,
431,
16952,
12,
125,
7402,
11364,
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,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1368,
3274,
96,
2606,
104,
1808,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of meter_600 and meter_100 , and could you display x axis in descending order? | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
... | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_600 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
6007,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
6007,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose diagnoses long title is alkalosis and lab test fluid is urine? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Alkalosis" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Elevation of 12,183 feet 3713 m is what average route? | CREATE TABLE table_36437 (
"Rank" real,
"Highway" text,
"Elevation" text,
"Surface" text,
"Route" real
) | SELECT AVG("Route") FROM table_36437 WHERE "Elevation" = '12,183 feet 3713 m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
591,
4118,
41,
96,
22557,
121,
490,
6,
96,
21417,
1343,
121,
1499,
6,
96,
427,
10912,
257,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
448,
670,
15,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
448,
670,
15,
8512,
21680,
953,
834,
3420,
591,
4118,
549,
17444,
427,
96,
427,
10912,
257,
121,
3274,
3,
31,
2122,
6,
24361,
1922,
6862,
2368,
3,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What term end had minister Danny Ayalon? | CREATE TABLE table_name_40 (term_end VARCHAR, minister VARCHAR) | SELECT term_end FROM table_name_40 WHERE minister = "danny ayalon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1987,
834,
989,
584,
4280,
28027,
6,
6323,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1657,
414,
141,
6323,
19445,
71,
63,
138,
106,
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,
1657,
834,
989,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
6323,
3274,
96,
26,
15159,
3,
9,
63,
138,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the least september 1943 when late 1943 is 78000 | CREATE TABLE table_1115992_1 (sept_1943 INTEGER, late_1943 VARCHAR) | SELECT MIN(sept_1943) FROM table_1115992_1 WHERE late_1943 = 78000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
3390,
4508,
834,
536,
41,
7,
6707,
834,
2294,
4906,
3,
21342,
17966,
6,
1480,
834,
2294,
4906,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
6707,
834,
2294,
4906,
61,
21680,
953,
834,
15866,
3390,
4508,
834,
536,
549,
17444,
427,
1480,
834,
2294,
4906,
3274,
489,
25129,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is drug route and drug dose of drug name neo*po*ferrous sulfate elixir? | 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 prescriptions.route, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "NEO*PO*Ferrous Sulfate Elixir" | [
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,
7744,
7,
5,
20300,
6,
7744,
7,
5,
26,
13534,
834,
12051,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
4171,
667,
1935,
6618,
1935,
371,
49,
8283,
180,
83,
89,
342,
7495,
226,
23,
52,
121,
... |
Which team scored less than 35 points? | CREATE TABLE table_name_78 (
team VARCHAR,
points INTEGER
) | SELECT team FROM table_name_78 WHERE points < 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
372,
584,
4280,
28027,
6,
979,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
5799,
705,
145,
3097,
979,
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,
372,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
979,
3,
2,
3097,
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... |
I want the game site for week of 11 | CREATE TABLE table_52840 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
) | SELECT "Game site" FROM table_52840 WHERE "Week" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
26311,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
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,
1... | [
3,
23143,
14196,
96,
23055,
353,
121,
21680,
953,
834,
5373,
26311,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the apartment number and the number of rooms for each apartment, list in descending by the y-axis. | CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_nam... | SELECT apt_number, room_count FROM Apartments ORDER BY room_count DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
7,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
6137,
834,
4978,
3,
28027,
599,
1808,
201,
3,
6789,
834,
5525,
1152,
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,
3,
6789,
834,
5525,
1152,
6,
562,
834,
13362,
21680,
15970,
7,
4674,
11300,
272,
476,
562,
834,
13362,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the number of runner-up results for the years (won in bold) 1984, 2010? | CREATE TABLE table_1463332_2 (_number_runner_up INTEGER, years__won_in_bold_ VARCHAR) | SELECT MAX(_number_runner_up) FROM table_1463332_2 WHERE years__won_in_bold_ = "1984, 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
4201,
2668,
834,
357,
41,
834,
5525,
1152,
834,
10806,
834,
413,
3,
21342,
17966,
6,
203,
834,
834,
210,
106,
834,
77,
834,
4243,
26,
834,
584,
4280,
28027,
61,
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,
4800,
4,
599,
834,
5525,
1152,
834,
10806,
834,
413,
61,
21680,
953,
834,
24300,
4201,
2668,
834,
357,
549,
17444,
427,
203,
834,
834,
210,
106,
834,
77,
834,
4243,
26,
834,
3274,
96,
24151,
8525,
2735,
121,
1,
-1... |
What is the DuBose Porter with Roy Barnes at 54%? | CREATE TABLE table_name_16 (dubose_porter VARCHAR, roy_barnes VARCHAR) | SELECT dubose_porter FROM table_name_16 WHERE roy_barnes = "54%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1259,
115,
32,
7,
15,
834,
1493,
49,
584,
4280,
28027,
6,
3,
8170,
834,
1047,
1496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
146,
115,
32,
7,
15,
834,
1493,
49,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3,
8170,
834,
1047,
1496,
3274,
96,
755,
5988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the hits for years before 1883 | CREATE TABLE table_name_86 (hits VARCHAR, year INTEGER) | SELECT hits FROM table_name_86 WHERE year < 1883 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
10536,
7,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
8046,
21,
203,
274,
507,
4591,
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,
8046,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
215,
3,
2,
507,
4591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Visualize the relationship between School_ID and All_Games_Percent , and group by attribute All_Games. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
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,
1121,
834,
4309,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Title has a Length of 3:32, and a Producer(s) of hadise açıkgöz, yves jongen? | CREATE TABLE table_name_91 (title VARCHAR, length VARCHAR, producer_s_ VARCHAR) | SELECT title FROM table_name_91 WHERE length = "3:32" AND producer_s_ = "hadise açıkgöz, yves jongen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
21869,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
6,
8211,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11029,
65,
3,
9,
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,
2233,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2475,
3274,
96,
519,
10,
2668,
121,
3430,
8211,
834,
7,
834,
3274,
96,
8399,
159,
15,
3,
9,
8970,
2,
8711,
1872,
172,
6,
3,
63,
162,
7,
3,
15429,
729,
1... |
What is the Date with a Leading scorer with maurice williams (25), and a Score with 102 105? | CREATE TABLE table_57891 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
) | SELECT "Date" FROM table_57891 WHERE "Leading scorer" = 'maurice williams (25)' AND "Score" = '102–105' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3914,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3436,
3914,
536,
549,
17444,
427,
96,
2796,
9,
26,
53,
2604,
52,
121,
3274,
3,
31,
51,
402,
4920,
56,
23,
265,
7,
4743,
9120,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
1438... |
What is the nationality of th player who's school is Clemson? | CREATE TABLE table_20198 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_20198 WHERE "School/Club Team" = 'Clemson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8584,
927,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24732,
485,
121,
21680,
953,
834,
8584,
927,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
254,
109,
51,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Total has a Finish of t64, and a Year won larger than 2006? | CREATE TABLE table_63227 (
"Player" text,
"Country" text,
"Year won" real,
"Total" real,
"To par" text,
"Finish" text
) | SELECT MAX("Total") FROM table_63227 WHERE "Finish" = 't64' AND "Year won" > '2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
357,
2555,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
751,
121,
490,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
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,
4800,
4,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
3891,
357,
2555,
549,
17444,
427,
96,
371,
77,
1273,
121,
3274,
3,
31,
17,
4389,
31,
3430,
96,
476,
2741,
751,
121,
2490,
3,
31,
21196,
31,
1,
-100,
-100,
-1... |
What is the average goals Sawyer has? | CREATE TABLE table_79827 (
"Nat." text,
"Name" text,
"Since" text,
"Goals" real,
"Transfer fee" text
) | SELECT AVG("Goals") FROM table_79827 WHERE "Name" = 'sawyer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
2555,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
134,
77,
565,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
18474,
1010,
2572,
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,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
6221,
5405,
8512,
21680,
953,
834,
940,
3916,
2555,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
13125,
7975,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was second more , scott pfeifer or sean nedohin ? | CREATE TABLE table_204_747 (
id number,
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"events" text
) | SELECT "second" FROM table_204_747 WHERE "second" IN ('scott pfeifer', 'sean nedohin') GROUP BY "second" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
4177,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
4009,
102,
121,
1499,
6,
96,
14965,
121,
1499,
6,
96,
12091,
121,
1499,
6,
96,
109,
9,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12091,
121,
21680,
953,
834,
26363,
834,
940,
4177,
549,
17444,
427,
96,
12091,
121,
3388,
41,
31,
7,
10405,
3,
102,
89,
15,
99,
49,
31,
6,
3,
31,
7,
15,
152,
3,
29,
15,
26,
32,
2907,
31,
61,
350,
4630,
... |
What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer? | CREATE TABLE table_name_88 (chrome VARCHAR, internet_explorer VARCHAR) | SELECT chrome FROM table_name_88 WHERE internet_explorer = "72.03%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
10363,
526,
584,
4280,
28027,
6,
1396,
834,
20901,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
3509,
7,
130,
338,
10780,
383,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17520,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1396,
834,
20901,
3274,
96,
940,
24273,
5170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank? | CREATE TABLE table_name_87 (lane INTEGER, rank VARCHAR, time VARCHAR, name VARCHAR) | SELECT MAX(lane) FROM table_name_87 WHERE time < 49.67 AND name = "michael klim" AND rank < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
8102,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
8102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8102,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
97,
3,
2,
9526,
5,
3708,
3430,
564,
3274,
96,
51,
362,
9,
15,
40,
3,
157,
4941,
121,
3430,
11003,
3,
2,
209,
1,
-100,
-100,
-100,
-100... |
What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals? | CREATE TABLE table_name_46 (
wins INTEGER,
goals_for VARCHAR,
goal_difference VARCHAR,
position VARCHAR
) | SELECT MIN(wins) FROM table_name_46 WHERE goal_difference < 33 AND position < 13 AND goals_for = 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
9204,
3,
21342,
17966,
6,
1766,
834,
1161,
584,
4280,
28027,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1288,
834,
26,
99,
11788,
3,
2,
5400,
3430,
1102,
3,
2,
1179,
3430,
1766,
834,
1161,
3274,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the number of schools that have more than one donator whose donation amount is less than 8.5. | CREATE TABLE endowment (
endowment_id number,
school_id number,
donator_name text,
amount number
)
CREATE TABLE budget (
school_id number,
year number,
budgeted number,
total_budget_percent_budgeted number,
invested number,
total_budget_percent_invested number,
budget_invest... | SELECT COUNT(*) FROM (SELECT * FROM endowment WHERE amount > 8.5 GROUP BY school_id HAVING COUNT(*) > 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
414,
2381,
297,
41,
414,
2381,
297,
834,
23,
26,
381,
6,
496,
834,
23,
26,
381,
6,
278,
1016,
834,
4350,
1499,
6,
866,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
23143,
14196,
1429,
21680,
414,
2381,
297,
549,
17444,
427,
866,
2490,
3,
19253,
350,
4630,
6880,
272,
476,
496,
834,
23,
26,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
... |
What was the score of tie number 15? | CREATE TABLE table_name_6 (
score VARCHAR,
tie_no VARCHAR
) | SELECT score FROM table_name_6 WHERE tie_no = "15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
6177,
381,
627,
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,
948,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what were the four most common specimen tests performed until 3 years ago? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE a... | SELECT t1.culturesite FROM (SELECT microlab.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microlab WHERE DATETIME(microlab.culturetakentime) <= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY microlab.culturesite) AS t1 WHERE t1.c1 <= 4 | [
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,
17,
5411,
10547,
3585,
21680,
41,
23143,
14196,
2179,
9339,
5,
10547,
3585,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
75,
... |
In what tournament was the winning score 68-67-65-66=266? | CREATE TABLE table_20585 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Tournament" FROM table_20585 WHERE "Winning score" = '68-67-65-66=266' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
4433,
41,
96,
4168,
535,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
3696,
260,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
23201,
4433,
549,
17444,
427,
96,
518,
10503,
2604,
121,
3274,
3,
31,
3651,
18,
3708,
18,
4122,
18,
3539,
2423,
357,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the winning time in the year when the odds of the winner were 2.94? | CREATE TABLE table_24544 (
"Year" real,
"Horse" text,
"Driver" text,
"Trainer" text,
"Country of owner" text,
"Odds of winner" text,
"Winning time (km rate)" text
) | SELECT "Winning time (km rate)" FROM table_24544 WHERE "Odds of winner" = '2.94' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
3628,
41,
96,
476,
2741,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
10628,
651,
13,
2527,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10503,
97,
41,
5848,
1080,
61,
121,
21680,
953,
834,
357,
2128,
3628,
549,
17444,
427,
96,
667,
26,
26,
7,
13,
4668,
121,
3274,
3,
31,
4416,
4240,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the change over same quarter the previous year in the period when the 89.6% of the trains arrive within 5 minutes of scheduled time (over three months)? | CREATE TABLE table_171748_3 (change_over_same_quarter_the_previous_year VARCHAR, _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ VARCHAR) | SELECT change_over_same_quarter_the_previous_year FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ = "89.6%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2517,
3707,
834,
519,
41,
13073,
834,
1890,
834,
7,
265,
15,
834,
19973,
834,
532,
834,
2026,
19117,
834,
1201,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
9719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
483,
834,
1890,
834,
7,
265,
15,
834,
19973,
834,
532,
834,
2026,
19117,
834,
1201,
21680,
953,
834,
2517,
2517,
3707,
834,
519,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
9719,
7,
834,
10269,
3745,
834,
4065,
... |
What is the high goal against associated with 18 wins, a Goal Difference of 43, and under 6 draws? | CREATE TABLE table_name_57 (goals_against INTEGER, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR) | SELECT MAX(goals_against) FROM table_name_57 WHERE wins = 18 AND goal_difference = 43 AND draws < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
839,
5405,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
14924,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
9204,
3274,
507,
3430,
1288,
834,
26,
99,
11788,
3274,
8838,
3430,
14924,
3,
2,
431,
1,
-100,
-100,
-100,
-100,... |
Where was the episode with series number US9 filmed? | CREATE TABLE table_19897294_10 (
location_s_ VARCHAR,
no_in_series VARCHAR
) | SELECT location_s_ FROM table_19897294_10 WHERE no_in_series = "US9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3914,
5865,
4240,
834,
1714,
41,
1128,
834,
7,
834,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
7,
834,
21680,
953,
834,
2294,
3914,
5865,
4240,
834,
1714,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
96,
3063,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the general classification leader for stage 3? | CREATE TABLE table_19524 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text
) | SELECT "General classification" FROM table_19524 WHERE "Stage" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
2266,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20857,
13774,
121,
21680,
953,
834,
22464,
2266,
549,
17444,
427,
96,
134,
6505,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was the home team when Luton Town was the home team? | CREATE TABLE table_46842 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Home team" FROM table_46842 WHERE "Away team" = 'luton town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4608,
357,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
4448,
4608,
357,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
40,
76,
17,
106,
1511,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where's the location for the opponent James Zikic and 3 rounds? | CREATE TABLE table_68306 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Location" FROM table_68306 WHERE "Round" = '3' AND "Opponent" = 'james zikic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
1458,
948,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
448,
32,
1106,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
3651,
1458,
948,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
519,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
1191,
2687,
3686,
157,
447,
31,
1,
-100,
... |
for the tournament of world amateur championship what was the result in 2010? | CREATE TABLE table_name_81 (
result VARCHAR,
year VARCHAR,
tournament VARCHAR
) | SELECT result FROM table_name_81 WHERE year = 2010 AND tournament = "world amateur championship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21,
8,
5892,
13,
296,
13217,
10183,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
215,
3274,
2735,
3430,
5892,
3274,
96,
7276,
13217,
10183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many total seasons are given in the chart ? | CREATE TABLE table_204_985 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
) | SELECT COUNT("season") FROM table_204_985 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
755,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
7775,
121,
1499,
6,
96,
13442,
121,
1499,
6,
96,
5515,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9476,
8512,
21680,
953,
834,
26363,
834,
3916,
755,
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... |
What is the Date of the game with a Record of 8 10 6? | CREATE TABLE table_name_99 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_99 WHERE record = "8–10–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
8,
467,
28,
3,
9,
11392,
13,
505,
335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1368,
3274,
96,
927,
104,
1714,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Championships have a League of ontario australian football league? | CREATE TABLE table_name_70 (
championships VARCHAR,
league VARCHAR
) | SELECT championships FROM table_name_70 WHERE league = "ontario australian football league" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
10183,
7,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7666,
7,
43,
3,
9,
3815,
13,
30,
5310,
32,
23407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10183,
7,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
5533,
3274,
96,
1770,
14414,
23407,
29,
3370,
5533,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Public Institution is in Black River Falls? | CREATE TABLE table_name_80 (institution VARCHAR, affiliation VARCHAR, location VARCHAR) | SELECT institution FROM table_name_80 WHERE affiliation = "public" AND location = "black river falls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
77,
17448,
584,
4280,
28027,
6,
24405,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2575,
14932,
19,
16,
1589,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6568,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
24405,
3274,
96,
15727,
121,
3430,
1128,
3274,
96,
19699,
4033,
7250,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many polls taken on different dates show an undecided percentage of 25%? | CREATE TABLE table_20683381_2 (
date_of_opinion_poll VARCHAR,
undecided VARCHAR
) | SELECT COUNT(date_of_opinion_poll) FROM table_20683381_2 WHERE undecided = "25%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3651,
4201,
4959,
834,
357,
41,
833,
834,
858,
834,
32,
22441,
834,
3233,
40,
584,
4280,
28027,
6,
3550,
10812,
15,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5522,
834,
858,
834,
32,
22441,
834,
3233,
40,
61,
21680,
953,
834,
1755,
3651,
4201,
4959,
834,
357,
549,
17444,
427,
3550,
10812,
15,
26,
3274,
96,
357,
2712,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What was the surface type during the match with the score of 6 4, 7 6 (7-5)?? | CREATE TABLE table_9056 (
"Outcome" text,
"Date" real,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Surface" FROM table_9056 WHERE "Score" = '6–4, 7–6 (7-5)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2394,
4834,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
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,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
2394,
4834,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
948,
104,
8525,
489,
104,
948,
13649,
18,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Picks have an Overall smaller than 304, and a Position of g, and a Round smaller than 11? | CREATE TABLE table_76729 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Pick") FROM table_76729 WHERE "Overall" < '304' AND "Position" = 'g' AND "Round" < '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3708,
3166,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
2847,
17161,
599,
121,
345,
3142,
8512,
21680,
953,
834,
940,
3708,
3166,
549,
17444,
427,
96,
23847,
1748,
121,
3,
2,
3,
31,
23702,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
122,
31,
3430,
96,
448,
32,
... |
Show me the number of born state by born state in a histogram, display in desc by the bar. | CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE head (
head_ID int,
name text,
born_state tex... | SELECT born_state, COUNT(born_state) FROM head GROUP BY born_state ORDER BY born_state DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
758,
41,
3066,
834,
4309,
16,
17,
6,
819,
834,
4309,
16,
17,
6,
7234,
834,
2708,
53,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
1775,
834,
4309,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2170,
834,
5540,
6,
2847,
17161,
599,
7473,
834,
5540,
61,
21680,
819,
350,
4630,
6880,
272,
476,
2170,
834,
5540,
4674,
11300,
272,
476,
2170,
834,
5540,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there. | CREATE TABLE perpetrator (Country VARCHAR) | SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
28998,
127,
41,
10628,
651,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1440,
13,
28998,
127,
7,
58,
3111,
284,
684,
11,
8,
3,
9921,
381,
13,
28998,
127,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
28998,
127,
350,
4630,
6880,
272,
476,
6993,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country mines 24.0% of the world demand of uranium? | CREATE TABLE table_1296 (
"Country" text,
"Uranium required 2006-08" text,
"% of world demand" text,
"Indigenous mining production 2006" text,
"Deficit (-surplus)" text
) | SELECT "Indigenous mining production 2006" FROM table_1296 WHERE "% of world demand" = '24.0%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
41,
96,
10628,
651,
121,
1499,
6,
96,
1265,
2002,
2552,
831,
3581,
18,
4018,
121,
1499,
6,
96,
1454,
13,
296,
2173,
121,
1499,
6,
96,
1570,
26,
2211,
1162,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1570,
26,
2211,
1162,
5558,
999,
3581,
121,
21680,
953,
834,
2122,
4314,
549,
17444,
427,
96,
1454,
13,
296,
2173,
121,
3274,
3,
31,
2266,
5,
6932,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Tournament, when the Opponent is Patricia Mayr-Achleitner? | CREATE TABLE table_name_83 (
tournament VARCHAR,
opponent VARCHAR
) | SELECT tournament FROM table_name_83 WHERE opponent = "patricia mayr-achleitner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
5892,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
20502,
6,
116,
8,
4495,
9977,
19,
25630,
932,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
15264,
3274,
96,
4665,
2234,
23,
9,
164,
52,
18,
1836,
109,
155,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Surface, when Opponents is 'Daniel Nestor Sandon Stolle'? | CREATE TABLE table_name_39 (
surface VARCHAR,
opponents VARCHAR
) | SELECT surface FROM table_name_39 WHERE opponents = "daniel nestor sandon stolle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1774,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
18884,
6,
116,
4495,
9977,
7,
19,
3,
31,
308,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1774,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
16383,
3274,
96,
26,
2738,
15,
40,
9190,
127,
3,
7,
232,
106,
3,
7,
235,
195,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the assets (in billions) of the company headquartered in China and whose profits are 21.2 billion? | CREATE TABLE table_1682026_3 (assets__billion_$_ VARCHAR, headquarters VARCHAR, profits__billion_$_ VARCHAR) | SELECT assets__billion_$_ FROM table_1682026_3 WHERE headquarters = "China" AND profits__billion_$_ = "21.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
1755,
2688,
834,
519,
41,
3974,
17,
7,
834,
834,
115,
14916,
834,
3229,
834,
584,
4280,
28027,
6,
13767,
584,
4280,
28027,
6,
9613,
834,
834,
115,
14916,
834,
3229,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4089,
834,
834,
115,
14916,
834,
3229,
834,
21680,
953,
834,
24274,
1755,
2688,
834,
519,
549,
17444,
427,
13767,
3274,
96,
26154,
121,
3430,
9613,
834,
834,
115,
14916,
834,
3229,
834,
3274,
96,
357,
10917,
121,
1,
... |
braden gellenthien won the men 's competition in 2006 . who won the next year ? | CREATE TABLE table_204_132 (
id number,
"year" number,
"location" text,
"men's individual" text,
"women's individual" text,
"men's team" text,
"women's team" text,
"mixed team" text,
"ref" number
) | SELECT "men's individual" FROM table_204_132 WHERE "year" > 2006 ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
23757,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
14836,
121,
1499,
6,
96,
904,
31,
7,
928,
121,
1499,
6,
96,
210,
32,
904,
31,
7,
928,
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,
904,
31,
7,
928,
121,
21680,
953,
834,
26363,
834,
23757,
549,
17444,
427,
96,
1201,
121,
2490,
3581,
4674,
11300,
272,
476,
96,
1201,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the yes percentage in the measure that had 35270 yes votes? | CREATE TABLE table_256286_5 (
_percentage_yes VARCHAR,
yes_votes VARCHAR
) | SELECT _percentage_yes FROM table_256286_5 WHERE yes_votes = 35270 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4056,
3840,
834,
755,
41,
3,
834,
883,
3728,
545,
834,
10070,
584,
4280,
28027,
6,
4273,
834,
1621,
1422,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
834,
883,
3728,
545,
834,
10070,
21680,
953,
834,
1828,
4056,
3840,
834,
755,
549,
17444,
427,
4273,
834,
1621,
1422,
3274,
3097,
17485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What did the away team score at Moorabbin Oval? | CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_24 WHERE venue = "moorabbin oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
550,
372,
2604,
44,
1290,
127,
12982,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
5669,
3274,
96,
21477,
12982,
77,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please show me a bar chart for visualizing the name and revenue of all manufacturers sorted by their revenue in the descending order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, Revenue FROM Manufacturers ORDER BY Revenue DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19764,
21680,
15248,
7,
4674,
11300,
272,
476,
19764,
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,
-10... |
what is the attendance on december 14, 2003? | CREATE TABLE table_13818 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"TV Time" text,
"Attendance" text
) | SELECT "Attendance" FROM table_13818 WHERE "Date" = 'december 14, 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
2606,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
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,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
22744,
2606,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
11363,
3888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the location and attendance on the May 22 game? | CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR) | SELECT location_attendance FROM table_name_13 WHERE date = "may 22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1128,
11,
11364,
30,
8,
932,
1630,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
833,
3274,
96,
13726,
1630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which party has Peter A. Quinn as a representative? | CREATE TABLE table_80457 (
"Representative" text,
"Years" text,
"State" text,
"Party" text,
"Lifespan" text
) | SELECT "Party" FROM table_80457 WHERE "Representative" = 'peter a. quinn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
591,
3436,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
16427,
7,
2837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13725,
63,
121,
21680,
953,
834,
2079,
591,
3436,
549,
17444,
427,
96,
1649,
12640,
1528,
121,
3274,
3,
31,
4995,
49,
3,
9,
5,
285,
29,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the archbishop that was born on February 10, 1858 ordained a bishop? | CREATE TABLE table_name_80 (
ordained_bishop VARCHAR,
born VARCHAR
) | SELECT ordained_bishop FROM table_name_80 WHERE born = "february 10, 1858" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3,
31917,
834,
11514,
10776,
584,
4280,
28027,
6,
2170,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
11508,
11514,
10776,
24,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31917,
834,
11514,
10776,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2170,
3274,
96,
89,
15,
9052,
1208,
10372,
507,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of salary over the hire_date bin hire_date by weekday by a bar chart. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
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,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
... |
what is the title when the rank is less than 17 and the worldwide gross is $299,288,605? | CREATE TABLE table_43607 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Worldwide Gross" text
) | SELECT "Title" FROM table_43607 WHERE "Rank" < '17' AND "Worldwide Gross" = '$299,288,605' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3420,
4560,
41,
96,
22557,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
17954,
6728,
17969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
155,
109,
121,
21680,
953,
834,
591,
3420,
4560,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
2517,
31,
3430,
96,
17954,
6728,
17969,
121,
3274,
3,
31,
3229,
357,
3264,
6,
2577,
11864,
3328,
755,
31,
1... |
provide the number of patients whose gender is m and diagnoses icd9 code is 70703? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.icd9_code = "70703" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5... |
What is Player, when Country is United States, and when Score is 73-76-72-66=287? | CREATE TABLE table_name_6 (player VARCHAR, country VARCHAR, score VARCHAR) | SELECT player FROM table_name_6 WHERE country = "united states" AND score = 73 - 76 - 72 - 66 = 287 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
20846,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12387,
6,
116,
6993,
19,
907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
2604,
3274,
3,
4552,
3,
18,
3,
3959,
3,
18,
9455,
3,
18,
3,
3539,
3274,
204,
4225,
1,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.