NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many races were there when Sigachev had 38 points? | CREATE TABLE table_25421463_1 (
races INTEGER,
points VARCHAR
) | SELECT MIN(races) FROM table_25421463_1 WHERE points = "38" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4165,
2534,
3891,
834,
536,
41,
10879,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10879,
130,
132,
116,
3,
22582,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
12614,
7,
61,
21680,
953,
834,
1828,
4165,
2534,
3891,
834,
536,
549,
17444,
427,
979,
3274,
96,
3747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Laps have a Driver of david coulthard, and a Grid smaller than 14? | CREATE TABLE table_36546 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT SUM("Laps") FROM table_36546 WHERE "Driver" = 'david coulthard' AND "Grid" < '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10402,
4448,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3612,
102,
7,
8512,
21680,
953,
834,
10402,
4448,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
26,
9,
6961,
576,
83,
17,
5651,
31,
3430,
96,
13313,
26,
121,
3,
2,
3,
31,
2534,
31,
1,
... |
What is the 1st leg of cs sfaxien? | CREATE TABLE table_6194 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_6194 WHERE "Team 2" = 'cs sfaxien' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
4240,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
4553,
121,
21680,
953,
834,
4241,
4240,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
75,
7,
3,
7,
11517,
23,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which commander received complement larger than 240 , guns of 66 and ship of revolutie? | CREATE TABLE table_name_62 (commander VARCHAR, ship VARCHAR, complement VARCHAR, guns VARCHAR) | SELECT commander FROM table_name_62 WHERE complement > 240 AND guns = "66" AND ship = "revolutie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
13695,
49,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
6,
10090,
584,
4280,
28027,
6,
13731,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17604,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
10090,
2490,
3,
11944,
3430,
13731,
3274,
96,
3539,
121,
3430,
4383,
3274,
96,
60,
1621,
16668,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the audience for Episode 21? | CREATE TABLE table_name_36 (audience VARCHAR, episode VARCHAR) | SELECT audience FROM table_name_36 WHERE episode = "21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
9,
5291,
1433,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2417,
21,
16112,
1401,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2417,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
5640,
3274,
96,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Year, when Wins is '0'? | CREATE TABLE table_45795 (
"Year" text,
"Result" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
) | SELECT "Year" FROM table_45795 WHERE "Wins" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3436,
3301,
41,
96,
476,
2741,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
329,
144,
2951,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
308,
10936,
7,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
591,
3436,
3301,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average 2000 that has a 1997 greater than 34,6, a 2006 greater than 38,7, and a 2998 less than 76? | CREATE TABLE table_75782 (
"Capital/Region" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real
) | SELECT AVG("2000") FROM table_75782 WHERE "1997" > '34,6' AND "2006" > '38,7' AND "1998" < '76' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
3940,
357,
41,
96,
19566,
9538,
87,
17748,
23,
106,
121,
1499,
6,
96,
2294,
4327,
121,
490,
6,
96,
2294,
3916,
121,
490,
6,
96,
2294,
3264,
121,
490,
6,
96,
13527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13527,
8512,
21680,
953,
834,
3072,
3940,
357,
549,
17444,
427,
96,
2294,
4327,
121,
2490,
3,
31,
3710,
6,
948,
31,
3430,
96,
21196,
121,
2490,
3,
31,
3747,
6,
940,
31,
3430,
96,
2294,
3916,
... |
Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18? | CREATE TABLE table_name_51 (
opponent VARCHAR,
november VARCHAR,
game VARCHAR
) | SELECT opponent FROM table_name_51 WHERE november > 26 AND game > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
15264,
584,
4280,
28027,
6,
3,
5326,
18247,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3,
5326,
18247,
2490,
2208,
3430,
467,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the format of the album with a year less than 1992? | CREATE TABLE table_41704 (
"Album title" text,
"Format" text,
"Year" real,
"Original label" text,
"Chart positions" text
) | SELECT "Format" FROM table_41704 WHERE "Year" < '1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
2518,
591,
41,
96,
25691,
440,
2233,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
667,
3380,
10270,
3783,
121,
1499,
6,
96,
18947,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3809,
3357,
121,
21680,
953,
834,
4853,
2518,
591,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
19479,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What episode number in the season is 'parent trap'? | CREATE TABLE table_3318 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "No. in season" FROM table_3318 WHERE "Title" = 'Parent Trap' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
2606,
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,
96,
4168,
5,
16,
774,
121,
21680,
953,
834,
4201,
2606,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
13212,
295,
3083,
102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Champion, when Year is greater than 2007, and when Finalist is 'Asvel'? | CREATE TABLE table_60188 (
"Year" real,
"Champion" text,
"Finalist" text,
"Score" text,
"Place" text
) | SELECT "Champion" FROM table_60188 WHERE "Year" > '2007' AND "Finalist" = 'asvel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
25794,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
371,
10270,
343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
345,
11706,
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,
254,
1483,
12364,
121,
21680,
953,
834,
3328,
25794,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
20615,
31,
3430,
96,
371,
10270,
343,
121,
3274,
3,
31,
9,
7,
4911,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is Score, when Opponent is Atlanta Hawks? | CREATE TABLE table_name_44 (
score VARCHAR,
opponent VARCHAR
) | SELECT score FROM table_name_44 WHERE opponent = "atlanta hawks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
4495,
9977,
19,
9673,
12833,
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,
2604,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
15264,
3274,
96,
144,
6761,
9,
3,
14400,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving? | CREATE TABLE table_name_87 (entries INTEGER, front_row_starts VARCHAR, driver VARCHAR) | SELECT MIN(entries) FROM table_name_87 WHERE front_row_starts < 15 AND driver = "michael schumacher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
35,
9000,
3,
21342,
17966,
6,
851,
834,
3623,
834,
10208,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
35,
9000,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
851,
834,
3623,
834,
10208,
7,
3,
2,
627,
3430,
2535,
3274,
96,
51,
362,
9,
15,
40,
3,
7,
8019,
24113,
121,
1,
-100,
-100,
-100,
... |
Name the pennant number for completion of 30 october 1934 and launched 29 march 1934 | CREATE TABLE table_name_43 (
pennant_number VARCHAR,
launched VARCHAR,
completed VARCHAR
) | SELECT pennant_number FROM table_name_43 WHERE launched = "29 march 1934" AND completed = "30 october 1934" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
4550,
29,
288,
834,
5525,
1152,
584,
4280,
28027,
6,
3759,
584,
4280,
28027,
6,
2012,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4550,
29,
288,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3759,
3274,
96,
3166,
10556,
28828,
121,
3430,
2012,
3274,
96,
1458,
3,
32,
75,
235,
1152,
28828,
121,
1,
-100,
-100,
-100,
-100,
-1... |
What is the lowest wins with points larger than 46, and a rank of 10th? | CREATE TABLE table_6511 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | SELECT MIN("Wins") FROM table_6511 WHERE "Points" > '46' AND "Rank" = '10th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2596,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22557,
121,
1499,
6,
96,
18455,
7,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
4122,
2596,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
4448,
31,
3430,
96,
22557,
121,
3274,
3,
31,
1714,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt? | CREATE TABLE table_1966992_1 (lga_name VARCHAR, census_2006_population VARCHAR, administrative_capital VARCHAR) | SELECT lga_name FROM table_1966992_1 WHERE census_2006_population > 425208.9417698913 AND administrative_capital = "Port Harcourt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
3951,
4508,
834,
536,
41,
40,
122,
9,
834,
4350,
584,
4280,
28027,
6,
23087,
834,
21196,
834,
9791,
7830,
584,
4280,
28027,
6,
6601,
834,
4010,
9538,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
40,
122,
9,
834,
4350,
21680,
953,
834,
26937,
3951,
4508,
834,
536,
549,
17444,
427,
23087,
834,
21196,
834,
9791,
7830,
2490,
6426,
5373,
15000,
4240,
2517,
3951,
3914,
2368,
3430,
6601,
834,
4010,
9538,
3274,
96... |
How many different numbers of people in the US who'd seen the episode with a season number 8 are there? | CREATE TABLE table_19925114_1 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) | SELECT COUNT(us_viewers__millions_) FROM table_19925114_1 WHERE no_in_season = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
1828,
18959,
834,
536,
41,
302,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
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,
2847,
17161,
599,
302,
834,
4576,
277,
834,
834,
17030,
7,
834,
61,
21680,
953,
834,
19479,
1828,
18959,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the total number of step 6 for 11 gs grade | CREATE TABLE table_2319437_1 (
step_6 VARCHAR,
gs_grade VARCHAR
) | SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2294,
591,
4118,
834,
536,
41,
1147,
834,
948,
584,
4280,
28027,
6,
3,
122,
7,
834,
6801,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7910,
834,
10938,
21680,
953,
834,
2773,
2294,
591,
4118,
834,
536,
549,
17444,
427,
3,
122,
7,
834,
6801,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What NHL team does Denis Desgagnes play for? | CREATE TABLE table_1965650_8 (
nhl_team VARCHAR,
player VARCHAR
) | SELECT nhl_team FROM table_1965650_8 WHERE player = "Denis Desgagnes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4122,
15348,
834,
927,
41,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
22313,
372,
405,
3128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
107,
40,
834,
11650,
21680,
953,
834,
2294,
4122,
15348,
834,
927,
549,
17444,
427,
1959,
3274,
96,
308,
35,
159,
2973,
122,
11624,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the population estimate 2005 for the with the area (km2) 3,034.08? | CREATE TABLE table_name_89 (
population_estimate_2005 INTEGER,
area__km_2__ VARCHAR
) | SELECT AVG(population_estimate_2005) FROM table_name_89 WHERE area__km_2__ = 3 OFFSET 034.08 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
2074,
834,
3340,
5058,
834,
22594,
3,
21342,
17966,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
9791,
7830,
834,
3340,
5058,
834,
22594,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
616,
834,
834,
5848,
834,
357,
834,
834,
3274,
220,
3,
15316,
20788,
12811,
15021,
927,
1,
-100,
-100,
... |
Is wireless combo keyboard and mouse support part of the DDM class? | CREATE TABLE table_1153898_1 (
ddm_class VARCHAR,
comparisons VARCHAR
) | SELECT ddm_class FROM table_1153898_1 WHERE comparisons = "Wireless Combo keyboard and mouse support" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
3747,
3916,
834,
536,
41,
3,
26,
26,
51,
834,
4057,
584,
4280,
28027,
6,
4993,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
7,
5419,
15122,
8680,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
26,
26,
51,
834,
4057,
21680,
953,
834,
15660,
3747,
3916,
834,
536,
549,
17444,
427,
4993,
7,
3274,
96,
13601,
15,
924,
638,
6310,
8680,
11,
8429,
380,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What stage was 1,648 km achieved? | CREATE TABLE table_name_59 (
stages VARCHAR,
distance VARCHAR
) | SELECT stages FROM table_name_59 WHERE distance = "1,648 km" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
6518,
584,
4280,
28027,
6,
2357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1726,
47,
1914,
948,
3707,
2280,
5153,
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,
6518,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
2357,
3274,
96,
4347,
948,
3707,
2280,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the game for record being 3-0 | CREATE TABLE table_24001 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Cardinals points" real,
"Opponents" real,
"Record" text
) | SELECT "Game" FROM table_24001 WHERE "Record" = '3-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
17465,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
6936,
26,
10270,
7,
979,
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,
96,
23055,
121,
21680,
953,
834,
2266,
17465,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
22773,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What team visited the Jacksonville Municipal Stadium? | CREATE TABLE table_68711 (
"Date" text,
"Visiting team" text,
"Final score" text,
"Host team" text,
"Stadium" text
) | SELECT "Visiting team" FROM table_68711 WHERE "Stadium" = 'jacksonville municipal stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4450,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
30338,
372,
121,
1499,
6,
96,
371,
10270,
2604,
121,
1499,
6,
96,
566,
3481,
372,
121,
1499,
6,
96,
134,
17,
9,
129... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30338,
372,
121,
21680,
953,
834,
3651,
4450,
536,
549,
17444,
427,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
9325,
739,
1420,
10516,
14939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Series number of the episode with a production number of 1547? | CREATE TABLE table_name_34 (series VARCHAR, production_number VARCHAR) | SELECT series FROM table_name_34 WHERE production_number = 1547 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
10833,
7,
584,
4280,
28027,
6,
999,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4531,
381,
13,
8,
5640,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
999,
834,
5525,
1152,
3274,
627,
4177,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Report to me the number of patients who underwent coronary arteriography with the use of a single catheter and self discharged against medical advice. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND procedures.short_title = "Coronar arteriogr-1 cath" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the Frequency, when the Voltage is 3.3 V? | CREATE TABLE table_name_47 (
frequency VARCHAR,
voltage VARCHAR
) | SELECT frequency FROM table_name_47 WHERE voltage = "3.3 v" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
7321,
584,
4280,
28027,
6,
10594,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5532,
835,
11298,
6,
116,
8,
4969,
6505,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
10594,
3274,
96,
19660,
3,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the player had the highest salary in 2015? | CREATE TABLE player_award_vote (
award_id text,
year number,
league_id text,
player_id text,
points_won number,
points_max number,
votes_first text
)
CREATE TABLE player (
player_id text,
birth_year text,
birth_month text,
birth_day text,
birth_country text,
birth_st... | SELECT player_id FROM salary WHERE year = "2015" ORDER BY salary DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
834,
9,
2239,
834,
1621,
17,
15,
41,
2760,
834,
23,
26,
1499,
6,
215,
381,
6,
5533,
834,
23,
26,
1499,
6,
1959,
834,
23,
26,
1499,
6,
979,
834,
210,
106,
381,
6,
979,
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,
1959,
834,
23,
26,
21680,
9090,
549,
17444,
427,
215,
3274,
96,
8651,
121,
4674,
11300,
272,
476,
9090,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the production code for november 08, 1985 | CREATE TABLE table_20967430_2 (prod_code VARCHAR, original_air_date VARCHAR) | SELECT prod_code FROM table_20967430_2 WHERE original_air_date = "November 08, 1985" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4314,
4581,
1458,
834,
357,
41,
1409,
26,
834,
4978,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
813,
26,
834,
4978,
21680,
953,
834,
1755,
4314,
4581,
1458,
834,
357,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
28635,
12046,
6,
13200,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the competing entities when the age group is 18 or younger, held every is one year and the sport is table tennis? | CREATE TABLE table_name_37 (competing_entities VARCHAR, sport VARCHAR, age_groups VARCHAR, held_every VARCHAR) | SELECT competing_entities FROM table_name_37 WHERE age_groups = "18 or younger" AND held_every = "one year" AND sport = "table tennis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
287,
4995,
53,
834,
295,
2197,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
6,
1246,
834,
10739,
7,
584,
4280,
28027,
6,
1213,
834,
15,
8461,
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,
12166,
834,
295,
2197,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1246,
834,
10739,
7,
3274,
96,
2606,
42,
5868,
121,
3430,
1213,
834,
15,
8461,
3274,
96,
782,
215,
121,
3430,
2600,
3274,
96,
3869,
9999,
121... |
what game was played on june 14 | CREATE TABLE table_34459 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
) | SELECT "Type of game" FROM table_34459 WHERE "Date" = 'june 14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3628,
3390,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
7,
2,
76,
1206,
115,
1298,
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,
25160,
13,
467,
121,
21680,
953,
834,
519,
3628,
3390,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
968,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which bronze has a Nation of poland? | CREATE TABLE table_name_85 (bronze VARCHAR, nation VARCHAR) | SELECT bronze FROM table_name_85 WHERE nation = "poland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
13711,
776,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13467,
65,
3,
9,
11046,
13,
3,
3233,
232,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13467,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2982,
3274,
96,
3233,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose admission year is less than 2144 and diagnoses short title is cirrhosis of liver nos? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2144" AND diagnoses.short_title = "Cirrhosis of liver NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
How many total matches involving dennis gavros had total points less than 167? | CREATE TABLE table_71755 (
"Rider" text,
"Matches" real,
"Rides" real,
"Bonus Pts" real,
"Total Points" real
) | SELECT COUNT("Matches") FROM table_71755 WHERE "Rider" = 'dennis gavros' AND "Total Points" < '167' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2517,
3769,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
448,
9361,
121,
490,
6,
96,
279,
106,
302,
276,
17,
7,
121,
490,
6,
96,
3696... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
940,
2517,
3769,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
537,
29,
159,
7922,
29275,
7,
31,
3430,
96,
3696,
1947,
4564,
7,
121,
3,
2,
3,
... |
Which venue has bradford bulls as the opponent on the date of 06/09/2009? | CREATE TABLE table_24308 (
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Score" text,
"Home/Away" text,
"Venue" text,
"Attendance" text,
"Date" text
) | SELECT "Venue" FROM table_24308 WHERE "Opponent" = 'Bradford Bulls' AND "Date" = '06/09/2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
4018,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
27730,
4018,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
18304,
26,
2590,
10204,
7,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
5176,
31497,
16660,
31,
1,
-100... |
Which Score has an October smaller than 15, and a Record of 2 0 0? | CREATE TABLE table_39156 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_39156 WHERE "October" < '15' AND "Record" = '2–0–0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
25463,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3288,
25463,
549,
17444,
427,
96,
28680,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
357,
104,
632,
104,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Team 1 has an aggregate score of 1-1 1? | CREATE TABLE table_name_13 (
team_1 VARCHAR,
agg VARCHAR
) | SELECT team_1 FROM table_name_13 WHERE agg = "1-1 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
372,
834,
536,
584,
4280,
28027,
6,
3,
9,
4102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
209,
65,
46,
12955,
2604,
13,
209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
536,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3,
9,
4102,
3274,
96,
536,
2292,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which episode was written by anthony e. zuiker & ken solarz | CREATE TABLE table_11665016_2 (title VARCHAR, written_by VARCHAR) | SELECT title FROM table_11665016_2 WHERE written_by = "Anthony E. Zuiker & Ken Solarz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
15348,
2938,
834,
357,
41,
21869,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5640,
47,
1545,
57,
46,
189,
106,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
20159,
15348,
2938,
834,
357,
549,
17444,
427,
1545,
834,
969,
3274,
96,
188,
29,
189,
106,
63,
262,
5,
1811,
10109,
3,
184,
5704,
9334,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the average rating star for each movie that are not reviewed by Brittany Harris. | CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars INTEGER); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) | SELECT mID, AVG(stars) FROM Rating WHERE NOT mID IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris") GROUP BY mID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
52,
4309,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
51,
4309,
584,
4280,
28027,
6,
4811,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
51,
4309,
6,
71,
17217,
599,
3624,
7,
61,
21680,
21662,
549,
17444,
427,
4486,
3,
51,
4309,
3388,
41,
23143,
14196,
332,
5411,
51,
4309,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
4543,
49,
6157,
332,
357,
9... |
known pregnancy or breastfeeding | CREATE TABLE table_train_26 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"allergy_to_penicillin" bool,
"active_infection" bool,
"allergy_to_cephalosporin" bool,
"receiving_anticoagulants" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_26 WHERE pregnancy_or_lactation = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2688,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
11211,
122,
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,
1429,
21680,
953,
834,
9719,
834,
2688,
549,
17444,
427,
8999,
834,
127,
834,
9700,
6821,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the player from South Africa? | CREATE TABLE table_name_86 (
score VARCHAR,
country VARCHAR
) | SELECT score FROM table_name_86 WHERE country = "south africa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
2604,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
1959,
45,
1013,
2648,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
684,
3274,
96,
7,
670,
107,
24040,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest number of rebounds of the game with a 6-14 record? | CREATE TABLE table_48761 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_48761 WHERE "Record" = '6-14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3959,
536,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
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,
21417,
3,
23768,
121,
21680,
953,
834,
3707,
3959,
536,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
948,
11590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the time/retired for grid 23? | CREATE TABLE table_55539 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_55539 WHERE "Grid" = '23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28803,
3288,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
28803,
3288,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
2773,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the most game | CREATE TABLE table_24113 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
) | SELECT MAX("Game") FROM table_24113 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
20522,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
20096,
11595,
7,
979,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
23055,
8512,
21680,
953,
834,
2266,
20522,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the number of ramsan-720 hard drives? | CREATE TABLE table_27615520_1 (
storage_medium VARCHAR,
product_name VARCHAR
) | SELECT COUNT(storage_medium) FROM table_27615520_1 WHERE product_name = "RamSan-720" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3959,
20896,
1755,
834,
536,
41,
1606,
834,
5700,
440,
584,
4280,
28027,
6,
556,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
381,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7279,
545,
834,
5700,
440,
61,
21680,
953,
834,
357,
3959,
20896,
1755,
834,
536,
549,
17444,
427,
556,
834,
4350,
3274,
96,
448,
265,
134,
152,
18,
18517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose discharge location is snf and primary disease is hypoxia? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "HYPOXIA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
134,
12619,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
... |
give me the number of patients whose gender is m and drug code is sw100? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.formulary_drug_cd = "SW100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is Eric Johnson at in the poll where Karen Handel is at 12%? | CREATE TABLE table_name_38 (eric_johnson VARCHAR, karen_handel VARCHAR) | SELECT eric_johnson FROM table_name_38 WHERE karen_handel = "12%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
15,
2234,
834,
27341,
739,
584,
4280,
28027,
6,
3,
4031,
35,
834,
10777,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6964,
5891,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15,
2234,
834,
27341,
739,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
3,
4031,
35,
834,
10777,
3274,
96,
26821,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which crowd has an Away team score of 16.9 (105)? | CREATE TABLE table_54890 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_54890 WHERE "Away team score" = '16.9 (105)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3707,
2394,
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,
254,
3623,
26,
121,
21680,
953,
834,
755,
3707,
2394,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2938,
5,
1298,
11704,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which fault log included the most number of faulty parts? List the fault log id, description and record time. | CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR) | SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
377,
10335,
834,
22084,
41,
89,
10335,
834,
2152,
834,
295,
651,
834,
23,
26,
584,
4280,
28027,
6,
7828,
834,
221,
11830,
584,
4280,
28027,
6,
7828,
834,
2152,
834,
295,
651,
834,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
89,
10335,
834,
2152,
834,
295,
651,
834,
23,
26,
6,
332,
5411,
89,
10335,
834,
221,
11830,
6,
332,
5411,
89,
10335,
834,
2152,
834,
295,
651,
834,
5522,
715,
21680,
377,
10335,
834,
22084,
6157,
332,
5... |
What's the original title of the film Zozo? | CREATE TABLE table_23517 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
) | SELECT "Original title" FROM table_23517 WHERE "Film title used in nomination" = 'Zozo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
2517,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
2233,
121,
21680,
953,
834,
25174,
2517,
549,
17444,
427,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
3274,
3,
31,
956,
20260,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the attendance when St Kilda played as the away team? | CREATE TABLE table_name_79 (
crowd INTEGER,
away_team VARCHAR
) | SELECT AVG(crowd) FROM table_name_79 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
116,
472,
12672,
26,
9,
1944,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart that X-axis is the gender and compute the number of players in each gender as a Y-axis, show total number in descending order. | CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
)
CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residence text,
Occupat... | SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender ORDER BY COUNT(Gender) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
834,
509,
1836,
41,
12387,
834,
4309,
16,
17,
6,
9493,
834,
4309,
16,
17,
6,
14362,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
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,
1... | [
3,
23143,
14196,
350,
3868,
6,
2847,
17161,
599,
517,
3868,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
350,
3868,
4674,
11300,
272,
476,
2847,
17161,
599,
517,
3868,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million? | CREATE TABLE table_name_67 (
share INTEGER,
viewers__m_ VARCHAR,
timeslot_rank VARCHAR
) | SELECT MIN(share) FROM table_name_67 WHERE viewers__m_ < 8.78 AND timeslot_rank < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
698,
3,
21342,
17966,
6,
13569,
834,
834,
51,
834,
584,
4280,
28027,
6,
648,
3171,
834,
6254,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
12484,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
13569,
834,
834,
51,
834,
3,
2,
4848,
3940,
3430,
648,
3171,
834,
6254,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Laps did Team Primagaz Competition have? | CREATE TABLE table_name_14 (
laps VARCHAR,
team VARCHAR
) | SELECT laps FROM table_name_14 WHERE team = "primagaz competition" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
14941,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
325,
102,
7,
410,
2271,
13425,
21805,
15571,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14941,
7,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
372,
3274,
96,
8234,
9,
21805,
2259,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the name of rooms booked by some customers whose first name contains ROY, and count them by a bar chart, sort x-axis from high to low order. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName ORDER BY roomName DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
562,
23954,
6,
2847,
17161,
599,
3082,
23954,
61,
21680,
27659,
7,
6157,
332,
536,
3,
15355,
3162,
4181,
7,
6157,
332,
357,
9191,
332,
5411,
22778,
51,
3274,
332,
4416,
22778,
51,
196,
26,
549,
17444,
427,
1485,
239... |
What is the original title of the film for which Dersu Uzala was nominated? | CREATE TABLE table_71119 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original title" text,
"Director" text
) | SELECT "Original title" FROM table_71119 WHERE "Film title used in nomination" = 'dersu uzala' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
19993,
41,
96,
10628,
651,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
2233,
121,
21680,
953,
834,
4450,
19993,
549,
17444,
427,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
3274,
3,
31,
588,
7,
76,
3,
14070,
521,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the discipline for the summer Olympics in 2008? | CREATE TABLE table_name_68 (discipline VARCHAR, tournament VARCHAR, year VARCHAR) | SELECT discipline FROM table_name_68 WHERE tournament = "summer olympics" AND year = 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
26,
159,
3389,
747,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7998,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7998,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
5892,
3274,
96,
23541,
52,
3,
32,
120,
51,
6174,
7,
121,
3430,
215,
3274,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the loss for june 30 | CREATE TABLE table_name_96 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_96 WHERE date = "june 30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
2298,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1453,
21,
3,
6959,
15,
604,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
833,
3274,
96,
6959,
15,
604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the lowest number of assists. | CREATE TABLE table_26360571_2 (
assists INTEGER
) | SELECT MIN(assists) FROM table_26360571_2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
19208,
3436,
536,
834,
357,
41,
13041,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
7402,
381,
13,
13041,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6500,
7,
17,
7,
61,
21680,
953,
834,
2688,
19208,
3436,
536,
834,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose gender is m and diagnoses short title is hyperosmolality? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.short_title = "Hyperosmolality" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178? | CREATE TABLE table_name_16 (rank INTEGER, borough VARCHAR, population VARCHAR) | SELECT MIN(rank) FROM table_name_16 WHERE borough = "richmondshire" AND population > 8 OFFSET 178 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
6254,
3,
21342,
17966,
6,
3,
12823,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
22557,
19,
8,
7402,
80,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3,
12823,
3274,
96,
3723,
6764,
5718,
121,
3430,
2074,
2490,
505,
3,
15316,
20788,
3,
27640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients who had magnesium lab test have been discharged to snf? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "SNF" AND lab.label = "Magnesium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Position has a Round smaller than 5, and a Pick of 5? | CREATE TABLE table_name_75 (
position VARCHAR,
round VARCHAR,
pick VARCHAR
) | SELECT position FROM table_name_75 WHERE round < 5 AND pick = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
9609,
2755,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1751,
3,
2,
305,
3430,
1432,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many League cups had a total less than 25 and a league larger than 19? | CREATE TABLE table_name_70 (
league VARCHAR,
total VARCHAR
) | SELECT COUNT(league) AS Cup FROM table_name_70 WHERE total < 25 AND league > 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
5533,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3815,
12294,
141,
3,
9,
792,
705,
145,
944,
11,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29512,
61,
6157,
3802,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
792,
3,
2,
944,
3430,
5533,
2490,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79? | CREATE TABLE table_name_74 (
goals_for INTEGER,
goals_against VARCHAR,
team VARCHAR,
position VARCHAR,
lost VARCHAR
) | SELECT MAX(goals_for) FROM table_name_74 WHERE position > 2 AND lost > 18 AND team = "matlock town" AND goals_against > 79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
1766,
834,
1161,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1513,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1102,
2490,
204,
3430,
1513,
2490,
507,
3430,
372,
3274,
96,
3357,
4029,
1511,
121,
3430,
1766,
834,
9,
16720,
7,
17,
2490,
... |
What is the Away team when the FootyTAB winner was st. george? | CREATE TABLE table_name_13 (
away_team VARCHAR,
footytab_winner VARCHAR
) | SELECT away_team FROM table_name_13 WHERE footytab_winner = "st. george" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
550,
834,
11650,
584,
4280,
28027,
6,
2418,
63,
10309,
834,
3757,
687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
71,
1343,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
2418,
63,
10309,
834,
3757,
687,
3274,
96,
7,
17,
5,
873,
1677,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a bar chart on how many students have each different allergy?, and I want to show Y-axis from low to high order. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER... | SELECT Allergy, COUNT(*) FROM Has_Allergy GROUP BY Allergy ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
49,
122,
63,
6,
2847,
17161,
599,
1935,
61,
21680,
4498,
834,
6838,
49,
122,
63,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100... |
Name the most fa cup apps for league apps being 27 | CREATE TABLE table_2979789_1 (fa_cup_apps INTEGER, league_apps VARCHAR) | SELECT MAX(fa_cup_apps) FROM table_2979789_1 WHERE league_apps = 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4327,
4327,
3914,
834,
536,
41,
89,
9,
834,
4658,
834,
3096,
7,
3,
21342,
17966,
6,
5533,
834,
3096,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
89,
9,
834,
4658,
834,
3096,
7,
61,
21680,
953,
834,
357,
4327,
4327,
3914,
834,
536,
549,
17444,
427,
5533,
834,
3096,
7,
3274,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose discharge location is home? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the snatch when the 139kg was 305kg and the Olympic Record was the world record? | CREATE TABLE table_64666 (
"World record" text,
"Snatch" text,
"Mu Shuangshuang ( CHN )" text,
"139kg" text,
"Doha , Qatar" text
) | SELECT "Snatch" FROM table_64666 WHERE "World record" = 'olympic record' AND "139kg" = '305kg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
948,
3539,
41,
96,
17954,
1368,
121,
1499,
6,
96,
134,
29,
14547,
121,
1499,
6,
96,
329,
76,
14565,
1468,
14279,
1468,
41,
9302,
567,
3,
61,
121,
1499,
6,
96,
24090... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
14547,
121,
21680,
953,
834,
4389,
948,
3539,
549,
17444,
427,
96,
17954,
1368,
121,
3274,
3,
31,
32,
120,
51,
6174,
1368,
31,
3430,
96,
24090,
8711,
121,
3274,
3,
31,
26724,
8711,
31,
1,
-100,
-100,
... |
How many fatalities shows for the lockheed l-1049g? | CREATE TABLE table_name_62 (fatalities INTEGER, aircraft_type VARCHAR) | SELECT SUM(fatalities) FROM table_name_62 WHERE aircraft_type = "lockheed l-1049g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
6589,
138,
2197,
3,
21342,
17966,
6,
6442,
834,
6137,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
12699,
2197,
1267,
21,
8,
6081,
2477... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
6589,
138,
2197,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
6442,
834,
6137,
3274,
96,
4029,
24778,
3,
40,
4536,
3647,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many air dates were there when Morgan was eliminated? | CREATE TABLE table_73070 (
"Episode title" text,
"Air date" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
) | SELECT COUNT("Air date") FROM table_73070 WHERE "Eliminated" = 'Morgan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1458,
2518,
41,
96,
427,
102,
159,
32,
221,
2233,
121,
1499,
6,
96,
20162,
833,
121,
1499,
6,
96,
1649,
2239,
121,
1499,
6,
96,
196,
635,
202,
485,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20162,
833,
8512,
21680,
953,
834,
940,
1458,
2518,
549,
17444,
427,
96,
427,
4941,
77,
920,
121,
3274,
3,
31,
329,
11127,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the names of products whose availability equals to 1? | CREATE TABLE view_product_availability (product_id VARCHAR, available_yn VARCHAR); CREATE TABLE products_for_hire (product_name VARCHAR, product_id VARCHAR) | SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
903,
834,
15892,
834,
8644,
173,
2020,
41,
15892,
834,
23,
26,
584,
4280,
28027,
6,
347,
834,
63,
29,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
15892,
834,
4350,
21680,
903,
834,
15892,
834,
8644,
173,
2020,
6157,
332,
536,
3,
15355,
3162,
494,
834,
1161,
834,
9288,
15,
6157,
332,
357,
9191,
332,
5411,
15892,
834,
23,
26,
3274,
332,
4416,
15892,
... |
When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have? | CREATE TABLE table_name_43 (
george_hw_bush VARCHAR,
pat_robertson VARCHAR,
bob_dole VARCHAR
) | SELECT george_hw_bush FROM table_name_43 WHERE pat_robertson = "19%" AND bob_dole = "26%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
873,
1677,
15,
834,
107,
210,
834,
3465,
107,
584,
4280,
28027,
6,
6234,
834,
5840,
49,
17,
739,
584,
4280,
28027,
6,
3,
17396,
834,
26,
32,
109,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
873,
1677,
15,
834,
107,
210,
834,
3465,
107,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
6234,
834,
5840,
49,
17,
739,
3274,
96,
2294,
1454,
121,
3430,
3,
17396,
834,
26,
32,
109,
3274,
96,
357,
6370,
121,... |
Which spacecraft were launched by the Titan II? | CREATE TABLE table_name_7 (spacecraft VARCHAR, launcher VARCHAR) | SELECT spacecraft FROM table_name_7 WHERE launcher = "titan ii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
6633,
6696,
584,
4280,
28027,
6,
3289,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
628,
6696,
130,
3759,
57,
8,
13622,
2466,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
628,
6696,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3289,
49,
3274,
96,
17,
155,
152,
3,
23,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the date for the episode performed by Sue Manchester? | CREATE TABLE table_22815 (
"Episode title" text,
"Subject" text,
"Music by" text,
"Lyrics by" text,
"Performed by" text,
"First aired" text
) | SELECT "First aired" FROM table_22815 WHERE "Performed by" = 'Sue Manchester' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
1808,
41,
96,
427,
102,
159,
32,
221,
2233,
121,
1499,
6,
96,
25252,
11827,
121,
1499,
6,
96,
29035,
57,
121,
1499,
6,
96,
434,
63,
2234,
7,
57,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
3,
2378,
26,
121,
21680,
953,
834,
357,
2577,
1808,
549,
17444,
427,
96,
12988,
10816,
57,
121,
3274,
3,
31,
134,
76,
15,
9145,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When did the away team carlton play? | CREATE TABLE table_name_88 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_88 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
550,
372,
443,
7377,
577,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the height in feet of player number 24? | CREATE TABLE table_name_70 (height_in_ft VARCHAR, no_s_ VARCHAR) | SELECT height_in_ft FROM table_name_70 WHERE no_s_ = "24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
88,
2632,
834,
77,
834,
89,
17,
584,
4280,
28027,
6,
150,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3902,
16,
192... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3902,
834,
77,
834,
89,
17,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
150,
834,
7,
834,
3274,
96,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose admission location is transfer from hosp/extram and drug code is phen100ivpb? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND prescriptions.formulary_drug_cd = "PHEN100IVPB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
How many countries spent $83.7 billion on international tourism in 2012? | CREATE TABLE table_29789_3 (
_percentage_change VARCHAR,
international_tourism_expenditure_2012 VARCHAR
) | SELECT COUNT(_percentage_change) FROM table_29789_3 WHERE international_tourism_expenditure_2012 = "$83.7 billion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4327,
3914,
834,
519,
41,
3,
834,
883,
3728,
545,
834,
13073,
584,
4280,
28027,
6,
1038,
834,
30712,
834,
994,
3208,
26,
23,
2693,
834,
12172,
584,
4280,
28027,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
834,
883,
3728,
545,
834,
13073,
61,
21680,
953,
834,
357,
4327,
3914,
834,
519,
549,
17444,
427,
1038,
834,
30712,
834,
994,
3208,
26,
23,
2693,
834,
12172,
3274,
96,
3229,
927,
25168,
2108,
121,
... |
what is the highest % hydropower when the % oil is less than 24.5, country is united arab emirates and the % nuclear power is 0? | CREATE TABLE table_name_80 (
_percentage_hydropower INTEGER,
_percentage_nuclear_power VARCHAR,
_percentage_oil VARCHAR,
country VARCHAR
) | SELECT MAX(_percentage_hydropower) FROM table_name_80 WHERE _percentage_oil < 24.5 AND country = "united arab emirates" AND _percentage_nuclear_power < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3,
834,
883,
3728,
545,
834,
10656,
32,
6740,
3,
21342,
17966,
6,
3,
834,
883,
3728,
545,
834,
29,
76,
2482,
291,
834,
6740,
584,
4280,
28027,
6,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
834,
883,
3728,
545,
834,
10656,
32,
6740,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
32,
173,
3,
2,
204,
12451,
3430,
684,
3274,
96,
15129,
15,
26,
21165,
... |
For those employees who did not have any job in the past, a bar chart shows the distribution of job_id and the average of salary , and group by attribute job_id, sort by the y-axis from low to high. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834... |
Which date has a Surface of carpet (i)? | CREATE TABLE table_name_44 (date VARCHAR, surface VARCHAR) | SELECT date FROM table_name_44 WHERE surface = "carpet (i)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
5522,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
3,
9,
18884,
13,
4898,
41,
23,
61,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1774,
3274,
96,
1720,
4995,
41,
23,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Game has an Opponent of @ houston rockets? | CREATE TABLE table_12892 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Streak" text
) | SELECT MIN("Game") FROM table_12892 WHERE "Opponent" = '@ houston rockets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3914,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
87,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
2122,
3914,
357,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1741,
3,
9492,
4411,
15721,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
severe chronic renal failure ( estimated glomerular filtration rate [egfr] < 30 ml / min ) | CREATE TABLE table_test_23 (
"id" int,
"previous_mi" bool,
"anemia" bool,
"left_ventricular_ejection_fraction_lvef" int,
"tolerate_gadolinium_contrast_media" bool,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"tolerate_magnet... | SELECT * FROM table_test_23 WHERE renal_disease = 1 OR estimated_glomerular_filtration_rate_egfr < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2773,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2026,
19117,
834,
51,
23,
121,
3,
12840,
40,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
17068,
834,
31695,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
2773,
549,
17444,
427,
23328,
834,
26,
159,
14608,
3274,
209,
4674,
5861,
834,
24422,
4885,
834,
18974,
834,
2206,
834,
15,
122,
89,
52,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is Alexandr Elke's Weight? | CREATE TABLE table_name_59 (weight VARCHAR, name VARCHAR) | SELECT weight FROM table_name_59 WHERE name = "alexandr elke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
9378,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
10457,
1289,
1050,
31,
7,
14230,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1293,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
564,
3274,
96,
138,
994,
232,
52,
3,
15,
40,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
name the total number of top 10 also where the position is 51st | CREATE TABLE table_20988 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT COUNT("Top 10") FROM table_20988 WHERE "Position" = '51st' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4198,
4060,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22481,
335,
8512,
21680,
953,
834,
357,
4198,
4060,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
5553,
7,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Decision has a Visitor of vancouver, and a Score of 5 4? | CREATE TABLE table_46386 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Series" text
) | SELECT "Decision" FROM table_46386 WHERE "Visitor" = 'vancouver' AND "Score" = '5 – 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
519,
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,
96,
2962,
18901,
121,
21680,
953,
834,
4448,
519,
3840,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
2132,
3422,
624,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
755,
3,
104,
314,
31,
1,
-100,
-100,... |
Show the different statuses and the numbers of roller coasters for each status. | CREATE TABLE roller_coaster (Status VARCHAR) | SELECT Status, COUNT(*) FROM roller_coaster GROUP BY Status | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10866,
834,
25500,
49,
41,
134,
17,
144,
302,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
315,
2637,
15,
7,
11,
8,
2302,
13,
10866,
4939,
277,
21,
284,
2637,
5,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
19318,
6,
2847,
17161,
599,
1935,
61,
21680,
10866,
834,
25500,
49,
350,
4630,
6880,
272,
476,
19318,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum Height of the Little Switzerland Tunnel? | CREATE TABLE table_name_49 (
minimum_height VARCHAR,
name_of_the_tunnel VARCHAR
) | SELECT minimum_height FROM table_name_49 WHERE name_of_the_tunnel = "little switzerland tunnel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
2559,
834,
88,
2632,
584,
4280,
28027,
6,
564,
834,
858,
834,
532,
834,
17,
202,
29,
15,
40,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2559,
834,
88,
2632,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
564,
834,
858,
834,
532,
834,
17,
202,
29,
15,
40,
3274,
96,
26192,
3,
7,
15686,
15,
7721,
11916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many reasons were given when A. Willis Robertson (D) resigned? | CREATE TABLE table_1847180_3 (
reason_for_change VARCHAR,
vacator VARCHAR
) | SELECT COUNT(reason_for_change) FROM table_1847180_3 WHERE vacator = "A. Willis Robertson (D)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4177,
20829,
834,
519,
41,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
6,
3,
8938,
1016,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2081,
130,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
864,
739,
834,
1161,
834,
13073,
61,
21680,
953,
834,
2606,
4177,
20829,
834,
519,
549,
17444,
427,
3,
8938,
1016,
3274,
96,
188,
5,
2003,
159,
2715,
739,
41,
308,
61,
121,
1,
-100,
-100,
-100,
-... |
Loss of postponed (rain) rescheduled for may 10 had what record? | CREATE TABLE table_75022 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_75022 WHERE "Loss" = 'postponed (rain) rescheduled for may 10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
2884,
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,
188,
17,
324,
26,
663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
9979,
2884,
549,
17444,
427,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
5950,
5041,
15,
26,
41,
6559,
61,
3,
60,
3992,
1259,
1361,
21,
164,
335,
31,
1,
-100,
-100,
-100,
-100,
-... |
What is the title of the episode that aired on december 12, 1953? | CREATE TABLE table_20318 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by:" text,
"Written by:" text,
"Original air date" text
) | SELECT "Title" FROM table_20318 WHERE "Original air date" = 'December 12, 1953' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
2606,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
10,
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,
382,
155,
109,
121,
21680,
953,
834,
23330,
2606,
549,
17444,
427,
96,
667,
3380,
10270,
799,
833,
121,
3274,
3,
31,
29835,
10440,
23726,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which entrant has 25th as the rank? | CREATE TABLE table_name_22 (
entrant VARCHAR,
rank VARCHAR
) | SELECT entrant FROM table_name_22 WHERE rank = "25th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
3,
295,
3569,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
295,
3569,
65,
944,
189,
38,
8,
11003,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
11003,
3274,
96,
1828,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the highest laps when the grid is 1? | CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR) | SELECT MAX(laps) FROM table_name_94 WHERE grid = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
8478,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
14941,
7,
116,
8,
8634,
19,
209,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
8634,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the candidates for illinois 15 | CREATE TABLE table_72395 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_72395 WHERE "District" = 'Illinois 15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2773,
3301,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14050,
12416,
6203,
121,
21680,
953,
834,
940,
2773,
3301,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
196,
195,
77,
32,
159,
627,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all locations of train stations? | CREATE TABLE station (
LOCATION VARCHAR
) | SELECT DISTINCT LOCATION FROM station | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
301,
5618,
8015,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
3248,
13,
2412,
6991,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
301,
5618,
8015,
21680,
2478,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What home team plays at Princes Park? | CREATE TABLE table_33666 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_33666 WHERE "Venue" = 'princes park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3420,
3539,
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,
19040,
372,
121,
21680,
953,
834,
519,
3420,
3539,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
12298,
2319,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Artist has a Percentage of 11.32%? | CREATE TABLE table_name_79 (artist VARCHAR, percentage VARCHAR) | SELECT artist FROM table_name_79 WHERE percentage = "11.32%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1408,
343,
584,
4280,
28027,
6,
5294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9152,
65,
3,
9,
1915,
3728,
545,
13,
209,
13606,
5406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2377,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
5294,
3274,
96,
10032,
519,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.