NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Find the number of users in each role Plot them as bar chart, and could you list in desc by the the total number ? | CREATE TABLE Images (
image_id INTEGER,
image_alt_text VARCHAR(80),
image_name VARCHAR(40),
image_url VARCHAR(255)
)
CREATE TABLE Functional_Areas (
functional_area_code VARCHAR(15),
parent_functional_area_code VARCHAR(15),
functional_area_description VARCHAR(80)
)
CREATE TABLE Document_Fu... | SELECT role_code, COUNT(*) FROM Users GROUP BY role_code ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15180,
41,
1023,
834,
23,
26,
3,
21342,
17966,
6,
1023,
834,
2920,
834,
6327,
584,
4280,
28027,
599,
2079,
201,
1023,
834,
4350,
584,
4280,
28027,
599,
2445,
201,
1023,
834,
16137,
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,
1075,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
13504,
350,
4630,
6880,
272,
476,
1075,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What human gene has a yeast ortholog of RAD26? | CREATE TABLE table_name_41 (
human_gene__protein_ VARCHAR,
yeast_ortholog VARCHAR
) | SELECT human_gene__protein_ FROM table_name_41 WHERE yeast_ortholog = "rad26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
936,
834,
729,
15,
834,
834,
23083,
834,
584,
4280,
28027,
6,
17937,
834,
127,
189,
32,
2152,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
936,
834,
729,
15,
834,
834,
23083,
834,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
17937,
834,
127,
189,
32,
2152,
3274,
96,
5672,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the cardinalatial title when the elevated is September 18, 1294, and elector is B rard De Got? | CREATE TABLE table_13852 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Cardinalatial title" FROM table_13852 WHERE "Elevated" = 'september 18, 1294' AND "Elector" = 'bérard de got' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
5373,
41,
96,
21543,
127,
121,
1499,
6,
96,
345,
11706,
13,
3879,
121,
1499,
6,
96,
6936,
26,
10270,
9,
10646,
2233,
121,
1499,
6,
96,
427,
10912,
920,
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,
6936,
26,
10270,
9,
10646,
2233,
121,
21680,
953,
834,
22744,
5373,
549,
17444,
427,
96,
427,
10912,
920,
121,
3274,
3,
31,
7,
6707,
18247,
14985,
586,
4240,
31,
3430,
96,
21543,
127,
121,
3274,
3,
31,
115,
15... |
Name the total number of points for for played | CREATE TABLE table_27293285_4 (
points_for VARCHAR
) | SELECT COUNT(points_for) FROM table_27293285_4 WHERE "played" = "played" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3166,
2668,
4433,
834,
591,
41,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
979,
21,
21,
1944,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
834,
1161,
61,
21680,
953,
834,
2555,
3166,
2668,
4433,
834,
591,
549,
17444,
427,
96,
4895,
15,
26,
121,
3274,
96,
4895,
15,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total medals for the nation with 1 gold and 6 bronzes? | CREATE TABLE table_name_52 (total VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT COUNT(total) FROM table_name_52 WHERE gold = 1 AND bronze = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
235,
1947,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
9365,
7,
21,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2045,
3274,
209,
3430,
13467,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year had a version called Wolf Mix? | CREATE TABLE table_39063 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
) | SELECT AVG("Year") FROM table_39063 WHERE "Version" = 'wolf mix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
3891,
41,
96,
5000,
1938,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
1649,
13682,
15,
26,
57,
121,
1499,
6,
96,
476,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
519,
2394,
3891,
549,
17444,
427,
96,
5000,
1938,
121,
3274,
3,
31,
19747,
2153,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What losses did racing de santander, that scored less than 68 goals, had a goal difference of less than 23 and 10 draws? | CREATE TABLE table_14734 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MAX("Losses") FROM table_14734 WHERE "Goals against" < '68' AND "Goal Difference" < '23' AND "Draws" = '10' AND "Club" = 'racing de santander' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
3710,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
1499,
6,
96,
18455,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
24719,
3710,
549,
17444,
427,
96,
6221,
5405,
581,
121,
3,
2,
3,
31,
3651,
31,
3430,
96,
6221,
138,
27187,
121,
3,
2,
3,
31,
2773,
31,
3430,
96,
308,
10... |
Name the League which has a Regular Season of 3rd, atlantic? | CREATE TABLE table_name_86 (league VARCHAR, regular_season VARCHAR) | SELECT league FROM table_name_86 WHERE regular_season = "3rd, atlantic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
29512,
584,
4280,
28027,
6,
1646,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3815,
84,
65,
3,
9,
17116,
7960,
13,
220,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5533,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1646,
834,
9476,
3274,
96,
519,
52,
26,
6,
3,
31767,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What country is Paul Runyan from? | CREATE TABLE table_name_6 (
country VARCHAR,
name VARCHAR
) | SELECT country FROM table_name_6 WHERE name = "paul runyan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
684,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
19,
1838,
7113,
63,
152,
45,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
564,
3274,
96,
102,
9,
83,
661,
63,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the latest year they were nominated? | CREATE TABLE table_name_44 (
year INTEGER,
result VARCHAR
) | SELECT MAX(year) FROM table_name_44 WHERE result = "nominated" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
215,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1251,
215,
79,
130,
150,
1109,
920,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
741,
3274,
96,
3114,
77,
920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What game was developed by Ubisoft Montreal? | CREATE TABLE table_64866 (
"Year" text,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Game" FROM table_64866 WHERE "Developer(s)" = 'ubisoft montreal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
26750,
41,
96,
476,
2741,
121,
1499,
6,
96,
23055,
121,
1499,
6,
96,
13714,
60,
121,
1499,
6,
96,
10146,
2032,
599,
7,
61,
121,
1499,
6,
96,
2962,
162,
8745,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
121,
21680,
953,
834,
4389,
26750,
549,
17444,
427,
96,
2962,
162,
8745,
49,
599,
7,
61,
121,
3274,
3,
31,
8371,
12369,
15826,
138,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the date of the Rome to Florence course? | CREATE TABLE table_name_44 (date VARCHAR, course VARCHAR) | SELECT date FROM table_name_44 WHERE course = "rome to florence" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
5522,
584,
4280,
28027,
6,
503,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
7332,
12,
18726,
503,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
503,
3274,
96,
11956,
12,
3,
28138,
3772,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which country has a $46,426 median family income? | CREATE TABLE table_name_34 (
county VARCHAR,
median_family_income VARCHAR
) | SELECT county FROM table_name_34 WHERE median_family_income = "$46,426" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
5435,
584,
4280,
28027,
6,
15572,
834,
15474,
834,
15759,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
3,
9,
7514,
11071,
591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
15572,
834,
15474,
834,
15759,
3274,
96,
3229,
4448,
6,
591,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest displacement value for the R Fwd Auto Phase1? | CREATE TABLE table_56939 (
"Model" text,
"Power" text,
"Torque @rpm" text,
"Displacement (cc)" real,
"Engine" text
) | SELECT MAX("Displacement (cc)") FROM table_56939 WHERE "Model" = 'r fwd auto phase1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3951,
3288,
41,
96,
24663,
121,
1499,
6,
96,
23553,
121,
1499,
6,
96,
382,
127,
835,
3320,
52,
2028,
121,
1499,
6,
96,
23664,
11706,
297,
41,
75,
75,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
23664,
11706,
297,
41,
75,
75,
61,
8512,
21680,
953,
834,
755,
3951,
3288,
549,
17444,
427,
96,
24663,
121,
3274,
3,
31,
52,
3,
89,
210,
26,
1510,
3944,
536,
31,
1,
-100,
-100,
-100,
-100,
-10... |
How many wins did the player who earned $6,607,562 have? | CREATE TABLE table_35820 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Wins" real
) | SELECT SUM("Wins") FROM table_35820 WHERE "Earnings ( $ )" = '6,607,562' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3449,
1755,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
490,
6,
96,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
519,
3449,
1755,
549,
17444,
427,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
3274,
3,
31,
11071,
3328,
940,
6,
4834,
357,
31,
1,
-100,
-100,
-100,
-100,
... |
what is primary disease and discharge time of subject name heather vineyard? | 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 demographic.diagnosis, demographic.dischtime FROM demographic WHERE demographic.name = "Heather Vineyard" | [
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,
14798,
5,
25930,
4844,
159,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
3845,
144,
760,
29913,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23? | CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR) | SELECT SUM(grid) FROM table_name_7 WHERE time = "+6.355" AND laps > 23 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3496,
26,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
4505,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
180,
6122,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
97,
3274,
96,
1220,
27865,
3769,
121,
3430,
14941,
7,
2490,
1902,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please use a bar chart to show the average price of the rooms in a different decor, and display Y-axis in desc 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 decor, AVG(basePrice) FROM Rooms GROUP BY decor ORDER BY AVG(basePrice) 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,
4469,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
4469,
4674,
11300,
272,
476,
71,
17217,
599,
10925,
345,
4920,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Venue has a Year smaller than 1991, Time larger than 10.29, Competition of mediterranean games, and Event of 4x100 m relay? | CREATE TABLE table_78598 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Time" real
) | SELECT "Venue" FROM table_78598 WHERE "Year" < '1991' AND "Time" > '10.29' AND "Competition" = 'mediterranean games' AND "Event" = '4x100 m relay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
755,
3916,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
3940,
755,
3916,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
4729,
31,
3430,
96,
13368,
121,
2490,
3,
31,
10415,
3166,
31,
3430,
96,
5890,
4995,
4749,
121,
... |
How many different conference records are there for season 2006? | CREATE TABLE table_20319085_2 (
conference_record VARCHAR,
season VARCHAR
) | SELECT COUNT(conference_record) FROM table_20319085_2 WHERE season = 2006 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
11776,
4433,
834,
357,
41,
2542,
834,
60,
7621,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
2542,
3187,
33,
132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
28496,
834,
60,
7621,
61,
21680,
953,
834,
23330,
11776,
4433,
834,
357,
549,
17444,
427,
774,
3274,
3581,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a histogram on what are the ids and names of the companies that operated more than one flight?, and order from high to low by the y axis please. | CREATE TABLE airport (
id int,
City text,
Country text,
IATA text,
ICAO text,
name text
)
CREATE TABLE flight (
id int,
Vehicle_Flight_number text,
Date text,
Pilot text,
Velocity real,
Altitude real,
airport_id int,
company_id int
)
CREATE TABLE operate_company... | SELECT T1.name, T1.id FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id ORDER BY T1.id DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
3,
23,
26,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
27,
19282,
1499,
6,
3,
15038,
667,
1499,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
5411,
23,
26,
21680,
4368,
834,
29179,
6157,
332,
536,
3,
15355,
3162,
3777,
6157,
3,
17,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
29179,
834,
23,
26,
4674,
11300,
272,
476,
332,
541... |
Tell me the games for total less than 4 for swimming 1968 | CREATE TABLE table_4305 (
"Sport" text,
"Years" text,
"Games" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Games" FROM table_4305 WHERE "Total" < '4' AND "Sport" = 'swimming' AND "Years" = '1968' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
3076,
41,
96,
17682,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
121,
21680,
953,
834,
4906,
3076,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
17682,
121,
3274,
3,
31,
7,
210,
23,
635,
53,
31,
3430,
96,
476,
2741,
7,
121,
3274,
3,
3... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart. | 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 HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
Show name, class, and date for all races. | CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
) | SELECT name, class, date FROM race | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
41,
1463,
834,
23,
26,
381,
6,
564,
1499,
6,
1128,
1499,
6,
10259,
381,
6,
215,
834,
26940,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1964,
41,
1964,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
853,
6,
833,
21680,
1964,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What method was there in round 1 when the location was Aruba? | CREATE TABLE table_name_25 (
method VARCHAR,
round VARCHAR,
location VARCHAR
) | SELECT method FROM table_name_25 WHERE round = "1" AND location = "aruba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1573,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1573,
47,
132,
16,
1751,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1751,
3274,
96,
536,
121,
3430,
1128,
3274,
96,
9,
14446,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of call sign that uses a Frequency MHz of 91.1 fm? | CREATE TABLE table_name_33 (call_sign VARCHAR, frequency_mhz VARCHAR) | SELECT call_sign FROM table_name_33 WHERE frequency_mhz = "91.1 fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
16482,
834,
6732,
584,
4280,
28027,
6,
7321,
834,
51,
107,
172,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
580,
1320,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
580,
834,
6732,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
7321,
834,
51,
107,
172,
3274,
96,
1298,
11039,
3,
89,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of the lap with a finish of 24? | CREATE TABLE table_name_60 (laps INTEGER, finish VARCHAR) | SELECT SUM(laps) FROM table_name_60 WHERE finish = "24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
8478,
7,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
14941,
28,
3,
9,
1992,
13,
997,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1992,
3274,
96,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Plot mean meter 100 by grouped by meter 200 as a bar graph | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text... | SELECT meter_200, AVG(meter_100) FROM swimmer GROUP BY meter_200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
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,
3,
4401,
834,
3632,
6,
71,
17217,
599,
4401,
834,
2915,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which player's college is Saskatchewan? | CREATE TABLE table_16383 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_16383 WHERE "College" = 'Saskatchewan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
519,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
2938,
3747,
519,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
134,
9,
7,
8682,
1033,
3877,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percentage of browsers were using Safari during the period in which 31.27% were using Firefox? | CREATE TABLE table_79424 (
"Date" text,
"Internet Explorer" text,
"Firefox" text,
"Safari" text,
"Opera" text
) | SELECT "Safari" FROM table_79424 WHERE "Firefox" = '31.27%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
591,
2266,
41,
96,
308,
342,
121,
1499,
6,
96,
22912,
15762,
121,
1499,
6,
96,
3183,
60,
20400,
121,
1499,
6,
96,
134,
9,
5544,
23,
121,
1499,
6,
96,
667,
883,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9,
5544,
23,
121,
21680,
953,
834,
4440,
591,
2266,
549,
17444,
427,
96,
3183,
60,
20400,
121,
3274,
3,
31,
519,
10917,
6170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis all games y axis team_id, and I want to rank by the names from high to low. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Games, Team_ID FROM basketball_match ORDER BY All_Games DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
23055,
7,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
23055,
7,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which player's runs are 270? | CREATE TABLE table_58152 (
"Runs" text,
"Player" text,
"Opponent" text,
"Venue" text,
"Season" text
) | SELECT "Player" FROM table_58152 WHERE "Runs" = '270' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
26320,
41,
96,
448,
202,
7,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
15,
9,
739,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
121,
21680,
953,
834,
3449,
26320,
549,
17444,
427,
96,
448,
202,
7,
121,
3274,
3,
31,
17485,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the total number of seans team being 7x04 | CREATE TABLE table_25937 (
"Episode" text,
"First broadcast" text,
"Seans team" text,
"Jasons team" text,
"Scores" text
) | SELECT COUNT("Seans team") FROM table_25937 WHERE "Episode" = '7x04' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
4118,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
134,
15,
3247,
372,
121,
1499,
6,
96,
683,
9,
6577,
372,
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,
2847,
17161,
599,
121,
134,
15,
3247,
372,
8512,
21680,
953,
834,
357,
3390,
4118,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
940,
226,
6348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who is the away team when the home team is luton town? | CREATE TABLE table_8275 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Away team" FROM table_8275 WHERE "Home team" = 'luton town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
3072,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
4613,
3072,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
40,
76,
17,
106,
1511,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the D 46 with a D 41 with d 38 ? | CREATE TABLE table_52304 (
"D 49 \u221a" text,
"D 48 \u221a" text,
"D 47 \u221a" text,
"D 46 \u221a" text,
"D 45 \u221a" text,
"D 44 \u221a" text,
"D 43 \u221a" text,
"D 42 \u221a" text,
"D 41 \u221a" text
) | SELECT "D 46 \u221a" FROM table_52304 WHERE "D 41 \u221a" = 'd 38 √' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
23702,
41,
96,
308,
9526,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
4678,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
10635,
3,
2,
76,
357,
2658,
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,
1... | [
3,
23143,
14196,
96,
308,
9668,
3,
2,
76,
357,
2658,
9,
121,
21680,
953,
834,
5373,
23702,
549,
17444,
427,
96,
308,
8798,
3,
2,
76,
357,
2658,
9,
121,
3274,
3,
31,
26,
6654,
3,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times is the venue located in brazil ? | CREATE TABLE table_204_130 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT COUNT(*) FROM table_204_130 WHERE "venue" = 'brazil' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
21448,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
21448,
549,
17444,
427,
96,
15098,
121,
3274,
3,
31,
1939,
702,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Paul McCartney has a Linda McCartney of keyboards? | CREATE TABLE table_name_98 (paul_mccartney VARCHAR, linda_mccartney VARCHAR) | SELECT paul_mccartney FROM table_name_98 WHERE linda_mccartney = "keyboards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
102,
9,
83,
834,
51,
75,
1720,
17,
3186,
584,
4280,
28027,
6,
3,
9230,
9,
834,
51,
75,
1720,
17,
3186,
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,
0,
0... | [
3,
23143,
14196,
2576,
83,
834,
51,
75,
1720,
17,
3186,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
3,
9230,
9,
834,
51,
75,
1720,
17,
3186,
3274,
96,
4397,
1976,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many heats had 2 lanes, a rank above 75, and nationality of Madagascar? | CREATE TABLE table_name_48 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR) | SELECT COUNT(heat) FROM table_name_48 WHERE lane = 2 AND rank > 75 AND nationality = "madagascar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
88,
144,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
8102,
3274,
204,
3430,
11003,
2490,
6374,
3430,
1157,
485,
3274,
96,
11374,
4711,
7,
1720,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
what is minimum age of patients whose ethnicity is white and admission year is greater than or equal to 2121? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.admityear >= "2121" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
2658,
121,
1,
-100,
-100,
-100... |
Name the total episode for runtime of 24:11 | CREATE TABLE table_2105721_1 (episode VARCHAR, run_time VARCHAR) | SELECT COUNT(episode) FROM table_2105721_1 WHERE run_time = "24:11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
3436,
2658,
834,
536,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
661,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
5640,
21,
661... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
15239,
3436,
2658,
834,
536,
549,
17444,
427,
661,
834,
715,
3274,
96,
2266,
10,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the couty for others% 5.8 | CREATE TABLE table_23014476_1 (county VARCHAR, others__percentage VARCHAR) | SELECT county FROM table_23014476_1 WHERE others__percentage = "5.8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
20885,
3959,
834,
536,
41,
13362,
63,
584,
4280,
28027,
6,
717,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
3422,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
13427,
20885,
3959,
834,
536,
549,
17444,
427,
717,
834,
834,
883,
3728,
545,
3274,
96,
9125,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When they were 2-32 what did they score? | CREATE TABLE table_name_71 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_71 WHERE record = "2-32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
79,
130,
10948,
357,
125,
410,
79,
2604,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1368,
3274,
96,
7412,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game held at the As-Salt venue? | CREATE TABLE table_56728 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_56728 WHERE "Venue" = 'as-salt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3708,
2577,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
755,
3708,
2577,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
9,
7,
18,
7,
2920,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the status of the city that has hosted the greatest number of competitions. | CREATE TABLE city (
Status VARCHAR,
City_ID VARCHAR
)
CREATE TABLE farm_competition (
Host_city_ID VARCHAR
) | SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
19318,
584,
4280,
28027,
6,
896,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
834,
287,
4995,
4749,
41,
1546,
7,
17,
834,
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,
332,
5411,
134,
17,
144,
302,
21680,
690,
6157,
332,
536,
3,
15355,
3162,
3797,
834,
287,
4995,
4749,
6157,
332,
357,
9191,
332,
5411,
254,
485,
834,
4309,
3274,
332,
4416,
566,
3481,
834,
6726,
834,
4309,
350,
4630... |
What is Source Version, when License is LGPL or MPL? | CREATE TABLE table_name_42 (source_version VARCHAR, license VARCHAR) | SELECT source_version FROM table_name_42 WHERE license = "lgpl or mpl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
7928,
834,
8674,
584,
4280,
28027,
6,
3344,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9149,
8011,
6,
116,
16452,
19,
13444,
5329,
42,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1391,
834,
8674,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
3344,
3274,
96,
40,
122,
102,
40,
42,
3,
1167,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which party has the most membership ? | CREATE TABLE table_203_407 (
id number,
"name" text,
"party" text,
"province" text,
"term expires" number,
"years in office" text
) | SELECT "party" FROM table_203_407 GROUP BY "party" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2445,
940,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
1409,
2494,
565,
121,
1499,
6,
96,
1987,
8982,
15,
7,
121,
381,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8071,
121,
21680,
953,
834,
23330,
834,
2445,
940,
350,
4630,
6880,
272,
476,
96,
8071,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53? | CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR) | SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "October 30, 2007 15:53" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3747,
5062,
4241,
834,
927,
41,
6633,
24063,
7,
584,
4280,
28027,
6,
414,
834,
834,
76,
17,
75,
834,
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,
1,
1,
0... | [
3,
23143,
14196,
628,
24063,
7,
21680,
953,
834,
2884,
3747,
5062,
4241,
834,
927,
549,
17444,
427,
414,
834,
834,
76,
17,
75,
834,
3274,
96,
28680,
11558,
4101,
627,
10,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many points were made in game 70? | CREATE TABLE table_16864968_8 (points VARCHAR, game VARCHAR) | SELECT COUNT(points) FROM table_16864968_8 WHERE game = 70 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3840,
3647,
3651,
834,
927,
41,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
130,
263,
16,
467,
2861,
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,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
2938,
3840,
3647,
3651,
834,
927,
549,
17444,
427,
467,
3274,
2861,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the Opponent in the final after 1983 with an Outcome of runner-up? | CREATE TABLE table_name_48 (
opponent_in_the_final VARCHAR,
outcome VARCHAR,
date VARCHAR
) | SELECT opponent_in_the_final FROM table_name_48 WHERE outcome = "runner-up" AND date > 1983 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
833,
2490,
15041,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which First has a Surname of searle? | CREATE TABLE table_5662 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
) | SELECT "First" FROM table_5662 WHERE "Surname" = 'searle' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
4056,
41,
96,
134,
450,
4350,
121,
1499,
6,
96,
25171,
121,
1499,
6,
96,
308,
5,
667,
5,
279,
535,
1499,
6,
96,
279,
144,
7,
121,
1499,
6,
96,
11889,
2381,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
121,
21680,
953,
834,
4834,
4056,
549,
17444,
427,
96,
134,
450,
4350,
121,
3274,
3,
31,
7,
2741,
109,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what district is the incumbent Charles Fisher? | CREATE TABLE table_2668336_17 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_2668336_17 WHERE incumbent = "Charles Fisher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
3420,
834,
2517,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
3939,
19,
8,
28406,
5417,
14639,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
2688,
3651,
519,
3420,
834,
2517,
549,
17444,
427,
28406,
3274,
96,
18947,
965,
14639,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2? | CREATE TABLE table_41982 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
) | SELECT "Total" FROM table_41982 WHERE "Set 4" = 'na' AND "Score" = '3-0' AND "Set 2" = '26-24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
3916,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
220,
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,
3696,
1947,
121,
21680,
953,
834,
4853,
3916,
357,
549,
17444,
427,
96,
17175,
3,
20364,
3274,
3,
31,
29,
9,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
22773,
31,
3430,
96,
17175,
204,
121,
3274,
3,
31,
2688... |
what is the total number of polls published by the company gis xxi ? | CREATE TABLE table_204_639 (
id number,
"poll company" text,
"source" text,
"publication date" text,
"psuv" number,
"opposition" number,
"undecided" number
) | SELECT COUNT(*) FROM table_204_639 WHERE "poll company" = 'gis xxi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
3288,
41,
3,
23,
26,
381,
6,
96,
3233,
40,
349,
121,
1499,
6,
96,
7928,
121,
1499,
6,
96,
15727,
257,
833,
121,
1499,
6,
96,
102,
7,
76,
208,
121,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
948,
3288,
549,
17444,
427,
96,
3233,
40,
349,
121,
3274,
3,
31,
122,
159,
3,
19230,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose days of hospital stay is greater than 6 and lab test name is asparate aminotransferase (ast)? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "6" AND lab.label = "Asparate Aminotransferase (AST)" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many positions did the player from Spring High School play? | CREATE TABLE table_11677100_4 (
position VARCHAR,
school VARCHAR
) | SELECT COUNT(position) FROM table_11677100_4 WHERE school = "Spring High school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
4013,
2915,
834,
591,
41,
1102,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4655,
410,
8,
1959,
45,
4328,
1592,
1121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
20159,
4013,
2915,
834,
591,
549,
17444,
427,
496,
3274,
96,
14562,
53,
1592,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which year did the World indoor championships gave a position of 3rd? | CREATE TABLE table_name_12 (
year INTEGER,
competition VARCHAR,
position VARCHAR
) | SELECT SUM(year) FROM table_name_12 WHERE competition = "world indoor championships" AND position = "3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
215,
3,
21342,
17966,
6,
2259,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
410,
8,
1150,
5297,
10183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
2259,
3274,
96,
7276,
5297,
10183,
7,
121,
3430,
1102,
3274,
96,
519,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6? | CREATE TABLE table_39402 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Pick #") FROM table_39402 WHERE "Overall" = '184' AND "Round" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2445,
357,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
3288,
2445,
357,
549,
17444,
427,
96,
23847,
1748,
121,
3274,
3,
31,
25987,
31,
3430,
96,
448,
32,
1106,
121,
2490,
3,
31,
948,
31,
1,
-100,
-100,
-100,
... |
When was Southern Vermont College founded? | CREATE TABLE table_23892 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment (2009)" real,
"Founded" real
) | SELECT MAX("Founded") FROM table_23892 WHERE "School" = 'Southern Vermont College' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3914,
357,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
599,
7,
61,
121,
1499,
6,
96,
25716,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
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,
121,
20100,
8512,
21680,
953,
834,
2773,
3914,
357,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
22081,
49,
29,
18878,
1888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are Andrew McNamara's colors? | CREATE TABLE table_23543 (
"Starting price" text,
"Number" real,
"Name" text,
"Age" real,
"Weight (st, lb)" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Colours" text
) | SELECT "Colours" FROM table_23543 WHERE "Jockey" = 'Andrew McNamara' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
4906,
41,
96,
7681,
1222,
594,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
1326,
2632,
41,
7,
17,
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,
9939,
1211,
7,
121,
21680,
953,
834,
25174,
4906,
549,
17444,
427,
96,
683,
3961,
15,
63,
121,
3274,
3,
31,
7175,
60,
210,
26842,
9,
1635,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose admission type is urgent and procedure short title is abdomen artery incision? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.short_title = "Abdomen artery incision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is School, when Year is less than 2013, and when Event is '100 Breaststroke'? | CREATE TABLE table_name_65 (
school VARCHAR,
year VARCHAR,
event VARCHAR
) | SELECT school FROM table_name_65 WHERE year < 2013 AND event = "100 breaststroke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
496,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1121,
6,
116,
2929,
19,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
215,
3,
2,
2038,
3430,
605,
3274,
96,
2915,
6748,
24790,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is Wayne Day's crew chief? | CREATE TABLE table_24636 (
"Team" text,
"Car(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
) | SELECT "Crew Chief" FROM table_24636 WHERE "Listed Owner(s)" = 'Wayne Day' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4448,
3420,
41,
96,
18699,
121,
1499,
6,
96,
6936,
599,
7,
61,
121,
1499,
6,
96,
4663,
121,
490,
6,
96,
20982,
52,
599,
7,
61,
121,
1499,
6,
96,
7855,
51,
1208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
210,
5116,
121,
21680,
953,
834,
357,
4448,
3420,
549,
17444,
427,
96,
28886,
13307,
599,
7,
61,
121,
3274,
3,
31,
518,
21993,
1430,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the italian voice actor for dirk fenselau | CREATE TABLE table_14960574_6 (italian_voice_actor VARCHAR, german_voice_actor VARCHAR) | SELECT italian_voice_actor FROM table_14960574_6 WHERE german_voice_actor = "Dirk Fenselau" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4314,
3076,
4581,
834,
948,
41,
155,
9,
9928,
834,
23235,
834,
9,
5317,
584,
4280,
28027,
6,
13692,
834,
23235,
834,
9,
5317,
584,
4280,
28027,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24168,
834,
23235,
834,
9,
5317,
21680,
953,
834,
2534,
4314,
3076,
4581,
834,
948,
549,
17444,
427,
13692,
834,
23235,
834,
9,
5317,
3274,
96,
308,
12546,
4163,
27977,
402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show all artist names who didn't have an exhibition in 2004. | CREATE TABLE exhibition (
artist_id VARCHAR,
year VARCHAR
)
CREATE TABLE artist (
name VARCHAR
) | SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
2377,
834,
23,
26,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
564,
584,
4280,
28027,
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,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
2377,
262,
4,
30416,
3,
23143,
14196,
332,
4416,
4350,
21680,
4473,
6157,
332,
536,
3,
15355,
3162,
2377,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
23,
26,
3274,
332,
4416,
1408,
343,
834,
23,
26,... |
What NHL team does Rob White play on? | CREATE TABLE table_name_45 (nhl_team VARCHAR, player VARCHAR) | SELECT nhl_team FROM table_name_45 WHERE player = "rob white" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
22313,
372,
405,
5376,
1945,
577,
30,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1959,
3274,
96,
5840,
872,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the game when North Melbourne was the home team? | CREATE TABLE table_name_35 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_35 WHERE home_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
116,
1117,
9396,
47,
8,
234,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
234,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of patients admitted before 2174 who were tested for lactate dehydrogenase, pleural. | 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.admityear < "2174" AND lab.label = "Lactate Dehydrogenase, Pleural" | [
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,... |
what is the time/retired for driver richard attwood? | CREATE TABLE table_55694 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_55694 WHERE "Driver" = 'richard attwood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3951,
591,
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,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
3769,
3951,
591,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
3723,
986,
44,
17,
2037,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
After week 11, what was the Result on December 13, 1964? | CREATE TABLE table_name_49 (
result VARCHAR,
week VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_49 WHERE week > 11 AND date = "december 13, 1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
621,
471,
9694,
125,
47,
8,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
471,
2490,
850,
3430,
833,
3274,
96,
221,
75,
18247,
10670,
18969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result in the election where the incumbent was first elected in 1942? | CREATE TABLE table_1342149_43 (result VARCHAR, first_elected VARCHAR) | SELECT result FROM table_1342149_43 WHERE first_elected = "1942" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2658,
3647,
834,
4906,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
16,
8,
4356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
23747,
2658,
3647,
834,
4906,
549,
17444,
427,
166,
834,
19971,
3274,
96,
2294,
4165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Catalog was released in Germany? | CREATE TABLE table_name_47 (
catalog VARCHAR,
region VARCHAR
) | SELECT catalog FROM table_name_47 WHERE region = "germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
10173,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
22424,
47,
1883,
16,
3434,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10173,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1719,
3274,
96,
1304,
348,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is maximum age of patients whose admission location is emergency room admit and primary disease is newborn? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "NEWBORN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
41... |
return me the number of the keywords related to ' H. V. Jagadish ' . | CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE conference (
cid int,
homepage varchar,
... | SELECT COUNT(DISTINCT (keyword.keyword)) FROM author, keyword, publication, publication_keyword, writes WHERE author.name = 'H. V. Jagadish' AND publication_keyword.kid = keyword.kid AND publication.pid = publication_keyword.pid AND writes.aid = author.aid AND writes.pid = publication.pid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3303,
834,
15727,
257,
41,
410,
16,
17,
6,
3,
12417,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
22844,
3,
4331,
4059,
6,
3,
354,
23,
26,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
41,
4397,
6051,
5,
4397,
6051,
61,
61,
21680,
2291,
6,
15693,
6,
5707,
6,
5707,
834,
4397,
6051,
6,
11858,
549,
17444,
427,
2291,
5,
4350,
3274,
3,
31,
566,
5,
584,
5,
21520,
... |
how many hours has passed since the last time patient 025-44842 stayed in ward 925 on their current hospital visit? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientuni... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '025-44842' AND patient.wardid = 925 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
61,
216... |
Who was the director that had a film titled 'Floating Life'? | CREATE TABLE table_name_5 (
director VARCHAR,
film_title_used_in_nomination VARCHAR
) | SELECT director FROM table_name_5 WHERE film_title_used_in_nomination = "floating life" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
2090,
584,
4280,
28027,
6,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
3274,
96,
12660,
53,
280,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of the game whose first star was O. Pavelec? | CREATE TABLE table_29600 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"First Star" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_29600 WHERE "First Star" = 'O. Pavelec' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
6007,
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,
25171,
2042,
121,
1499,
6,
96,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3166,
6007,
549,
17444,
427,
96,
25171,
2042,
121,
3274,
3,
31,
667,
5,
27196,
15,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the average days of hospital stay of patients who are 49 years old or older than that. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.age >= "49" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
2490,
2423,
96,
3647,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many interviews were there for Miss Virginia? | CREATE TABLE table_321 (
"Country" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
) | SELECT COUNT("Interview") FROM table_321 WHERE "Country" = 'Virginia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2658,
41,
96,
10628,
651,
121,
1499,
6,
96,
17555,
4576,
121,
1499,
6,
96,
134,
210,
603,
7628,
121,
1499,
6,
96,
427,
1926,
53,
350,
9197,
121,
1499,
6,
96,
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,
2847,
17161,
599,
121,
17555,
4576,
8512,
21680,
953,
834,
519,
2658,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
21031,
122,
77,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of phone_number and commission_pct , and I want to display from high to low by the PHONE_NUMBER. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | SELECT PHONE_NUMBER, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8023,
7894,
834,
567,
6122,
12920,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,... |
Name the number for florida air academy | CREATE TABLE table_25360865_1 (
_number VARCHAR,
last_school VARCHAR
) | SELECT _number FROM table_25360865_1 WHERE last_school = "Florida Air Academy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3420,
4018,
4122,
834,
536,
41,
3,
834,
5525,
1152,
584,
4280,
28027,
6,
336,
834,
6646,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
21,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
5525,
1152,
21680,
953,
834,
1828,
3420,
4018,
4122,
834,
536,
549,
17444,
427,
336,
834,
6646,
3274,
96,
11251,
4055,
9,
1761,
4702,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest silver from Vietnam? | CREATE TABLE table_name_7 (
silver INTEGER,
nation VARCHAR
) | SELECT MIN(silver) FROM table_name_7 WHERE nation = "vietnam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
4294,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
4294,
45,
8940,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2982,
3274,
96,
5914,
17,
13363,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the seed for lyon (32) was DNQ? | CREATE TABLE table_20711545_1 (seed INTEGER, lyon__32_ VARCHAR) | SELECT MAX(seed) FROM table_20711545_1 WHERE lyon__32_ = "DNQ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
15660,
2128,
834,
536,
41,
7,
6958,
3,
21342,
17966,
6,
3,
120,
106,
834,
834,
2668,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6677,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
6958,
61,
21680,
953,
834,
26426,
15660,
2128,
834,
536,
549,
17444,
427,
3,
120,
106,
834,
834,
2668,
834,
3274,
96,
12145,
2247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of episodes directed by jeff mccracken ? | CREATE TABLE table_204_840 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text,
"prod. code" text
) | SELECT COUNT(*) FROM table_204_840 WHERE "directed by" = 'jeff mccracken' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
26311,
41,
3,
23,
26,
381,
6,
96,
29,
32,
5,
16,
2,
29,
10833,
7,
121,
381,
6,
96,
29,
32,
5,
16,
2,
29,
9476,
121,
381,
6,
96,
21869,
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,
1935,
61,
21680,
953,
834,
26363,
834,
26311,
549,
17444,
427,
96,
22955,
57,
121,
3274,
3,
31,
1924,
89,
89,
3,
51,
75,
2935,
4695,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many categories of first elected are in Washington 4 district? | CREATE TABLE table_1805191_48 (first_elected VARCHAR, district VARCHAR) | SELECT COUNT(first_elected) FROM table_1805191_48 WHERE district = "Washington 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
5553,
4729,
834,
3707,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5897,
13,
166,
8160,
33,
16,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
19971,
61,
21680,
953,
834,
20829,
5553,
4729,
834,
3707,
549,
17444,
427,
3939,
3274,
96,
518,
3198,
6029,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Prize amount for the Irish Derby Race? | CREATE TABLE table_name_87 (prize__ INTEGER, race VARCHAR) | SELECT MIN(prize__) AS £k_ FROM table_name_87 WHERE race = "irish derby" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
2246,
776,
834,
834,
3,
21342,
17966,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11329,
866,
21,
8,
7262,
21485,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2246,
776,
834,
834,
61,
6157,
3996,
157,
834,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1964,
3274,
96,
24804,
107,
74,
969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When rudolph kleberg (d) is the successor is the reason for vacancy? | CREATE TABLE table_2417445_4 (
reason_for_vacancy VARCHAR,
successor VARCHAR
) | SELECT reason_for_vacancy FROM table_2417445_4 WHERE successor = "Rudolph Kleberg (D)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
27693,
2128,
834,
591,
41,
1053,
834,
1161,
834,
29685,
584,
4280,
28027,
6,
22261,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
17237,
23589,
3,
943... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1053,
834,
1161,
834,
29685,
21680,
953,
834,
2266,
27693,
2128,
834,
591,
549,
17444,
427,
22261,
3274,
96,
17137,
26,
23589,
19549,
2235,
41,
308,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the smallest positioned with more than 9 played? | CREATE TABLE table_5248 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MIN("Position") FROM table_5248 WHERE "Played" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3707,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
5373,
3707,
549,
17444,
427,
96,
15800,
15,
26,
121,
2490,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Goals Conceded (GC) that has a Draw (PE) larger than 2, and a Goals Scored (GF) larger than 19? | CREATE TABLE table_name_33 (
goals_conceded__gc_ INTEGER,
draw__pe_ VARCHAR,
goals_scored__gf_ VARCHAR
) | SELECT MAX(goals_conceded__gc_) FROM table_name_33 WHERE draw__pe_ > 2 AND goals_scored__gf_ > 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1766,
834,
11620,
221,
26,
834,
834,
122,
75,
834,
3,
21342,
17966,
6,
3314,
834,
834,
855,
834,
584,
4280,
28027,
6,
1766,
834,
3523,
1271,
834,
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,
4800,
4,
599,
839,
5405,
834,
11620,
221,
26,
834,
834,
122,
75,
834,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
3314,
834,
834,
855,
834,
2490,
204,
3430,
1766,
834,
3523,
1271,
834,
834,
122,
89,
834... |
What's the average Top-25, that has an Events that's smaller than 12, and has a Top-5 that is larger than 0? | CREATE TABLE table_name_60 (top_25 INTEGER, events VARCHAR, top_5 VARCHAR) | SELECT AVG(top_25) FROM table_name_60 WHERE events < 12 AND top_5 > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
2916,
834,
1828,
3,
21342,
17966,
6,
984,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1348,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
984,
3,
2,
586,
3430,
420,
834,
755,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the team when the college is virginia tech? | CREATE TABLE table_63733 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Team" FROM table_63733 WHERE "College" = 'virginia tech' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4552,
519,
41,
96,
345,
3142,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
3891,
4552,
519,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
5771,
122,
77,
23,
9,
5256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown | CREATE TABLE table_66996 (
"Stage (Winner)" text,
"General Classification Yellow Jersey" text,
"Mountains Classification Green Jersey" text,
"Points Classification Navy Blue Jersey" text,
"Intermediate Sprints Classification Red Jersey" text,
"Team Classification" text
) | SELECT "Points Classification Navy Blue Jersey" FROM table_66996 WHERE "General Classification Yellow Jersey" = 'graeme brown' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3264,
948,
41,
96,
134,
6505,
41,
18455,
687,
61,
121,
1499,
6,
96,
20857,
4501,
2420,
12035,
5092,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
4501,
2420,
1862,
5092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22512,
7,
4501,
2420,
10662,
2419,
5092,
121,
21680,
953,
834,
3539,
3264,
948,
549,
17444,
427,
96,
20857,
4501,
2420,
12035,
5092,
121,
3274,
3,
31,
3484,
15,
526,
4216,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell the opponent of eastbourne with score of 6–0, 5–7, 3–6 | CREATE TABLE table_name_59 (opponent VARCHAR, tournament VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_59 WHERE tournament = "eastbourne" AND score = "6–0, 5–7, 3–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
32,
102,
9977,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
8,
15264,
13,
5727,
26255... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
5892,
3274,
96,
11535,
26255,
121,
3430,
2604,
3274,
96,
948,
104,
632,
6,
305,
104,
940,
6,
220,
104,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total bronze medals won, with 0 gold medals and in 5th place? | CREATE TABLE table_7107 (
"Gold Medals" real,
"Silver Medals" real,
"Bronze Medals" real,
"4th Place" real,
"5th Place" real,
"Appearances" real
) | SELECT COUNT("Bronze Medals") FROM table_7107 WHERE "Gold Medals" = '0' AND "5th Place" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
4560,
41,
96,
23576,
20002,
7,
121,
490,
6,
96,
134,
173,
624,
20002,
7,
121,
490,
6,
96,
22780,
29,
776,
20002,
7,
121,
490,
6,
96,
591,
189,
3399,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22780,
29,
776,
20002,
7,
8512,
21680,
953,
834,
4450,
4560,
549,
17444,
427,
96,
23576,
20002,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
755,
189,
3399,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
... |
For a record of 3-2, what team was home? | CREATE TABLE table_name_31 (
home VARCHAR,
record VARCHAR
) | SELECT home FROM table_name_31 WHERE record = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
234,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
3,
9,
1368,
13,
3,
21160,
6,
125,
372,
47,
234,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1368,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the horsepower of the car with the largest accelerate? | CREATE TABLE CARS_DATA (horsepower VARCHAR, accelerate VARCHAR) | SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
205,
25210,
834,
27807,
41,
107,
127,
7,
15,
6740,
584,
4280,
28027,
6,
16845,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
28906,
13,
8,
443,
28,
8,
2015,
16845,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
332,
5411,
107,
127,
7,
15,
6740,
21680,
205,
25210,
834,
27807,
6157,
332,
536,
4674,
11300,
272,
476,
332,
5411,
6004,
400,
2206,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the largest number in attendance when the record is 1-1-0? | CREATE TABLE table_name_63 (
attendance INTEGER,
record VARCHAR
) | SELECT MAX(attendance) FROM table_name_63 WHERE record = "1-1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
11364,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
381,
16,
11364,
116,
8,
1368,
19,
8218,
1893... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1368,
3274,
96,
536,
18,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give the country id and corresponding count of cities in each country. | CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
country_id text
)
CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE countries (
... | SELECT country_id, COUNT(*) FROM locations GROUP BY country_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
1128,
834,
23,
26,
381,
6,
2815,
834,
9,
26,
12039,
1499,
6,
19085,
834,
4978,
1499,
6,
690,
1499,
6,
538,
834,
1409,
2494,
565,
1499,
6,
684,
834,
23,
26,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
684,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
3248,
350,
4630,
6880,
272,
476,
684,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the fastest lap for round 3 | CREATE TABLE table_27536 (
"Round" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Fastest Lap" FROM table_27536 WHERE "Round" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
3420,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
25988,
3420,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Goals against have a Club of cd castell n, and Points smaller than 24? | CREATE TABLE table_name_15 (
goals_against INTEGER,
club VARCHAR,
points VARCHAR
) | SELECT AVG(goals_against) FROM table_name_15 WHERE club = "cd castellón" AND points < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1766,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17916,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1886,
3274,
96,
75,
26,
1990,
6714,
15742,
121,
3430,
979,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Why was a seat left open fo Connecticut at-large? | CREATE TABLE table_224844_4 (
reason_for_change VARCHAR,
district VARCHAR
) | SELECT reason_for_change FROM table_224844_4 WHERE district = "Connecticut At-large" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3707,
3628,
834,
591,
41,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1615,
47,
3,
9,
3143,
646,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1053,
834,
1161,
834,
13073,
21680,
953,
834,
2884,
3707,
3628,
834,
591,
549,
17444,
427,
3939,
3274,
96,
25772,
23,
3044,
486,
18,
15599,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.