NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many runs allowed did the team ranked 2 with more than 2 losses have? | CREATE TABLE table_name_50 (runs_allowed INTEGER, rank VARCHAR, losses VARCHAR) | SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
4312,
7,
834,
138,
22411,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3154,
2225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
4312,
7,
834,
138,
22411,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
11003,
3274,
204,
3430,
8467,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which authority has a Name of tamatea high school? | CREATE TABLE table_69718 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real
) | SELECT "Authority" FROM table_69718 WHERE "Name" = 'tamatea high school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
940,
2606,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23602,
127,
485,
121,
21680,
953,
834,
3951,
940,
2606,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
9,
5058,
9,
306,
496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13? | CREATE TABLE table_name_27 (total INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_27 WHERE bronze > 2 AND gold < 16 AND silver = 0 AND rank = "13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
235,
1947,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
13467,
2490,
204,
3430,
2045,
3,
2,
898,
3430,
4294,
3274,
3,
632,
3430,
11003,
3274,
96,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the number of March that has 25-10-9 record and a Game more than 44? | CREATE TABLE table_name_94 (march VARCHAR, record VARCHAR, game VARCHAR) | SELECT COUNT(march) FROM table_name_94 WHERE record = "25-10-9" AND game > 44 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
51,
7064,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
1332,
24,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
51,
7064,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1368,
3274,
96,
1828,
4536,
7141,
121,
3430,
467,
2490,
8537,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest round with a pick# of 9, overll less than 468, and position of defensive back? | CREATE TABLE table_name_77 (
round INTEGER,
overall VARCHAR,
pick__number VARCHAR,
position VARCHAR
) | SELECT MAX(round) FROM table_name_77 WHERE pick__number = 9 AND position = "defensive back" AND overall < 468 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
1751,
3,
21342,
17966,
6,
1879,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
668,
3430,
1102,
3274,
96,
221,
23039,
15,
223,
121,
3430,
1879,
3,
2,
314,
3651,
1,
-100,
-100,
-100,
-... |
what is the number of patients who had coronary arteriography using two catheters and were born before 2109? | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2109" AND procedures.long_title = "Coronary arteriography using two catheters" | [
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,... |
What division is Traktor Tashkent in 2005? | CREATE TABLE table_69070 (
"Season" text,
"Team" text,
"Country" text,
"Division" text,
"Apps" real,
"Goals" real
) | SELECT "Division" FROM table_69070 WHERE "Team" = 'traktor tashkent' AND "Season" = '2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2394,
2518,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
9648,
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,
23,
6610,
121,
21680,
953,
834,
948,
2394,
2518,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
25154,
127,
3,
17,
3198,
2217,
17,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
22594,
31,
1,
-100,
-... |
What's the sum of all values in category 1 when category 3 is equal to 300? | CREATE TABLE table_name_89 (
category_1 INTEGER,
category_3 VARCHAR
) | SELECT SUM(category_1) FROM table_name_89 WHERE category_3 = "300" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3295,
834,
536,
3,
21342,
17966,
6,
3295,
834,
519,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
4505,
13,
66,
2620,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8367,
839,
651,
834,
6982,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
3295,
834,
519,
3274,
96,
5426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What team has a porsche 956 b chassis-engine with less than 79 laps? | CREATE TABLE table_48105 (
"Class" text,
"Team" text,
"Driver" text,
"Chassis \u2013 Engine" text,
"Laps" real
) | SELECT "Team" FROM table_48105 WHERE "Chassis \u2013 Engine" = 'porsche 956 b' AND "Laps" < '79' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
12869,
41,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
3541,
6500,
7,
3,
2,
76,
11138,
10612,
121,
1499,
6,
96,
3612,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
3707,
12869,
549,
17444,
427,
96,
3541,
6500,
7,
3,
2,
76,
11138,
10612,
121,
3274,
3,
31,
102,
127,
3992,
668,
4834,
3,
115,
31,
3430,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
4440... |
Where is the location of a team with a 3-2 record? | CREATE TABLE table_name_96 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_96 WHERE record = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
14836,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
1128,
13,
3,
9,
372,
28,
3,
9,
3,
21160,
1368,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1368,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which score was for the Spurs as visitors with record of 35–16? | CREATE TABLE table_name_60 (score VARCHAR, visitor VARCHAR, record VARCHAR) | SELECT score FROM table_name_60 WHERE visitor = "spurs" AND record = "35–16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
7,
9022,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2604,
47,
21,
8,
17740,
7,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
7019,
3274,
96,
7,
3791,
7,
121,
3430,
1368,
3274,
96,
2469,
104,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Opponent, when Week is "5"? | CREATE TABLE table_name_70 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_70 WHERE week = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4495,
9977,
6,
116,
6551,
19,
96,
17395,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
471,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14? | CREATE TABLE table_name_38 (bronze INTEGER, nation VARCHAR, gold VARCHAR) | SELECT MIN(bronze) FROM table_name_38 WHERE nation = "total" AND gold < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
13711,
776,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
20841,
19,
8,
7402,
80,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
2982,
3274,
96,
235,
1947,
121,
3430,
2045,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008? | CREATE TABLE table_name_64 (
voltage VARCHAR,
frequency VARCHAR,
release_date VARCHAR
) | SELECT voltage FROM table_name_64 WHERE frequency = "2000mhz" AND release_date = "q3 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
10594,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
773,
13,
4969,
6505,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10594,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
7321,
3274,
96,
13527,
51,
107,
172,
121,
3430,
1576,
834,
5522,
3274,
96,
1824,
519,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many players led Game #66 in scoring? | CREATE TABLE table_13619053_8 (
high_points VARCHAR,
game VARCHAR
) | SELECT COUNT(high_points) FROM table_13619053_8 WHERE game = 66 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
11776,
4867,
834,
927,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
2237,
4435,
1713,
3539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6739,
834,
2700,
7,
61,
21680,
953,
834,
23459,
11776,
4867,
834,
927,
549,
17444,
427,
467,
3274,
3,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the highest time for heat rank of 8 and lane more than 2 | CREATE TABLE table_name_48 (time INTEGER, heat_rank VARCHAR, lane VARCHAR) | SELECT MAX(time) FROM table_name_48 WHERE heat_rank = 8 AND lane > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
715,
3,
21342,
17966,
6,
1678,
834,
6254,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
2030,
97,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
715,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1678,
834,
6254,
3274,
505,
3430,
3,
8102,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose diagnoses short title is wheelchair dependence and drug type is base? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Wheelchair dependence" AND prescriptions.drug_type = "BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What Title's Start of Reign is 1993? | CREATE TABLE table_7484 (
"Name" text,
"Start of Reign" real,
"End of Reign" text,
"Birth Name" text,
"Title" text
) | SELECT "Title" FROM table_7484 WHERE "Start of Reign" = '1993' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4608,
41,
96,
23954,
121,
1499,
6,
96,
7681,
17,
13,
419,
3191,
121,
490,
6,
96,
8532,
26,
13,
419,
3191,
121,
1499,
6,
96,
279,
23,
52,
189,
5570,
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,
382,
155,
109,
121,
21680,
953,
834,
4581,
4608,
549,
17444,
427,
96,
7681,
17,
13,
419,
3191,
121,
3274,
3,
31,
2294,
4271,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of Time and ID , and sort y-axis in ascending order please. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE... | SELECT Time, ID FROM swimmer ORDER BY ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
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,
2900,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
4699,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which player has $450 and a score of 76-74-74-72=296? | CREATE TABLE table_name_67 (player VARCHAR, money___$__ VARCHAR, score VARCHAR) | SELECT player FROM table_name_67 WHERE money___$__ = "450" AND score = 76 - 74 - 74 - 72 = 296 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
20846,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
195... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3274,
96,
10593,
121,
3430,
2604,
3274,
3,
3959,
3,
18,
3,
4581,
3,
18,
3,
4581,
3,
18,
9455,
3274,
204,
4314,
1,
-100... |
How many votes did Obama get in Lake County? | CREATE TABLE table_20799905_1 (
obama_number INTEGER,
county VARCHAR
) | SELECT MIN(obama_number) FROM table_20799905_1 WHERE county = "LAKE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
19446,
3076,
834,
536,
41,
3,
32,
115,
265,
9,
834,
5525,
1152,
3,
21342,
17966,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11839,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
32,
115,
265,
9,
834,
5525,
1152,
61,
21680,
953,
834,
26426,
19446,
3076,
834,
536,
549,
17444,
427,
5435,
3274,
96,
434,
17253,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Draw a bar chart about the distribution of All_Home and Team_ID , and group by attribute ACC_Home, I want to rank All_Home in ascending 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 All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY All_Home | [
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,
432,
834,
19040,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
432,
834,
19040,
4674,
11300,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which position from the Cherkassy Monkeys' club was born after 1978? | CREATE TABLE table_name_10 (position VARCHAR, year_born VARCHAR, current_club VARCHAR) | SELECT position FROM table_name_10 WHERE year_born > 1978 AND current_club = "cherkassy monkeys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
4718,
584,
4280,
28027,
6,
215,
834,
7473,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
45,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
215,
834,
7473,
2490,
14834,
3430,
750,
834,
13442,
3274,
96,
1703,
1258,
7,
7,
63,
21622,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points? | CREATE TABLE table_69318 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Played") FROM table_69318 WHERE "Goals for" < '43' AND "Draws" > '9' AND "Position" > '17' AND "Points" = '30-8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
519,
2606,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
1499,
6,
96,
18455,
7,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
3951,
519,
2606,
549,
17444,
427,
96,
6221,
5405,
21,
121,
3,
2,
3,
31,
4906,
31,
3430,
96,
308,
10936,
7,
121,
2490,
3,
31,
1298,
31,
3430,
96,
345,
... |
Show different teams of technicians and the number of technicians in each team. | CREATE TABLE machine (
machine_id number,
making_year number,
class text,
team text,
machine_series text,
value_points number,
quality_rank number
)
CREATE TABLE repair_assignment (
technician_id number,
repair_id number,
machine_id number
)
CREATE TABLE technician (
techni... | SELECT team, COUNT(*) FROM technician GROUP BY team | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1437,
41,
1437,
834,
23,
26,
381,
6,
492,
834,
1201,
381,
6,
853,
1499,
6,
372,
1499,
6,
1437,
834,
10833,
7,
1499,
6,
701,
834,
2700,
7,
381,
6,
463,
834,
6254,
381,
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,
372,
6,
2847,
17161,
599,
1935,
61,
21680,
17730,
350,
4630,
6880,
272,
476,
372,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is drug dose of drug name phenytoin? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Phenytoin" | [
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,
7744,
7,
5,
26,
13534,
834,
12051,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
345,
3225,
63,
235,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2 | CREATE TABLE table_name_70 (
gold INTEGER,
total VARCHAR,
bronze VARCHAR,
rank VARCHAR
) | SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
2045,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
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,
0... | [
3,
23143,
14196,
4800,
4,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
13467,
2490,
3,
632,
3430,
11003,
2490,
305,
3430,
792,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What rank has jo angel (wa) as the player? | CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR) | SELECT rank FROM table_name_47 WHERE player = "jo angel (wa)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
6254,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
65,
3,
1927,
11831,
41,
210,
9,
61,
38,
8,
1959,
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,
11003,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1959,
3274,
96,
1927,
11831,
41,
210,
9,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the qual with a 19 rank? | CREATE TABLE table_name_28 (qual VARCHAR, rank VARCHAR) | SELECT qual FROM table_name_28 WHERE rank = "19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
11433,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
11433,
28,
3,
9,
957,
11003,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
11433,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
11003,
3274,
96,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date did Josh Taumalolo play at Nuku'alofa? | CREATE TABLE table_name_49 (
date VARCHAR,
venue VARCHAR,
player VARCHAR
) | SELECT date FROM table_name_49 WHERE venue = "nuku'alofa" AND player = "josh taumalolo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
14136,
11452,
1982,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
5669,
3274,
96,
29,
1598,
76,
31,
138,
858,
9,
121,
3430,
1959,
3274,
96,
1927,
7,
107,
7151,
1982,
32,
40,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the GameRankings Released of 2011 with a Metacritic of 83/100? | CREATE TABLE table_61656 (
"Game Title" text,
"Year Released" real,
"Platform" text,
"GameRankings" text,
"Metacritic" text
) | SELECT "GameRankings" FROM table_61656 WHERE "Metacritic" = '83/100' AND "Year Released" = '2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2938,
4834,
41,
96,
23055,
11029,
121,
1499,
6,
96,
476,
2741,
13048,
26,
121,
490,
6,
96,
10146,
2032,
121,
1499,
6,
96,
23055,
22557,
53,
7,
121,
1499,
6,
96,
2335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
22557,
53,
7,
121,
21680,
953,
834,
948,
2938,
4834,
549,
17444,
427,
96,
23351,
9,
2685,
1225,
121,
3274,
3,
31,
4591,
87,
2915,
31,
3430,
96,
476,
2741,
13048,
26,
121,
3274,
3,
31,
13907,
31,
1,
-1... |
What was the home team score when essendon was the away team? | CREATE TABLE table_name_51 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_51 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
2604,
116,
3,
8185,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who are all the runner-up for premier in richmond | CREATE TABLE table_10566855_1 (
runner_up VARCHAR,
premier VARCHAR
) | SELECT runner_up FROM table_10566855_1 WHERE premier = "Richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4834,
3651,
3769,
834,
536,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
2761,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
33,
66,
8,
3,
10806,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
10806,
834,
413,
21680,
953,
834,
1714,
4834,
3651,
3769,
834,
536,
549,
17444,
427,
2761,
3274,
96,
448,
362,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what team did John Bowe round winner at Winton Motor Raceway belong to? | CREATE TABLE table_name_44 (
team VARCHAR,
round_winner VARCHAR,
circuit VARCHAR
) | SELECT team FROM table_name_44 WHERE round_winner = "john bowe" AND circuit = "winton motor raceway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
372,
584,
4280,
28027,
6,
1751,
834,
3757,
687,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
372,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1751,
834,
3757,
687,
3274,
96,
27341,
12543,
15,
121,
3430,
4558,
3274,
96,
3757,
17,
106,
2340,
1964,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many regions had rainfall infiltration (km 3/year) of 9.3? | CREATE TABLE table_28220 (
"Region" text,
"Land area (km 2 )" text,
"Rainfall by depth (mm/year)" real,
"Rainfall by volume (km 3 /year)" text,
"Surface run off (km 3 /year)" text,
"Infiltration (km 3 /year)" text,
"Evapotranspiration (km 3 /year)" text
) | SELECT COUNT("Rainfall by depth (mm/year)") FROM table_28220 WHERE "Infiltration (km 3 /year)" = '9.3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
357,
1755,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
434,
232,
616,
41,
5848,
204,
3,
61,
121,
1499,
6,
96,
448,
9,
77,
2857,
57,
4963,
41,
635,
87,
1201,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
9,
77,
2857,
57,
4963,
41,
635,
87,
1201,
61,
8512,
21680,
953,
834,
2577,
357,
1755,
549,
17444,
427,
96,
1570,
18974,
41,
5848,
220,
3,
87,
1201,
61,
121,
3274,
3,
31,
8797,
519,
31... |
Which 2012 has a 2007 of 0 / 4? | CREATE TABLE table_name_8 (Id VARCHAR) | SELECT 2012 FROM table_name_8 WHERE 2007 = "0 / 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1673,
65,
3,
9,
4101,
13,
3,
632,
3,
87,
314,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1673,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
4101,
3274,
96,
632,
3,
87,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the average and minimum price (in Euro) of all products? | CREATE TABLE catalog_contents (price_in_euros INTEGER) | SELECT AVG(price_in_euros), MIN(price_in_euros) FROM catalog_contents | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10173,
834,
14819,
7,
41,
102,
4920,
834,
77,
834,
18985,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1348,
11,
2559,
594,
41,
77,
2430,
61,
13,
66,
494,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
102,
4920,
834,
77,
834,
18985,
201,
3,
17684,
599,
102,
4920,
834,
77,
834,
18985,
61,
21680,
10173,
834,
14819,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the average of revenue , and group by attribute headquarter. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
71,
17217,
599,
1649,
15098,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
36... |
Who is the golfer that golfs for Northern Ireland? | CREATE TABLE table_79182 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_79182 WHERE "Country" = 'northern ireland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2606,
357,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4440,
2606,
357,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
29,
127,
189,
49,
29,
3,
2060,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of female patients who had sedimentation rate lab test done. | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Sedimentation Rate" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the ethernet ports of the m1500 appliance? | CREATE TABLE table_43380 (
"Name" text,
"Processor" text,
"Hard Drive" text,
"Ethernet Ports" text,
"Dimensions" text
) | SELECT "Ethernet Ports" FROM table_43380 WHERE "Name" = 'm1500' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
22671,
41,
96,
23954,
121,
1499,
6,
96,
3174,
75,
24901,
121,
1499,
6,
96,
15537,
26,
5894,
121,
1499,
6,
96,
427,
189,
49,
1582,
3625,
7,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
189,
49,
1582,
3625,
7,
121,
21680,
953,
834,
4906,
22671,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
51,
536,
2560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the main date of the round with 20 fixtures? | CREATE TABLE table_61173 (
"Round" text,
"Main date" text,
"Number of fixtures" real,
"Clubs" text,
"New entries this round" text,
"Prize money" text
) | SELECT "Main date" FROM table_61173 WHERE "Number of fixtures" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
2517,
519,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
21978,
29,
833,
121,
1499,
6,
96,
567,
5937,
49,
13,
14613,
121,
490,
6,
96,
254,
11158,
7,
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,
21978,
29,
833,
121,
21680,
953,
834,
4241,
2517,
519,
549,
17444,
427,
96,
567,
5937,
49,
13,
14613,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest losses associated with more than 13 points and fewer than 8 games? | CREATE TABLE table_name_25 (
lost INTEGER,
points VARCHAR,
games VARCHAR
) | SELECT MIN(lost) FROM table_name_25 WHERE points > 13 AND games < 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1513,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
8467,
1968,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
979,
2490,
1179,
3430,
1031,
3,
2,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Visualize a scatter chart about the correlation between Team_ID and School_ID . | 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_ID, School_ID FROM basketball_match | [
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,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How much federal funding does Pecatonia Area School district get? | CREATE TABLE ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
c25 number
... | SELECT t_fed_rev FROM finrev_fed_17 WHERE school_district LIKE "%Pecatonia Area%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
29,
221,
9022,
994,
7125,
834,
3357,
107,
834,
6801,
927,
41,
215,
381,
6,
538,
1499,
6,
66,
834,
8637,
295,
7,
1499,
6,
1348,
834,
6649,
834,
7,
9022,
381,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
834,
19565,
834,
60,
208,
21680,
2202,
60,
208,
834,
19565,
834,
2517,
549,
17444,
427,
496,
834,
26,
23,
20066,
8729,
9914,
96,
1454,
345,
15,
2138,
8008,
5690,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis lot details y axis the number of lot details | CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_det... | SELECT lot_details, COUNT(lot_details) FROM Lots GROUP BY lot_details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
834,
434,
32,
17,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
418,
834,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
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,
418,
834,
221,
5756,
7,
6,
2847,
17161,
599,
3171,
834,
221,
5756,
7,
61,
21680,
14868,
350,
4630,
6880,
272,
476,
418,
834,
221,
5756,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was there a game at Arden Street Oval? | CREATE TABLE table_name_21 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_21 WHERE venue = "arden street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
132,
3,
9,
467,
44,
22635,
35,
1887,
411,
2165,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
5669,
3274,
96,
986,
35,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many hebrew forms are there for the arabic form yuktibu ? | CREATE TABLE table_30036 (
"Semitological abbreviation" text,
"Hebrew name" text,
"Arabic name" text,
"Morphological category" text,
"Hebrew Form" text,
"Arabic form" text,
"Approximate translation" text
) | SELECT COUNT("Hebrew Form") FROM table_30036 WHERE "Arabic form" = 'yuktibu يكتب' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3420,
41,
96,
134,
15,
1538,
4478,
703,
1999,
2099,
257,
121,
1499,
6,
96,
3845,
1999,
210,
564,
121,
1499,
6,
96,
188,
7093,
447,
564,
121,
1499,
6,
96,
329,
127,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
1999,
210,
3025,
8512,
21680,
953,
834,
5426,
3420,
549,
17444,
427,
96,
188,
7093,
447,
607,
121,
3274,
3,
31,
63,
1598,
17,
23,
3007,
3,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
who is the opponent when norway is against? | CREATE TABLE table_50814 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Result" text
) | SELECT "Opponent" FROM table_50814 WHERE "Against" = 'norway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
927,
2534,
41,
96,
427,
10569,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20749,
121,
1499,
6,
96,
134,
450,
4861,
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,
667,
102,
9977,
121,
21680,
953,
834,
1752,
927,
2534,
549,
17444,
427,
96,
20749,
121,
3274,
3,
31,
29,
127,
1343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many weeks have an Opponent of at new york giants? | CREATE TABLE table_name_81 (week VARCHAR, opponent VARCHAR) | SELECT COUNT(week) FROM table_name_81 WHERE opponent = "at new york giants" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
8041,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1274,
43,
46,
4495,
9977,
13,
44,
126,
25453,
6079,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
15264,
3274,
96,
144,
126,
25453,
6079,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many endings have american pronounciation s | CREATE TABLE table_1764 (
"Ending" text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
) | SELECT COUNT("Australian") FROM table_1764 WHERE "American" = 'əs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4389,
41,
96,
8532,
26,
53,
121,
1499,
6,
96,
8778,
121,
1499,
6,
96,
279,
13224,
7,
107,
121,
1499,
6,
96,
31971,
29,
121,
1499,
6,
96,
5420,
9,
9208,
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,
2847,
17161,
599,
121,
31971,
29,
8512,
21680,
953,
834,
2517,
4389,
549,
17444,
427,
96,
8778,
121,
3274,
3,
31,
2,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the home city when the stadium was Gradski Stadion U Poljudu? | CREATE TABLE table_name_69 (
home_city VARCHAR,
stadium VARCHAR
) | SELECT home_city FROM table_name_69 WHERE stadium = "gradski stadion u poljudu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
234,
834,
6726,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
690,
116,
8,
14939,
47,
10771,
400... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
6726,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
14939,
3274,
96,
3987,
4009,
3342,
26,
23,
106,
3,
76,
3,
3233,
14312,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
semantic parsing papers later than 2010 | CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paperkeyphrase (
paperid int,
... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year > 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
17,
6,
3,
11675,
19587,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
21680,
843,
27111,
6,
1040,
6,
1040,
4397,
27111,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,
31,
7,
15,
348,
1225,
260,
7,
53,
31,
3430,
1040,
4397,
... |
Name the games for rub n limardo | CREATE TABLE table_37795 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Games" FROM table_37795 WHERE "Name" = 'rubén limardo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
3301,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
3,
61,
3,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
23055,
7,
121,
21680,
953,
834,
519,
4013,
3301,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
14446,
154,
29,
3,
4941,
986,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Score has a Place of t6, and a Country of paraguay? | CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, country VARCHAR) | SELECT score FROM table_name_20 WHERE place = "t6" AND country = "paraguay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
7,
9022,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
3399,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
286,
3274,
96,
17,
948,
121,
3430,
684,
3274,
96,
6583,
1744,
9,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients who were admitted before the year 2157 and whose procedure long title is endoscopic sphincterotomy and papillotomy. | 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.admityear < "2157" AND procedures.long_title = "Endoscopic sphincterotomy and papillotomy" | [
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 was the attendance when Essendon played as the home team? | CREATE TABLE table_name_42 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_42 WHERE home_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
75,
3623,
26,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
116,
11722,
2029,
1944,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
234,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Rd took place at the Indianapolis 500? | CREATE TABLE table_10706961_2 (rd VARCHAR, name VARCHAR) | SELECT rd FROM table_10706961_2 WHERE name = "Indianapolis 500" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2518,
3951,
4241,
834,
357,
41,
52,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
391,
26,
808,
286,
44,
8,
23385,
2899,
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,
3,
52,
26,
21680,
953,
834,
1714,
2518,
3951,
4241,
834,
357,
549,
17444,
427,
564,
3274,
96,
22126,
29,
9,
15621,
2899,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
tell me the length of the first stay of patient 011-12267 in the icu. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patientheal... | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-12267') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
98... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
26,
159,
7993,
715,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
21680,
1868,
549,
17444,
427... |
What is the record of the match with Columbus as the home team on March 7? | CREATE TABLE table_name_96 (record VARCHAR, home VARCHAR, date VARCHAR) | SELECT record FROM table_name_96 WHERE home = "columbus" AND date = "march 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
60,
7621,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
13,
8,
1588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
234,
3274,
96,
3297,
440,
3465,
121,
3430,
833,
3274,
96,
51,
7064,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the opponent that had a result of l 27-20 | CREATE TABLE table_name_84 (
opponent VARCHAR,
result VARCHAR
) | SELECT opponent FROM table_name_84 WHERE result = "l 27-20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
15264,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
15264,
24,
141,
3,
9,
741,
13,
3,
40,
2307,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
741,
3274,
96,
40,
2307,
7988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which lane is Goksu Bicer in? | CREATE TABLE table_name_37 (lane VARCHAR, swimmer VARCHAR) | SELECT lane FROM table_name_37 WHERE swimmer = "goksu bicer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
8102,
584,
4280,
28027,
6,
27424,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
8102,
19,
1263,
157,
7,
76,
2106,
2110,
16,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8102,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
27424,
3274,
96,
839,
157,
7,
76,
2647,
2110,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please show the names of aircrafts associated with airport with name "London Gatwick". | CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR) | SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
20162,
1493,
834,
4309,
584,
4280,
28027,
6,
5735,
834,
23954,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
20162,
6696,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
20162,
6696,
21680,
6442,
6157,
332,
536,
3,
15355,
3162,
3761,
834,
2256,
6696,
6157,
332,
357,
9191,
332,
5411,
20162,
6696,
834,
4309,
3274,
332,
4416,
20162,
6696,
834,
4309,
3,
15355,
3162,
3761,
6157,
... |
Who directed all the episodes that were written by aaron ehasz & john o'bryan? | CREATE TABLE table_19392 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Directed by" FROM table_19392 WHERE "Written by" = 'Aaron Ehasz & John O''Bryan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3288,
357,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
15,
26,
57,
121,
21680,
953,
834,
2294,
3288,
357,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
188,
291,
106,
262,
10293,
172,
3,
184,
1079,
411,
31,
31,
279,
651,
152,
31,
1,
-100,
-100,
... |
what partner made the scores 6 4, 6 1? | CREATE TABLE table_36820 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | SELECT "Partner" FROM table_36820 WHERE "Score in the final" = '6–4, 6–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3651,
1755,
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,
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,
13725,
687,
121,
21680,
953,
834,
519,
3651,
1755,
549,
17444,
427,
96,
134,
9022,
16,
8,
804,
121,
3274,
3,
31,
948,
104,
8525,
431,
104,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which song has the longest weeks on global asia 's top 15 chart ? | CREATE TABLE table_202_54 (
id number,
"song" text,
"chinese" text,
"hito radio\ntop 10" number,
"9+2 music\ntop 15" number,
"global asia\ntop 15" number,
"ufo radio\ntop 15" number,
"channel [v]\ntop 20" number,
"mtv taiwan\ntop 20" number,
"yes 93.3\ntop 20" number
) | SELECT "song" FROM table_202_54 ORDER BY "global asia\ntop 15" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
5062,
41,
3,
23,
26,
381,
6,
96,
7,
2444,
121,
1499,
6,
96,
1436,
1496,
15,
121,
1499,
6,
96,
10536,
32,
2252,
2,
29,
2916,
335,
121,
381,
6,
96,
1298,
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,
7,
2444,
121,
21680,
953,
834,
19818,
834,
5062,
4674,
11300,
272,
476,
96,
14063,
138,
3,
15974,
2,
29,
2916,
627,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Club has a Rank of 5? | CREATE TABLE table_name_40 (
club VARCHAR,
rank VARCHAR
) | SELECT club FROM table_name_40 WHERE rank = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1886,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1949,
65,
3,
9,
3,
22557,
13,
305,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
11003,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the song choice when week number is hollywood | CREATE TABLE table_72720 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Song choice" FROM table_72720 WHERE "Week #" = 'Hollywood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
18517,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
2444,
1160,
121,
21680,
953,
834,
5865,
18517,
549,
17444,
427,
96,
518,
10266,
1713,
121,
3274,
3,
31,
566,
30322,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the imperfect stem of the word that means 'take away, remove'? | CREATE TABLE table_name_74 (imperfect_stem VARCHAR, meaning VARCHAR) | SELECT imperfect_stem FROM table_name_74 WHERE meaning = "'take away, remove'" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
603,
22588,
834,
7,
3524,
584,
4280,
28027,
6,
2530,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
28306,
6269,
13,
8,
1448,
24,
598... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28306,
834,
7,
3524,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2530,
3274,
96,
31,
4914,
550,
6,
2036,
31,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Points have a Position larger than 3, and a Played smaller than 14? | CREATE TABLE table_51125 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT COUNT("Points") FROM table_51125 WHERE "Position" > '3' AND "Played" < '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
10124,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
5553,
10124,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
519,
31,
3430,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
... |
What is the average number of bronze of the nation with more than 1 gold and 1 silver medal? | CREATE TABLE table_name_96 (bronze INTEGER, gold VARCHAR, silver VARCHAR) | SELECT AVG(bronze) FROM table_name_96 WHERE gold > 1 AND silver = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
13711,
776,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
13467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2045,
2490,
209,
3430,
4294,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal? | CREATE TABLE table_2104176_1 (
homeland_security_distinguished_service_medal VARCHAR,
medal_of_honor VARCHAR
) | SELECT homeland_security_distinguished_service_medal FROM table_2104176_1 WHERE medal_of_honor = "Coast Guard Medal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
15442,
26782,
834,
536,
41,
29686,
834,
19361,
834,
19694,
1744,
11904,
834,
5114,
834,
2726,
138,
584,
4280,
28027,
6,
9365,
834,
858,
834,
107,
106,
127,
584,
4280,
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,
29686,
834,
19361,
834,
19694,
1744,
11904,
834,
5114,
834,
2726,
138,
21680,
953,
834,
357,
15442,
26782,
834,
536,
549,
17444,
427,
9365,
834,
858,
834,
107,
106,
127,
3274,
96,
3881,
9,
7,
17,
12899,
20002,
121,
... |
Which Tournament has a 2007 of wta premier 5 tournaments? | CREATE TABLE table_name_28 (
tournament VARCHAR
) | SELECT tournament FROM table_name_28 WHERE 2007 = "wta premier 5 tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
65,
3,
9,
4101,
13,
3,
210,
17,
9,
2761,
305,
5892,
7,
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,
5892,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
4101,
3274,
96,
210,
17,
9,
2761,
305,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of founder and the amount of founder , and group by attribute founder. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19145,
6,
2847,
17161,
599,
19145,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
19145,... |
What is the class of vessel of the ship Hyundai Smart? | CREATE TABLE table_name_85 (class VARCHAR, vessel_name VARCHAR) | SELECT class FROM table_name_85 WHERE vessel_name = "hyundai smart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
4057,
584,
4280,
28027,
6,
12662,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
853,
13,
12662,
13,
8,
4383,
22017,
5363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
853,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
12662,
834,
4350,
3274,
96,
107,
63,
1106,
9,
23,
2592,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the purpose of the Quay test blast? | CREATE TABLE table_name_54 (purpose VARCHAR, name VARCHAR) | SELECT purpose FROM table_name_54 WHERE name = "quay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
19681,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1730,
13,
8,
2415,
9,
63,
794,
11925,
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,
1730,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
564,
3274,
96,
4960,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the greatest played with a drawn less than 1 and a position of less than 1? | CREATE TABLE table_name_99 (played INTEGER, drawn VARCHAR, position VARCHAR) | SELECT MAX(played) FROM table_name_99 WHERE drawn < 1 AND position < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
4895,
15,
26,
3,
21342,
17966,
6,
6796,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4016,
1944,
28,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
6796,
3,
2,
209,
3430,
1102,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is every location for the date of March 20? | CREATE TABLE table_26115 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Location" FROM table_26115 WHERE "Date" = 'March 20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
15660,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
2688,
15660,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
25019,
460,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What the since year of the player with a transfer fee of 75k? | CREATE TABLE table_79824 (
"Nat." text,
"Name" text,
"Since" text,
"Goals" real,
"Transfer fee" text
) | SELECT "Since" FROM table_79824 WHERE "Transfer fee" = '£ 75k' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
2266,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
134,
77,
565,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
18474,
1010,
2572,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
77,
565,
121,
21680,
953,
834,
940,
3916,
2266,
549,
17444,
427,
96,
18474,
1010,
2572,
121,
3274,
3,
31,
19853,
6374,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What team(s) had an outgoing manager of jo o alves? | CREATE TABLE table_17933600_2 (
team VARCHAR,
outgoing_manage VARCHAR
) | SELECT team FROM table_17933600_2 WHERE outgoing_manage = "João Alves" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
4201,
6007,
834,
357,
41,
372,
584,
4280,
28027,
6,
91,
9545,
834,
348,
545,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
599,
7,
61,
141,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
26593,
4201,
6007,
834,
357,
549,
17444,
427,
91,
9545,
834,
348,
545,
3274,
96,
683,
32,
2,
32,
71,
8391,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten | CREATE TABLE table_36741 (
"Season" real,
"Oberbayern" text,
"Niederbayern" text,
"Schwaben" text,
"Mittelfranken" text
) | SELECT "Schwaben" FROM table_36741 WHERE "Oberbayern" = 'fc ingolstadt 04' AND "Mittelfranken" = 'sv seligenporten' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
4581,
536,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
667,
1152,
11119,
49,
29,
121,
1499,
6,
96,
567,
5973,
49,
11119,
49,
29,
121,
1499,
6,
96,
15404,
9,
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,
15404,
9,
115,
35,
121,
21680,
953,
834,
3420,
4581,
536,
549,
17444,
427,
96,
667,
1152,
11119,
49,
29,
121,
3274,
3,
31,
89,
75,
16,
7579,
6208,
11484,
31,
3430,
96,
19999,
1625,
6296,
2217,
121,
3274,
3,
... |
What is the production code for the episode with 5.5 million u.s. viewers? | CREATE TABLE table_28195898_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR) | SELECT production_code FROM table_28195898_1 WHERE us_viewers__millions_ = "5.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2294,
3449,
3916,
834,
536,
41,
20762,
834,
4978,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
999,
834,
4978,
21680,
953,
834,
2577,
2294,
3449,
3916,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
15938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of hosts for parties? | CREATE TABLE party (
Number_of_hosts INTEGER
) | SELECT AVG(Number_of_hosts) FROM party | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
7720,
834,
858,
834,
12675,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
9855,
21,
2251,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
567,
5937,
49,
834,
858,
834,
12675,
7,
61,
21680,
1088,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the jason for public vote being 19.20% | CREATE TABLE table_21234111_6 (jason VARCHAR, public_vote__percentage VARCHAR) | SELECT jason FROM table_21234111_6 WHERE public_vote__percentage = "19.20%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
3710,
15866,
834,
948,
41,
1191,
739,
584,
4280,
28027,
6,
452,
834,
1621,
17,
15,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2662,
739,
21680,
953,
834,
24837,
3710,
15866,
834,
948,
549,
17444,
427,
452,
834,
1621,
17,
15,
834,
834,
883,
3728,
545,
3274,
96,
2294,
5,
357,
6932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What season had a goal of 1? | CREATE TABLE table_name_98 (season VARCHAR, goals VARCHAR) | SELECT season FROM table_name_98 WHERE goals = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
9476,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
774,
141,
3,
9,
1288,
13,
209,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1766,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix? | CREATE TABLE table_11805 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | SELECT "Circuit" FROM table_11805 WHERE "Fastest lap" = 'juan manuel fangio' AND "Race" = 'german grand prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
3076,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
20056,
3076,
549,
17444,
427,
96,
371,
9,
7,
4377,
14941,
121,
3274,
3,
31,
2047,
152,
19901,
1819,
10253,
31,
3430,
96,
448,
3302,
121,
3274,
3,
31,
1304,
348,
1907,
... |
What is the sources for Bandung? | CREATE TABLE table_name_37 (sources_of_pop___area VARCHAR, city VARCHAR) | SELECT sources_of_pop___area FROM table_name_37 WHERE city = "bandung" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
7928,
7,
834,
858,
834,
9791,
834,
834,
834,
498,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2836,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2836,
834,
858,
834,
9791,
834,
834,
834,
498,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
690,
3274,
96,
3348,
425,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fleet number with a 4-6-0 wheel arrangement made in 1890? | CREATE TABLE table_name_94 (
fleet_number_s_ VARCHAR,
wheel_arrangement VARCHAR,
year_made VARCHAR
) | SELECT fleet_number_s_ FROM table_name_94 WHERE wheel_arrangement = "4-6-0" AND year_made = "1890" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
9111,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
5094,
834,
291,
5517,
297,
584,
4280,
28027,
6,
215,
834,
4725,
584,
4280,
28027,
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,
9111,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
5094,
834,
291,
5517,
297,
3274,
96,
20445,
18,
632,
121,
3430,
215,
834,
4725,
3274,
96,
2606,
2394,
121,
1,
-100,
-100,
-100,
... |
What is Player, when Place is 2? | CREATE TABLE table_name_93 (player VARCHAR, place VARCHAR) | SELECT player FROM table_name_93 WHERE place = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
20846,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12387,
6,
116,
3399,
19,
204,
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,
1959,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
286,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the IDs of customers whose name contains 'Diana'. | CREATE TABLE customers (
customer_id number,
customer_name text
)
CREATE TABLE claims (
claim_id number,
fnol_id number,
effective_date time
)
CREATE TABLE first_notification_of_loss (
fnol_id number,
customer_id number,
policy_id number,
service_id number
)
CREATE TABLE settlemen... | SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
381,
6,
884,
834,
4350,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3213,
41,
1988,
834,
23,
26,
381,
6,
3,
89,
29,
32,
40,
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,
884,
834,
23,
26,
21680,
722,
549,
17444,
427,
884,
834,
4350,
8729,
9914,
96,
1454,
308,
13662,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Hanja for the hamgyeong RR Romaja? | CREATE TABLE table_name_4 (
hanja VARCHAR,
rr_romaja VARCHAR
) | SELECT hanja FROM table_name_4 WHERE rr_romaja = "hamgyeong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
3,
2618,
1191,
584,
4280,
28027,
6,
3,
52,
52,
834,
3522,
9,
1191,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6627,
1191,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2618,
1191,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
3,
52,
52,
834,
3522,
9,
1191,
3274,
96,
1483,
122,
63,
15,
2444,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many laps have a race time of 3:31:24? | CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR) | SELECT laps FROM table_2226343_1 WHERE race_time = "3:31:24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
3891,
4906,
834,
536,
41,
8478,
7,
584,
4280,
28027,
6,
1964,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
43,
3,
9,
1964,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14941,
7,
21680,
953,
834,
26144,
3891,
4906,
834,
536,
549,
17444,
427,
1964,
834,
715,
3274,
96,
519,
10,
3341,
10,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which losing team had a score of 24-12? | CREATE TABLE table_16545 (
"Season" real,
"Grand FinalDate" text,
"WinningTeam" text,
"Score" text,
"LosingTeam" text,
"Location" text,
"GF Attendance" real,
"Clive Churchill Medal" text
) | SELECT "LosingTeam" FROM table_16545 WHERE "Score" = '24-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2128,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
4744,
727,
6514,
308,
342,
121,
1499,
6,
96,
518,
10503,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
53,
18699,
121,
21680,
953,
834,
22823,
2128,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2266,
5947,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score when the Tie no was 6? | CREATE TABLE table_49876 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_49876 WHERE "Tie no" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3916,
3959,
41,
96,
382,
23,
15,
150,
121,
490,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
591,
3916,
3959,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio? | CREATE TABLE table_50436 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
) | SELECT MAX("Attendance") FROM table_50436 WHERE "Date" = '16 august 2008' AND "Home" = 'deportes savio' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
3420,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
4800,
4,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
1752,
591,
3420,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2938,
14663,
2628,
31,
3430,
96,
19040,
121,
3274,
3,
31,
221,
1493,
15,
7,
3,
... |
What are the ids of all vehicles? | CREATE TABLE addresses (
address_id number,
line_1_number_building text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
payment_method_code text,
amount_payment number
)
CREATE... | SELECT vehicle_id FROM vehicles | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7181,
41,
1115,
834,
23,
26,
381,
6,
689,
834,
536,
834,
5525,
1152,
834,
10905,
1499,
6,
690,
1499,
6,
10658,
834,
5950,
4978,
1499,
6,
538,
834,
1409,
2494,
565,
834,
13362,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1689,
834,
23,
26,
21680,
3203,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
who had more silver medals , cuba or brazil ? | CREATE TABLE table_204_302 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_302 WHERE "nation" IN ('cuba', 'brazil') ORDER BY "silver" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1458,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
26363,
834,
1458,
357,
549,
17444,
427,
96,
29,
257,
121,
3388,
41,
31,
16377,
31,
6,
3,
31,
1939,
702,
40,
31,
61,
4674,
11300,
272,
476,
96,
7,
173,
624,
121,
309,
25067,
8... |
For all employees who have the letters D or S in their first name, draw a line chart about the change of employee_id over hire_date . | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
14... |
What is the game number that was on November 27? | CREATE TABLE table_22871239_5 (_number VARCHAR, date VARCHAR) | SELECT _number FROM table_22871239_5 WHERE date = "November 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4225,
2122,
3288,
834,
755,
41,
834,
5525,
1152,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
467,
381,
24,
47,
30,
1671... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
834,
5525,
1152,
21680,
953,
834,
2884,
4225,
2122,
3288,
834,
755,
549,
17444,
427,
833,
3274,
96,
28635,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the name of Constituency number 108? | CREATE TABLE table_64783 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) | SELECT "Name" FROM table_64783 WHERE "Constituency number" = '108' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3940,
519,
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,
23954,
121,
21680,
953,
834,
4389,
3940,
519,
549,
17444,
427,
96,
4302,
2248,
17,
76,
4392,
381,
121,
3274,
3,
31,
16169,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.