NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which film or series was nominated in the category of best fansite? | CREATE TABLE table_name_2 (
film_or_series VARCHAR,
result VARCHAR,
category VARCHAR
) | SELECT film_or_series FROM table_name_2 WHERE result = "nominated" AND category = "best fansite" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
814,
834,
127,
834,
10833,
7,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
814,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
814,
834,
127,
834,
10833,
7,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
741,
3274,
96,
3114,
77,
920,
121,
3430,
3295,
3274,
96,
9606,
1819,
3585,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Can you tell me the College/Junior/Club Team that has the Round of 4? | CREATE TABLE table_name_79 (college_junior_club_team VARCHAR, round VARCHAR) | SELECT college_junior_club_team FROM table_name_79 WHERE round = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
3297,
7883,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
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,
0,
0,
0... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1751,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of emergency hospital admission patients who have gangrene primary disease. | 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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "GANGRENE" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
25930,
4844,
159,... |
What year was the Drama Desk award won by nominee George Hearn? | CREATE TABLE table_name_44 (year VARCHAR, nominee VARCHAR, award VARCHAR, result VARCHAR) | SELECT year FROM table_name_44 WHERE award = "drama desk award" AND result = "won" AND nominee = "george hearn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
1201,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
6,
2760,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
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,
215,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
2760,
3274,
96,
26,
10819,
4808,
2760,
121,
3430,
741,
3274,
96,
210,
106,
121,
3430,
21077,
3274,
96,
397,
1677,
15,
1616,
29,
121,
1,
-100,
-100,
-100,
-100,... |
What week was the December 24, 1994 game? | CREATE TABLE table_13044 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT SUM("Week") FROM table_13044 WHERE "Date" = 'december 24, 1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
3628,
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,
188,
17,
324,
26,
663,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
518,
10266,
8512,
21680,
953,
834,
21448,
3628,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
14320,
7520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was kumar sangakkara's average? | CREATE TABLE table_26041144_11 (
average VARCHAR,
player VARCHAR
) | SELECT average FROM table_26041144_11 WHERE player = "Kumar Sangakkara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
4853,
20885,
834,
2596,
41,
1348,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
3,
2729,
1635,
9965,
1639,
4031,
9,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1348,
21680,
953,
834,
18365,
4853,
20885,
834,
2596,
549,
17444,
427,
1959,
3274,
96,
439,
76,
1635,
1051,
122,
1639,
4031,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who had a lane number smaller than 7 and a time of 2:19.86? | CREATE TABLE table_name_32 (name VARCHAR, lane VARCHAR, time VARCHAR) | SELECT name FROM table_name_32 WHERE lane < 7 AND time = "2:19.86" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
4350,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
3,
8102,
381,
2755,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3,
8102,
3,
2,
489,
3430,
97,
3274,
96,
357,
10,
2294,
5,
3840,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the model number introduced May 1999? | CREATE TABLE table_10528691_4 (
model INTEGER,
introduction VARCHAR
) | SELECT MAX(model) FROM table_10528691_4 WHERE introduction = "May 1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
2577,
3951,
536,
834,
591,
41,
825,
3,
21342,
17966,
6,
5302,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
825,
381,
3665,
932,
5247,
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,
4800,
4,
599,
21770,
61,
21680,
953,
834,
12869,
2577,
3951,
536,
834,
591,
549,
17444,
427,
5302,
3274,
96,
15881,
5247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the first building named as the tallest ? | CREATE TABLE table_203_105 (
id number,
"name" text,
"street address" text,
"years as tallest" text,
"height\nft (m)" text,
"floors" number
) | SELECT "name" FROM table_203_105 ORDER BY id LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
12869,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
22967,
1115,
121,
1499,
6,
96,
1201,
7,
38,
5065,
222,
121,
1499,
6,
96,
88,
2632,
2,
29,
89,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
121,
21680,
953,
834,
23330,
834,
12869,
4674,
11300,
272,
476,
3,
23,
26,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Game is the average one that has a February larger than 20, and a Record of 41 17 4, and Points smaller than 86? | CREATE TABLE table_39505 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT AVG("Game") FROM table_39505 WHERE "February" > '20' AND "Record" = '41–17–4' AND "Points" < '86' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
1752,
755,
41,
96,
23055,
121,
490,
6,
96,
31122,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
3288,
1752,
755,
549,
17444,
427,
96,
31122,
121,
2490,
3,
31,
1755,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
4853,
104,
2517,
104,
591,
31,
3430,
96,
22512,
7... |
Name the number of production code for 5.08 | CREATE TABLE table_1893 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT COUNT("Production code") FROM table_1893 WHERE "U.S. viewers (million)" = '5.08' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4271,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3174,
8291,
1081,
8512,
21680,
953,
834,
2606,
4271,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
3274,
3,
31,
20734,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients with subdural hematoma primary disease who have been discharged to psychiatric facility-partial hospitalization? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "SDH" | [
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,
26,
159,
7993,
834,
14836,
3274,
96,
15438,
8360,
18,
11359,
567,
3001,
5610,
476,
8360,
3,
6299,
... |
Find the female friends of Alice. | CREATE TABLE PersonFriend (
friend VARCHAR,
name VARCHAR
)
CREATE TABLE Person (
name VARCHAR,
gender VARCHAR
) | SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
17701,
41,
1565,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
584,
4280,
28027,
6,
7285,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
332,
4416,
15504,
21680,
5780,
6157,
332,
536,
3,
15355,
3162,
5780,
17701,
6157,
332,
357,
9191,
332,
5411,
4350,
3274,
332,
4416,
15504,
549,
17444,
427,
332,
4416,
4350,
3274,
3,
31,
188,
2176,
15,
31,
3430,
332,
... |
Who was the opponent when there was a TKO method? | CREATE TABLE table_76449 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Opponent" FROM table_76449 WHERE "Method" = 'tko' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
591,
3647,
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,
427,
2169,
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,
667,
102,
9977,
121,
21680,
953,
834,
3959,
591,
3647,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
17,
157,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many total goals have 0 (3) as total apps, with league goals less than 0? | CREATE TABLE table_58796 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
) | SELECT COUNT("Total Goals") FROM table_58796 WHERE "Total Apps" = '0 (3)' AND "League Goals" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4225,
4314,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
5398,
2276,
7,
121,
1499,
6,
96,
2796,
9,
5398,
17916,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3696,
1947,
17916,
7,
8512,
21680,
953,
834,
755,
4225,
4314,
549,
17444,
427,
96,
3696,
1947,
2276,
7,
121,
3274,
3,
31,
632,
10153,
31,
3430,
96,
2796,
9,
5398,
17916,
7,
121,
3,
2,
3,
3... |
show the titles, and authors or editors for all books made after the year 1989. | CREATE TABLE book_club (book_title VARCHAR, author_or_editor VARCHAR, YEAR INTEGER) | SELECT book_title, author_or_editor FROM book_club WHERE YEAR > 1989 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
484,
834,
13442,
41,
2567,
834,
21869,
584,
4280,
28027,
6,
2291,
834,
127,
834,
11272,
127,
584,
4280,
28027,
6,
30431,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
504,
8,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
484,
834,
21869,
6,
2291,
834,
127,
834,
11272,
127,
21680,
484,
834,
13442,
549,
17444,
427,
30431,
2490,
9975,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)? | CREATE TABLE table_10602294_1 (pressure VARCHAR, deaths VARCHAR) | SELECT pressure FROM table_10602294_1 WHERE deaths = "95km/h (60mph)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3328,
2884,
4240,
834,
536,
41,
26866,
584,
4280,
28027,
6,
14319,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
7132,
782,
31,
7,
1666,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1666,
21680,
953,
834,
1714,
3328,
2884,
4240,
834,
536,
549,
17444,
427,
14319,
3274,
96,
3301,
5848,
87,
107,
41,
3328,
7656,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the IATA that has new south wales as the state/territory beginning on july 2009? | CREATE TABLE table_name_1 (iata VARCHAR, state_territory VARCHAR, begin VARCHAR) | SELECT iata FROM table_name_1 WHERE state_territory = "new south wales" AND begin = "july 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
17221,
584,
4280,
28027,
6,
538,
834,
17,
21301,
10972,
584,
4280,
28027,
6,
1731,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17221,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
538,
834,
17,
21301,
10972,
3274,
96,
5534,
3414,
3,
210,
4529,
121,
3430,
1731,
3274,
96,
2047,
120,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest Barrow Island Australia when the Crude oil name \Rightarrow Location \Rightarrow of initial boiling point, c, and a draugen north sea is larger than 150? | CREATE TABLE table_60223 (
"Crude oil name \\Rightarrow Location \\Rightarrow" text,
"Barrow Island Australia" real,
"Mutineer-Exeter Australia" real,
"CPC Blend Kazakhstan" real,
"Draugen North Sea" real
) | SELECT MIN("Barrow Island Australia") FROM table_60223 WHERE "Crude oil name \\Rightarrow Location \\Rightarrow" = 'initial boiling point, °c' AND "Draugen North Sea" > '150' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
357,
2773,
41,
96,
254,
17237,
15,
1043,
564,
3,
2,
448,
2632,
6770,
10450,
3,
2,
448,
2632,
6770,
121,
1499,
6,
96,
279,
6770,
2834,
2051,
121,
490,
6,
96,
329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
6770,
2834,
2051,
8512,
21680,
953,
834,
3328,
357,
2773,
549,
17444,
427,
96,
254,
17237,
15,
1043,
564,
3,
2,
448,
2632,
6770,
10450,
3,
2,
448,
2632,
6770,
121,
3274,
3,
31,
77,
23,
1... |
Which Points has a Position of 3, and a Drawn smaller than 2? | CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, drawn VARCHAR) | SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
2700,
7,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4564,
7,
65,
3,
9,
14258,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1102,
3274,
220,
3430,
6796,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Capacity of the Venue of Head Coach Farhad Kazemi? | CREATE TABLE table_name_34 (
capacity INTEGER,
head_coach VARCHAR
) | SELECT SUM(capacity) FROM table_name_34 WHERE head_coach = "farhad kazemi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
2614,
3,
21342,
17966,
6,
819,
834,
509,
1836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4000,
9,
6726,
13,
8,
29940,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4010,
9,
6726,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
819,
834,
509,
1836,
3274,
96,
5544,
8399,
3,
1258,
776,
51,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total grid for someone with a time/retire of +44.831 | CREATE TABLE table_name_26 (grid VARCHAR, time_retired VARCHAR) | SELECT COUNT(grid) FROM table_name_26 WHERE time_retired = "+44.831" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3496,
26,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
8634,
21,
841,
28,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
591,
27441,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor? | CREATE TABLE table_77685 (
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_77685 WHERE "Constructor" = 'ferrari' AND "Location" = 'zolder' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3651,
755,
41,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
4013,
3651,
755,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
1010,
52,
1665,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
12423,
588,
31,
1... |
Who was the opponent for the giants stadium game? | CREATE TABLE table_name_83 (
opponent VARCHAR,
game_site VARCHAR
) | SELECT opponent FROM table_name_83 WHERE game_site = "giants stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
15264,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
21,
8,
6079,
7,
14939,
467,
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,
15264,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
467,
834,
3585,
3274,
96,
22898,
17,
7,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction? | CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR) | SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "254 Ottilie Junction" OR T2.How_to_Get_There = "bus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21375,
834,
188,
17,
10559,
7,
41,
23954,
584,
4280,
28027,
6,
10450,
834,
4309,
584,
4280,
28027,
6,
571,
834,
235,
834,
20361,
834,
7238,
584,
4280,
28027,
61,
3,
32102,
32103,
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,
332,
4416,
23954,
21680,
10450,
7,
6157,
332,
536,
3,
15355,
3162,
21375,
834,
188,
17,
10559,
7,
6157,
332,
357,
9191,
332,
5411,
434,
32,
75,
257,
834,
4309,
3274,
332,
4416,
434,
32,
75,
257,
834,
4309,
549,
17... |
What is the title of ISBN 1-84990-243-7? | CREATE TABLE table_2950964_1 (title VARCHAR, isbn VARCHAR) | SELECT title FROM table_2950964_1 WHERE isbn = "isbn 1-84990-243-7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1752,
4314,
591,
834,
536,
41,
21869,
584,
4280,
28027,
6,
19,
115,
29,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
20133,
8218,
4608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
3166,
1752,
4314,
591,
834,
536,
549,
17444,
427,
19,
115,
29,
3274,
96,
159,
115,
29,
8218,
4608,
26901,
18,
27730,
6832,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients who were admitted before the year 2157 with 78039 as their diagnosis icd9 code | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2157" AND diagnoses.icd9_code = "78039" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Name the team for june 20 | CREATE TABLE table_2139390_2 (team VARCHAR, date VARCHAR) | SELECT team FROM table_2139390_2 WHERE date = "June 20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
4271,
2394,
834,
357,
41,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
21,
3,
6959,
15,
460,
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,
372,
21680,
953,
834,
357,
2368,
4271,
2394,
834,
357,
549,
17444,
427,
833,
3274,
96,
683,
444,
460,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which gender has an Authority of state, Years of 1 8, and a Decile smaller than 10, and a Roll of 36? | CREATE TABLE table_70265 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT "Gender" FROM table_70265 WHERE "Authority" = 'state' AND "Years" = '1–8' AND "Decile" < '10' AND "Roll" = '36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
357,
4122,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
517,
3868,
121,
21680,
953,
834,
2518,
357,
4122,
549,
17444,
427,
96,
23602,
127,
485,
121,
3274,
3,
31,
5540,
31,
3430,
96,
476,
2741,
7,
121,
3274,
3,
31,
536,
104,
927,
31,
3430,
96,
2962,
75,
699,
121,
... |
What is the NTSC M for Pal M 525/60? | CREATE TABLE table_name_23 (ntsc_m VARCHAR, pal_m VARCHAR) | SELECT ntsc_m FROM table_name_23 WHERE pal_m = "525/60" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
29,
17,
7,
75,
834,
51,
584,
4280,
28027,
6,
7692,
834,
51,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
7359,
4112,
283,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
17,
7,
75,
834,
51,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
7692,
834,
51,
3274,
96,
755,
1828,
87,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the number of bookings for different guests and group by guest first name in a bar chart. | CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Facilities (
apt_id I... | SELECT guest_first_name, COUNT(guest_first_name) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id GROUP BY guest_first_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
24752,
53,
7,
41,
740,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
7,
14184,
834,
4350,
3,
28027,
599,
1808,
201,
740,
834,
1329,
40,
834,
4350,
584,
4280,
28027,
599,
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,
3886,
834,
14672,
834,
4350,
6,
2847,
17161,
599,
15991,
17,
834,
14672,
834,
4350,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
3,
22360,
6157,
332,
357,
9191,
332,
5411,
15991,
17,
834,
23,... |
Which NFL Club has a Player of sam tidmore, and a Pick of 81? | CREATE TABLE table_59758 (
"Player" text,
"Draft" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) | SELECT "NFL Club" FROM table_59758 WHERE "Player" = 'sam tidmore' AND "Pick" = '81' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3072,
927,
41,
96,
15800,
49,
121,
1499,
6,
96,
308,
10913,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
345,
32,
7,
4749,
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,
12619,
434,
1949,
121,
21680,
953,
834,
3390,
3072,
927,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
7,
265,
3,
17,
23,
26,
3706,
31,
3430,
96,
345,
3142,
121,
3274,
3,
31,
4959,
31,
1,
-100,
-100,
-... |
On what day(s) did the Gophers play against Michigan? | CREATE TABLE table_6709 (
"Date" text,
"Opponent#" text,
"Site" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_6709 WHERE "Opponent#" = 'michigan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4198,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
4663,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
96,
308,
342,
121,
21680,
953,
834,
3708,
4198,
549,
17444,
427,
96,
667,
102,
9977,
4663,
121,
3274,
3,
31,
51,
362,
12588,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the most wins associated with under 4 events with 0 top-5s? | CREATE TABLE table_name_38 (
wins INTEGER,
top_5 VARCHAR,
events VARCHAR
) | SELECT MAX(wins) FROM table_name_38 WHERE top_5 > 0 AND events < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
9204,
3,
21342,
17966,
6,
420,
834,
755,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
9204,
1968,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
420,
834,
755,
2490,
3,
632,
3430,
984,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the record for the game on January 19? | CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_92 WHERE date = "january 19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
21,
8,
467,
30,
1762,
957,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
957,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the IATA code for Delhi? | CREATE TABLE table_4781 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "IATA" FROM table_4781 WHERE "City" = 'delhi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
4959,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
196,
19282,
121,
21680,
953,
834,
4177,
4959,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
221,
40,
107,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was No. 3 when No. 5 James and No. 6 Mason? | CREATE TABLE table_name_35 (no_3 VARCHAR, no_5 VARCHAR, no_6 VARCHAR) | SELECT no_3 FROM table_name_35 WHERE no_5 = "james" AND no_6 = "mason" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
29,
32,
834,
519,
584,
4280,
28027,
6,
150,
834,
755,
584,
4280,
28027,
6,
150,
834,
948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
519,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
150,
834,
755,
3274,
96,
1191,
2687,
121,
3430,
150,
834,
948,
3274,
96,
2754,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What years had a ranking of 1? | CREATE TABLE table_name_99 (
years VARCHAR,
ranking VARCHAR
) | SELECT years FROM table_name_99 WHERE ranking = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
203,
584,
4280,
28027,
6,
11592,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
141,
3,
9,
11592,
13,
209,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
11592,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What team played the Jazz at game 68? | CREATE TABLE table_47814 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_47814 WHERE "Game" = '68' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
2534,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18699,
121,
21680,
953,
834,
591,
3940,
2534,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
3651,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis team name y axis school_id, order x axis from high to low order please. | 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 Team_Name, School_ID FROM basketball_match ORDER BY Team_Name DESC | [
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,
2271,
834,
23954,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
23954,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the launch date the satellite with cospar ID is 2008-033A? | CREATE TABLE table_22166 (
"Satellite" text,
"COSPAR ID" text,
"SATCAT No." real,
"Product Number" real,
"Launch Date" text,
"Estimated End Date[ clarification needed ]" text,
"Estimated Operational Life" text
) | SELECT "Launch Date" FROM table_22166 WHERE "COSPAR ID" = '2008-033A' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
26811,
41,
96,
134,
9,
1625,
6311,
121,
1499,
6,
96,
5911,
21215,
448,
4699,
121,
1499,
6,
96,
17517,
18911,
465,
535,
490,
6,
96,
3174,
7472,
7720,
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,
3612,
202,
524,
7678,
121,
21680,
953,
834,
2884,
26811,
549,
17444,
427,
96,
5911,
21215,
448,
4699,
121,
3274,
3,
31,
16128,
18,
4928,
519,
188,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which episode did sarah millican and grayson perry appear in | CREATE TABLE table_30969 (
"Episode" real,
"Broadcast date" text,
"Guest(s)" text,
"Singer(s)" text,
"Ratings" text
) | SELECT MIN("Episode") FROM table_30969 WHERE "Guest(s)" = 'Sarah Millican and Grayson Perry' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
1298,
3951,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
279,
8635,
5254,
833,
121,
1499,
6,
96,
9105,
222,
599,
7,
61,
121,
1499,
6,
96,
134,
9963,
599,
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,
3,
17684,
599,
121,
427,
102,
159,
32,
221,
8512,
21680,
953,
834,
1458,
1298,
3951,
549,
17444,
427,
96,
9105,
222,
599,
7,
61,
121,
3274,
3,
31,
134,
2551,
107,
4185,
23,
1608,
11,
13375,
739,
18786,
31,
1,
-1... |
What player played on 04/05/1999 with a conv of 0? | CREATE TABLE table_name_36 (
player VARCHAR,
conv VARCHAR,
date VARCHAR
) | SELECT player FROM table_name_36 WHERE conv = "0" AND date = "04/05/1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1959,
584,
4280,
28027,
6,
975,
208,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
1944,
30,
11484,
31911,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
975,
208,
3274,
96,
632,
121,
3430,
833,
3274,
96,
6348,
31911,
2294,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
who are the writers of the episode whose production code is 176206? | CREATE TABLE table_2866509_1 (
written_by VARCHAR,
production_code VARCHAR
) | SELECT written_by FROM table_2866509_1 WHERE production_code = 176206 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3539,
1752,
1298,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
33,
8,
5943,
13,
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,
1545,
834,
969,
21680,
953,
834,
2577,
3539,
1752,
1298,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
3,
26782,
24643,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the opponent at the League Cup competition with a score of 3-1? | CREATE TABLE table_name_91 (
opponents VARCHAR,
competition VARCHAR,
score VARCHAR
) | SELECT opponents FROM table_name_91 WHERE competition = "league cup" AND score = "3-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
16383,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
44,
8,
3815,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16383,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2259,
3274,
96,
29512,
4119,
121,
3430,
2604,
3274,
96,
519,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the senator for district 24? | CREATE TABLE table_11948857_1 (member_senator VARCHAR, district VARCHAR) | SELECT member_senator FROM table_11948857_1 WHERE district = 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4240,
4060,
3436,
834,
536,
41,
12066,
834,
7,
35,
1016,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
20596,
21,
3939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1144,
834,
7,
35,
1016,
21680,
953,
834,
2596,
4240,
4060,
3436,
834,
536,
549,
17444,
427,
3939,
3274,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Date has a Game of 4? | CREATE TABLE table_name_33 (
date VARCHAR,
game VARCHAR
) | SELECT date FROM table_name_33 WHERE game = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
833,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
4435,
13,
314,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
467,
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,
-100,
... |
What was the result of the los angeles rams game? | CREATE TABLE table_9746 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Result" FROM table_9746 WHERE "Opponent" = 'los angeles rams' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
4448,
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,
188,
17,
324,
26,
663,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
4327,
4448,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
2298,
11831,
15,
7,
3,
2375,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the duration of the character Bartha Zsolt? | CREATE TABLE table_name_93 (duration VARCHAR, character VARCHAR) | SELECT duration FROM table_name_93 WHERE character = "bartha zsolt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1259,
2661,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8659,
13,
8,
1848,
1386,
189,
9,
1027,
4099,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8659,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1848,
3274,
96,
1047,
189,
9,
3,
172,
4099,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total runners had jockeys of Olivier Peslier with placings under 2? | CREATE TABLE table_name_81 (runners INTEGER, jockey VARCHAR, placing VARCHAR) | SELECT SUM(runners) FROM table_name_81 WHERE jockey = "olivier peslier" AND placing < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
10806,
7,
3,
21342,
17966,
6,
8624,
4397,
584,
4280,
28027,
6,
9308,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
16448,
141,
8624... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
10806,
7,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
8624,
4397,
3274,
96,
4172,
5144,
158,
7,
3299,
121,
3430,
9308,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which name has a Lane of 7? | CREATE TABLE table_name_79 (
name VARCHAR,
lane VARCHAR
) | SELECT name FROM table_name_79 WHERE lane = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
564,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
564,
65,
3,
9,
11834,
13,
489,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
3,
8102,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the team had their record of 16–14, what was the total attendance? | CREATE TABLE table_name_74 (attendance VARCHAR, record VARCHAR) | SELECT COUNT(attendance) FROM table_name_74 WHERE record = "16–14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
372,
141,
70,
1368,
13,
898,
104,
2534,
6,
125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1368,
3274,
96,
2938,
104,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number of Games for the player in Rank 3? | CREATE TABLE table_name_21 (games INTEGER, rank VARCHAR) | SELECT MAX(games) FROM table_name_21 WHERE rank = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
7261,
7,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
5880,
21,
8,
1959,
16,
3,
22557,
220,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
11003,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the least amount of wins when against is 1314? | CREATE TABLE table_65701 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Wins") FROM table_65701 WHERE "Against" = '1314' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2518,
536,
41,
96,
254,
11158,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6,
96,
20749,
121,
490,
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,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
4122,
2518,
536,
549,
17444,
427,
96,
20749,
121,
3274,
3,
31,
2368,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Score, when Away Team is "Yeovil Town"? | CREATE TABLE table_name_43 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_43 WHERE away_team = "yeovil town" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
7,
9022,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
71,
1343,
2271,
19,
96,
476... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
550,
834,
11650,
3274,
96,
63,
15,
32,
6372,
1511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose gender is m and age is less than 74? | CREATE TABLE diagnoses (
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 WHERE demographic.gender = "M" AND demographic.age < "74" | [
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,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
545,
3,
2,
96,
4581,
121,
1,
-100,
-100,
-100,
... |
What record has November 15 as the date? | CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_32 WHERE date = "november 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1368,
65,
1671,
627,
38,
8,
833,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of job_id and the sum of department_id , and group by attribute job_id, and I want to show by the Y-axis in ascending. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
... |
Which downhill has 7 overalls? | CREATE TABLE table_name_90 (
downhill VARCHAR,
overall VARCHAR
) | SELECT downhill FROM table_name_90 WHERE overall = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
323,
6321,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
323,
6321,
65,
489,
1879,
7,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
323,
6321,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1879,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total amount of payment? | CREATE TABLE Payments (Amount_Payment INTEGER) | SELECT SUM(Amount_Payment) FROM Payments | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12248,
7,
41,
188,
11231,
834,
19702,
297,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
866,
13,
1942,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance during week 7? | CREATE TABLE table_name_88 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_88 WHERE week = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
15116,
663,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
383,
471,
489,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
471,
3274,
489,
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... |
Which position has 45 picks? | CREATE TABLE table_36716 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
) | SELECT "Position" FROM table_36716 WHERE "Pick #" = '45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3708,
2938,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
17976,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
188,
89,
8027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
519,
3708,
2938,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
2128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many instrument does the musician with last name 'Heilo' use? | CREATE TABLE Band (
id VARCHAR,
lastname VARCHAR
)
CREATE TABLE instruments (
bandmateid VARCHAR
) | SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4483,
41,
3,
23,
26,
584,
4280,
28027,
6,
336,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7778,
41,
1928,
5058,
23,
26,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
5009,
61,
21680,
7778,
6157,
332,
536,
3,
15355,
3162,
4483,
6157,
332,
357,
9191,
332,
5411,
3348,
5058,
23,
26,
3274,
332,
4416,
23,
26,
549,
17444,
427,
332,
4416,
5064,
4350,
... |
What club team has 216 overall? | CREATE TABLE table_name_70 (
club_team VARCHAR,
overall VARCHAR
) | SELECT club_team FROM table_name_70 WHERE overall = 216 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
1886,
834,
11650,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1886,
372,
65,
3,
27184,
1879,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
834,
11650,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1879,
3274,
3,
27184,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what was the monthly average value of weight for patient 018-119251 until 11/2105? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate n... | SELECT AVG(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-119251') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2105-11' GROUP BY STRFTIME('%y-%m', patient.... | [
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,
71,
17217,
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,
... |
List the grapes and appelations of all wines. | CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
)
CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,... | SELECT grape, appelation FROM wine | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
150,
381,
6,
8319,
257,
1499,
6,
5435,
1499,
6,
538,
1499,
6,
616,
1499,
6,
19,
8644,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
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,
11457,
6,
8319,
257,
21680,
2013,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many rounds ended with a score of 16-52? | CREATE TABLE table_13328239_4 (
round VARCHAR,
score VARCHAR
) | SELECT COUNT(round) FROM table_13328239_4 WHERE score = "16-52" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
2577,
357,
3288,
834,
591,
41,
1751,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
3492,
28,
3,
9,
2604,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
22974,
2577,
357,
3288,
834,
591,
549,
17444,
427,
2604,
3274,
96,
2938,
18,
5373,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which runner-up placed in a year prior to 2006 and whose Champion was Elon? | CREATE TABLE table_name_66 (
runner_up VARCHAR,
year VARCHAR,
champion VARCHAR
) | SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
10806,
18,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
215,
3,
2,
3581,
3430,
6336,
3274,
96,
15,
40,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the 1989 result for the tournament with 1984 of a, 1985 of a, and 1990 of a? | CREATE TABLE table_46599 (
"Tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"Career SR" text
) | SELECT "1989" FROM table_46599 WHERE "1984" = 'a' AND "1985" = 'a' AND "1990" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4122,
3264,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
4591,
121,
1499,
6,
96,
24151,
20364,
1499,
6,
96,
24151,
17395,
1499,
6,
96,
2294,
3840,
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,
2294,
3914,
121,
21680,
953,
834,
591,
4122,
3264,
549,
17444,
427,
96,
24151,
20364,
3274,
3,
31,
9,
31,
3430,
96,
24151,
17395,
3274,
3,
31,
9,
31,
3430,
96,
2294,
2394,
121,
3274,
3,
31,
9,
31,
1,
-100,
... |
What's the city of license having a D ERP of 100kw? | CREATE TABLE table_name_21 (
city_of_license VARCHAR,
d_erp VARCHAR
) | SELECT city_of_license FROM table_name_21 WHERE d_erp = "100kw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
690,
834,
858,
834,
28062,
584,
4280,
28027,
6,
3,
26,
834,
49,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
690,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
834,
858,
834,
28062,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
3,
26,
834,
49,
102,
3274,
96,
2915,
157,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What circuit did Rupert Keegan win in round 8? | CREATE TABLE table_4554 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
) | SELECT "Circuit" FROM table_4554 WHERE "Winning driver" = 'rupert keegan' AND "Round" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
5062,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
121,
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,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
2128,
5062,
549,
17444,
427,
96,
518,
10503,
2535,
121,
3274,
3,
31,
52,
413,
49,
17,
3,
1050,
15,
2565,
31,
3430,
96,
448,
32,
1106,
121,
3274,
3,
31,
927,
31,
1,... |
Show the name of each county along with the corresponding number of delegates from that county. | CREATE TABLE county (
County_name VARCHAR,
County_id VARCHAR
)
CREATE TABLE election (
District VARCHAR
) | SELECT T1.County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
4350,
584,
4280,
28027,
6,
1334,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
3570,
584,
4280,
28027,
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,
332,
5411,
10628,
63,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
5435,
6157,
332,
536,
3,
15355,
3162,
4356,
6157,
332,
357,
9191,
332,
5411,
10628,
63,
834,
23,
26,
3274,
332,
4416,
308,
23,
20066,
350,
4630,... |
How many countries in 2009 have fewer than 1 in 1999, more than 0 in 2006 and none in 1997? | CREATE TABLE table_name_49 (
Id VARCHAR
) | SELECT COUNT(2009) FROM table_name_49 WHERE 1999 < 1 AND 2006 > 0 AND 1997 < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1440,
16,
2464,
43,
3,
10643,
145,
209,
16,
5247,
6,
72,
145,
3,
632,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
25812,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
5247,
3,
2,
209,
3430,
3581,
2490,
3,
632,
3430,
6622,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the margin of victory that has masters gc ladies as the tournament? | CREATE TABLE table_name_45 (
margin_of_victory VARCHAR,
tournament VARCHAR
) | SELECT margin_of_victory FROM table_name_45 WHERE tournament = "masters gc ladies" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6346,
13,
6224,
24,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
5892,
3274,
96,
7429,
7,
3,
122,
75,
10989,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the race class and number of races in each class. | CREATE TABLE race (
CLASS VARCHAR
) | SELECT CLASS, COUNT(*) FROM race GROUP BY CLASS | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1964,
41,
3,
31598,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
1964,
853,
11,
381,
13,
10879,
16,
284,
853,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
31598,
6,
2847,
17161,
599,
1935,
61,
21680,
1964,
350,
4630,
6880,
272,
476,
3,
31598,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many of the male patients had icd9 code 3521? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "3521" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
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,
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 was the score for the matchup having attendance of 354? | CREATE TABLE table_name_25 (score VARCHAR, att VARCHAR) | SELECT score FROM table_name_25 WHERE att = 354 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
7,
9022,
584,
4280,
28027,
6,
44,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
1588,
413,
578,
11364,
13,
220,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1828,
549,
17444,
427,
44,
17,
3274,
220,
5062,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total area with the Census Ranking of 3,129 of 5,008, and a Population larger than 460? | CREATE TABLE table_61922 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | SELECT COUNT("Area km 2") FROM table_61922 WHERE "Census Ranking" = '3,129 of 5,008' AND "Population" > '460' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
4508,
357,
41,
96,
667,
89,
22816,
5570,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
188,
864,
2280,
204,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
864,
2280,
204,
8512,
21680,
953,
834,
4241,
4508,
357,
549,
17444,
427,
96,
254,
35,
7,
302,
29153,
121,
3274,
3,
31,
6355,
22174,
13,
7836,
1206,
927,
31,
3430,
96,
27773,
7830,
121,
... |
What's the most league cup apps for Jimmy Lawson having 0 league cup goals? | CREATE TABLE table_name_74 (
league_cup_apps INTEGER,
league_cup_goals VARCHAR,
name VARCHAR
) | SELECT MAX(league_cup_apps) FROM table_name_74 WHERE league_cup_goals = 0 AND name = "jimmy lawson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5533,
834,
4658,
834,
3096,
7,
3,
21342,
17966,
6,
5533,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
6,
564,
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,
4800,
4,
599,
29512,
834,
4658,
834,
3096,
7,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
5533,
834,
4658,
834,
839,
5405,
3274,
3,
632,
3430,
564,
3274,
96,
354,
603,
2258,
3786,
106,
121,
1,
-100,
-10... |
how many total times has village roadshow queensland new filmmakers awards won ? | CREATE TABLE table_204_337 (
id number,
"festival" text,
"year" number,
"award" text,
"nominee" text,
"result" text
) | SELECT COUNT(*) FROM table_204_337 WHERE "festival" = 'village roadshow queensland new filmmakers awards' AND "result" = 'won' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4118,
41,
3,
23,
26,
381,
6,
96,
89,
24742,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
9,
2239,
121,
1499,
6,
96,
3114,
630,
15,
121,
1499,
6,
96,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
519,
4118,
549,
17444,
427,
96,
89,
24742,
121,
3274,
3,
31,
208,
17614,
1373,
10049,
14915,
7,
40,
232,
126,
21075,
7,
6120,
31,
3430,
96,
60,
7,
83,
17,
... |
Who directed the episode that is written by Eli Attie and production code is 2t5018? | CREATE TABLE table_29152820_1 (directed_by VARCHAR, written_by VARCHAR, production_code VARCHAR) | SELECT directed_by FROM table_29152820_1 WHERE written_by = "Eli Attie" AND production_code = "2T5018" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
1808,
2577,
1755,
834,
536,
41,
22955,
834,
969,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
3166,
1808,
2577,
1755,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
10991,
23,
486,
17,
23,
15,
121,
3430,
999,
834,
4978,
3274,
96,
357,
382,
1752,
2606,
121,
1,
-100,
-1... |
What is the Format for the alfa records Label, and a Catalog of alca-9016? | CREATE TABLE table_name_81 (format VARCHAR, label VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_81 WHERE label = "alfa records" AND catalog = "alca-9016" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
8995,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12439,
21,
8,
491,
89,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
3783,
3274,
96,
138,
89,
9,
3187,
121,
3430,
10173,
3274,
96,
138,
658,
18,
2394,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many high points were at the wachovia center 18,347? | CREATE TABLE table_11960196_3 (high_points VARCHAR, location_attendance VARCHAR) | SELECT COUNT(high_points) FROM table_11960196_3 WHERE location_attendance = "Wachovia Center 18,347" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
3328,
26937,
834,
519,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
306,
979,
130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6739,
834,
2700,
7,
61,
21680,
953,
834,
19993,
3328,
26937,
834,
519,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
518,
1836,
9881,
9,
1166,
14985,
519,
4177,
121,
1,
-100,
-100,
-100,
-100,
... |
What is Date of Appointment, when Outgoing Manager is 'Hakan Kutlu'? | CREATE TABLE table_45755 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Date of appointment" FROM table_45755 WHERE "Outgoing manager" = 'hakan kutlu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3072,
755,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
4141,
121,
21680,
953,
834,
2128,
3072,
755,
549,
17444,
427,
96,
15767,
9545,
2743,
121,
3274,
3,
31,
15416,
152,
3,
2729,
17,
40,
76,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many times is the points 8 and the place larger than 8? | CREATE TABLE table_65352 (
"Draw" real,
"Language" text,
"Artist" text,
"Place" real,
"Points" real
) | SELECT COUNT("Draw") FROM table_65352 WHERE "Points" = '8' AND "Place" > '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2469,
357,
41,
96,
308,
10936,
121,
490,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
345,
11706,
121,
490,
6,
96,
22512,
7,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
10936,
8512,
21680,
953,
834,
4122,
2469,
357,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
927,
31,
3430,
96,
345,
11706,
121,
2490,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the smallest amount of silver? | CREATE TABLE table_24946 (
"Rank" real,
"Athlete" text,
"Nation" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total(min. 2 medals)" real
) | SELECT MIN("Silver") FROM table_24946 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3647,
4448,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
667,
120,
51,
6174,
7,
121,
1499,
6,
96,
23576,
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,
3,
17684,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
357,
3647,
4448,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which first election for the labor party is James Sharpe a part of? | CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR) | SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
1144,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
166,
4356,
21,
8,
534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1088,
3274,
96,
9456,
121,
3430,
1144,
3274,
96,
1191,
2687,
4816,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
While the Hornets were visiting, what date was Deron Williams (29) the leading scorer? | CREATE TABLE table_name_94 (
date VARCHAR,
leading_scorer VARCHAR,
visitor VARCHAR
) | SELECT date FROM table_name_94 WHERE leading_scorer = "deron williams (29)" AND visitor = "hornets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
833,
584,
4280,
28027,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
818,
8,
6766,
1582... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
588,
106,
56,
23,
265,
7,
4743,
11728,
121,
3430,
7019,
3274,
96,
6293,
15,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
calculate the number of patients with gastrointestinal hemorrhage nos who received iv drip therapy | 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 demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Gastrointest hemorr NOS" AND prescriptions.route = "IV DRIP" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What was the largest ethnic group in so ica? | CREATE TABLE table_2562572_46 (
largest_ethnic_group__2002_ VARCHAR,
settlement VARCHAR
) | SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE settlement = "Sočica" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
4448,
41,
2015,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
834,
584,
4280,
28027,
6,
7025,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2015,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
834,
21680,
953,
834,
19337,
1828,
5865,
834,
4448,
549,
17444,
427,
7025,
3274,
96,
5231,
2,
2617,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which record has a score of 135 134? | CREATE TABLE table_37325 (
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text
) | SELECT "Record" FROM table_37325 WHERE "Score" = '135–134' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
519,
1828,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
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,
1649,
7621,
121,
21680,
953,
834,
4118,
519,
1828,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
536,
2469,
104,
23747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which country timed at 7:03.91? | CREATE TABLE table_name_55 (country VARCHAR, time VARCHAR) | SELECT country FROM table_name_55 WHERE time = "7:03.91" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
17529,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
97,
26,
44,
489,
10,
13267,
4729,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
97,
3274,
96,
940,
10,
13267,
4729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is maximum age of patients whose gender is f and age is greater than or equal to 85? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
C... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.age >= "85" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
4433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Seasons have a Poles larger than 29, and Entries larger than 191? | CREATE TABLE table_name_66 (seasons VARCHAR, poles VARCHAR, entries VARCHAR) | SELECT seasons FROM table_name_66 WHERE poles > 29 AND entries > 191 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
9476,
7,
584,
4280,
28027,
6,
11148,
7,
584,
4280,
28027,
6,
10066,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7960,
7,
43,
3,
9,
19418... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9385,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
11148,
7,
2490,
2838,
3430,
10066,
2490,
957,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many titles are there for the original air date April 3, 2012? | CREATE TABLE table_26150013_1 (
title VARCHAR,
original_air_date VARCHAR
) | SELECT COUNT(title) FROM table_26150013_1 WHERE original_air_date = "April 3, 2012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4241,
2560,
2368,
834,
536,
41,
2233,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8342,
33,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
357,
4241,
2560,
2368,
834,
536,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
23323,
6180,
1673,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the earliest year that had less than 1 point? | CREATE TABLE table_name_85 (
year INTEGER,
points INTEGER
) | SELECT MIN(year) FROM table_name_85 WHERE points < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
215,
3,
21342,
17966,
6,
979,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
16454,
215,
24,
141,
705,
145,
209,
500,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
979,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3? | CREATE TABLE table_name_5 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR) | SELECT MAX(ngc_number) FROM table_name_5 WHERE declination___j2000__ = "°04′58″" AND apparent_magnitude > 7.3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
1725,
75,
834,
5525,
1152,
3,
21342,
17966,
6,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
6,
10320,
834,
7493,
29,
20341,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1725,
75,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
3274,
96,
1956,
6348,
17774,
3449,
7079,
121,
3430,
10320,
834,
749... |
In the game resulting in a 5-11 record, who scored the high rebounds? | CREATE TABLE table_17118657_8 (high_rebounds VARCHAR, record VARCHAR) | SELECT high_rebounds FROM table_17118657_8 WHERE record = "5-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2596,
3840,
3436,
834,
927,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
467,
3,
5490,
16,
3,
9,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
2517,
2596,
3840,
3436,
834,
927,
549,
17444,
427,
1368,
3274,
96,
755,
9169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2? | CREATE TABLE table_40347 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_40347 WHERE "Competition" = '2002 fifa world cup qualifier' AND "Result" = '8-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
519,
4177,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
2445,
519,
4177,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
24898,
361,
89,
9,
296,
4119,
10597,
49,
31,
3430,
96,
20119,
121,
3274,
3,
31,
927,
4949,
31,... |
subject states that he / she has had surgery | CREATE TABLE table_dev_2 (
"id" int,
"nutrient_absorption" bool,
"systolic_blood_pressure_sbp" int,
"active_metabolic" bool,
"hepatic_disease" bool,
"surgery" bool,
"diastolic_blood_pressure_dbp" int,
"gastrointestinal_disease" bool,
"organ_failure" bool,
"NOUSE" float
) | SELECT * FROM table_dev_2 WHERE surgery = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
357,
41,
96,
23,
26,
121,
16,
17,
6,
96,
8631,
295,
834,
9,
115,
15016,
121,
3,
12840,
40,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9776,
834,
357,
549,
17444,
427,
3730,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.