NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What chassis had fewer than 0 points in a year before 1954? | CREATE TABLE table_69944 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Chassis" FROM table_69944 WHERE "Year" < '1954' AND "Points" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4240,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
3951,
4240,
591,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
5062,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all classes for the position SLB? | CREATE TABLE table_14624447_24 (class VARCHAR, position VARCHAR) | SELECT class FROM table_14624447_24 WHERE position = "SLB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4056,
3628,
4177,
834,
2266,
41,
4057,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
2287,
21,
8,
1102,
180,
16976,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
2534,
4056,
3628,
4177,
834,
2266,
549,
17444,
427,
1102,
3274,
96,
5629,
279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of podiums of the teams with a final placing of 14th, seasons after 2008, and less than 1 races? | CREATE TABLE table_55605 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Final Placing" text
) | SELECT SUM("Podiums") FROM table_55605 WHERE "Final Placing" = '14th' AND "Season" > '2008' AND "Races" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3328,
755,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
16665,
2552,
7,
8512,
21680,
953,
834,
3769,
3328,
755,
549,
17444,
427,
96,
371,
10270,
8422,
75,
53,
121,
3274,
3,
31,
2534,
189,
31,
3430,
96,
134,
15,
9,
739,
121,
2490,
3,
31,
16128,
31... |
Which Team has a Winner of craig lowndes, and a Circuit of phillip island grand prix circuit? | CREATE TABLE table_name_69 (
team VARCHAR,
winner VARCHAR,
circuit VARCHAR
) | SELECT team FROM table_name_69 WHERE winner = "craig lowndes" AND circuit = "phillip island grand prix circuit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
372,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
65,
3,
9,
18125,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
4668,
3274,
96,
2935,
23,
122,
731,
29,
1395,
121,
3430,
4558,
3274,
96,
18118,
7446,
3368,
1907,
3407,
4558,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Time has a Lane smaller than 4, and a Rank larger than 6? | CREATE TABLE table_63105 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
) | SELECT AVG("Time") FROM table_63105 WHERE "Lane" < '4' AND "Rank" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
12869,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
490,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13368,
8512,
21680,
953,
834,
3891,
12869,
549,
17444,
427,
96,
434,
152,
15,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
22557,
121,
2490,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
find out the ethnic background of patient kelly gallardo. | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT demographic.ethnicity FROM demographic WHERE demographic.name = "Kelly Gallardo" | [
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,
14798,
5,
15,
189,
2532,
485,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
439,
15,
6073,
10987,
986,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which match had more than 1,490 people in attendance to watch FCR 2001 Duisburg have a result of 0:3 (0:2)? | CREATE TABLE table_name_91 (
match INTEGER,
attnd VARCHAR,
result VARCHAR,
opponent VARCHAR
) | SELECT SUM(match) FROM table_name_91 WHERE result = "0:3 (0:2)" AND opponent = "fcr 2001 duisburg" AND attnd > 1 OFFSET 490 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
1588,
3,
21342,
17966,
6,
44,
17,
727,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
19515,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
741,
3274,
96,
632,
10,
519,
17482,
10,
7318,
121,
3430,
15264,
3274,
96,
89,
75,
52,
4402,
146,
23,
7289,
121,
3430,
44,
17,
727,
2490... |
give me the number of elective hospital admission patients who are taking vitamin d prescription. | 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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.drug = "Vitamin D" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What Director won a prize of 2,000,000? | CREATE TABLE table_name_42 (
director_s_ VARCHAR,
prize VARCHAR
) | SELECT director_s_ FROM table_name_42 WHERE prize = "¥2,000,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2090,
834,
7,
834,
584,
4280,
28027,
6,
6441,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2578,
751,
3,
9,
6441,
13,
204,
23916,
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,
2090,
834,
7,
834,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
6441,
3274,
96,
2,
357,
23916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which To par has a Place in t9 and a Country of Spain? | CREATE TABLE table_5793 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_5793 WHERE "Place" = 't9' AND "Country" = 'spain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
4271,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3436,
4271,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
1298,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
14147,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score for the game in which Arsenal was the away team? | CREATE TABLE table_name_42 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_42 WHERE away_team = "arsenal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
467,
16,
84,
22358,
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,
2604,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
550,
834,
11650,
3274,
96,
291,
7,
35,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mascot whose school opened in 1970? | CREATE TABLE table_55988 (
"School's name" text,
"School's namesake" text,
"Year opened" text,
"Principal" text,
"Mascot" text
) | SELECT "Mascot" FROM table_55988 WHERE "Year opened" = '1970' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3390,
4060,
41,
96,
29364,
31,
7,
564,
121,
1499,
6,
96,
29364,
31,
7,
3056,
9,
1050,
121,
1499,
6,
96,
476,
2741,
2946,
121,
1499,
6,
96,
7855,
29,
3389,
138,
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,
329,
9,
7,
4310,
121,
21680,
953,
834,
755,
3390,
4060,
549,
17444,
427,
96,
476,
2741,
2946,
121,
3274,
3,
31,
2294,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What visitor has December 14 as the date? | CREATE TABLE table_name_55 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_55 WHERE date = "december 14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7019,
65,
1882,
968,
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,
7019,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000. | CREATE TABLE publication (
Publisher VARCHAR,
Price INTEGER
) | SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
19816,
584,
4280,
28027,
6,
5312,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
18902,
24,
43,
10142,
28,
594,
1146,
145,
5580,
19568,
11,
10142,
28,
594,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19816,
21680,
5707,
549,
17444,
427,
5312,
2490,
5580,
19568,
3,
21342,
5249,
14196,
3,
23143,
14196,
19816,
21680,
5707,
549,
17444,
427,
5312,
3,
2,
2899,
19568,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For players whose occupation is not 'Researcher', tell me the distribution of their residences with a bar chart, and list names in ascending order. | CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
)
CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE player (
... | SELECT Residence, COUNT(Residence) FROM player WHERE Occupation <> "Researcher" GROUP BY Residence ORDER BY Residence | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3763,
41,
9493,
834,
4309,
16,
17,
6,
9493,
834,
4350,
1499,
6,
350,
3868,
1499,
6,
1949,
834,
4309,
16,
17,
6,
3,
22557,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
23369,
6,
2847,
17161,
599,
1649,
1583,
3772,
61,
21680,
1959,
549,
17444,
427,
411,
75,
4658,
257,
3,
2,
3155,
96,
1649,
13173,
49,
121,
350,
4630,
6880,
272,
476,
23369,
4674,
11300,
272,
476,
23369,
1,
-100,
-100... |
Which Driver has a Grid of 1? | CREATE TABLE table_44247 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) | SELECT "Driver" FROM table_44247 WHERE "Grid" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
357,
4177,
41,
96,
371,
77,
5,
13995,
121,
1499,
6,
96,
6936,
465,
535,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
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,
20982,
52,
121,
21680,
953,
834,
3628,
357,
4177,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the Yellow fertility rate when Brazil is 0,43407? | CREATE TABLE table_64223 (
"Brazil 100%" text,
"White 47.73%" text,
"Black 7.61%" text,
"Yellow 1.09%" text,
"Brown (Multiracial) 43.13%" text,
"Indians 0,43%" text
) | SELECT "Yellow 1.09%" FROM table_64223 WHERE "Brazil 100%" = '0,43407' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
357,
2773,
41,
96,
279,
7275,
173,
2349,
121,
1499,
6,
96,
25571,
10635,
5,
940,
5170,
121,
1499,
6,
96,
20096,
4306,
948,
4704,
121,
1499,
6,
96,
476,
7126,
210,
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,
96,
476,
7126,
210,
3,
12734,
7561,
121,
21680,
953,
834,
4389,
357,
2773,
549,
17444,
427,
96,
279,
7275,
173,
2349,
121,
3274,
3,
31,
632,
6,
591,
3710,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where will the game at (ET) of 7:00 pm be at? | CREATE TABLE table_name_2 (
game_site VARCHAR,
time___et__ VARCHAR
) | SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
467,
834,
3585,
584,
4280,
28027,
6,
97,
834,
834,
834,
15,
17,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
56,
8,
467,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
834,
3585,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
97,
834,
834,
834,
15,
17,
834,
834,
3274,
96,
18735,
6366,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What surface was played on with a score of 6 4, 6 3 and on 4 May 1992? | CREATE TABLE table_41299 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Surface" FROM table_41299 WHERE "Score" = '6–4, 6–3' AND "Date" = '4 may 1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
3264,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
53,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
591,
2122,
3264,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
948,
104,
8525,
431,
104,
519,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
591,
164,
9047,
31,
1,
-100,
... |
Who was the opponent during the game with a score of 6-5 and a loss of White (2-1)? | CREATE TABLE table_name_44 (
opponent VARCHAR,
score VARCHAR,
loss VARCHAR
) | SELECT opponent FROM table_name_44 WHERE score = "6-5" AND loss = "white (2-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
383,
8,
467,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
2604,
3274,
96,
948,
18,
17395,
3430,
1453,
3274,
96,
13698,
41,
17234,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
A bar chart showing the number of flights with price higher than 300 for each destination city, order in asc by the total number. | CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREAT... | SELECT destination, COUNT(destination) FROM flight WHERE price > 300 GROUP BY destination ORDER BY COUNT(destination) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
3052,
381,
599,
1298,
6,
632,
201,
564,
3,
4331,
4059,
357,
599,
1458,
201,
2357,
381,
599,
11071,
632,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3954,
6,
2847,
17161,
599,
13557,
257,
61,
21680,
3777,
549,
17444,
427,
594,
2490,
3147,
350,
4630,
6880,
272,
476,
3954,
4674,
11300,
272,
476,
2847,
17161,
599,
13557,
257,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Original airdate for #6 with 1.246 viewers? | CREATE TABLE table_51166 (
"Episode" real,
"Original airdate" text,
"Timeslot (approx.)" text,
"Viewers (millions)" real,
"Nightly rank" text
) | SELECT "Original airdate" FROM table_51166 WHERE "Nightly rank" = '#6' AND "Viewers (millions)" = '1.246' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
26811,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
667,
3380,
10270,
799,
5522,
121,
1499,
6,
96,
13368,
7,
3171,
41,
12497,
226,
5,
61,
121,
1499,
6,
96,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
5522,
121,
21680,
953,
834,
5553,
26811,
549,
17444,
427,
96,
567,
2632,
120,
11003,
121,
3274,
3,
31,
4663,
948,
31,
3430,
96,
15270,
277,
41,
17030,
7,
61,
121,
3274,
3,
31,
10917,
444... |
what's the first operational with programming being not programmable single purpose | CREATE TABLE table_72469 (
"Name" text,
"First operational" text,
"Numeral system" text,
"Computing mechanism" text,
"Programming" text,
"Turing complete" text
) | SELECT "First operational" FROM table_72469 WHERE "Programming" = 'Not programmable—single purpose' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
3951,
41,
96,
23954,
121,
1499,
6,
96,
25171,
7763,
121,
1499,
6,
96,
21456,
4900,
358,
121,
1499,
6,
96,
5890,
2562,
53,
8557,
121,
1499,
6,
96,
3174,
16582,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25171,
7763,
121,
21680,
953,
834,
940,
2266,
3951,
549,
17444,
427,
96,
3174,
16582,
53,
121,
3274,
3,
31,
10358,
3,
7050,
179,
318,
7,
53,
109,
1730,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is sSpec Number, when Model Number is Atom N475? | CREATE TABLE table_9829 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"GPU frequency" text,
"L2 cache" text,
"I/O bus" text,
"Memory" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text
) | SELECT "sSpec number" FROM table_9829 WHERE "Model number" = 'atom n475' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
3166,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
517,
10744,
7321,
121,
1499,
6,
96,
434,
357,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
7727,
381,
121,
21680,
953,
834,
3916,
3166,
549,
17444,
427,
96,
24663,
381,
121,
3274,
3,
31,
10432,
3,
29,
591,
3072,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0? | CREATE TABLE table_11990 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Bronze") FROM table_11990 WHERE "Gold" > '1' AND "Silver" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
2394,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
19993,
2394,
549,
17444,
427,
96,
23576,
121,
2490,
3,
31,
536,
31,
3430,
96,
134,
173,
624,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
find the code of the country where has the greatest number of players. | CREATE TABLE players (country_code VARCHAR) | SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1508,
41,
17529,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
253,
8,
1081,
13,
8,
684,
213,
65,
8,
4016,
381,
13,
1508,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
834,
4978,
21680,
1508,
350,
4630,
6880,
272,
476,
684,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Player has a Place of t10? | CREATE TABLE table_name_2 (
player VARCHAR,
place VARCHAR
) | SELECT player FROM table_name_2 WHERE place = "t10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
1959,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
12387,
65,
3,
9,
3399,
13,
3,
17,
1714,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
286,
3274,
96,
17,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who had a swimsuit score of 9.87? | CREATE TABLE table_11690135_1 (
country VARCHAR,
swimsuit VARCHAR
) | SELECT COUNT(country) FROM table_11690135_1 WHERE swimsuit = "9.87" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
2394,
536,
2469,
834,
536,
41,
684,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
9728,
7628,
2604,
13,
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,
2847,
17161,
599,
17529,
61,
21680,
953,
834,
20159,
2394,
536,
2469,
834,
536,
549,
17444,
427,
9728,
7628,
3274,
96,
8797,
4225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times was the sabres record 2-5-1? | CREATE TABLE table_27537870_3 (
location_attendance VARCHAR,
record VARCHAR
) | SELECT COUNT(location_attendance) FROM table_27537870_3 WHERE record = "2-5-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3940,
2518,
834,
519,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
8,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14836,
834,
15116,
663,
61,
21680,
953,
834,
2555,
4867,
3940,
2518,
834,
519,
549,
17444,
427,
1368,
3274,
96,
357,
4525,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the birthday of caps of 32? | CREATE TABLE table_78534 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
) | SELECT "Date of Birth (Age)" FROM table_78534 WHERE "Caps" = '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
755,
3710,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
1499,
6,
96,
19566,
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,
96,
308,
342,
13,
26337,
41,
188,
397,
61,
121,
21680,
953,
834,
3940,
755,
3710,
549,
17444,
427,
96,
19566,
7,
121,
3274,
3,
31,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the location for 2007 | CREATE TABLE table_25996 (
"Year" real,
"Title of Movie" text,
"Name of Role" text,
"Nature of Role" text,
"Co-Artists" text,
"Location" text
) | SELECT "Location" FROM table_25996 WHERE "Year" = '2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
4314,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
13,
10743,
121,
1499,
6,
96,
23954,
13,
2158,
109,
121,
1499,
6,
96,
567,
9,
2693,
13,
2158,
109,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
357,
3390,
4314,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
20615,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
participants with certain levels of kidney function _ serum creatinine ( scr ) 1.3 to 3.3 mg / dl ( 115 to 291 micromol / l ) inclusive for female and 1.5 to 3.5 mg / dl ( 132 to 309 micromol / l ) inclusive for male , or an estimated glomerular filtration rate ( egfr ) 20 to 60 ml / min / 1.73 m2 | CREATE TABLE table_dev_38 (
"id" int,
"gender" string,
"serum_potassium" float,
"systolic_blood_pressure_sbp" int,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"diastolic_blood_pressure_dbp" int,
"ace_inhibitors" bool,
"serum_creatinine" float,
... | SELECT * FROM table_dev_38 WHERE kidney_disease = 1 OR (serum_creatinine > 1.3 AND serum_creatinine < 3.3 AND gender = 'female') OR (serum_creatinine > 1.5 AND serum_creatinine < 3.5 AND gender = 'male') OR (estimated_glomerular_filtration_rate_egfr >= 20 AND estimated_glomerular_filtration_rate_egfr <= 60) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
3747,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
7,
49,
440,
834,
3013,
6500,
440,
121,
3,
12660,
6,
96,
7,
63,
7,
235,
2176,
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,
1429,
21680,
953,
834,
9776,
834,
3747,
549,
17444,
427,
11546,
834,
26,
159,
14608,
3274,
209,
4674,
41,
7,
49,
440,
834,
5045,
144,
77,
630,
2490,
3,
13606,
3430,
20725,
834,
5045,
144,
77,
630,
3,
2,
3,
19660,
... |
For part 2 *raid, what is listed for part 3? | CREATE TABLE table_21717 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text,
"Usual PIE origin" text
) | SELECT "Part 3" FROM table_21717 WHERE "Part 2" = '*raid' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
2517,
41,
96,
21486,
121,
1499,
6,
96,
13725,
209,
121,
1499,
6,
96,
13725,
204,
121,
1499,
6,
96,
13725,
220,
121,
1499,
6,
96,
13725,
3,
20364,
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,
13725,
220,
121,
21680,
953,
834,
357,
2517,
2517,
549,
17444,
427,
96,
13725,
204,
121,
3274,
3,
31,
1935,
7253,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the result at valley parade on 4/7/02? | CREATE TABLE table_name_50 (result VARCHAR, venue VARCHAR, date VARCHAR) | SELECT result FROM table_name_50 WHERE venue = "valley parade" AND date = "4/7/02" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
44,
10645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
5669,
3274,
96,
2165,
1306,
16314,
121,
3430,
833,
3274,
96,
591,
21766,
87,
4305,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the center of the province that spreads out on 23860 km2? | CREATE TABLE table_26379 (
"Province (ashkharh)" text,
"Armenian name" text,
"Area (km\u00b2)" real,
"Number of cantons (gavars)" real,
"Center" text
) | SELECT "Center" FROM table_26379 WHERE "Area (km\u00b2)" = '23860' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3891,
4440,
41,
96,
3174,
2494,
565,
41,
3198,
157,
3272,
107,
61,
121,
1499,
6,
96,
23823,
15,
15710,
564,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
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,
96,
24382,
121,
21680,
953,
834,
357,
3891,
4440,
549,
17444,
427,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
357,
3747,
3328,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the highest spartak when played is less than 15 and dynamo is less than 3? | CREATE TABLE table_name_42 (
spartak INTEGER,
played VARCHAR,
dynamo VARCHAR
) | SELECT MAX(spartak) FROM table_name_42 WHERE played < 15 AND dynamo < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
3,
7,
2274,
1639,
3,
21342,
17966,
6,
1944,
584,
4280,
28027,
6,
3,
24805,
51,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7,
2274,
1639,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1944,
3,
2,
627,
3430,
3,
24805,
51,
32,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total in 2000 2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70? | CREATE TABLE table_name_71 (
total INTEGER,
rank VARCHAR,
bronze VARCHAR,
years VARCHAR,
silver VARCHAR
) | SELECT SUM(total) FROM table_name_71 WHERE years = "2000–2012" AND silver > 2 AND bronze = 0 AND rank < 70 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
792,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
203,
3274,
96,
13527,
104,
12172,
121,
3430,
4294,
2490,
204,
3430,
13467,
3274,
3,
632,
3430,
11003,
3,
2,
2861,
1,
-100,
-100,
-100... |
What's the format of the season that ended on June 25? | CREATE TABLE table_1949994_7 (format VARCHAR, end_date VARCHAR) | SELECT format FROM table_1949994_7 WHERE end_date = "June 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3647,
3264,
591,
834,
940,
41,
8995,
584,
4280,
28027,
6,
414,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1910,
13,
8,
774,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
2294,
3647,
3264,
591,
834,
940,
549,
17444,
427,
414,
834,
5522,
3274,
96,
683,
444,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the sum of Long for derrick locke? | CREATE TABLE table_name_30 (long INTEGER, name VARCHAR) | SELECT SUM(long) FROM table_name_30 WHERE name = "derrick locke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2961,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
3230,
21,
74,
5206,
6081,
15,
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,
180,
6122,
599,
2961,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
564,
3274,
96,
588,
5206,
6081,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 1.93 for Svetlana Shkolina? | CREATE TABLE table_name_69 (name VARCHAR) | SELECT 193 FROM table_name_69 WHERE name = "svetlana shkolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1300,
4271,
21,
180,
162,
17,
1618,
9,
4488,
11292,
77,
9,
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,
957,
519,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
564,
3274,
96,
7,
162,
17,
1618,
9,
6660,
11292,
77,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a bar chart to show the theme and their sales of the journal which did not have any of the listed editors serving on the committee, and I want to order by the total number in ascending. | CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
) | SELECT T1.Theme, T1.Sales FROM journal EXCEPT SELECT T1.Date, T1.Theme, T1.Sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.Journal_ID = T2.Journal_ID ORDER BY T1.Sales | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
3559,
834,
4309,
16,
17,
6,
7678,
1499,
6,
37,
526,
1499,
6,
7107,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6005,
41,
11953,
834,
4309,
16,
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,
332,
5411,
634,
526,
6,
332,
5411,
134,
4529,
21680,
6378,
262,
4,
30416,
3,
23143,
14196,
332,
5411,
308,
342,
6,
332,
5411,
634,
526,
6,
332,
5411,
134,
4529,
21680,
6378,
6157,
332,
536,
3,
15355,
3162,
6378,
8... |
How many patients from black/haitian ethnic origin were admitted before 2127? | 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.ethnicity = "BLACK/HAITIAN" AND demographic.admityear < "2127" | [
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,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
5478,
3177,
21758,
121,
3430,
14798,
5,
20466,
17,
... |
Who leads the general classification in stage 3? | CREATE TABLE table_26010857_13 (general_classification VARCHAR, stage VARCHAR) | SELECT general_classification FROM table_26010857_13 WHERE stage = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
16169,
3436,
834,
2368,
41,
27369,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
3433,
8,
879,
13774,
16,
1726,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
879,
834,
4057,
2420,
21680,
953,
834,
18365,
16169,
3436,
834,
2368,
549,
17444,
427,
1726,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHAT IS THE TITLE WITH CATEGORY OF best r&b song? | CREATE TABLE table_43886 (
"Year" real,
"Category" text,
"Genre" text,
"Title" text,
"Result" text
) | SELECT "Title" FROM table_43886 WHERE "Category" = 'best r&b song' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3747,
3840,
41,
96,
476,
2741,
121,
490,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
591,
3747,
3840,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
3,
52,
184,
115,
2324,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are incumbent William Vandever's results? | CREATE TABLE table_name_81 (
result VARCHAR,
incumbent VARCHAR
) | SELECT result FROM table_name_81 WHERE incumbent = "william vandever" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
741,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
28406,
4599,
24039,
3258,
31,
7,
772,
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,
741,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
28406,
3274,
96,
8894,
23,
265,
4049,
26,
3258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What ranking has the nationality of spain and the goals of 26? | CREATE TABLE table_5069 (
"Ranking" real,
"Nationality" text,
"Name" text,
"Years" text,
"Goals" real
) | SELECT "Ranking" FROM table_5069 WHERE "Nationality" = 'spain' AND "Goals" = '26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3951,
41,
96,
22557,
53,
121,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
6221,
5405,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
53,
121,
21680,
953,
834,
1752,
3951,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
14147,
77,
31,
3430,
96,
6221,
5405,
121,
3274,
3,
31,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which championship had arantxa s nchez vicario todd woodbridge as opponents in the final | CREATE TABLE table_22876 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | SELECT "Championship" FROM table_22876 WHERE "Opponents in the final" = 'Arantxa Sánchez Vicario Todd Woodbridge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
3959,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1483,
12364,
2009,
121,
21680,
953,
834,
357,
2577,
3959,
549,
17444,
427,
96,
667,
102,
9977,
7,
16,
8,
804,
121,
3274,
3,
31,
188,
3569,
226,
9,
180,
12916,
20095,
12060,
14414,
17607,
2985,
9818,
31,
1... |
What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)? | CREATE TABLE table_57144 (
"Athlete" text,
"Shooting Score (pts)" text,
"Fencing Victories (pts)" text,
"Swimming Time (pts)" text,
"Riding Penalties (pts)" text,
"Running Time (pts)" text,
"Total" real
) | SELECT "Riding Penalties (pts)" FROM table_57144 WHERE "Swimming Time (pts)" = '2:18.16 (1264)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
20885,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
10499,
32,
32,
1222,
17763,
41,
102,
17,
7,
61,
121,
1499,
6,
96,
371,
15,
4733,
8884,
725,
41,
102,
17,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
12469,
4511,
138,
3010,
41,
102,
17,
7,
61,
121,
21680,
953,
834,
3436,
20885,
549,
17444,
427,
96,
134,
210,
23,
635,
53,
2900,
41,
102,
17,
7,
61,
121,
3274,
3,
31,
357,
10,
2606,
5,
2938,
16465,
43... |
how many patients whose year of birth is less than 2058? | 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.dob_year < "2058" | [
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,
26,
32,
115,
834,
1201,
3,
2,
96,
1755,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Result of the Lineup of start, an Assist/pass of carli lloyd, and an Competition of 2011 fifa women’s world cup – group stage? | CREATE TABLE table_name_63 (result VARCHAR, competition VARCHAR, lineup VARCHAR, assist_pass VARCHAR) | SELECT result FROM table_name_63 WHERE lineup = "start" AND assist_pass = "carli lloyd" AND competition = "2011 fifa women’s world cup – group stage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
15561,
584,
4280,
28027,
6,
2094,
834,
3968,
584,
4280,
28027,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
15561,
3274,
96,
10208,
121,
3430,
2094,
834,
3968,
3274,
96,
1720,
40,
23,
3,
195,
32,
63,
26,
121,
3430,
2259,
3274,
96,
13907,
361,
89,
9,
887,
22,
7,
2... |
how many patients whose admission year is less than 2177 and procedure short title is infusion of vasopressor? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2177" AND procedures.short_title = "Infusion of vasopressor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
has any microbiology test been held for patient 031-3355? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
186... |
Which player plays forward and is from Kentucky? | CREATE TABLE table_name_43 (player VARCHAR, position VARCHAR, school_country VARCHAR) | SELECT player FROM table_name_43 WHERE position = "forward" AND school_country = "kentucky" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
496,
834,
17529,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
4805,
1039,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1102,
3274,
96,
26338,
121,
3430,
496,
834,
17529,
3274,
96,
2217,
17,
4636,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the group a winner for modena? | CREATE TABLE table_16653 (
"Season" text,
"Group A Winner" text,
"Group B Winner" text,
"Group C Winner" text,
"Group D Winner" text
) | SELECT "Group A Winner" FROM table_16653 WHERE "Group B Winner" = 'Modena' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
4867,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
27247,
71,
18125,
121,
1499,
6,
96,
27247,
272,
18125,
121,
1499,
6,
96,
27247,
205,
18125,
121,
1499,
6,
96,
2724... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27247,
71,
18125,
121,
21680,
953,
834,
26811,
4867,
549,
17444,
427,
96,
27247,
272,
18125,
121,
3274,
3,
31,
15594,
35,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Year Inducted is the highest one that has a Year smaller than 1965? | CREATE TABLE table_name_28 (
year INTEGER
) | SELECT MAX(year) AS Inducted FROM table_name_28 WHERE year < 1965 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
86,
21336,
19,
8,
2030,
80,
24,
65,
3,
9,
2929,
2755,
145,
19201,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
6157,
86,
21336,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
215,
3,
2,
19201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of Team_Name and All_Games_Percent , list Team_Name from low to high order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_Name, All_Games_Percent FROM basketball_match ORDER BY Team_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
23954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154? | CREATE TABLE table_name_48 (to_par VARCHAR, total VARCHAR, year_won VARCHAR, player VARCHAR) | SELECT COUNT(to_par) FROM table_name_48 WHERE year_won < 1993 AND player = "jeff sluman" AND total > 154 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
235,
834,
1893,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
215,
834,
210,
106,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
834,
1893,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
215,
834,
210,
106,
3,
2,
8388,
3430,
1959,
3274,
96,
1924,
89,
89,
3,
7,
5171,
152,
121,
3430,
792,
2490,
3,
27308,
1,
-1... |
when points against was 387 what was the lost? | CREATE TABLE table_35359 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points" text
) | SELECT "Lost" FROM table_35359 WHERE "Points against" = '387' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
519,
3390,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
434,
3481,
121,
21680,
953,
834,
2469,
519,
3390,
549,
17444,
427,
96,
22512,
7,
581,
121,
3274,
3,
31,
519,
4225,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Rank is the lowest one that has a Gross of $54,215,416? | CREATE TABLE table_50314 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Gross" text
) | SELECT MIN("Rank") FROM table_50314 WHERE "Gross" = '$54,215,416' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
519,
2534,
41,
96,
22557,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
517,
1859,
7,
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,
22557,
8512,
21680,
953,
834,
1752,
519,
2534,
549,
17444,
427,
96,
517,
1859,
7,
121,
3274,
3,
31,
3229,
5062,
6,
357,
1808,
6,
591,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the year of previous participation for the school in the Kagoshima prefecture? | CREATE TABLE table_2518850_4 (
year_of_previous_participation VARCHAR,
prefecture VARCHAR
) | SELECT year_of_previous_participation FROM table_2518850_4 WHERE prefecture = "Kagoshima" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2606,
17246,
834,
591,
41,
215,
834,
858,
834,
2026,
19117,
834,
2274,
23,
3389,
257,
584,
4280,
28027,
6,
554,
4075,
1462,
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,
215,
834,
858,
834,
2026,
19117,
834,
2274,
23,
3389,
257,
21680,
953,
834,
1828,
2606,
17246,
834,
591,
549,
17444,
427,
554,
4075,
1462,
3274,
96,
439,
9,
839,
7,
10813,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
give the number of patients under the age of41 who had the procedure for insertion of drug-eluting coronary artery stent(s). | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "41" AND procedures.long_title = "Insertion of drug-eluting coronary artery stent(s)" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the smallest crowd of the away team that scored 12.9 (81)? | CREATE TABLE table_56657 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_56657 WHERE "Away team score" = '12.9 (81)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3539,
3436,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
755,
3539,
3436,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
9368,
1298,
13642,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Compute how many attributes in each name of the attribute definitions with attribute value 0 Show the result with a bar chart, I want to display the number of attribute name in descending order. | CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
... | SELECT attribute_name, COUNT(attribute_name) FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 GROUP BY attribute_name ORDER BY COUNT(attribute_name) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
7,
41,
10173,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4350,
584,
4280,
28027,
599,
1752,
201,
10173,
834,
29337,
49,
584,
4280,
28027,
599,
2079,
201,
833,
834,
858,
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,
15816,
834,
4350,
6,
2847,
17161,
599,
144,
5135,
17,
15,
834,
4350,
61,
21680,
486,
5135,
17,
15,
834,
2962,
5582,
10872,
6157,
3,
17,
536,
3,
15355,
3162,
22424,
834,
4302,
4669,
7,
834,
20773,
4749,
138,
834,
1... |
List the names of all distinct races in reversed lexicographic order? | CREATE TABLE races (name VARCHAR) | SELECT DISTINCT name FROM races ORDER BY name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10879,
41,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
3056,
13,
66,
6746,
10879,
16,
7211,
26,
3,
30949,
16587,
455,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
564,
21680,
10879,
4674,
11300,
272,
476,
564,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is minimum age of patients whose primary disease is pneumonia;human immunodefiency virus;rule out tuberculosis and admission year is greater than or equal to 2176? | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS" AND demographic.admityear >= "2176" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
15420,
12062,
5365,
26077,
117,
17861,
9312,
3,
5166,
9696,
7400,
5596,
4936,
5332,
17063,
584,
5705,
3063,
... |
how many times was the player felipe lopez? | CREATE TABLE table_17098 (
"Year" text,
"Player" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT COUNT("NBA Draft") FROM table_17098 WHERE "Player" = 'Felipe Lopez' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
3916,
41,
96,
476,
2741,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
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,
2847,
17161,
599,
121,
567,
4882,
21409,
8512,
21680,
953,
834,
536,
2518,
3916,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17160,
23,
855,
25692,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position? | CREATE TABLE table_1132568_3 (
rd VARCHAR,
pole_position VARCHAR,
fastest_lap VARCHAR,
constructor VARCHAR
) | SELECT rd FROM table_1132568_3 WHERE fastest_lap = "Michael Schumacher" AND constructor = "Ferrari" AND pole_position = "Michael Schumacher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
1828,
3651,
834,
519,
41,
3,
52,
26,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
52,
26,
21680,
953,
834,
20522,
1828,
3651,
834,
519,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
329,
362,
9,
15,
40,
6824,
24113,
121,
3430,
6774,
127,
3274,
96,
371,
49,
52,
1665,
121,
3430,
11148,
834,
471... |
how many patients whose gender is m and diagnoses long title is intestinovesical fistula? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Intestinovesical fistula" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
which company uses pinborough, sarah sarah pinborough? | CREATE TABLE table_20174050_23 (
company VARCHAR,
author VARCHAR
) | SELECT company FROM table_20174050_23 WHERE author = "Pinborough, Sarah Sarah Pinborough" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9887,
2445,
1752,
834,
2773,
41,
349,
584,
4280,
28027,
6,
2291,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
349,
2284,
4522,
12823,
6,
3,
7,
2551,
107,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
349,
21680,
953,
834,
9887,
2445,
1752,
834,
2773,
549,
17444,
427,
2291,
3274,
96,
345,
77,
12823,
6,
8077,
8077,
8050,
12823,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose gender is m and procedure icd9 code is 5651? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "5651" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
When the home team was geelong, what did the away team score? | CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_98 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
234,
372,
47,
873,
15,
2961,
6,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the title of the episode watched by 0.88 million U.S. viewers? | CREATE TABLE table_28680377_2 (
title VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT title FROM table_28680377_2 WHERE us_viewers__million_ = "0.88" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3651,
4928,
4013,
834,
357,
41,
2233,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2577,
3651,
4928,
4013,
834,
357,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
22384,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the example in English for a tone of mid rising-falling? | CREATE TABLE table_6051 (
"Tone" text,
"Standard Thai" text,
"Phonemic" text,
"Phonetic" text,
"Example meaning in English" text
) | SELECT "Example meaning in English" FROM table_6051 WHERE "Tone" = 'mid rising-falling' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
5553,
41,
96,
382,
782,
121,
1499,
6,
96,
134,
17,
232,
986,
12806,
121,
1499,
6,
96,
345,
107,
782,
3113,
121,
1499,
6,
96,
345,
107,
106,
7578,
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,
5420,
9,
9208,
2530,
16,
1566,
121,
21680,
953,
834,
3328,
5553,
549,
17444,
427,
96,
382,
782,
121,
3274,
3,
31,
6983,
6937,
18,
2857,
53,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was Des Dickson's lowest rank for matches smaller than 285 and less than 219 goals? | CREATE TABLE table_40647 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
) | SELECT MIN("Rank") FROM table_40647 WHERE "Matches" < '285' AND "Name" = 'des dickson' AND "Goals" < '219' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
948,
4177,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
6221,
5405,
121,
490,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
2445,
948,
4177,
549,
17444,
427,
96,
329,
144,
2951,
121,
3,
2,
3,
31,
357,
4433,
31,
3430,
96,
23954,
121,
3274,
3,
31,
1395,
3,
26,
3142,
739,
31,
3430,
96,
... |
What is the Statue, when Venue is 'Stadio Flaminio , Rome'? | CREATE TABLE table_59226 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Status" FROM table_59226 WHERE "Venue" = 'stadio flaminio , rome' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
357,
2688,
41,
96,
667,
102,
2748,
53,
16651,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
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,
134,
17,
144,
302,
121,
21680,
953,
834,
3390,
357,
2688,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
2427,
26,
23,
32,
5731,
7619,
32,
3,
6,
3,
11956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the score when high points were Andre Miller (31)? | CREATE TABLE table_25888 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "Score" FROM table_25888 WHERE "High points" = 'Andre Miller (31)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
10927,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
1828,
10927,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
7175,
60,
9429,
6918,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa? | CREATE TABLE table_18814 (
"Specification" text,
"Gender" text,
"Junior High School (12\u201315 yrs)" text,
"Senior High School (15\u201318 yrs)" text,
"University students and Adults (18yrs+)" text
) | SELECT "Junior High School (12\u201315 yrs)" FROM table_18814 WHERE "Gender" = 'Male' AND "Specification" = 'Minimum diameter of sakigawa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
2534,
41,
96,
7727,
2420,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
683,
202,
23,
127,
1592,
1121,
16465,
2,
76,
11138,
1808,
3,
63,
52,
7,
61,
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,
683,
202,
23,
127,
1592,
1121,
16465,
2,
76,
11138,
1808,
3,
63,
52,
7,
61,
121,
21680,
953,
834,
25794,
2534,
549,
17444,
427,
96,
517,
3868,
121,
3274,
3,
31,
329,
9,
109,
31,
3430,
96,
7727,
2420,
121,
... |
what person was in rank 10 | CREATE TABLE table_name_10 (
rider VARCHAR,
rank VARCHAR
) | SELECT rider FROM table_name_10 WHERE rank = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2564,
52,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
568,
47,
16,
11003,
335,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2564,
52,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
11003,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the lowest highest capacity that has a lowest capacity larger than 4,086 people, and a current capacity of 14,209, and an average capacity smaller than 8,530? | CREATE TABLE table_12068 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Lowest" real,
"Highest" real,
"Average" real
) | SELECT MIN("Highest") FROM table_12068 WHERE "Lowest" > '4,086' AND "Capacity" = '14,209' AND "Average" < '8,530' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3651,
41,
96,
18699,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
6,
96,
434,
32,
12425,
121,
490,
6,
96,
21417,
222,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
222,
8512,
21680,
953,
834,
15518,
3651,
549,
17444,
427,
96,
434,
32,
12425,
121,
2490,
3,
31,
8525,
632,
3840,
31,
3430,
96,
19566,
9,
6726,
121,
3274,
3,
31,
2534,
6,
357,
4198,
31,
... |
What is the total number of events that Al Geiberger has played with earnings larger than 527,033? | CREATE TABLE table_name_42 (
events VARCHAR,
player VARCHAR,
earnings___$__ VARCHAR
) | SELECT COUNT(events) FROM table_name_42 WHERE player = "al geiberger" AND earnings___$__ > 527 OFFSET 033 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
984,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
8783,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15,
2169,
7,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1959,
3274,
96,
138,
873,
23,
16170,
121,
3430,
8783,
834,
834,
834,
3229,
834,
834,
2490,
305,
2555,
3,
15316,
20788,
12811,
519... |
Who did Thomaz Bellucci play against when he became runner-up on a clay surface? | CREATE TABLE table_48013 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_48013 WHERE "Outcome" = 'runner-up' AND "Surface" = 'clay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20579,
2368,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
20579,
2368,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
10806,
18,
413,
31,
3430,
96,
134,
450,
4861,
121,
3274,
3,
31,
4651,
63,
31,
1,
-100,
-100,
-100,
-1... |
What was the airdate of the episode with 106000 dave ja vu viewers? | CREATE TABLE table_25721_3 (
airdate VARCHAR,
dave_ja_vu_viewers VARCHAR
) | SELECT airdate FROM table_25721_3 WHERE dave_ja_vu_viewers = 106000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
2658,
834,
519,
41,
799,
5522,
584,
4280,
28027,
6,
836,
162,
834,
1191,
834,
208,
76,
834,
4576,
277,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
799,
5522,
21680,
953,
834,
357,
3436,
2658,
834,
519,
549,
17444,
427,
836,
162,
834,
1191,
834,
208,
76,
834,
4576,
277,
3274,
335,
21987,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission location is emergency room admit and drug code is prav10? | 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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND prescriptions.formulary_drug_cd = "PRAV10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the result of a round greater than 3? | CREATE TABLE table_name_55 (
result VARCHAR,
round INTEGER
) | SELECT result FROM table_name_55 WHERE round > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
741,
584,
4280,
28027,
6,
1751,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
3,
9,
1751,
2123,
145,
220,
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,
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,
741,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1751,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the 54 holes for The Open Championship (4)? | CREATE TABLE table_name_7 (championship VARCHAR) | SELECT 54 AS _holes FROM table_name_7 WHERE championship = "the open championship (4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
17788,
12364,
2009,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10630,
8034,
21,
37,
2384,
7666,
3,
10820,
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,
10630,
6157,
3,
834,
9136,
7,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
10183,
3274,
96,
532,
539,
10183,
3,
10820,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player played guard for toronto in 1996-97? | CREATE TABLE table_10015132_11 (player VARCHAR, position VARCHAR, years_in_toronto VARCHAR) | SELECT player FROM table_10015132_11 WHERE position = "Guard" AND years_in_toronto = "1996-97" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
2596,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
203,
834,
77,
834,
235,
4438,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2915,
1808,
23757,
834,
2596,
549,
17444,
427,
1102,
3274,
96,
9105,
986,
121,
3430,
203,
834,
77,
834,
235,
4438,
32,
3274,
96,
2294,
4314,
18,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the date of release for the episode sorted value of 6Y/AA? | CREATE TABLE table_name_13 (released VARCHAR, series_sorted VARCHAR) | SELECT released FROM table_name_13 WHERE series_sorted = "6y/aa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
21019,
26,
584,
4280,
28027,
6,
939,
834,
14504,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
1576,
21,
8,
5640,
3,
14504,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1883,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
939,
834,
14504,
3274,
96,
948,
63,
87,
9,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
On what date was the crowd over 19,298 when South Melbourne was the home team? | CREATE TABLE table_54155 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_54155 WHERE "Crowd" > '19,298' AND "Home team" = 'south melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
20896,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5062,
20896,
549,
17444,
427,
96,
254,
3623,
26,
121,
2490,
3,
31,
2294,
6,
357,
3916,
31,
3430,
96,
19040,
372,
121,
3274,
3,
31,
7,
670,
107,
3,
2341,
26255,
31,
1,
-100,
... |
What is the height of player James Stanton? | CREATE TABLE table_61436 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) | SELECT "Height" FROM table_61436 WHERE "Name" = 'james stanton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
3420,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
308,
342,
13,
26337,
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,
3845,
2632,
121,
21680,
953,
834,
948,
2534,
3420,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1191,
2687,
3342,
6992,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all the calendar dates and day Numbers? | CREATE TABLE document_locations (
document_id number,
location_code text,
date_in_location_from time,
date_in_locaton_to time
)
CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_detail... | SELECT calendar_date, day_number FROM ref_calendar | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1708,
834,
14836,
7,
41,
1708,
834,
23,
26,
381,
6,
1128,
834,
4978,
1499,
6,
833,
834,
77,
834,
14836,
834,
7152,
97,
6,
833,
834,
77,
834,
5133,
144,
106,
834,
235,
97,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4793,
834,
5522,
6,
239,
834,
5525,
1152,
21680,
6273,
834,
1489,
35,
3439,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the final game result that was played on December 2? | CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_80 WHERE date = "december 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
467,
741,
24,
47,
1944,
30,
1882,
204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Constituency Number when the Number of Electorates (2003) is more than 156,910, and Reserved for sc? | CREATE TABLE table_65315 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2003)" real
) | SELECT "Constituency number" FROM table_65315 WHERE "Number of electorates (2003)" > '156,910' AND "Reserved for ( SC / ST /None)" = 'sc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
519,
1808,
41,
96,
4302,
2248,
17,
76,
4392,
381,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
1649,
3473,
15,
26,
21,
41,
6508,
3,
87,
5097,
3,
87,
567,
782,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
2248,
17,
76,
4392,
381,
121,
21680,
953,
834,
4122,
519,
1808,
549,
17444,
427,
96,
567,
5937,
49,
13,
11924,
127,
6203,
3,
31210,
121,
2490,
3,
31,
25463,
6,
1298,
1714,
31,
3430,
96,
1649,
3473,
15,
... |
How many different numbers are there for the game played on April 23? | CREATE TABLE table_27862483_3 (
_number VARCHAR,
date VARCHAR
) | SELECT COUNT(_number) FROM table_27862483_3 WHERE date = "April 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3840,
2266,
4591,
834,
519,
41,
3,
834,
5525,
1152,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
2302,
33,
132,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
834,
5525,
1152,
61,
21680,
953,
834,
2555,
3840,
2266,
4591,
834,
519,
549,
17444,
427,
833,
3274,
96,
23323,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest value for 1960, when the value for 2000 is less than 8.4, when the value for 1950 is greater than 3.5, and when the value for 1990 is less than 3.3? | CREATE TABLE table_name_66 (Id VARCHAR) | SELECT MIN(1960) FROM table_name_66 WHERE 2000 < 8.4 AND 1950 > 3.5 AND 1990 < 3.3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
701,
21,
8754,
6,
116,
8,
701,
21,
2766,
19,
705,
145,
4848,
8525,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
2294,
3328,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
2766,
3,
2,
4848,
591,
3430,
10247,
2490,
3,
9285,
3430,
5541,
3,
2,
3,
19660,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the number of apartment bookings in each year and bin booking start date by year with a bar chart. | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
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(5... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
371,
9,
13067,
3010,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3064,
834,
4978,
3,
28027,
599,
1808,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the venue that featured the Melbourne Tigers as the away team? | CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_95 WHERE away_team = "melbourne tigers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
24,
4510,
8,
9396,
11804,
7,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
3,
2880,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the characteristic name used by most number of the products? | CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) | SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
15892,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
28027,
5173,
5946,
13582,
21202,
41,
31886,
3040,
834,
4350,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
31886,
3040,
834,
4350,
21680,
494,
6157,
3,
17,
536,
3,
15355,
3162,
556,
834,
31886,
3040,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15892,
834,
23,
26,
3274,
3,
17,
4416,
15892,
834,
23,
26,
3,
1... |
count the number of patients whose ethnicity is asian and admission year is less than 2108? | 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.ethnicity = "ASIAN" AND demographic.admityear < "2108" | [
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,
15,
189,
2532,
485,
3274,
96,
3291,
21758,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,
357,
... |
What is the lowest amount of gold for more than 16 silver? | CREATE TABLE table_name_14 (gold INTEGER, silver INTEGER) | SELECT MIN(gold) FROM table_name_14 WHERE silver > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
14910,
3,
21342,
17966,
6,
4294,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
866,
13,
2045,
21,
72,
145,
898,
4294,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
4294,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of the episode in series that is called 'breaking up is easy to do (part 1)'? | CREATE TABLE table_24876 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "No. in series" FROM table_24876 WHERE "Title" = 'Breaking Up Is Easy to Do (Part 1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3707,
3959,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
4168,
5,
16,
939,
121,
21680,
953,
834,
357,
3707,
3959,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
279,
864,
1765,
3234,
27,
7,
6844,
12,
531,
41,
13725,
8925,
31,
1,
-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.