NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what's the state with highest point being mount katahdin | CREATE TABLE table_19169 (
"State" text,
"Highest point" text,
"Highest elevation" text,
"Lowest point" text,
"Lowest elevation" text,
"Mean elevation" text
) | SELECT "State" FROM table_19169 WHERE "Highest point" = 'Mount Katahdin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
27096,
41,
96,
134,
4748,
121,
1499,
6,
96,
21417,
222,
500,
121,
1499,
6,
96,
21417,
222,
16417,
121,
1499,
6,
96,
434,
32,
12425,
500,
121,
1499,
6,
96,
434,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
2294,
27096,
549,
17444,
427,
96,
21417,
222,
500,
121,
3274,
3,
31,
329,
32,
202,
17,
7482,
9,
107,
2644,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the writer of the episode with a production code of 5aky04? | CREATE TABLE table_74033 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT "Written by" FROM table_74033 WHERE "Production code" = '5AKY04' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2445,
4201,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
940,
2445,
4201,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
755,
12396,
476,
6348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the weight division for the fight that ended in a TKO (strikes)? | CREATE TABLE table_name_55 (weight_division VARCHAR, method VARCHAR) | SELECT weight_division FROM table_name_55 WHERE method = "tko (strikes)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
9378,
834,
26,
23,
6610,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1293,
4889,
21,
8,
2870,
24,
3492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1293,
834,
26,
23,
6610,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1573,
3274,
96,
17,
157,
32,
41,
7,
1788,
7735,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the total number of attendance for result of l 18-6 | CREATE TABLE table_name_3 (attendance VARCHAR, result VARCHAR) | SELECT COUNT(attendance) FROM table_name_3 WHERE result = "l 18-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
15116,
663,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
792,
381,
13,
11364,
21,
741,
13,
3,
40,
507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15116,
663,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
741,
3274,
96,
40,
507,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009? | CREATE TABLE table_22308881_2 (
in_county_tuition_per_credit_hour__fall_2009_ VARCHAR,
college VARCHAR
) | SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = "Mercer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
1458,
10927,
536,
834,
357,
41,
16,
834,
13362,
63,
834,
17,
76,
4749,
834,
883,
834,
15547,
834,
5842,
834,
834,
2857,
834,
16660,
834,
584,
4280,
28027,
6,
1900,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16,
834,
13362,
63,
834,
17,
76,
4749,
834,
883,
834,
15547,
834,
5842,
834,
834,
2857,
834,
16660,
834,
21680,
953,
834,
2884,
1458,
10927,
536,
834,
357,
549,
17444,
427,
1900,
3274,
96,
18180,
49,
121,
1,
-100,
... |
Who constructed the car with a grid over 19 that retired due to suspension? | CREATE TABLE table_name_49 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) | SELECT constructor FROM table_name_49 WHERE grid > 19 AND time_retired = "suspension" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
15982,
5317,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
8520,
8,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
8634,
2490,
957,
3430,
97,
834,
10682,
1271,
3274,
96,
7,
302,
3208,
1938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Termination of Mission date for Marsha E. Barnes, the Ambassador Extraordinary and Plenipotentiary? | CREATE TABLE table_80246 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
) | SELECT "Termination of Mission" FROM table_80246 WHERE "Title" = 'ambassador extraordinary and plenipotentiary' AND "Representative" = 'marsha e. barnes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
357,
4448,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
10572,
5277,
257,
13,
14301,
7220,
7,
121,
1499,
6,
96,
11679,
77,
257,
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,
11679,
77,
257,
13,
8960,
121,
21680,
953,
834,
2079,
357,
4448,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
14303,
7,
7,
7923,
9468,
11,
3,
102,
26532,
3013,
295,
23,
1208,
31,
3430,
96,
1649,
126... |
What is the value in 1990 when it is A in 1989, 1985, and 1993? | CREATE TABLE table_name_45 (Id VARCHAR) | SELECT 1990 FROM table_name_45 WHERE 1989 = "a" AND 1985 = "a" AND 1993 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
16,
5541,
116,
34,
19,
71,
16,
9975,
6,
13200,
6,
11,
8388,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5541,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
9975,
3274,
96,
9,
121,
3430,
13200,
3274,
96,
9,
121,
3430,
8388,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which club had fewer than 29 goals against and a difference smaller than 26? | CREATE TABLE table_name_47 (
club VARCHAR,
goals_against VARCHAR,
goal_difference VARCHAR
) | SELECT club FROM table_name_47 WHERE goals_against < 29 AND goal_difference < 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1886,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
3,
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,
1886,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3,
2,
2838,
3430,
1288,
834,
26,
99,
11788,
3,
2,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the rank for Mar 17 when the April 21 rank is 10? | CREATE TABLE table_name_96 (
mar_17 VARCHAR,
april_21 VARCHAR
) | SELECT mar_17 FROM table_name_96 WHERE april_21 = "10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
3157,
834,
2517,
584,
4280,
28027,
6,
3,
9,
2246,
40,
834,
2658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
21,
1571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
834,
2517,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3,
9,
2246,
40,
834,
2658,
3274,
96,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of medicaid insurance patients who had urine creatinine lab test. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Medicaid" AND lab.label = "Creatinine, Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the total when the finish was t44? | CREATE TABLE table_name_99 (
total VARCHAR,
finish VARCHAR
) | SELECT total FROM table_name_99 WHERE finish = "t44" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
792,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
116,
8,
1992,
47,
3,
17,
3628,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1992,
3274,
96,
17,
3628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which country has a population density of 50.3? | CREATE TABLE table_name_46 (
country VARCHAR,
population_density__per_km²_ VARCHAR
) | SELECT country FROM table_name_46 WHERE population_density__per_km²_ = "50.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
684,
584,
4280,
28027,
6,
2074,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2074,
834,
537,
7,
485,
834,
834,
883,
834,
5848,
357,
834,
3274,
96,
755,
19997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which ground's round was 33? | CREATE TABLE table_53595 (
"Date" text,
"Tournament" text,
"Round" text,
"Ground" text,
"Opponent" text,
"Score 1" text
) | SELECT "Ground" FROM table_53595 WHERE "Round" = '33' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2469,
3301,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
517,
7775,
121,
1499,
6,
96,
667,
102,
997... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
7775,
121,
21680,
953,
834,
755,
2469,
3301,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
4201,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score when the tie no was 12? | CREATE TABLE table_name_72 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_72 WHERE tie_no = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7,
9022,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
8,
6177,
150,
47,
586,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)? | CREATE TABLE table_name_59 (
nhl_team VARCHAR,
college_junior_club_team__league_ VARCHAR
) | SELECT nhl_team FROM table_name_59 WHERE college_junior_club_team__league_ = "mississauga icedogs (ohl)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
3274,
96,
11502,
159,
7,
9,
12204,
3,
867,
10169,
7,
41,
32,
... |
How many production codes were there for the episode that aired on November 15? | CREATE TABLE table_25691838_11 (production_code VARCHAR, original_airdate VARCHAR) | SELECT COUNT(production_code) FROM table_25691838_11 WHERE original_airdate = "November 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3951,
2606,
3747,
834,
2596,
41,
20762,
834,
4978,
584,
4280,
28027,
6,
926,
834,
2256,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
999,
5633,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20762,
834,
4978,
61,
21680,
953,
834,
1828,
3951,
2606,
3747,
834,
2596,
549,
17444,
427,
926,
834,
2256,
5522,
3274,
96,
28635,
627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find all the instruments ever used by the musician with last name "Heilo"? | CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR) | SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7778,
41,
3348,
5058,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4483,
41,
23,
26,
584,
4280,
28027,
6,
336,
4350,
584,
4280,
28027,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5009,
21680,
7778,
6157,
332,
536,
3,
15355,
3162,
4483,
6157,
332,
357,
9191,
332,
5411,
3348,
5058,
23,
26,
3274,
332,
4416,
23,
26,
549,
17444,
427,
332,
4416,
5064,
4350,
3274,
96,
3845,
173,
32,
121,
1,
-100,
... |
what's the denomination with year being 2008 and reverse being football | CREATE TABLE table_17596 (
"Year" real,
"Denomination" text,
"Alloy" text,
"Reverse" text,
"Diameter" text,
"Weight" text,
"Obverse" text,
"Mintage" real,
"Series" text
) | SELECT "Denomination" FROM table_17596 WHERE "Year" = '2008' AND "Reverse" = 'Football' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3072,
4314,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
35,
32,
14484,
121,
1499,
6,
96,
6838,
32,
63,
121,
1499,
6,
96,
1649,
7583,
121,
1499,
6,
96,
23770,
4401,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
35,
32,
14484,
121,
21680,
953,
834,
536,
3072,
4314,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
16128,
31,
3430,
96,
1649,
7583,
121,
3274,
3,
31,
371,
32,
32,
17,
3184,
31,
1,
-100,
-100,
-100,... |
What was the team record when the team was Cleveland? | CREATE TABLE table_17288861_5 (record VARCHAR, team VARCHAR) | SELECT record FROM table_17288861_5 WHERE team = "Cleveland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
10927,
4241,
834,
755,
41,
60,
7621,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
372,
1368,
116,
8,
372,
47,
13160,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
27156,
10927,
4241,
834,
755,
549,
17444,
427,
372,
3274,
96,
254,
4563,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is every Under-15 if Under-11 is Reeham Sedky? | CREATE TABLE table_26368963_2 (
under_15 VARCHAR,
under_11 VARCHAR
) | SELECT under_15 FROM table_26368963_2 WHERE under_11 = "Reeham Sedky" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3420,
3914,
3891,
834,
357,
41,
365,
834,
1808,
584,
4280,
28027,
6,
365,
834,
2596,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
334,
3526,
10106,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
365,
834,
1808,
21680,
953,
834,
2688,
3420,
3914,
3891,
834,
357,
549,
17444,
427,
365,
834,
2596,
3274,
96,
1649,
15,
1483,
679,
26,
3781,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the title of the episode shown before unpaid debts ? | CREATE TABLE table_203_349 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text,
"production\ncode" text,
"u.s. viewers\n(millions)" number
) | SELECT "title" FROM table_203_349 WHERE "original air date" < (SELECT "original air date" FROM table_203_349 WHERE "title" = '"unpaid debts"') ORDER BY "original air date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3647,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21869,
121,
21680,
953,
834,
23330,
834,
519,
3647,
549,
17444,
427,
96,
21878,
799,
833,
121,
3,
2,
41,
23143,
14196,
96,
21878,
799,
833,
121,
21680,
953,
834,
23330,
834,
519,
3647,
549,
17444,
427,
96,
21869... |
What is the maximum number of clubs remaining when the league entering at this round was allsvenskan? | CREATE TABLE table_29566686_1 (clubs_remaining INTEGER, leagues_entering_at_this_round VARCHAR) | SELECT MIN(clubs_remaining) FROM table_29566686_1 WHERE leagues_entering_at_this_round = "Allsvenskan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4834,
3539,
3840,
834,
536,
41,
13442,
7,
834,
60,
7484,
53,
3,
21342,
17966,
6,
5533,
7,
834,
4617,
1007,
834,
144,
834,
8048,
834,
7775,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
13442,
7,
834,
60,
7484,
53,
61,
21680,
953,
834,
3166,
4834,
3539,
3840,
834,
536,
549,
17444,
427,
5533,
7,
834,
4617,
1007,
834,
144,
834,
8048,
834,
7775,
3274,
96,
6838,
7,
1926,
7,
3304,
121,
... |
What is the place when the player is Bob Gilder and the money was $20,903? | CREATE TABLE table_46401 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
) | SELECT "Place" FROM table_46401 WHERE "Money ( $ )" = '20,903' AND "Player" = 'bob gilder' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
20016,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
4448,
20016,
549,
17444,
427,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
3274,
3,
31,
1755,
6,
2394,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
17396,
3,
122,
173,
588,
... |
What is the number played by the team in place greater than 16? | CREATE TABLE table_60062 (
"Position" real,
"Club" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Points" real,
"Goal Difference" real
) | SELECT AVG("Played") FROM table_60062 WHERE "Position" > '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
4056,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
6007,
4056,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name Event of Medal of gold and a Name of duncan white? | CREATE TABLE table_64167 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Event" FROM table_64167 WHERE "Medal" = 'gold' AND "Name" = 'duncan white' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
27650,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
4389,
27650,
549,
17444,
427,
96,
20123,
138,
121,
3274,
3,
31,
14910,
31,
3430,
96,
23954,
121,
3274,
3,
31,
26,
202,
1608,
872,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the data on January 15-16 if March 27-29 is March 29, 2006? | CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, march_27_29 VARCHAR) | SELECT january_15_16 FROM table_25216791_3 WHERE march_27_29 = "March 29, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2658,
3708,
4729,
834,
519,
41,
7066,
76,
1208,
834,
1808,
834,
2938,
584,
4280,
28027,
6,
10556,
834,
2555,
834,
3166,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
7066,
76,
1208,
834,
1808,
834,
2938,
21680,
953,
834,
1828,
2658,
3708,
4729,
834,
519,
549,
17444,
427,
10556,
834,
2555,
834,
3166,
3274,
96,
25019,
14405,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Professors are in building NEB? | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
... | SELECT COUNT(*) FROM faculty WHERE rank = "Professor" AND building = "NEB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
6040,
549,
17444,
427,
11003,
3274,
96,
23057,
24901,
121,
3430,
740,
3274,
96,
4171,
279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many U.S. viewers were there for the number 4 episode in season? | CREATE TABLE table_27488 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (millions)" text,
"Original U.S. air date" text,
"Prod. code" real
) | SELECT "U.S. viewers (millions)" FROM table_27488 WHERE "No. in season" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
591,
4060,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
21680,
953,
834,
2555,
591,
4060,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was ashley sampi's opponent? | CREATE TABLE table_name_71 (opponent VARCHAR, player VARCHAR) | SELECT opponent FROM table_name_71 WHERE player = "ashley sampi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
3,
3198,
1306,
3,
7,
4624,
23,
31,
7,
15264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1959,
3274,
96,
3198,
1306,
3,
7,
4624,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Live births have a Natural change (per 1000) of 12.0? | CREATE TABLE table_78658 (
"Average population (x 1000)" text,
"Live births" text,
"Deaths" text,
"Natural change" text,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" text
) | SELECT "Live births" FROM table_78658 WHERE "Natural change (per 1000)" = '12.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3840,
3449,
41,
96,
188,
624,
545,
2074,
41,
226,
5580,
61,
121,
1499,
6,
96,
24179,
3879,
7,
121,
1499,
6,
96,
2962,
9,
189,
7,
121,
1499,
6,
96,
567,
13149,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24179,
3879,
7,
121,
21680,
953,
834,
940,
3840,
3449,
549,
17444,
427,
96,
567,
13149,
40,
483,
41,
883,
5580,
61,
121,
3274,
3,
31,
9368,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the series 4 with sarah newman in series 1? | CREATE TABLE table_name_70 (series_4 VARCHAR, series_1 VARCHAR) | SELECT series_4 FROM table_name_70 WHERE series_1 = "sarah newman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
10833,
7,
834,
591,
584,
4280,
28027,
6,
939,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
939,
314,
28,
3,
7,
2551,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
834,
591,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
939,
834,
536,
3274,
96,
7,
2551,
107,
126,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show how many competitions are held in each year with a line chart. | CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
)
CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Worki... | SELECT Year, COUNT(Year) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7621,
41,
15571,
834,
4309,
16,
17,
6,
4990,
834,
4309,
16,
17,
6,
3,
22557,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
896,
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,
2929,
6,
2847,
17161,
599,
476,
2741,
61,
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,
430... |
What is the Voltage for Model Number c3 866? | CREATE TABLE table_46638 (
"Model Number" text,
"Frequency" text,
"L2-Cache" text,
"Front Side Bus" text,
"Multiplier" text,
"Voltage" text,
"Socket" text
) | SELECT "Voltage" FROM table_46638 WHERE "Model Number" = 'c3 866' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3539,
3747,
41,
96,
24663,
7720,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
7412,
254,
4933,
121,
1499,
6,
96,
371,
4438,
9466,
5703,
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,
22803,
6505,
121,
21680,
953,
834,
591,
3539,
3747,
549,
17444,
427,
96,
24663,
7720,
121,
3274,
3,
31,
75,
519,
3,
26750,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Win percentage where there were 5 lost and 0 is drew? | CREATE TABLE table_name_62 (win_percentage VARCHAR, lost VARCHAR, drew VARCHAR) | SELECT win_percentage FROM table_name_62 WHERE lost = 5 AND drew = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
3757,
834,
883,
3728,
545,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
3,
26,
60,
210,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1369,
834,
883,
3728,
545,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1513,
3274,
305,
3430,
3,
26,
60,
210,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Is the drawing tablet support part of the DDM class? | CREATE TABLE table_250 (
"Comparisons" text,
"Hub Base Class" text,
"Emulated Class" text,
"Semi-DDM Class" text,
"DDM Class" text
) | SELECT "DDM Class" FROM table_250 WHERE "Comparisons" = 'Drawing Tablet Support' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
41,
96,
5890,
1893,
23,
6577,
121,
1499,
6,
96,
13284,
115,
8430,
4501,
121,
1499,
6,
96,
427,
4115,
920,
4501,
121,
1499,
6,
96,
134,
15,
51,
23,
18,
308,
7407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7407,
4501,
121,
21680,
953,
834,
11434,
549,
17444,
427,
96,
5890,
1893,
23,
6577,
121,
3274,
3,
31,
308,
10936,
53,
14571,
4224,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Bar graph to show how many location from different location, list X-axis in desc order. | CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE train (
Train_ID ... | SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY Location DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
5939,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7389,
834,
295,
651,
834,
994,
155,
490,
6,
7389,
834,
3870,
13073,
7,
490,
6,
9273,
834,
20192,
4606,
277,
490,
6,
10450,
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,
10450,
6,
2847,
17161,
599,
434,
32,
75,
257,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
10450,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Player in T5 Place? | CREATE TABLE table_name_71 (
player VARCHAR,
place VARCHAR
) | SELECT player FROM table_name_71 WHERE place = "t5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1959,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12387,
16,
332,
755,
3399,
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,
1959,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
286,
3274,
96,
17,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many rounds had an overall of 211? | CREATE TABLE table_name_24 (
round VARCHAR,
overall VARCHAR
) | SELECT COUNT(round) FROM table_name_24 WHERE overall = 211 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1751,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
141,
46,
1879,
13,
3,
27278,
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,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1879,
3274,
3,
27278,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the Cincinnati College player? | CREATE TABLE table_13902 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_13902 WHERE "College" = 'cincinnati' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
4305,
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,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
24090,
4305,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
75,
11542,
29,
18530,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Weekly Rank has an Official ratings (millions) of 11.58? | CREATE TABLE table_59560 (
"Show" text,
"Date" text,
"Official ratings (millions)" real,
"Weekly rank" text,
"Share" text
) | SELECT "Weekly rank" FROM table_59560 WHERE "Official ratings (millions)" = '11.58' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3301,
3328,
41,
96,
134,
4067,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
89,
22816,
9712,
41,
17030,
7,
61,
121,
490,
6,
96,
518,
10266,
120,
11003,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
120,
11003,
121,
21680,
953,
834,
755,
3301,
3328,
549,
17444,
427,
96,
667,
89,
22816,
9712,
41,
17030,
7,
61,
121,
3274,
3,
31,
10032,
3449,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 1991 when 1992 and 1990 are 1R? | CREATE TABLE table_name_69 (
Id VARCHAR
) | SELECT 1991 FROM table_name_69 WHERE 1992 = "1r" AND 1990 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9957,
116,
9047,
11,
5541,
33,
209,
448,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9957,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
9047,
3274,
96,
536,
52,
121,
3430,
5541,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has an IATA of JFK? | CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR) | SELECT country FROM table_name_3 WHERE iata = "jfk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
17529,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
46,
27,
19282,
13,
446,
371,
439,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3,
17221,
3274,
96,
354,
89,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what model revolver had the least number of revolvers produced ? | CREATE TABLE table_203_253 (
id number,
"model" text,
"frame" text,
"years mfg'd" text,
"caliber(s)" text,
"production" text,
"barrel" text,
"notes" text
) | SELECT "model" FROM table_203_253 ORDER BY "production" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1828,
519,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
11415,
121,
1499,
6,
96,
1201,
7,
3,
51,
89,
122,
31,
26,
121,
1499,
6,
96,
658,
10661,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21770,
121,
21680,
953,
834,
23330,
834,
1828,
519,
4674,
11300,
272,
476,
96,
20762,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What fraction has parentheses of 0.(3)? | CREATE TABLE table_name_58 (fraction VARCHAR, parentheses VARCHAR) | SELECT fraction FROM table_name_58 WHERE parentheses = "0.(3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
22513,
584,
4280,
28027,
6,
4208,
88,
2260,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
12211,
65,
4208,
88,
2260,
13,
4097,
17867,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12211,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
4208,
88,
2260,
3274,
96,
632,
5,
17867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where is the Westfield State University located? | CREATE TABLE table_1974545_2 (
location VARCHAR,
institution VARCHAR
) | SELECT location FROM table_1974545_2 WHERE institution = "Westfield State University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
2128,
2128,
834,
357,
41,
1128,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
1244,
1846,
1015,
636,
1069,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
27181,
2128,
2128,
834,
357,
549,
17444,
427,
6568,
3274,
96,
19069,
1846,
1015,
636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For the Australian Open, in 2007 the result was A, but what was the result in 2012? | CREATE TABLE table_name_4 (
tournament VARCHAR
) | SELECT 2012 FROM table_name_4 WHERE 2007 = "a" AND tournament = "australian open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
3746,
2384,
6,
16,
4101,
8,
741,
47,
71,
6,
68,
125,
47,
8,
741,
16,
1673,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1673,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
4101,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
402,
3109,
9928,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the full names and salaries for any employees earning less than 6000? | CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE departments (
department_id number,
... | SELECT first_name, last_name, salary FROM employees WHERE salary < 6000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
613,
834,
23,
26,
1499,
6,
613,
834,
21869,
1499,
6,
3519,
834,
7,
138,
1208,
381,
6,
9858,
834,
7,
138,
1208,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
4350,
6,
336,
834,
4350,
6,
9090,
21680,
1652,
549,
17444,
427,
9090,
3,
2,
3,
21987,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the current club with player being felipe reyes | CREATE TABLE table_17896 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
) | SELECT "Current Club" FROM table_17896 WHERE "Player" = 'Felipe Reyes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
4314,
41,
96,
4168,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
2170,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
450,
5320,
1949,
121,
21680,
953,
834,
27640,
4314,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17160,
23,
855,
419,
10070,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the home team of the game at the time of 15:00? | CREATE TABLE table_75901 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
) | SELECT "Home" FROM table_75901 WHERE "Time" = '15:00' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2394,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
517,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3072,
2394,
536,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
536,
19870,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose admission location is clinic referral/premature and diagnoses icd9 code is 2800? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.icd9_code = "2800" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the Length (m) of the Koppenberg course? | CREATE TABLE table_49222 (
"Number" real,
"Name" text,
"Kilometer" real,
"Pavement" text,
"Length (m)" real,
"Average climb (%)" real
) | SELECT "Length (m)" FROM table_49222 WHERE "Name" = 'koppenberg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
26144,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
439,
173,
14148,
121,
490,
6,
96,
345,
9,
162,
297,
121,
1499,
6,
96,
434,
4606,
189,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
4606,
189,
41,
51,
61,
121,
21680,
953,
834,
3647,
26144,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17466,
102,
11063,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show me the proportion on what is the code of each location and the number of documents in that location? | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Da... | SELECT Location_Code, COUNT(*) FROM Document_Locations GROUP BY Location_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
25160,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
11167,
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,
10450,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
11167,
834,
434,
32,
75,
1628,
350,
4630,
6880,
272,
476,
10450,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Please return me a bar chart show what are the total smallest rating of different movie title?, order from high to low by the names. | CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY T2.title DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
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,
332,
4416,
21869,
6,
180,
6122,
599,
17684,
599,
382,
5411,
3624,
7,
61,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880... |
When populatioin is greater than 7,747 and the type is V, what is the sum of code? | CREATE TABLE table_52811 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Region" real
) | SELECT COUNT("Code") FROM table_52811 WHERE "Type" = 'v' AND "Population" > '7,747' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2577,
2596,
41,
96,
22737,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
490,
6,
96,
27773,
7830,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22737,
8512,
21680,
953,
834,
755,
2577,
2596,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
208,
31,
3430,
96,
27773,
7830,
121,
2490,
3,
31,
940,
6,
940,
4177,
31,
1,
-100,
-100,
-100,
-10... |
What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions? | CREATE TABLE table_name_70 (area_km_2 INTEGER, population_in_millions VARCHAR, pop_density_people_km_2 VARCHAR, member_state VARCHAR) | SELECT SUM(area_km_2) FROM table_name_70 WHERE pop_density_people_km_2 > 91 AND member_state = "italy" AND population_in_millions < 58.8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
498,
834,
5848,
834,
357,
3,
21342,
17966,
6,
2074,
834,
77,
834,
17030,
7,
584,
4280,
28027,
6,
2783,
834,
537,
7,
485,
834,
16588,
834,
5848,
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,
180,
6122,
599,
498,
834,
5848,
834,
7318,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
2783,
834,
537,
7,
485,
834,
16588,
834,
5848,
834,
357,
2490,
3,
4729,
3430,
1144,
834,
5540,
3274,
96,
9538,
63,
121,
... |
Give me the comparison about Team_ID over the All_Games , could you show by the total number from high to low? | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Games, Team_ID FROM basketball_match ORDER BY Team_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
23055,
7,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
2271,
834,
4309,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the altitude of the event on 1962-07-09? | CREATE TABLE table_148578_1 (
altitude__km_ VARCHAR,
date VARCHAR
) | SELECT altitude__km_ FROM table_148578_1 WHERE date = "1962-07-09" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4433,
3940,
834,
536,
41,
491,
6592,
834,
834,
5848,
834,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
491,
6592,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
491,
6592,
834,
834,
5848,
834,
21680,
953,
834,
2534,
4433,
3940,
834,
536,
549,
17444,
427,
833,
3274,
96,
26937,
19423,
940,
18,
4198,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the commentator when the spokesperson was michael aspel? | CREATE TABLE table_name_35 (commentator VARCHAR, spokespersons VARCHAR) | SELECT commentator FROM table_name_35 WHERE spokespersons = "michael aspel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
287,
297,
1016,
584,
4280,
28027,
6,
23909,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1670,
1016,
116,
8,
23909,
47,
2278,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1670,
1016,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
23909,
7,
3274,
96,
51,
362,
9,
15,
40,
38,
4343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Doha, Qatar when the snatch is total? | CREATE TABLE table_name_17 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR) | SELECT doha_, _qatar FROM table_name_17 WHERE snatch = "total" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
26,
32,
1024,
834,
584,
4280,
28027,
6,
3,
834,
1824,
9,
2046,
584,
4280,
28027,
6,
3,
7,
29,
14547,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
103,
1024,
834,
6,
3,
834,
1824,
9,
2046,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3,
7,
29,
14547,
3274,
96,
235,
1947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the most recent year featuring the director Christopher Kulikowski? | CREATE TABLE table_5952 (
"Title" text,
"Year" real,
"Director" text,
"Budget" text,
"Gross (worldwide)" text
) | SELECT MAX("Year") FROM table_5952 WHERE "Director" = 'christopher kulikowski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
5373,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
23620,
127,
121,
1499,
6,
96,
279,
13164,
17,
121,
1499,
6,
96,
517,
1859,
7,
41,
7276,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
3390,
5373,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
15294,
10775,
49,
3,
10701,
23,
27077,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
in 2104 how many patients have had a blood, venipuncture test performed? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'blood, venipuncture' AND STRFTIME('%y', microlab.culturetakentime) = '2104') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
21680,
2179,
... |
What is the highest number listed for matches? | CREATE TABLE table_28846752_8 (
matches INTEGER
) | SELECT MAX(matches) FROM table_28846752_8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3708,
5373,
834,
927,
41,
6407,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
2616,
21,
6407,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
19515,
15,
7,
61,
21680,
953,
834,
2577,
4608,
3708,
5373,
834,
927,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What ranking is james franklin? | CREATE TABLE table_67401 (
"Rank" text,
"Bowling" text,
"Player" text,
"Venue" text,
"Date" text
) | SELECT "Rank" FROM table_67401 WHERE "Player" = 'james franklin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
20016,
41,
96,
22557,
121,
1499,
6,
96,
279,
2381,
697,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
3708,
20016,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1191,
2687,
3,
6296,
20529,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many ties drawed at 20? | CREATE TABLE table_10353 (
"Player" text,
"Lost" text,
"Drawn" text,
"Ties" text,
"Matches" text
) | SELECT "Ties" FROM table_10353 WHERE "Drawn" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
4867,
41,
96,
15800,
49,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
382,
725,
121,
1499,
6,
96,
329,
144,
2951,
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,
0,
0... | [
3,
23143,
14196,
96,
382,
725,
121,
21680,
953,
834,
17864,
4867,
549,
17444,
427,
96,
308,
10936,
29,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which show runs on Friday at 05:00 AM? | CREATE TABLE table_6832 (
"Time" text,
"00:00 AM" text,
"01:00 AM" text,
"02:00 AM" text,
"05:00 AM" text
) | SELECT "05:00 AM" FROM table_6832 WHERE "Time" = 'friday' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2668,
41,
96,
13368,
121,
1499,
6,
96,
632,
25713,
5422,
121,
1499,
6,
96,
632,
24294,
5422,
121,
1499,
6,
96,
632,
24112,
5422,
121,
1499,
6,
96,
632,
19870,
5422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
632,
19870,
5422,
121,
21680,
953,
834,
3651,
2668,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
89,
52,
23,
1135,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Outcome has a Score of 4 6 3 6? | CREATE TABLE table_36032 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Outcome" FROM table_36032 WHERE "Score" = '4–6 3–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19208,
2668,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15767,
287,
15,
121,
21680,
953,
834,
19208,
2668,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
591,
104,
948,
220,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average frequency MHz for license of eastville, virginia? | CREATE TABLE table_52309 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT AVG("Frequency MHz") FROM table_52309 WHERE "City of license" = 'eastville, virginia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2773,
4198,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
371,
60,
835,
11298,
3,
20210,
8512,
21680,
953,
834,
755,
2773,
4198,
549,
17444,
427,
96,
254,
485,
13,
3344,
121,
3274,
3,
31,
11535,
1420,
6,
24556,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
... |
which team ranked below chile 's ? | CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
) | SELECT "team" FROM table_204_735 WHERE "rank" = (SELECT "rank" FROM table_204_735 WHERE "team" = 'chile') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
2469,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
4350,
7,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
11433,
2420,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
26363,
834,
940,
2469,
549,
17444,
427,
96,
6254,
121,
3274,
41,
23143,
14196,
96,
6254,
121,
21680,
953,
834,
26363,
834,
940,
2469,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
14... |
what is maximum age of patients whose death status is 0 and primary disease is aortic valve insuffiency\aortic valve replacement /sda? | 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 MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
188,
2990,
18679,
3,
21712,
8575,
3,
14... |
What is Iceland's total? | CREATE TABLE table_150343_3 (
total VARCHAR,
country_territory VARCHAR
) | SELECT COUNT(total) FROM table_150343_3 WHERE country_territory = "Iceland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3710,
519,
834,
519,
41,
792,
584,
4280,
28027,
6,
684,
834,
17,
21301,
10972,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
20910,
31,
7,
792,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
12278,
3710,
519,
834,
519,
549,
17444,
427,
684,
834,
17,
21301,
10972,
3274,
96,
196,
7125,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total Launches to date with a Version of 541, and CCBs smaller than 1? | CREATE TABLE table_name_8 (launches_to_date VARCHAR, version VARCHAR, ccbs VARCHAR) | SELECT COUNT(launches_to_date) FROM table_name_8 WHERE version = "541" AND ccbs < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
27493,
15,
7,
834,
235,
834,
5522,
584,
4280,
28027,
6,
988,
584,
4280,
28027,
6,
3,
75,
75,
115,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
27493,
15,
7,
834,
235,
834,
5522,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
988,
3274,
96,
5062,
536,
121,
3430,
3,
75,
75,
115,
7,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the title with episode 8? | CREATE TABLE table_name_82 (
title VARCHAR,
episodes VARCHAR
) | SELECT title FROM table_name_82 WHERE episodes = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
2233,
584,
4280,
28027,
6,
13562,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2233,
28,
5640,
505,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
13562,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Calculate the total number of patients admitted before 2123, who had a lab test for clinical chemistry. | 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 < "2123" AND lab."CATEGORY" = "Chemistry" | [
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,... |
age 35 to 69 | CREATE TABLE table_train_103 (
"id" int,
"systolic_blood_pressure_sbp" int,
"epilepsy" bool,
"diastolic_blood_pressure_dbp" int,
"heart_rate" int,
"seizure_disorder" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_103 WHERE age > 35 AND age < 69 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
17864,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
15,
102,
699,
19819,
121,
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,
1429,
21680,
953,
834,
9719,
834,
17864,
549,
17444,
427,
1246,
2490,
3097,
3430,
1246,
3,
2,
3,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was patient 031-22988's first tested culture until 12/2103? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid... | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-22988')) AND STRFTIME('%y-%m', microlab.culturetakentime) <= '2103... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
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,
2179,
9339,
5,
10547,
3585,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
What is Player, when Round is greater than 8, when Pick # is greater than 234, and when College is 'Louisville'? | CREATE TABLE table_49236 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_49236 WHERE "Round" > '8' AND "Pick #" > '234' AND "College" = 'louisville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
357,
3420,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3647,
357,
3420,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
927,
31,
3430,
96,
345,
3142,
1713,
121,
2490,
3,
31,
357,
3710,
31,
3430,
96,
9939,
7883,
121,
3274,
3... |
what is the latest year where glos & wilts is warminster? | CREATE TABLE table_12043148_2 (
year INTEGER,
glos_ VARCHAR,
_wilts VARCHAR
) | SELECT MAX(year) FROM table_12043148_2 WHERE glos_ & _wilts = "Warminster" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4906,
24748,
834,
357,
41,
215,
3,
21342,
17966,
6,
3,
9680,
7,
834,
584,
4280,
28027,
6,
3,
834,
210,
173,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
15518,
4906,
24748,
834,
357,
549,
17444,
427,
3,
9680,
7,
834,
3,
184,
3,
834,
210,
173,
17,
7,
3274,
96,
21032,
1109,
1370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many average attendance has a capacity percentage of 96.5% | CREATE TABLE table_74332 (
"Team" text,
"Stadium" text,
"Home Games" real,
"Average Attendance" real,
"Total Attendance" real,
"Capacity Percentage" text
) | SELECT COUNT("Average Attendance") FROM table_74332 WHERE "Capacity Percentage" = '96.5%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
519,
2668,
41,
96,
18699,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19040,
5880,
121,
490,
6,
96,
188,
624,
545,
22497,
663,
121,
490,
6,
96,
3696,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
624,
545,
22497,
663,
8512,
21680,
953,
834,
4581,
519,
2668,
549,
17444,
427,
96,
19566,
9,
6726,
1915,
3728,
545,
121,
3274,
3,
31,
4314,
5,
2712,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many tree species are there when the total plant species is 113? | CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR) | SELECT COUNT(tree_species) FROM table_16577990_1 WHERE total_plant_species = 113 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
4013,
26901,
834,
536,
41,
929,
15,
834,
7576,
725,
584,
4280,
28027,
6,
792,
834,
14925,
834,
7576,
725,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
929,
15,
834,
7576,
725,
61,
21680,
953,
834,
22823,
4013,
26901,
834,
536,
549,
17444,
427,
792,
834,
14925,
834,
7576,
725,
3274,
3,
20522,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5? | CREATE TABLE table_name_53 (
programming VARCHAR,
channel VARCHAR,
psip_short_name VARCHAR
) | SELECT programming FROM table_name_53 WHERE channel > 51.2 AND psip_short_name = "kyaz-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
6020,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
6,
3,
102,
7,
23,
102,
834,
7,
14184,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6020,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
4245,
2490,
305,
10917,
3430,
3,
102,
7,
23,
102,
834,
7,
14184,
834,
4350,
3274,
96,
3781,
9,
172,
18,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which opponent has a Surface of clay, an Outcome of winner, a Tournament of bogotá, and a Score of 6–0, 6–4? | CREATE TABLE table_name_51 (opponent VARCHAR, score VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR) | SELECT opponent FROM table_name_51 WHERE surface = "clay" AND outcome = "winner" AND tournament = "bogotá" AND score = "6–0, 6–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
6138,
3274,
96,
3757,
687,
121,
3430,
5892,
3274,
96,
12247,
32,
17,
2975,
121,
3430,
2604,
3274,
96,
948,
104,
632,
6,
... |
What is the release date of The Blow Out? | CREATE TABLE table_63759 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
) | SELECT "Release date" FROM table_63759 WHERE "Title" = 'the blow out' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
940,
3390,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
1174,
51,
535,
1499,
6,
96,
1649,
40,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
40,
14608,
833,
121,
21680,
953,
834,
3891,
940,
3390,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
532,
6019,
91,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Runner-up on April 11? | CREATE TABLE table_name_36 (runner_up VARCHAR, week VARCHAR) | SELECT runner_up FROM table_name_36 WHERE week = "april 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
10806,
834,
413,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
23572,
18,
413,
30,
1186,
850,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
471,
3274,
96,
9,
2246,
40,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions? | CREATE TABLE table_name_92 (
rank VARCHAR,
market_value__billion_$_ VARCHAR,
headquarters VARCHAR,
assets__billion_$_ VARCHAR,
industry VARCHAR
) | SELECT COUNT(rank) FROM table_name_92 WHERE assets__billion_$_ < 248.44 AND industry = "oil and gas" AND headquarters = "france" AND market_value__billion_$_ > 152.62 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
11003,
584,
4280,
28027,
6,
512,
834,
12097,
834,
834,
115,
14916,
834,
3229,
834,
584,
4280,
28027,
6,
13767,
584,
4280,
28027,
6,
4089,
834,
834,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
4089,
834,
834,
115,
14916,
834,
3229,
834,
3,
2,
204,
3707,
5,
3628,
3430,
681,
3274,
96,
32,
173,
11,
1807,
121,
3430,
13767,
3274,
... |
What is the cyrillic and other name of rabe? | CREATE TABLE table_73820 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) | SELECT "Cyrillic Name Other Names" FROM table_73820 WHERE "Settlement" = 'Rabe' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3747,
1755,
41,
96,
17175,
17,
3335,
121,
1499,
6,
96,
254,
63,
52,
173,
2176,
5570,
2502,
5570,
7,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
27773,
7830,
25163,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
63,
52,
173,
2176,
5570,
2502,
5570,
7,
121,
21680,
953,
834,
940,
3747,
1755,
549,
17444,
427,
96,
17175,
17,
3335,
121,
3274,
3,
31,
448,
9,
346,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of played games of the team with less than 12 drawns, 41 against, and less than 69 points? | CREATE TABLE table_name_58 (
played INTEGER,
points VARCHAR,
drawn VARCHAR,
against VARCHAR
) | SELECT MIN(played) FROM table_name_58 WHERE drawn < 12 AND against = 41 AND points < 69 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1944,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
6796,
3,
2,
586,
3430,
581,
3274,
8798,
3430,
979,
3,
2,
3,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients with overdose primary disease who had delta abnormal lab test status. | 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.diagnosis = "OVERDOSE" AND lab.flag = "delta" | [
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,... |
Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smaller than 37 had what sum of matches? | CREATE TABLE table_39303 (
"Nationality" text,
"Matches" real,
"Drawn" real,
"Lost" real,
"Win %" real
) | SELECT SUM("Matches") FROM table_39303 WHERE "Nationality" = 'england' AND "Lost" > '39' AND "Win %" = '28.7' AND "Drawn" < '37' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
23335,
41,
96,
24732,
485,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
18455,
3,
1454,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
3288,
23335,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
4606,
40,
232,
31,
3430,
96,
434,
3481,
121,
2490,
3,
31,
3288,
31,
3430,
96,
18455,
3,
... |
Which Crowd has a Home team score of 11.13 (79)? | CREATE TABLE table_54903 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_54903 WHERE "Home team score" = '11.13 (79)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
2394,
519,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
5062,
2394,
519,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
10032,
2368,
41,
4440,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's Blanco Encalada's main artillery? | CREATE TABLE table_26171 (
"Warship" text,
"tons ( L.ton )" real,
"Horse- power" real,
"Speed ( Knots )" text,
"Armour (Inch)" text,
"Main Artillery" text,
"Built Year" real
) | SELECT "Main Artillery" FROM table_26171 WHERE "Warship" = 'Blanco Encalada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2517,
536,
41,
96,
21032,
2009,
121,
1499,
6,
96,
8057,
41,
301,
5,
17,
106,
3,
61,
121,
490,
6,
96,
566,
127,
7,
15,
18,
579,
121,
490,
6,
96,
28328,
41,
10624... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21978,
29,
1261,
7613,
63,
121,
21680,
953,
834,
2688,
2517,
536,
549,
17444,
427,
96,
21032,
2009,
121,
3274,
3,
31,
279,
1618,
509,
695,
1489,
9,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs? | CREATE TABLE table_name_95 (
date VARCHAR,
venue VARCHAR,
result VARCHAR
) | SELECT date FROM table_name_95 WHERE venue = "melbourne cricket ground" AND result = "eng by inns&225 runs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
29940,
19,
939... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
5669,
3274,
96,
2341,
26255,
18096,
1591,
121,
3430,
741,
3274,
96,
4606,
57,
16,
29,
7,
184,
20489,
3154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the Elevator of Giacomo Colonna? | CREATE TABLE table_name_21 (elevator VARCHAR, elector VARCHAR) | SELECT elevator FROM table_name_21 WHERE elector = "giacomo colonna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
15,
10912,
1016,
584,
4280,
28027,
6,
11924,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
8021,
208,
1016,
13,
3156,
9,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
19967,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
11924,
127,
3274,
96,
122,
23,
9,
287,
32,
6718,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of the average of the drama titled | CREATE TABLE table_31276 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
) | SELECT MAX("Average") FROM table_31276 WHERE "Chinese title" = '魚躍在花見' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2122,
3959,
41,
96,
22557,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
3541,
4477,
15,
2233,
121,
1499,
6,
96,
188,
624,
545,
121,
490,
6,
96,
345,
15,
1639,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
624,
545,
8512,
21680,
953,
834,
519,
2122,
3959,
549,
17444,
427,
96,
3541,
4477,
15,
2233,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose admission type is emergency and age is less than 70? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.age < "70" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
545,
3,
2,
96,
... |
What is the highest numbered nightly rank for any episode? | CREATE TABLE table_25502 (
"Order" real,
"Episode" text,
"Original airdate" text,
"Timeslot" text,
"Viewers (100000s)" text,
"Nightly rank" real,
"Weekly rank" real
) | SELECT MAX("Nightly rank") FROM table_25502 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
4305,
41,
96,
7395,
588,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
667,
3380,
10270,
799,
5522,
121,
1499,
6,
96,
13368,
7,
3171,
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,
4800,
4,
599,
121,
567,
2632,
120,
11003,
8512,
21680,
953,
834,
25502,
4305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many students are older than 20 in each dorm? | CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
)
CREATE TABLE lives_in (
stuid number,
dormid number,
room_numb... | SELECT COUNT(*), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.age > 20 GROUP BY T3.dorm_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
41,
103,
52,
6983,
381,
6,
103,
52,
51,
834,
4350,
1499,
6,
1236,
834,
4010,
9,
6726,
381,
6,
7285,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
5787,
26,
127,
51,
834,
4350,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
1342,
834,
77,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76,
23,
26,... |
How many dams are there in the Lake and Peninsula area? | CREATE TABLE table_17978052_2 (
_number_s_dam_and_gnis_query_link INTEGER,
borough_or_census_area VARCHAR
) | SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Lake and Peninsula" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
21441,
3076,
357,
834,
357,
41,
3,
834,
5525,
1152,
834,
7,
834,
7812,
834,
232,
834,
122,
29,
159,
834,
835,
651,
834,
4907,
3,
21342,
17966,
6,
3,
12823,
834,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
834,
5525,
1152,
834,
7,
834,
7812,
834,
232,
834,
122,
29,
159,
834,
835,
651,
834,
4907,
61,
21680,
953,
834,
2517,
21441,
3076,
357,
834,
357,
549,
17444,
427,
3,
12823,
834,
127,
834,
75,
35,
7... |
Name the team for arco arena 13,685 | CREATE TABLE table_21295 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_21295 WHERE "Location Attendance" = 'ARCO Arena 13,685' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
3301,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
24837,
3301,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
18971,
667,
14904,
10670,
3651,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the tongyong for chinese of | CREATE TABLE table_21211 (
"No." real,
"Hanyu" text,
"Tongyong" text,
"Pe\u030dh-\u014de-j\u012b" text,
"Chinese" text,
"Area (km\u00b2)" text,
"No. of villages" real,
"Population (2010)" real
) | SELECT "Tongyong" FROM table_21211 WHERE "Chinese" = '湖內區' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
2596,
41,
96,
4168,
535,
490,
6,
96,
566,
6820,
76,
121,
1499,
6,
96,
382,
2444,
63,
2444,
121,
1499,
6,
96,
345,
15,
2,
76,
632,
1458,
26,
107,
18,
2,
76,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
2444,
63,
2444,
121,
21680,
953,
834,
24837,
2596,
549,
17444,
427,
96,
3541,
4477,
15,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.