NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What vfl club(s) did players who played 23 cfl games play for? | CREATE TABLE table_16527640_2 (
vfl_club_s_ VARCHAR,
vfl_games VARCHAR
) | SELECT vfl_club_s_ FROM table_16527640_2 WHERE vfl_games = 23 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2555,
23714,
834,
357,
41,
3,
208,
89,
40,
834,
13442,
834,
7,
834,
584,
4280,
28027,
6,
3,
208,
89,
40,
834,
7261,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
208,
89,
40,
834,
13442,
834,
7,
834,
21680,
953,
834,
22823,
2555,
23714,
834,
357,
549,
17444,
427,
3,
208,
89,
40,
834,
7261,
7,
3274,
1902,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose marital status is married and procedure short title is open liver biopsy? | 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.marital_status = "MARRIED" AND procedures.short_title = "Open liver biopsy" | [
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,... |
how many times is the us dollar exchange 0.29 kuwaiti dinars ? | CREATE TABLE table_201_7 (
id number,
"year" number,
"gross domestic product" number,
"us dollar exchange" text,
"inflation index\n(2000=100)" number,
"per capita income\n(as % of usa)" number
) | SELECT COUNT(*) FROM table_201_7 WHERE "us dollar exchange" = '0.29 kuwaiti dinars' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
940,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
3844,
7,
7,
4422,
556,
121,
381,
6,
96,
302,
6816,
2509,
121,
1499,
6,
96,
77,
89,
6105,
5538,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
22772,
834,
940,
549,
17444,
427,
96,
302,
6816,
2509,
121,
3274,
3,
31,
18189,
1298,
3,
2729,
26745,
23,
176,
291,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Dates Administered, when Poll Source is Rasmussen Reports, when Lead Margin is greater than 18, when Republican: Jack Hoogendyk is 36%, and when Democrat: Carl Levin is 59%? | CREATE TABLE table_44560 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Carl Levin" text,
"Republican: Jack Hoogendyk" text,
"Lead Margin" real
) | SELECT "Dates administered" FROM table_44560 WHERE "Poll Source" = 'rasmussen reports' AND "Lead Margin" > '18' AND "Republican: Jack Hoogendyk" = '36%' AND "Democrat: Carl Levin" = '59%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
3328,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
19679,
10,
7291,
16755,
29,
121,
1499,
6,
96,
1649,
15727,
152,
10,
4496,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6203,
19092,
121,
21680,
953,
834,
591,
2128,
3328,
549,
17444,
427,
96,
8931,
40,
9149,
121,
3274,
3,
31,
52,
9,
7,
3252,
7,
35,
2279,
31,
3430,
96,
2796,
9,
26,
16409,
77,
121,
2490,
3,
31,
2606,
31... |
What is the smallest rank with a Total smaller than 1? | CREATE TABLE table_name_69 (rank INTEGER, total INTEGER) | SELECT MIN(rank) FROM table_name_69 WHERE total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
6254,
3,
21342,
17966,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
11003,
28,
3,
9,
9273,
2755,
145,
209,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the year for standing 9th | CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR) | SELECT year FROM table_20774360_2 WHERE standing = "9th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
4581,
19208,
834,
357,
41,
1201,
584,
4280,
28027,
6,
4125,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
215,
21,
4125,
668,
189,
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,
215,
21680,
953,
834,
26426,
4581,
19208,
834,
357,
549,
17444,
427,
4125,
3274,
96,
1298,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average opened year of line e, which had their last extension before 2003? | CREATE TABLE table_name_40 (
opened INTEGER,
line_name VARCHAR,
last_extension VARCHAR
) | SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
2946,
3,
21342,
17966,
6,
689,
834,
4350,
584,
4280,
28027,
6,
336,
834,
994,
13177,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
26940,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
689,
834,
4350,
3274,
96,
747,
3,
15,
121,
3430,
336,
834,
994,
13177,
3,
2,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Score of the Fifa World Cup 1986 Qualifying Competition? | CREATE TABLE table_name_86 (
score VARCHAR,
competition VARCHAR
) | SELECT score FROM table_name_86 WHERE competition = "fifa world cup 1986 qualifying" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
2604,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
377,
99,
9,
1150,
3802,
12698,
2415,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
2259,
3274,
96,
89,
99,
9,
296,
4119,
12698,
18002,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
The gayfield park stadium had a highest attendance of what? | CREATE TABLE table_11206916_1 (highest INTEGER, stadium VARCHAR) | SELECT MAX(highest) FROM table_11206916_1 WHERE stadium = "Gayfield Park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1755,
3951,
2938,
834,
536,
41,
6739,
222,
3,
21342,
17966,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
37,
16998,
1846,
2447,
14939,
141,
3,
9,
2030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
6739,
222,
61,
21680,
953,
834,
2596,
1755,
3951,
2938,
834,
536,
549,
17444,
427,
14939,
3274,
96,
517,
9,
63,
1846,
1061,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the year that saw a passenger change of +32,9%? | CREATE TABLE table_name_53 (year VARCHAR, passenger_change VARCHAR) | SELECT COUNT(year) FROM table_name_53 WHERE passenger_change = "+32,9%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1201,
584,
4280,
28027,
6,
10837,
834,
13073,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
24,
1509,
3,
9,
10837,
483,
13,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
10837,
834,
13073,
3274,
96,
1220,
2668,
6,
7561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which team was played against in game 4? | CREATE TABLE table_name_40 (
team VARCHAR,
game VARCHAR
) | SELECT team FROM table_name_40 WHERE game = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
372,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
47,
1944,
581,
16,
467,
314,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
467,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the first and last name of all students who are younger than average? | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
)
CREATE TABLE lives... | SELECT fname, lname FROM student WHERE age < (SELECT AVG(age) FROM student) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
4350,
6,
3,
40,
4350,
21680,
1236,
549,
17444,
427,
1246,
3,
2,
41,
23143,
14196,
71,
17217,
599,
545,
61,
21680,
1236,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Position has a Player of tyronn lue, and a Years in Orlando of 2003–2004? | CREATE TABLE table_name_97 (position VARCHAR, player VARCHAR, years_in_orlando VARCHAR) | SELECT position FROM table_name_97 WHERE player = "tyronn lue" AND years_in_orlando = "2003–2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
203,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1959,
3274,
96,
17,
63,
52,
106,
29,
3,
40,
76,
15,
121,
3430,
203,
834,
77,
834,
32,
7721,
32,
3274,
96,
23948,
104,
21653,
121,
1,
-100,
-100,
-100,
-10... |
What was the production code for the episode with 3.38 million viewers? | CREATE TABLE table_23855 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directedby" text,
"Writtenby" text,
"Originalairdate" text,
"Production code" text,
"U.S.viewers (million)" text
) | SELECT "Production code" FROM table_23855 WHERE "U.S.viewers (million)" = '3.38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
3769,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
969,
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,
3174,
8291,
1081,
121,
21680,
953,
834,
357,
3747,
3769,
549,
17444,
427,
96,
1265,
5,
134,
5,
4576,
277,
41,
17030,
61,
121,
3274,
3,
31,
5787,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Draw a pie chart about the proportion of ACC_Regular_Season 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 ACC_Regular_Season, 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,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
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,... |
Tell me the team which has matches of 13 | CREATE TABLE table_54842 (
"Team" text,
"Nation" text,
"From" text,
"Matches" real,
"Drawn" real,
"Lost" real,
"Win %" real
) | SELECT "Team" FROM table_54842 WHERE "Matches" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
4608,
357,
41,
96,
18699,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
22674,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
5062,
4608,
357,
549,
17444,
427,
96,
329,
144,
2951,
121,
3274,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What the number of matches when the BBI is 3/27? | CREATE TABLE table_30799 (
"Player" text,
"Matches" real,
"Overs" text,
"Wickets" real,
"Average" text,
"Economy" text,
"BBI" text,
"4wi" real
) | SELECT MIN("Matches") FROM table_30799 WHERE "BBI" = '3/27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
940,
3264,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
23847,
7,
121,
1499,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
1458,
940,
3264,
549,
17444,
427,
96,
7640,
196,
121,
3274,
3,
31,
15020,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What office was law preservation ticket holder William E. Barron running for? | CREATE TABLE table_name_51 (office VARCHAR, law_preservation_ticket VARCHAR) | SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
19632,
584,
4280,
28027,
6,
973,
834,
2026,
3473,
257,
834,
26639,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
828,
47,
973,
19368,
4142,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
828,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
973,
834,
2026,
3473,
257,
834,
26639,
3274,
96,
8894,
23,
265,
3,
15,
5,
1207,
52,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose age is less than 51 and drug name is metoprolol tartrate? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "51" AND prescriptions.drug = "Metoprolol Tartrate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what's the denomination with year being 2008 and reverse being football | CREATE TABLE table_12284476_8 (
denomination VARCHAR,
year VARCHAR,
reverse VARCHAR
) | SELECT denomination FROM table_12284476_8 WHERE year = 2008 AND reverse = "Football" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2577,
3628,
3959,
834,
927,
41,
28730,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
7211,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
287... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28730,
21680,
953,
834,
2122,
2577,
3628,
3959,
834,
927,
549,
17444,
427,
215,
3274,
2628,
3430,
7211,
3274,
96,
371,
32,
32,
17,
3184,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many parties match the canididates listed as howard baker, sr. (r) 68.9% boyd w. cox (d) 31.1%? | CREATE TABLE table_1342149_42 (
party VARCHAR,
candidates VARCHAR
) | SELECT COUNT(party) FROM table_1342149_42 WHERE candidates = "Howard Baker, Sr. (R) 68.9% Boyd W. Cox (D) 31.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2658,
3647,
834,
4165,
41,
1088,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2251,
1588,
8,
54,
23,
12416,
6203,
2616,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8071,
61,
21680,
953,
834,
23747,
2658,
3647,
834,
4165,
549,
17444,
427,
4341,
3274,
96,
7825,
986,
10731,
6,
180,
52,
5,
41,
448,
61,
3,
3651,
5,
7561,
7508,
26,
549,
5,
638,
226,
41,
308,
61... |
What is the lowest number of silver owned by a nation that is not ranked number 1? | CREATE TABLE table_name_41 (
silver INTEGER,
rank INTEGER
) | SELECT MIN(silver) FROM table_name_41 WHERE rank < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
4294,
3,
21342,
17966,
6,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
4294,
4157,
57,
3,
9,
2982,
24,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
11003,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the win % of the 2003 atp world tour finals? | CREATE TABLE table_63513 (
"Tournament" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"Win %" text
) | SELECT "Win %" FROM table_63513 WHERE "2003" = 'atp world tour finals' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2469,
2368,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
23948,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
3,
1454,
121,
21680,
953,
834,
948,
2469,
2368,
549,
17444,
427,
96,
23948,
121,
3274,
3,
31,
144,
102,
296,
1552,
804,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Release date has a Required OS of windows, a Type of 2d, and a Developer(s) of zeonix? | CREATE TABLE table_name_59 (
release_date VARCHAR,
developer_s_ VARCHAR,
required_os VARCHAR,
type VARCHAR
) | SELECT release_date FROM table_name_59 WHERE required_os = "windows" AND type = "2d" AND developer_s_ = "zeonix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
1576,
834,
5522,
584,
4280,
28027,
6,
7523,
834,
7,
834,
584,
4280,
28027,
6,
831,
834,
32,
7,
584,
4280,
28027,
6,
686,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
831,
834,
32,
7,
3274,
96,
5165,
2381,
7,
121,
3430,
686,
3274,
96,
357,
26,
121,
3430,
7523,
834,
7,
834,
3274,
96,
776,
106,
2407,
121,
1,
-1... |
At which stadium did the Los Angeles Raiders play as the visiting team? | CREATE TABLE table_name_85 (
stadium VARCHAR,
visiting_team VARCHAR
) | SELECT stadium FROM table_name_85 WHERE visiting_team = "los angeles raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
14939,
584,
4280,
28027,
6,
3644,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
84,
14939,
410,
8,
3144,
4975,
13016,
588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
3644,
834,
11650,
3274,
96,
2298,
11831,
15,
7,
15941,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
when was patient 030-3372 given for the first time a lab test until 12/2101? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-3372')) AND STRFTIME('%y-%m', lab.labresulttime) <= '2101-12' ORDER BY lab.labr... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7690,
5,
9339,
60,
7,
83,
17,
715,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1587... |
Which school drafted dave lewis? | CREATE TABLE table_11215 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
) | SELECT "School" FROM table_11215 WHERE "Player" = 'dave lewis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
357,
1808,
41,
96,
345,
3142,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
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,
0... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
2596,
357,
1808,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
162,
90,
210,
159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
when was the first performance for the ballet with peter mazurowski in the final cast? | CREATE TABLE table_name_72 (first_performance VARCHAR, name VARCHAR, style VARCHAR, status VARCHAR) | SELECT first_performance FROM table_name_72 WHERE style = "ballet" AND status = "final cast" AND name = "peter mazurowski" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
14672,
834,
18558,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
869,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
166,
834,
18558,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
869,
3274,
96,
3184,
15,
17,
121,
3430,
2637,
3274,
96,
12406,
4061,
121,
3430,
564,
3274,
96,
4995,
49,
3,
18983,
450,
21180,
121,
1,
-100,
-100,
... |
What is the earliest week that shows a record of 8 5? | CREATE TABLE table_name_40 (
week INTEGER,
record VARCHAR
) | SELECT MIN(week) FROM table_name_40 WHERE record = "8–5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
471,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
471,
24,
1267,
3,
9,
1368,
13,
505,
305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
1368,
3274,
96,
927,
104,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940? | CREATE TABLE table_name_52 (tonnage__grt_ INTEGER, date VARCHAR) | SELECT MAX(tonnage__grt_) FROM table_name_52 WHERE date = "16 june 1940" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
17,
106,
9761,
834,
834,
122,
52,
17,
834,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
8475,
9761,
41,
517,
593... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17,
106,
9761,
834,
834,
122,
52,
17,
834,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
833,
3274,
96,
2938,
3,
6959,
15,
15830,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has a Record of 29 47? | CREATE TABLE table_48734 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_48734 WHERE "Record" = '29–47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4225,
3710,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
4225,
3710,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
3166,
104,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Song, when Volume:Issue is 15:19-20? | CREATE TABLE table_7570 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" real,
"Song" text,
"Artist" text
) | SELECT "Song" FROM table_7570 WHERE "Volume:Issue" = '15:19-20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2518,
41,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
1499,
6,
96,
1326,
16789,
30,
2224,
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,
134,
2444,
121,
21680,
953,
834,
3072,
2518,
549,
17444,
427,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
3274,
3,
31,
1808,
10,
2294,
7988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In the match where the home team scored 14.20 (104), how many attendees were in the crowd? | CREATE TABLE table_78482 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT SUM("Crowd") FROM table_78482 WHERE "Home team score" = '14.20 (104)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
3707,
357,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
3940,
3707,
357,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2534,
5,
1755,
11704,
7256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
... | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
... |
When the driver mike hailwood has a grid greater than 12 and a Time/Retired of + 2 laps, what is the average number of laps? | CREATE TABLE table_name_96 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) | SELECT AVG(laps) FROM table_name_96 WHERE time_retired = "+ 2 laps" AND driver = "mike hailwood" AND grid > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
8478,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
204,
14941,
7,
121,
3430,
2535,
3274,
96,
20068,
15,
22690,
2037,
121,
3430,
8634,
2490,
586,
1,
... |
What is the highest prev that has 9 as the rank, with a rating less than 2746? | CREATE TABLE table_40184 (
"Rank" real,
"Prev" real,
"Player" text,
"Rating" real,
"Chng" text
) | SELECT MAX("Prev") FROM table_40184 WHERE "Rank" = '9' AND "Rating" < '2746' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
25987,
41,
96,
22557,
121,
490,
6,
96,
10572,
208,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
448,
1014,
121,
490,
6,
96,
3541,
1725,
121,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
10572,
208,
8512,
21680,
953,
834,
2445,
25987,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
1298,
31,
3430,
96,
448,
1014,
121,
3,
2,
3,
31,
2555,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was being played on Nov 23, 2006? | CREATE TABLE table_58276 (
"Competition" text,
"Stage" text,
"Venue" text,
"Date" text,
"Result" text
) | SELECT "Competition" FROM table_58276 WHERE "Date" = 'nov 23, 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
357,
3959,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
134,
6505,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
3449,
357,
3959,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
12992,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List all cartoon directed by "Ben Jones". | CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR) | SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
31074,
41,
382,
155,
109,
584,
4280,
28027,
6,
7143,
15,
26,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
15074,
6640,
57,
96,
279,
35,
6193,
1280,
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,
11029,
21680,
31074,
549,
17444,
427,
7143,
15,
26,
834,
969,
3274,
96,
279,
35,
6193,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4? | CREATE TABLE table_name_19 (
gold INTEGER,
bronze VARCHAR,
total VARCHAR,
nation VARCHAR
) | SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
2045,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
792,
3,
2,
314,
3430,
2982,
3274,
96,
1939,
702,
40,
121,
3430,
13467,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What issue has mort drucker as the artist and february 2001 as the date? | CREATE TABLE table_name_20 (issue VARCHAR, artist VARCHAR, date VARCHAR) | SELECT issue FROM table_name_20 WHERE artist = "mort drucker" AND date = "february 2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
13159,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
962,
65,
7971,
3,
7355,
49,
38,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
962,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
2377,
3274,
96,
2528,
17,
3,
7355,
49,
121,
3430,
833,
3274,
96,
89,
15,
9052,
1208,
4402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many episodes had the us viewers (millions) figure of 5.0? | CREATE TABLE table_21312959_1 (
no_in_season VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT COUNT(no_in_season) FROM table_21312959_1 WHERE us_viewers__millions_ = "5.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
22174,
3390,
834,
536,
41,
150,
834,
77,
834,
9476,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
357,
2368,
22174,
3390,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
20734,
121,
1,
-100,
-100,
-100,
-100,
... |
Show names of parties that does not have any members. | CREATE TABLE region (
region_id number,
region_name text,
date text,
label text,
format text,
catalogue text
)
CREATE TABLE party (
party_id number,
minister text,
took_office text,
left_office text,
region_id number,
party_name text
)
CREATE TABLE party_events (
ev... | SELECT party_name FROM party WHERE NOT party_id IN (SELECT party_id FROM member) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
1719,
834,
23,
26,
381,
6,
1719,
834,
4350,
1499,
6,
833,
1499,
6,
3783,
1499,
6,
1910,
1499,
6,
14978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1088,
834,
4350,
21680,
1088,
549,
17444,
427,
4486,
1088,
834,
23,
26,
3388,
41,
23143,
14196,
1088,
834,
23,
26,
21680,
1144,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me who was the opponent on May 6 | CREATE TABLE table_77909 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Opponent" FROM table_77909 WHERE "Date" = 'may 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2394,
1298,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
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,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4013,
2394,
1298,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
does any microbiology test have been carried out on the abscess of patient 025-28600 since 30 months ago? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergy... | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-28600')) AND microlab.culturesite = 'abscess' AND DATETIME(microlab.culturetak... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
Who was the artist for the year of the snake? | CREATE TABLE table_51197 (
"Year" real,
"Theme" text,
"Artist" text,
"Composition" text,
"Mintage" real,
"Issue Price" text
) | SELECT "Artist" FROM table_51197 WHERE "Theme" = 'year of the snake' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
27181,
41,
96,
476,
2741,
121,
490,
6,
96,
634,
526,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
5890,
4718,
121,
1499,
6,
96,
12858,
6505,
121,
490,
6,
96,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7754,
343,
121,
21680,
953,
834,
5553,
27181,
549,
17444,
427,
96,
634,
526,
121,
3274,
3,
31,
1201,
13,
8,
17599,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What country has a to par larger than 5 and a player John Mahaffey? | CREATE TABLE table_name_38 (
country VARCHAR,
to_par VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_38 WHERE to_par > 5 AND player = "john mahaffey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
9,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
12,
834,
1893,
2490,
305,
3430,
1959,
3274,
96,
27341,
954,
1024,
7398,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the district of the incumbent Mathias Morris? | CREATE TABLE table_2668173_4 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_2668173_4 WHERE incumbent = "Mathias Morris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
2517,
519,
834,
591,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3939,
13,
8,
28406,
9762,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
2688,
3651,
2517,
519,
834,
591,
549,
17444,
427,
28406,
3274,
96,
329,
9,
7436,
9,
7,
12193,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Country has a Score smaller than 70, and a Place of t3, and a Player of andr s romero? | CREATE TABLE table_60635 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Country" FROM table_60635 WHERE "Score" < '70' AND "Place" = 't3' AND "Player" = 'andrés romero' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
948,
2469,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
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,
10628,
651,
121,
21680,
953,
834,
3328,
948,
2469,
549,
17444,
427,
96,
134,
9022,
121,
3,
2,
3,
31,
2518,
31,
3430,
96,
345,
11706,
121,
3274,
3,
31,
17,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
23... |
Who was the challenger on Episode 5? | CREATE TABLE table_26462 (
"Overall Episode #" real,
"Original airdate" text,
"Iron Chef" text,
"Challenger" text,
"Challenger Specialty" text,
"Theme Ingredient" text,
"Winner" text
) | SELECT "Challenger" FROM table_26462 WHERE "Overall Episode #" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
4056,
41,
96,
23847,
1748,
16112,
1713,
121,
490,
6,
96,
667,
3380,
10270,
799,
5522,
121,
1499,
6,
96,
196,
52,
106,
8528,
121,
1499,
6,
96,
254,
18369,
9369,
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,
254,
18369,
9369,
121,
21680,
953,
834,
26755,
4056,
549,
17444,
427,
96,
23847,
1748,
16112,
1713,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which event has a Round larger than 2? | CREATE TABLE table_name_88 (event VARCHAR, round INTEGER) | SELECT event FROM table_name_88 WHERE round > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
15,
2169,
584,
4280,
28027,
6,
1751,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
65,
3,
9,
9609,
2186,
145,
204,
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,
605,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1751,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Elector with a Faction of roman, and an Elevated with 1244, may 28? | CREATE TABLE table_name_56 (
elector VARCHAR,
faction VARCHAR,
elevated VARCHAR
) | SELECT elector FROM table_name_56 WHERE faction = "roman" AND elevated = "1244, may 28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
11924,
127,
584,
4280,
28027,
6,
26405,
584,
4280,
28027,
6,
15712,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
21543,
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,
0... | [
3,
23143,
14196,
11924,
127,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
26405,
3274,
96,
3522,
152,
121,
3430,
15712,
3274,
96,
22504,
8525,
164,
2059,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
data sets for textual entailment | CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paper (
paperid int,
title... | SELECT DISTINCT dataset.datasetid FROM dataset, keyphrase, paperdataset, paperkeyphrase WHERE keyphrase.keyphrasename = 'textual entailment' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = paperdataset.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
1846,
41,
1057,
23,
26,
16,
17,
6,
1040,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
16,
17,
6,
843,
271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17953,
5,
6757,
2244,
23,
26,
21680,
17953,
6,
843,
27111,
6,
1040,
6757,
2244,
6,
1040,
4397,
27111,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,
31,
6327,
3471,
3,
35,
5756,
... |
what was the average number of fans in attendance in the first three games ? | CREATE TABLE table_204_605 (
id number,
"date" text,
"round" text,
"opponents" text,
"h / a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
) | SELECT AVG("attendance") FROM table_204_605 WHERE id <= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3328,
755,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
7775,
121,
1499,
6,
96,
32,
102,
9977,
7,
121,
1499,
6,
96,
107,
3,
87,
3,
9,
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,
71,
17217,
599,
121,
15116,
663,
8512,
21680,
953,
834,
26363,
834,
3328,
755,
549,
17444,
427,
3,
23,
26,
3,
2,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When st kilda played as the away team, what date was that? | CREATE TABLE table_54830 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_54830 WHERE "Away team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3707,
1458,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
755,
3707,
1458,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ? | CREATE TABLE wrestler (Reign VARCHAR, LOCATION VARCHAR) | SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> "Tokyo , Japan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26033,
52,
41,
1649,
3191,
584,
4280,
28027,
6,
301,
5618,
8015,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
6746,
17367,
7,
13,
26033,
52,
7,
3,
2544,
1128,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
419,
3191,
21680,
26033,
52,
549,
17444,
427,
301,
5618,
8015,
3,
2,
3155,
96,
3696,
3781,
32,
3,
6,
3411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total of all against values for the Corinthians with less than 3 lost? | CREATE TABLE table_name_4 (
against VARCHAR,
team VARCHAR,
lost VARCHAR
) | SELECT COUNT(against) FROM table_name_4 WHERE team = "corinthians" AND lost < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
581,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
66,
581,
2620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
372,
3274,
96,
5715,
77,
189,
7137,
121,
3430,
1513,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
did patient 025-19271 have any microbiological test result when they visited the hospital last time? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagn... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-19271' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hosp... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
186... |
Which School did Player Tyrone Johnson attend? | CREATE TABLE table_name_42 (
school VARCHAR,
player VARCHAR
) | SELECT school FROM table_name_42 WHERE player = "tyrone johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
496,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1121,
410,
12387,
24652,
782,
5891,
2467,
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,
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,
496,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1959,
3274,
96,
17,
63,
52,
782,
3,
27341,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School? | CREATE TABLE table_51716 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "School" FROM table_51716 WHERE "College" = 'kentucky' AND "Height" = '6-7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
2938,
41,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
755,
2517,
2938,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
2217,
17,
4636,
63,
31,
3430,
96,
3845,
2632,
121,
3274,
3,
31,
25302,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me a pie to show team_id from different all road. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Road, Team_ID FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
448,
32,
9,
26,
6,
2271,
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,... |
Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom? | CREATE TABLE table_54286 (
"Name" text,
"Model" text,
"Park" text,
"Country" text,
"Opened" real
) | SELECT "Country" FROM table_54286 WHERE "Opened" = '2002' AND "Model" = 'spinning coaster' AND "Park" = 'disney''s animal kingdom' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
357,
3840,
41,
96,
23954,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
26163,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
22696,
15,
26,
121,
490,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
5062,
357,
3840,
549,
17444,
427,
96,
22696,
15,
26,
121,
3274,
3,
31,
24898,
31,
3430,
96,
24663,
121,
3274,
3,
31,
7,
102,
10503,
4939,
49,
31,
3430,
96,
26163,
121,
3274,
... |
What is the average Season, when First Broadcast is January 23, 1981? | CREATE TABLE table_48779 (
"Title" text,
"Season" real,
"Director" text,
"Teleplay" text,
"First Broadcast" text
) | SELECT AVG("Season") FROM table_48779 WHERE "First Broadcast" = 'january 23, 1981' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4225,
4440,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
490,
6,
96,
23620,
127,
121,
1499,
6,
96,
382,
400,
4895,
121,
1499,
6,
96,
25171,
13017... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
15,
9,
739,
8512,
21680,
953,
834,
591,
4225,
4440,
549,
17444,
427,
96,
25171,
13017,
5254,
121,
3274,
3,
31,
7066,
76,
1208,
12992,
15465,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Draw a bar chart for what are the ids and names of the architects who built at least 3 bridges ?, and could you display by the total number in desc? | CREATE TABLE bridge (
architect_id int,
id int,
name text,
location text,
length_meters real,
length_feet real
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE mill (
architect_id int,
id int,
location text,
name text,
... | SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.id DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4716,
41,
13188,
834,
23,
26,
16,
17,
6,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
1128,
1499,
6,
2475,
834,
4401,
7,
490,
6,
2475,
834,
89,
15,
15,
17,
490,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
23,
26,
21680,
13188,
6157,
332,
536,
3,
15355,
3162,
4716,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
7064,
23,
5822,
17,
834,
23,
26,
4674,
11300,
272,
476,
332,
541... |
What January 15-16 is is that corresponds to November 3, 2013? | CREATE TABLE table_25284864_3 (january_15_16 VARCHAR, november_3 VARCHAR) | SELECT january_15_16 FROM table_25284864_3 WHERE november_3 = "november_3, 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2577,
3707,
4389,
834,
519,
41,
7066,
76,
1208,
834,
1808,
834,
2938,
584,
4280,
28027,
6,
3,
5326,
18247,
834,
519,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
7066,
76,
1208,
834,
1808,
834,
2938,
21680,
953,
834,
1828,
2577,
3707,
4389,
834,
519,
549,
17444,
427,
3,
5326,
18247,
834,
519,
3274,
96,
5326,
18247,
834,
6355,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
List the time of elimination of the wrestlers with largest days held. | CREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held VARCHAR); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR) | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26033,
52,
41,
518,
6216,
1171,
834,
4309,
584,
4280,
28027,
6,
13992,
834,
14796,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23458,
41,
13368,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
13368,
21680,
23458,
6157,
332,
536,
3,
15355,
3162,
26033,
52,
6157,
332,
357,
9191,
332,
5411,
518,
6216,
1171,
834,
4309,
3274,
332,
4416,
518,
6216,
1171,
834,
4309,
4674,
11300,
272,
476,
332,
4416,
16... |
What is the name of the customer who has the largest number of orders? | CREATE TABLE shipment_items (
shipment_id number,
order_item_id number
)
CREATE TABLE customers (
customer_id number,
customer_name text,
customer_details text
)
CREATE TABLE order_items (
order_item_id number,
product_id number,
order_id number,
order_item_status text,
order_i... | SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19843,
834,
23,
3524,
7,
41,
19843,
834,
23,
26,
381,
6,
455,
834,
23,
3524,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
25697,
49,
834,
4350,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
5022,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
49,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
... |
Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els? | CREATE TABLE table_name_50 (money___£__ VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT money___£__ FROM table_name_50 WHERE country = "south africa" AND to_par = "+1" AND player = "ernie els" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
28442,
834,
834,
834,
19853,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
540,
834,
834,
834,
19853,
834,
834,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
24040,
121,
3430,
12,
834,
1893,
3274,
96,
18446,
121,
3430,
1959,
3274,
96,
15,
23752,
3,
3573,
... |
What is the HT value of threw Athlon x2 5200b model? | CREATE TABLE table_13869651_3 (ht VARCHAR, model_number VARCHAR) | SELECT ht FROM table_13869651_3 WHERE model_number = "Athlon X2 5200B" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3840,
4314,
5553,
834,
519,
41,
107,
17,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
10966,
701,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
17,
21680,
953,
834,
2368,
3840,
4314,
5553,
834,
519,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
188,
189,
40,
106,
3,
4,
357,
305,
3632,
279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which leader of the Democratic Unionist party has more than 8 seats? | CREATE TABLE table_name_35 (
leader VARCHAR,
number_of_seats VARCHAR,
party VARCHAR
) | SELECT leader FROM table_name_35 WHERE number_of_seats > 8 AND party = "democratic unionist party" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
2488,
584,
4280,
28027,
6,
381,
834,
858,
834,
7,
1544,
7,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2488,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
381,
834,
858,
834,
7,
1544,
7,
2490,
505,
3430,
1088,
3274,
96,
23319,
447,
7021,
343,
1088,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many games had less than 7 goals scored? | CREATE TABLE table_24565004_15 (appearances¹ VARCHAR, goals¹ VARCHAR) | SELECT COUNT(appearances¹) FROM table_24565004_15 WHERE goals¹ = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4834,
2560,
591,
834,
1808,
41,
3096,
2741,
663,
7,
536,
584,
4280,
28027,
6,
1766,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
141,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3096,
2741,
663,
7,
6982,
21680,
953,
834,
2266,
4834,
2560,
591,
834,
1808,
549,
17444,
427,
1766,
536,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose discharge location is rehab/distinct part hosp and diagnoses short title is septic shock? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND diagnoses.short_title = "Septic shock" | [
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,
5... |
How many episodes have been directed by David Duchovny? | CREATE TABLE table_18067 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT COUNT("Title") FROM table_18067 WHERE "Directed by" = 'David Duchovny' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
3708,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
155,
109,
8512,
21680,
953,
834,
20829,
3708,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
308,
9,
6961,
970,
3995,
208,
29,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance of the Florida vs. Montreal game? | CREATE TABLE table_51586 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT AVG("Attendance") FROM table_51586 WHERE "Home" = 'florida' AND "Visitor" = 'montreal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1808,
3840,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
755,
1808,
3840,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
89,
322,
23,
26,
9,
31,
3430,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
4662,
6... |
What is the American Labor ticket when Henry Epstein is the liberal ticket? | CREATE TABLE table_name_3 (
american_labor_ticket VARCHAR,
liberal_ticket VARCHAR
) | SELECT american_labor_ticket FROM table_name_3 WHERE liberal_ticket = "henry epstein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
10211,
834,
9456,
834,
26639,
584,
4280,
28027,
6,
10215,
834,
26639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
797,
9836,
4142,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10211,
834,
9456,
834,
26639,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
10215,
834,
26639,
3274,
96,
3225,
651,
3,
15,
102,
4008,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When victoria coren and rhod gilbert are both on the lees team what is the score? | CREATE TABLE table_23575917_6 (scores VARCHAR, lees_team VARCHAR) | SELECT scores FROM table_23575917_6 WHERE lees_team = "Victoria Coren and Rhod Gilbert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3436,
3390,
2517,
834,
948,
41,
7,
9022,
7,
584,
4280,
28027,
6,
90,
15,
7,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
7287,
3600,
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,
7586,
21680,
953,
834,
2773,
3436,
3390,
2517,
834,
948,
549,
17444,
427,
90,
15,
7,
834,
11650,
3274,
96,
553,
447,
3600,
9,
2487,
35,
11,
11092,
32,
26,
24378,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what Week is the Opponent the New Orleans Saints? | CREATE TABLE table_name_43 (week INTEGER, opponent VARCHAR) | SELECT AVG(week) FROM table_name_43 WHERE opponent = "new orleans saints" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
6551,
19,
8,
4495,
9977,
8,
368,
14433,
2788,
7,
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,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
15264,
3274,
96,
5534,
42,
109,
3247,
15528,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show different builders of railways, along with the corresponding number of railways using each builder by a bar chart, show in desc by the Builder. | CREATE TABLE railway_manage (
Railway_ID int,
Manager_ID int,
From_Year text
)
CREATE TABLE train (
Train_ID int,
Train_Num text,
Name text,
From text,
Arrival text,
Railway_ID int
)
CREATE TABLE manager (
Manager_ID int,
Name text,
Country text,
Working_year_starts... | SELECT Builder, COUNT(*) FROM railway GROUP BY Builder ORDER BY Builder DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14421,
834,
348,
545,
41,
18025,
834,
4309,
16,
17,
6,
3440,
834,
4309,
16,
17,
6,
1029,
834,
476,
2741,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16799,
6,
2847,
17161,
599,
1935,
61,
21680,
14421,
350,
4630,
6880,
272,
476,
16799,
4674,
11300,
272,
476,
16799,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the number of patients less than 76 years of age with a prescription for the heparin flush picc (100 units/ml) drug. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "76" AND prescriptions.drug = "Heparin Flush PICC (100 units/ml)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the number of bronze medals when the total medals were 78 and there were less than 12 golds? | CREATE TABLE table_76042 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Bronze") FROM table_76042 WHERE "Total" = '78' AND "Gold" < '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
4165,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
28212,
4165,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
3940,
31,
3430,
96,
23576,
121,
3,
2,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of the game that had a decision of wall? | CREATE TABLE table_54766 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Record" text
) | SELECT "Date" FROM table_54766 WHERE "Decision" = 'wall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4177,
3539,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
308,
342,
121,
21680,
953,
834,
755,
4177,
3539,
549,
17444,
427,
96,
2962,
18901,
121,
3274,
3,
31,
10279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the series result for season being 1998 | CREATE TABLE table_2554479_2 (series VARCHAR, season VARCHAR) | SELECT series AS result FROM table_2554479_2 WHERE season = "1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
3628,
4440,
834,
357,
41,
10833,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
939,
741,
21,
774,
271,
6260,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
6157,
741,
21680,
953,
834,
25502,
3628,
4440,
834,
357,
549,
17444,
427,
774,
3274,
96,
2294,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find number of tracks in each genre? | CREATE TABLE tracks (
id number,
name text,
album_id number,
media_type_id number,
genre_id number,
composer text,
milliseconds number,
bytes number,
unit_price number
)
CREATE TABLE media_types (
id number,
name text
)
CREATE TABLE invoice_lines (
id number,
invoic... | SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6542,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
2306,
834,
23,
26,
381,
6,
783,
834,
6137,
834,
23,
26,
381,
6,
5349,
834,
23,
26,
381,
6,
13075,
1499,
6,
3293,
23,
12091,
7,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
5411,
4350,
21680,
5349,
7,
6157,
332,
536,
3,
15355,
3162,
6542,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
729,
60,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5... |
Name the venue for 19th date | CREATE TABLE table_17120964_5 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_17120964_5 WHERE date = "19th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
4198,
4389,
834,
755,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5669,
21,
957,
189,
833,
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,
5669,
21680,
953,
834,
2517,
2122,
4198,
4389,
834,
755,
549,
17444,
427,
833,
3274,
96,
2294,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which party has Peter A. Quinn as a representative? | CREATE TABLE table_name_44 (party VARCHAR, representative VARCHAR) | SELECT party FROM table_name_44 WHERE representative = "peter a. quinn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
8071,
584,
4280,
28027,
6,
6978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1088,
65,
2737,
71,
5,
14673,
29,
38,
3,
9,
6978,
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,
1088,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
6978,
3274,
96,
4995,
49,
3,
9,
5,
285,
29,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose lab test name is magnesium, urine? | 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 lab.label = "Magnesium, Urine" | [
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 number of played when the position is less than 4, and the team is Witton Albion? | CREATE TABLE table_name_42 (played VARCHAR, position VARCHAR, team VARCHAR) | SELECT COUNT(played) FROM table_name_42 WHERE position < 4 AND team = "witton albion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
4895,
15,
26,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
1944,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1102,
3,
2,
314,
3430,
372,
3274,
96,
7820,
17,
106,
7046,
23,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where did the player who won in 1991 finish? | CREATE TABLE table_name_1 (finish VARCHAR, year_s__won VARCHAR) | SELECT finish FROM table_name_1 WHERE year_s__won = "1991" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
25535,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
8,
1959,
113,
751,
16,
9957... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1992,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the away team that played at Kardinia Park? | CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_2 WHERE venue = "kardinia park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
550,
372,
24,
1944,
44,
4556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
5669,
3274,
96,
4031,
2644,
23,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average number of floors of the Venetian tower? | CREATE TABLE table_40892 (
"Rank" text,
"Name" text,
"Height m / feet" text,
"Floors" real,
"Year" real
) | SELECT AVG("Floors") FROM table_40892 WHERE "Name" = 'venetian tower' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3914,
357,
41,
96,
22557,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
3,
51,
3,
87,
1922,
121,
1499,
6,
96,
11251,
127,
7,
121,
490,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11251,
127,
7,
8512,
21680,
953,
834,
2445,
3914,
357,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1926,
15,
12572,
7293,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What team was played on november 24? | CREATE TABLE table_23211041_5 (team VARCHAR, date VARCHAR) | SELECT team FROM table_23211041_5 WHERE date = "November 24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
19277,
4853,
834,
755,
41,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
1944,
30,
3,
5326,
18247,
997,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
23188,
19277,
4853,
834,
755,
549,
17444,
427,
833,
3274,
96,
28635,
997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Capacity, when Team is 'Denizlispor'? | CREATE TABLE table_48886 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Venue" text,
"Capacity" real,
"Kitmaker" text,
"Shirt sponsor" text,
"Club Chairman" text
) | SELECT SUM("Capacity") FROM table_48886 WHERE "Team" = 'denizlispor' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
10927,
948,
41,
96,
18699,
121,
1499,
6,
96,
3845,
9,
26,
3763,
121,
1499,
6,
96,
18699,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
19566,
9,
6726... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
19566,
9,
6726,
8512,
21680,
953,
834,
591,
10927,
948,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
221,
24362,
40,
23,
11842,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the champion with a ¥200,000,000 purse? | CREATE TABLE table_name_96 (champion VARCHAR, purse VARCHAR) | SELECT champion FROM table_name_96 WHERE purse = "¥200,000,000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
17788,
12364,
584,
4280,
28027,
6,
20717,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
6336,
28,
3,
9,
3,
2,
3632,
23916,
20717,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6336,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
20717,
3274,
96,
2,
3632,
23916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Away Team, when Date is '25 January 1986', and when Tie No is '6'? | CREATE TABLE table_49924 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_49924 WHERE "Date" = '25 january 1986' AND "Tie no" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3264,
2266,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
591,
3264,
2266,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
1828,
3,
7066,
76,
1208,
12698,
31,
3430,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
948,
31,
1,
-100,
-... |
What is the location for the club trophy from the year 1867 only? | CREATE TABLE table_name_52 (location VARCHAR, type VARCHAR, years VARCHAR) | SELECT location FROM table_name_52 WHERE type = "club trophy" AND years = "1867 only" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
14836,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
21,
8,
1886,
23921,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
686,
3274,
96,
13442,
23921,
121,
3430,
203,
3274,
96,
2606,
3708,
163,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the dimensions of the amp with a 180W output? | CREATE TABLE table_63035 (
"Model" text,
"Poweramp" text,
"Dimensions" text,
"Mass" text,
"Form factor(s)" text,
"Output" text
) | SELECT "Dimensions" FROM table_63035 WHERE "Output" = '180w' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26106,
2469,
41,
96,
24663,
121,
1499,
6,
96,
23553,
4624,
121,
1499,
6,
96,
308,
23,
904,
1938,
7,
121,
1499,
6,
96,
27189,
121,
1499,
6,
96,
3809,
51,
2945,
599,
7,
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,
308,
23,
904,
1938,
7,
121,
21680,
953,
834,
26106,
2469,
549,
17444,
427,
96,
15767,
2562,
121,
3274,
3,
31,
20829,
210,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many stumpings did the player Tim Latham have? | CREATE TABLE table_13337302_16 (
stumpings INTEGER,
player VARCHAR
) | SELECT MAX(stumpings) FROM table_13337302_16 WHERE player = "Tim Latham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
4118,
1458,
357,
834,
2938,
41,
27879,
53,
7,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
27879,
53,
7,
410,
8,
1959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
17,
440,
2462,
7,
61,
21680,
953,
834,
22974,
4118,
1458,
357,
834,
2938,
549,
17444,
427,
1959,
3274,
96,
382,
603,
325,
17,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the cardinal points for 19-4 record | CREATE TABLE table_23192661_3 (
cardinal_points INTEGER,
record VARCHAR
) | SELECT MIN(cardinal_points) FROM table_23192661_3 WHERE record = "19-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2294,
2688,
4241,
834,
519,
41,
895,
10270,
834,
2700,
7,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
895,
10270,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
6043,
10270,
834,
2700,
7,
61,
21680,
953,
834,
2773,
2294,
2688,
4241,
834,
519,
549,
17444,
427,
1368,
3274,
96,
2294,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the papers on data cleaning that were published in vldb | CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE writes (
paperid int,
authori... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'data cleaning' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND venue.venueid = paper.venueid AND venue.venuename = 'vldb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
16,
17,
6,
843,
27111,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
21680,
843,
27111,
6,
1040,
6,
1040,
4397,
27111,
6,
5669,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,
31,
6757,
2327,
31,
3430,
1040,
4397,
27111,
5,
... |
What is the lowest wins that has a year prior to 1999, with draws greater than 1, and points greater than 17? | CREATE TABLE table_5705 (
"Year" real,
"League" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Points" real
) | SELECT MIN("Wins") FROM table_5705 WHERE "Year" < '1999' AND "Draws" > '1' AND "Points" > '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3076,
41,
96,
476,
2741,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
3436,
3076,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
3264,
31,
3430,
96,
308,
10936,
7,
121,
2490,
3,
31,
536,
31,
3430,
96,
22512,
7,
121,
2... |
What is Quantity Made, when Year Made is '4-4-0 oooo american'? | CREATE TABLE table_44050 (
"Class" text,
"Wheel arrangement" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
) | SELECT "Quantity made" FROM table_44050 WHERE "Year made" = '4-4-0 — oooo — american' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22335,
1752,
41,
96,
21486,
121,
1499,
6,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
476,
2741,
263,
121,
1499,
6,
96,
5991... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5991,
288,
485,
263,
121,
21680,
953,
834,
22335,
1752,
549,
17444,
427,
96,
476,
2741,
263,
121,
3274,
3,
31,
591,
18,
26814,
3,
318,
3,
16780,
3,
318,
10211,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.