NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
for patient id 52012, specify the admission type and icd9 code. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT demographic.admission_type, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "52012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
4293,
5,
2961,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,... |
What was the capacity percentage when attendance was 71080? | CREATE TABLE table_74339 (
"Team" text,
"Stadium" text,
"Home Games" real,
"Average Attendance" real,
"Total Attendance" real,
"Capacity Percentage" text
) | SELECT "Capacity Percentage" FROM table_74339 WHERE "Average Attendance" = '71080' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
519,
3288,
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,
96,
19566,
9,
6726,
1915,
3728,
545,
121,
21680,
953,
834,
4581,
519,
3288,
549,
17444,
427,
96,
188,
624,
545,
22497,
663,
121,
3274,
3,
31,
940,
1714,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the losses average when the against is greater than 1255 and wins is 0 and the draws less than 0? | CREATE TABLE table_name_43 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR) | SELECT AVG(losses) FROM table_name_43 WHERE against > 1255 AND wins = 0 AND draws < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
2298,
2260,
3,
21342,
17966,
6,
14924,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
9204,
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,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
581,
2490,
586,
3769,
3430,
9204,
3274,
3,
632,
3430,
14924,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the building for the r90 pennant? | CREATE TABLE table_57762 (
"Name" text,
"Pennant" text,
"Builder" text,
"Laid Down" text,
"Launched" text,
"Commissioned" text
) | SELECT "Builder" FROM table_57762 WHERE "Pennant" = 'r90' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3959,
357,
41,
96,
23954,
121,
1499,
6,
96,
345,
35,
29,
288,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
434,
6146,
7309,
121,
1499,
6,
96,
3612,
202,
4513,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24752,
49,
121,
21680,
953,
834,
3436,
3959,
357,
549,
17444,
427,
96,
345,
35,
29,
288,
121,
3274,
3,
31,
52,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Apps have a Rank larger than 2, and Goals smaller than 102? | CREATE TABLE table_60118 (
"Rank" real,
"Club" text,
"Season" text,
"Goals" real,
"Apps" real
) | SELECT SUM("Apps") FROM table_60118 WHERE "Rank" > '2' AND "Goals" < '102' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
20056,
41,
96,
22557,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
9648,
7,
121,
490,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
9648,
7,
8512,
21680,
953,
834,
3328,
20056,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
357,
31,
3430,
96,
6221,
5405,
121,
3,
2,
3,
31,
14388,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who won tennis when ashland won softball and wooster won volleybal | CREATE TABLE table_16423070_4 (
tennis VARCHAR,
softball VARCHAR,
volleyball VARCHAR
) | SELECT tennis FROM table_16423070_4 WHERE softball = "Ashland" AND volleyball = "Wooster" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
13427,
2518,
834,
591,
41,
9999,
584,
4280,
28027,
6,
1835,
3184,
584,
4280,
28027,
6,
26081,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
751,
9999,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9999,
21680,
953,
834,
26987,
13427,
2518,
834,
591,
549,
17444,
427,
1835,
3184,
3274,
96,
188,
7,
107,
40,
232,
121,
3430,
26081,
3274,
96,
518,
32,
32,
1370,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the geo id for Joliette? | CREATE TABLE table_18600760_10 (geo_id INTEGER, township VARCHAR) | SELECT MAX(geo_id) FROM table_18600760_10 WHERE township = "Joliette" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
1714,
41,
397,
32,
834,
23,
26,
3,
21342,
17966,
6,
1511,
2009,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9502,
3,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
397,
32,
834,
23,
26,
61,
21680,
953,
834,
24700,
4560,
3328,
834,
1714,
549,
17444,
427,
1511,
2009,
3274,
96,
683,
4172,
1954,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the number of weeks for december 5, 2005 | CREATE TABLE table_31751 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Start Time" text,
"Attendance" text
) | SELECT COUNT("Week") FROM table_31751 WHERE "Date" = 'december 5, 2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
3072,
536,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3341,
3072,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
7836,
3105,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the attendance and location on December 15? | CREATE TABLE table_17326036_6 (
location_attendance VARCHAR,
date VARCHAR
) | SELECT location_attendance FROM table_17326036_6 WHERE date = "December 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
3328,
3420,
834,
948,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
11,
1128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
15116,
663,
21680,
953,
834,
2517,
2668,
3328,
3420,
834,
948,
549,
17444,
427,
833,
3274,
96,
29835,
627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What day was the score for tournament of alcobaça 6–3, 2–6, 7–5? | CREATE TABLE table_name_21 (date VARCHAR, tournament VARCHAR, score VARCHAR) | SELECT date FROM table_name_21 WHERE tournament = "alcobaça" AND score = "6–3, 2–6, 7–5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
5522,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
47,
8,
2604,
21,
5892,
13,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
5892,
3274,
96,
138,
509,
115,
9,
11666,
121,
3430,
2604,
3274,
96,
948,
104,
6355,
204,
104,
11071,
489,
104,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average Attendance, when Visitor is Toronto? | CREATE TABLE table_47648 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT AVG("Attendance") FROM table_47648 WHERE "Visitor" = 'toronto' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3959,
3707,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
591,
3959,
3707,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
235,
4438,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Model has hybrid propulsion? | CREATE TABLE table_5271 (
"Order Year" text,
"Manufacturer" text,
"Model" text,
"Fleet (Qty.)" text,
"Propulsion" text,
"Length (ft.)" real
) | SELECT "Model" FROM table_5271 WHERE "Propulsion" = 'hybrid' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
4450,
41,
96,
7395,
588,
2929,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
371,
109,
15,
17,
41,
2247,
17,
63,
5,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24663,
121,
21680,
953,
834,
5373,
4450,
549,
17444,
427,
96,
3174,
20567,
121,
3274,
3,
31,
107,
63,
2160,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the fewest gold medals for the nation with 4 silvers and more than 4 bronze? | CREATE TABLE table_name_4 (gold INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT MIN(gold) FROM table_name_4 WHERE silver = 4 AND bronze > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
14910,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
2045,
9365,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
4294,
3274,
314,
3430,
13467,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total cloud cover rates of the dates (bin into year interval) that had the top 5 cloud cover rates? You can draw me a bar chart for this purpose, rank in descending by the Y-axis. | CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
date TEXT,
... | SELECT date, SUM(cloud_cover) FROM weather ORDER BY SUM(cloud_cover) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
3,
21342,
17966,
6,
564,
3,
3463,
4,
382,
6,
50,
17,
13046,
13098,
4666,
6,
307,
13046,
13098,
4666,
6,
12908,
834,
13362,
3,
21342,
17966,
6,
690,
3,
3463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
180,
6122,
599,
23742,
834,
9817,
61,
21680,
1969,
4674,
11300,
272,
476,
180,
6122,
599,
23742,
834,
9817,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Where is the first class team of date of birth 20 november 1969? | CREATE TABLE table_17264 (
"No." text,
"Player" text,
"Date of Birth" text,
"Batting Style" text,
"Bowling Style" text,
"First Class Team" text
) | SELECT "First Class Team" FROM table_17264 WHERE "Date of Birth" = '20 November 1969' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
26755,
41,
96,
4168,
535,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96,
279,
9,
6031,
7936,
121,
1499,
6,
96,
279,
2381,
697,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
4501,
2271,
121,
21680,
953,
834,
2517,
26755,
549,
17444,
427,
96,
308,
342,
13,
26337,
121,
3274,
3,
31,
1755,
1671,
17185,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the race leader for stage 5? | CREATE TABLE table_name_66 (race_leader VARCHAR, stage VARCHAR) | SELECT race_leader FROM table_name_66 WHERE stage = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
12614,
834,
22900,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1964,
2488,
21,
1726,
305,
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,
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,
1964,
834,
22900,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1726,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes' with a bar chart. | CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE management (
department_ID int,
head_ID int,
tempor... | SELECT Name, SUM(Num_Employees) FROM department AS T1 JOIN management AS T2 ON T1.department_ID = T2.department_ID WHERE T2.temporary_acting = 'Yes' GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
819,
41,
819,
834,
4309,
16,
17,
6,
564,
1499,
6,
2170,
834,
5540,
1499,
6,
1246,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
1775,
834,
4309,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
180,
6122,
599,
567,
440,
834,
427,
51,
7379,
63,
15,
15,
7,
61,
21680,
3066,
6157,
332,
536,
3,
15355,
3162,
758,
6157,
332,
357,
9191,
332,
5411,
221,
2274,
297,
834,
4309,
3274,
332,
4416,
221,
2274,
... |
What's the lower house majority in the state whose Senior senator is J. Shaheen? | CREATE TABLE table_21531764_2 (
lower_house_majority VARCHAR,
senior_us_senator VARCHAR
) | SELECT lower_house_majority FROM table_21531764_2 WHERE senior_us_senator = "J. Shaheen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4867,
2517,
4389,
834,
357,
41,
1364,
834,
1840,
834,
16547,
127,
485,
584,
4280,
28027,
6,
2991,
834,
302,
834,
7,
35,
1016,
584,
4280,
28027,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1364,
834,
1840,
834,
16547,
127,
485,
21680,
953,
834,
2658,
4867,
2517,
4389,
834,
357,
549,
17444,
427,
2991,
834,
302,
834,
7,
35,
1016,
3274,
96,
683,
5,
19669,
15,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
when did 14.55 people watch? | CREATE TABLE table_3584 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "Original air date" FROM table_3584 WHERE "U.S. viewers (millions)" = '14.55' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4608,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
2469,
4608,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
2534,
5,
3769,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How large was the crowd at Carlton's home game? | CREATE TABLE table_name_10 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_10 WHERE home_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
75,
3623,
26,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
508,
47,
8,
4374,
44,
3,
30339,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the highest Tournaments, when Pro Debut is "July 2002"? | CREATE TABLE table_name_13 (tournaments INTEGER, pro_debut VARCHAR) | SELECT MAX(tournaments) FROM table_name_13 WHERE pro_debut = "july 2002" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
17,
1211,
29,
9,
4128,
3,
21342,
17966,
6,
813,
834,
221,
2780,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
20502,
7,
6,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17,
1211,
29,
9,
4128,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
813,
834,
221,
2780,
3274,
96,
2047,
120,
4407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many categories fall under the category of britons? | CREATE TABLE table_73902 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
) | SELECT COUNT("Type") FROM table_73902 WHERE "Nickname" = 'Britons' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
2394,
357,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
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,
2847,
17161,
599,
121,
25160,
8512,
21680,
953,
834,
4552,
2394,
357,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
279,
52,
23,
8057,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the maximum number of stolen ends against for Japan? | CREATE TABLE table_16684420_2 (stolen_ends_against INTEGER, country VARCHAR, Japan VARCHAR) | SELECT MAX(stolen_ends_against) FROM table_16684420_2 WHERE country = Japan | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
4608,
21899,
834,
357,
41,
7,
235,
40,
35,
834,
989,
7,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
3411,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
235,
40,
35,
834,
989,
7,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
26811,
4608,
21899,
834,
357,
549,
17444,
427,
684,
3274,
3411,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5? | CREATE TABLE table_69834 (
"Player" text,
"L Apps" real,
"C Apps" real,
"Total Apps" real,
"Total G" real
) | SELECT AVG("Total G") FROM table_69834 WHERE "L Apps" = '29' AND "Player" = 'bartolo' AND "C Apps" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
4591,
591,
41,
96,
15800,
49,
121,
1499,
6,
96,
434,
2276,
7,
121,
490,
6,
96,
254,
2276,
7,
121,
490,
6,
96,
3696,
1947,
2276,
7,
121,
490,
6,
96,
3696,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
350,
8512,
21680,
953,
834,
3951,
4591,
591,
549,
17444,
427,
96,
434,
2276,
7,
121,
3274,
3,
31,
3166,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
1047,
235,
40,
32,
31,
3430,
96... |
what is the number of patients who are in ward 650 until 2104? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 650 AND STRFTIME('%y', patient.unitadmittime) <= '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,
2239,
23,
26,
3274,
3,
15348,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
15129,
20466,... |
What was the fastest lap in a race where Phil Hill had the Pole position and was won by Wolfgang von Trips? | CREATE TABLE table_11143 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Fastest lap" FROM table_11143 WHERE "Pole position" = 'phil hill' AND "Winning driver" = 'wolfgang von trips' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
4906,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
14941,
121,
21680,
953,
834,
15866,
4906,
549,
17444,
427,
96,
8931,
15,
1102,
121,
3274,
3,
31,
18118,
9956,
31,
3430,
96,
518,
10503,
2535,
121,
3274,
3,
31,
19747,
3810,
193,
6846,
31,
1,
... |
What is the highest lost that has an against greater than 60, points less than 61 and an 18 drawn? | CREATE TABLE table_38507 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Lost") FROM table_38507 WHERE "Against" > '60' AND "Points" < '61' AND "Drawn" > '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
1752,
940,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
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,
4800,
4,
599,
121,
434,
3481,
8512,
21680,
953,
834,
3747,
1752,
940,
549,
17444,
427,
96,
20749,
121,
2490,
3,
31,
3328,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
4241,
31,
3430,
96,
308,
10936,
29,
121,
2490,
... |
What is Brown Motors best point total using the Offenhauser L4 engine since 1950? | CREATE TABLE table_name_72 (
points INTEGER,
entrant VARCHAR,
year VARCHAR,
engine VARCHAR
) | SELECT MAX(points) FROM table_name_72 WHERE year > 1950 AND engine = "offenhauser l4" AND entrant = "brown motors" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
979,
3,
21342,
17966,
6,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
215,
2490,
10247,
3430,
1948,
3274,
96,
1647,
35,
2989,
49,
3,
40,
20364,
3430,
3,
295,
3569,
3274,
96,
14853,
29,
2340,
7,
121,
1,
-... |
Who won in 1983? | CREATE TABLE table_name_60 (player VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_60 WHERE year_s__won = "1983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
20846,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
16,
15041,
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,
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,
3328,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of the patient who made the appointment with the most recent start date. | CREATE TABLE physician (
employeeid number,
name text,
position text,
ssn number
)
CREATE TABLE trained_in (
physician number,
treatment number,
certificationdate time,
certificationexpires time
)
CREATE TABLE nurse (
employeeid number,
name text,
position text,
registe... | SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10027,
41,
3490,
23,
26,
381,
6,
564,
1499,
6,
1102,
1499,
6,
3,
7,
7,
29,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4252,
834,
77,
41,
10027,
381,
6,
1058... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
21680,
1868,
6157,
332,
536,
3,
15355,
3162,
4141,
6157,
332,
357,
9191,
332,
5411,
7,
7,
29,
3274,
332,
4416,
10061,
4674,
11300,
272,
476,
332,
4416,
10208,
309,
25067,
8729,
12604,
209,
1,
-100,
... |
Which titles have been published by Gamehouse Live? | CREATE TABLE table_28621502_1 (
title VARCHAR,
publisher VARCHAR
) | SELECT title FROM table_28621502_1 WHERE publisher = "GameHouse Live" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4056,
12278,
357,
834,
536,
41,
2233,
584,
4280,
28027,
6,
14859,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8342,
43,
118,
1790,
57,
4435,
1840,
330... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2577,
4056,
12278,
357,
834,
536,
549,
17444,
427,
14859,
3274,
96,
23055,
4489,
1074,
3306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients whose gender is f and lab test name is base excess? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Base Excess" | [
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,... |
What is the amount of trees, that require replacement when district is leninsky? | CREATE TABLE table_72090 (
"District" text,
"Total amount of trees" real,
"Prevailing types, %" text,
"Amount of old trees" text,
"Amount of trees, that require replacement" text
) | SELECT "Amount of trees, that require replacement" FROM table_72090 WHERE "District" = 'Leninsky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
2394,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
3696,
1947,
866,
13,
3124,
121,
490,
6,
96,
10572,
208,
17446,
1308,
6,
3,
1454,
121,
1499,
6,
96,
188,
11231,
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,
188,
11231,
13,
3124,
6,
24,
1457,
3709,
121,
21680,
953,
834,
18517,
2394,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
434,
35,
77,
5352,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is diagnoses short title and diagnoses long title of diagnoses icd9 code v5866? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "V5866" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18730,
7,
5,
7,
14184,
834,
21869,
6,
18730,
7,
5,
2961,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
447,
26,
1298,
834,
4978,
3274,
96,
553,
3449,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16? | CREATE TABLE table_name_51 (
total VARCHAR,
rank VARCHAR,
bronze VARCHAR,
nation VARCHAR
) | SELECT COUNT(total) FROM table_name_51 WHERE bronze < 8 AND nation = "netherlands" AND rank < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
13467,
3,
2,
505,
3430,
2982,
3274,
96,
29,
16764,
6347,
121,
3430,
11003,
3,
2,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players were names Howard Eisley? | CREATE TABLE table_16862 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT COUNT("No.") FROM table_16862 WHERE "Player" = 'Howard Eisley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
4056,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4168,
5,
8512,
21680,
953,
834,
24274,
4056,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
7825,
986,
16988,
1306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Lambert's song choice in the top 13? | CREATE TABLE table_24420 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Song choice" FROM table_24420 WHERE "Week #" = 'Top 13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
21899,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
2444,
1160,
121,
21680,
953,
834,
2266,
21899,
549,
17444,
427,
96,
518,
10266,
1713,
121,
3274,
3,
31,
22481,
1179,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the width feet in meeters for the truss with a source of nbi (2009)? | CREATE TABLE table_name_63 (width_feet__m_ VARCHAR, source__year_ VARCHAR) | SELECT width_feet__m_ FROM table_name_63 WHERE source__year_ = "nbi (2009)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
12018,
189,
834,
89,
15,
15,
17,
834,
834,
51,
834,
584,
4280,
28027,
6,
1391,
834,
834,
1201,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9400,
834,
89,
15,
15,
17,
834,
834,
51,
834,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1391,
834,
834,
1201,
834,
3274,
96,
29,
115,
23,
3,
25812,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which home team an Away team score of 7.9 (51)? | CREATE TABLE table_51922 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Home team" FROM table_51922 WHERE "Away team score" = '7.9 (51)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
2884,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
755,
2294,
2884,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
940,
5,
1298,
9209,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the time when laps is less than 21, manufacturer is aprilia, grid is less than 17 and the rider is thomas luthi? | CREATE TABLE table_44332 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Time" FROM table_44332 WHERE "Laps" < '21' AND "Manufacturer" = 'aprilia' AND "Grid" < '17' AND "Rider" = 'thomas luthi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
519,
2668,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
3628,
519,
2668,
549,
17444,
427,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
2658,
31,
3430,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
9,
102,
52,
13565,
31,
3430,
96,
13313,
26,... |
How many different lead margins were stated in the poll administered on September 11, 2008? | CREATE TABLE table_17538810_10 (
lead_margin VARCHAR,
dates_administered VARCHAR
) | SELECT COUNT(lead_margin) FROM table_17538810_10 WHERE dates_administered = "September 11, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4867,
4060,
1714,
834,
1714,
41,
991,
834,
1635,
122,
77,
584,
4280,
28027,
6,
5128,
834,
9,
26,
17791,
15,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
109,
9,
26,
834,
1635,
122,
77,
61,
21680,
953,
834,
2517,
4867,
4060,
1714,
834,
1714,
549,
17444,
427,
5128,
834,
9,
26,
17791,
15,
26,
3274,
96,
27652,
9694,
2628,
121,
1,
-100,
-100,
-100,
-1... |
What school or club did number 35 play for? | CREATE TABLE table_11545282_7 (school_club_team VARCHAR, no VARCHAR) | SELECT school_club_team FROM table_11545282_7 WHERE no = 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
2128,
2577,
357,
834,
940,
41,
6646,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
496,
42,
1886,
410,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
834,
13442,
834,
11650,
21680,
953,
834,
15660,
2128,
2577,
357,
834,
940,
549,
17444,
427,
150,
3274,
3097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which fleet was named Orenburg? | CREATE TABLE table_name_87 (fleet VARCHAR, name VARCHAR) | SELECT fleet FROM table_name_87 WHERE name = "orenburg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
89,
109,
15,
17,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9111,
47,
2650,
955,
13576,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9111,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
564,
3274,
96,
127,
13576,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which item has a score of 5-1? | CREATE TABLE table_80355 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_80355 WHERE "Result" = '5-1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
2469,
755,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2079,
2469,
755,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
755,
2292,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For the Cage Combat Fighting Championships: Mayhem, what was the record? | CREATE TABLE table_name_13 (
record VARCHAR,
event VARCHAR
) | SELECT record FROM table_name_13 WHERE event = "cage combat fighting championships: mayhem" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1368,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
205,
545,
26885,
30979,
7666,
7,
10,
932,
6015,
6,
125,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
605,
3274,
96,
75,
545,
4719,
6237,
10183,
7,
10,
164,
6015,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many people in the sorata municipality when the quiabaya municipality has 33? | CREATE TABLE table_27402 (
"Language" text,
"Sorata Municipality" text,
"Guanay Municipality" text,
"Tacacoma Municipality" text,
"Quiabaya Municipality" text,
"Combaya Municipality" text,
"Tipuani Municipality" text,
"Mapiri Municipality" text,
"Teoponte Municipality" text
) | SELECT "Sorata Municipality" FROM table_27402 WHERE "Quiabaya Municipality" = '33' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2445,
357,
41,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
5231,
9300,
16492,
485,
121,
1499,
6,
96,
9105,
152,
9,
63,
16492,
485,
121,
1499,
6,
96,
382,
9,
658,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5231,
9300,
16492,
485,
121,
21680,
953,
834,
2555,
2445,
357,
549,
17444,
427,
96,
5991,
23,
9,
11119,
9,
16492,
485,
121,
3274,
3,
31,
4201,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Television service has a Content of general television? | CREATE TABLE table_7755 (
"Television service" text,
"Country" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) | SELECT "Television service" FROM table_7755 WHERE "Content" = 'general television' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3769,
41,
96,
382,
400,
6610,
313,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
4302,
4669,
121,
1499,
6,
96,
11083,
4562,
121,
1499,
6,
96,
24376,
545,
87,
9546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
400,
6610,
313,
121,
21680,
953,
834,
4013,
3769,
549,
17444,
427,
96,
4302,
4669,
121,
3274,
3,
31,
27369,
4390,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which vocal type did the musician with first name 'Solveig' played in the song with title 'A Bar in Amsterdam'? | CREATE TABLE instruments (
songid number,
bandmateid number,
instrument text
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type text
)
CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CREATE TABLE performance (
songi... | SELECT type FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = "Solveig" AND T2.title = "A Bar In Amsterdam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7778,
41,
2324,
23,
26,
381,
6,
1928,
5058,
23,
26,
381,
6,
5009,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14234,
41,
3052,
381,
6,
2233,
1499,
6,
215,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
686,
21680,
6721,
7,
6157,
332,
536,
3,
15355,
3162,
3605,
6157,
332,
357,
9191,
332,
5411,
7,
2444,
23,
26,
3274,
332,
4416,
7,
2444,
23,
26,
3,
15355,
3162,
1928,
6157,
332,
519,
9191,
332,
5411,
3348,
5058,
327... |
What is the number of claimed sales in the rock genre? | CREATE TABLE table_name_85 (
claimed_sales VARCHAR,
genre VARCHAR
) | SELECT claimed_sales FROM table_name_85 WHERE genre = "rock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
7760,
834,
7,
4529,
584,
4280,
28027,
6,
5349,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
7760,
1085,
16,
8,
2480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7760,
834,
7,
4529,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
5349,
3274,
96,
6133,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient? | CREATE TABLE table_name_57 (name VARCHAR, status VARCHAR, moving_to VARCHAR) | SELECT name FROM table_name_57 WHERE status = "loaned" AND moving_to = "leyton orient" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
4350,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
2616,
21,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2637,
3274,
96,
40,
8086,
26,
121,
3430,
1735,
834,
235,
3274,
96,
109,
21220,
3,
5757,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT OPPONENT HAD A KICKOFF OF 2007-03-06, 20:45? | CREATE TABLE table_name_2 (
opponents VARCHAR,
kick_off VARCHAR
) | SELECT opponents FROM table_name_2 WHERE kick_off = "2007-03-06, 20:45" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
16383,
584,
4280,
28027,
6,
4583,
834,
1647,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
411,
6158,
4170,
6431,
454,
6762,
71,
480,
252... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16383,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
4583,
834,
1647,
3274,
96,
20615,
18,
4928,
18,
5176,
6,
460,
10,
2128,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the listed in games played when the player is jimmy alapag? | CREATE TABLE table_28628309_8 (
games_played VARCHAR,
player VARCHAR
) | SELECT games_played FROM table_28628309_8 WHERE player = "Jimmy Alapag" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4056,
4591,
4198,
834,
927,
41,
1031,
834,
4895,
15,
26,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2616,
16,
1031... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1031,
834,
4895,
15,
26,
21680,
953,
834,
2577,
4056,
4591,
4198,
834,
927,
549,
17444,
427,
1959,
3274,
96,
683,
603,
2258,
901,
9,
11057,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what series did Charles Barkley (34) did most high points? | CREATE TABLE table_30087032_5 (
series VARCHAR,
high_points VARCHAR
) | SELECT series FROM table_30087032_5 WHERE high_points = "Charles Barkley (34)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
927,
2518,
2668,
834,
755,
41,
939,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
939,
410,
5417,
24828,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
5426,
927,
2518,
2668,
834,
755,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
18947,
965,
24828,
1306,
6918,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is maximum age of patients whose admission type is urgent and admission year is greater than or equal to 2177? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.admityear >= "2177" | [
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,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
4013,
121,
1,
-100,
-1... |
Name the number of poles for fastest laps being 6 | CREATE TABLE table_2725949_6 (
poles VARCHAR,
fastest_laps VARCHAR
) | SELECT COUNT(poles) FROM table_2725949_6 WHERE fastest_laps = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
357,
3390,
3647,
834,
948,
41,
11148,
7,
584,
4280,
28027,
6,
10391,
834,
8478,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
11148,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14332,
7,
61,
21680,
953,
834,
2555,
357,
3390,
3647,
834,
948,
549,
17444,
427,
10391,
834,
8478,
7,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Bronze medals did the Nation with 0 Silver receive? | CREATE TABLE table_name_37 (
bronze INTEGER,
silver INTEGER
) | SELECT MAX(bronze) FROM table_name_37 WHERE silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
13467,
3,
21342,
17966,
6,
4294,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
20841,
9365,
7,
410,
8,
11046,
28,
3,
632,
5642,
911,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, draw a scatter chart about the correlation between price and revenue , and group by attribute headquarter. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Price, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5312,
6,
19764,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
19973,
1,
-100,
-100,
-100,
-... |
Which United States player has a To par of 14? | CREATE TABLE table_15251 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT "Player" FROM table_15251 WHERE "Country" = 'united states' AND "To par" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
5553,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
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,
15800,
49,
121,
21680,
953,
834,
26320,
5553,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
3696,
260,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Result has a District of pennsylvania 13? | CREATE TABLE table_34970 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
) | SELECT "Result" FROM table_34970 WHERE "District" = 'pennsylvania 13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
2518,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
519,
3647,
2518,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
3208,
29,
7,
63,
40,
16658,
9,
1179,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
body mass index of at least 25 kg / m2. | CREATE TABLE table_train_198 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"fasting_plasma_glucose" int,
"diabetes" bool,
"body_mass_index_bmi" float,
"type_1_patients" bool,
"NOUSE" float
) | SELECT * FROM table_train_198 WHERE body_mass_index_bmi >= 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
24151,
41,
96,
23,
26,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
3,
12660,
6,
96,
11584,
53,
834,
21178,
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,
1429,
21680,
953,
834,
9719,
834,
24151,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
2423,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose admission type is newborn and admission location is transfer from hosp/extram? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
4171,
518,
8471,
14151,
121,
3430,
14798,
5,
9,
26,
5451,
834,... |
What was the title of the episode with the production code 311? | CREATE TABLE table_16972 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT "Title" FROM table_16972 WHERE "Production code" = '311' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
5865,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
27096,
5865,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
519,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date has lost as the result and a competition of friendly with 1-2 as the score? | CREATE TABLE table_14742 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_14742 WHERE "Result" = 'lost' AND "Competition" = 'friendly' AND "Score" = '1-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
4165,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
24719,
4165,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
2298,
17,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
9596,
3... |
What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro? | CREATE TABLE table_37522 (
"Camera" text,
"Sensor resolution" text,
"Sensor" text,
"Output" text,
"CPU usage" text,
"IR LEDs" text
) | SELECT "Sensor resolution" FROM table_37522 WHERE "CPU usage" = 'minimal' AND "Camera" = 'naturalpoint trackir 3 pro' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
2884,
41,
96,
254,
9,
935,
9,
121,
1499,
6,
96,
134,
35,
7,
127,
3161,
121,
1499,
6,
96,
134,
35,
7,
127,
121,
1499,
6,
96,
15767,
2562,
121,
1499,
6,
96,
254,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
35,
7,
127,
3161,
121,
21680,
953,
834,
22954,
2884,
549,
17444,
427,
96,
254,
10744,
4742,
121,
3274,
3,
31,
7619,
1982,
31,
3430,
96,
254,
9,
935,
9,
121,
3274,
3,
31,
14884,
2700,
1463,
23,
52,
220,
... |
what's the grid with time +37.949? | CREATE TABLE table_name_59 (
grid VARCHAR,
time VARCHAR
) | SELECT COUNT(grid) FROM table_name_59 WHERE time = "+37.949" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
8634,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
8634,
28,
97,
1768,
4118,
5,
1298,
3647,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
97,
3274,
96,
1220,
4118,
5,
1298,
3647,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
previous gastrointestinal bleeding within 6 months, bleeding diathesis, platelet count < 100000 / mm3 or hemoglobin < 10 g / dl | CREATE TABLE table_test_24 (
"id" int,
"history_of_bleeding_diathesis" bool,
"bleeding" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"blood_draw" bool,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"allergy_to_clopidogrel" bool,
"cardiogenic_shock" boo... | SELECT * FROM table_test_24 WHERE gastrointestinal_disease = 1 OR bleeding = 1 OR platelet_count < 100000 OR hemoglobin_a1c_hba1c < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2266,
41,
96,
23,
26,
121,
16,
17,
6,
96,
10193,
10972,
834,
858,
834,
27779,
53,
834,
26,
23,
9,
24874,
121,
3,
12840,
40,
6,
96,
27779,
53,
121,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
2266,
549,
17444,
427,
3,
30282,
834,
26,
159,
14608,
3274,
209,
4674,
19021,
3274,
209,
4674,
3829,
1655,
834,
13362,
3,
2,
910,
2313,
4674,
24731,
14063,
77,
834,
9,
536,
75,
834,... |
Which long version was remixed in 1986? | CREATE TABLE table_name_51 (
remixed_by VARCHAR,
year VARCHAR,
version VARCHAR
) | SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "long version" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
26063,
15,
26,
834,
969,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
307,
988,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
26063,
15,
26,
834,
969,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
215,
3274,
12698,
3430,
988,
3274,
96,
2961,
988,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the total number of patients with diseases of tricuspid valve who remained admitted in the hosiptal for more than 1 day? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.long_title = "Diseases of tricuspid valve" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Who was the vacator when the date successor seated was august 21, 1973? | CREATE TABLE table_1134091_4 (vacator VARCHAR, date_successor_seated VARCHAR) | SELECT vacator FROM table_1134091_4 WHERE date_successor_seated = "August 21, 1973" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
2445,
4729,
834,
591,
41,
8938,
1016,
584,
4280,
28027,
6,
833,
834,
7,
17431,
24901,
834,
22933,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8938,
1016,
21680,
953,
834,
20522,
2445,
4729,
834,
591,
549,
17444,
427,
833,
834,
7,
17431,
24901,
834,
22933,
3274,
96,
26579,
12026,
17107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many people were assisted in 1997? | CREATE TABLE table_name_14 (
people_assisted VARCHAR,
year VARCHAR
) | SELECT people_assisted FROM table_name_14 WHERE year = "1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
151,
834,
9,
7,
15777,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
130,
11752,
16,
6622,
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,
151,
834,
9,
7,
15777,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
215,
3274,
96,
2294,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What did Geelong score as the away team? | CREATE TABLE table_name_91 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_91 WHERE away_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
8006,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
961,
15,
2961,
2604,
38,
8,
550,
372,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
550,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
where did hancock get 3.09% | CREATE TABLE table_23145 (
"County" text,
"Starky #" real,
"Starky %" text,
"Hancock #" real,
"Hancock %" text,
"McCain #" real,
"McCain %" text,
"Total" real
) | SELECT "County" FROM table_23145 WHERE "Hancock %" = '3.09%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
20987,
41,
96,
10628,
63,
121,
1499,
6,
96,
7681,
3781,
1713,
121,
490,
6,
96,
7681,
3781,
3,
1454,
121,
1499,
6,
96,
566,
152,
12105,
1713,
121,
490,
6,
96,
566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
2773,
20987,
549,
17444,
427,
96,
566,
152,
12105,
3,
1454,
121,
3274,
3,
31,
5787,
632,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Nationality of daniel goneau? | CREATE TABLE table_name_11 (
nationality VARCHAR,
player VARCHAR
) | SELECT nationality FROM table_name_11 WHERE player = "daniel goneau" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
868,
485,
13,
3,
26,
2738,
15,
40,
2767,
402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1959,
3274,
96,
26,
2738,
15,
40,
2767,
402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many entries are there for first driver for Canada? | CREATE TABLE table_13416000_3 (
first_driver_s_ VARCHAR,
country VARCHAR
) | SELECT COUNT(first_driver_s_) FROM table_13416000_3 WHERE country = "Canada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
2313,
834,
519,
41,
166,
834,
13739,
52,
834,
7,
834,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10066,
33,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14672,
834,
13739,
52,
834,
7,
834,
61,
21680,
953,
834,
23747,
2938,
2313,
834,
519,
549,
17444,
427,
684,
3274,
96,
28811,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between manufacturer and code , and group by attribute founder. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Manufacturer, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
7296,
76,
8717,
450,
49,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
How many episodes were directed by Sarah Pia Anderson? | CREATE TABLE table_25896 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT COUNT("Title") FROM table_25896 WHERE "Directed by" = 'Sarah Pia Anderson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
4314,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
2847,
17161,
599,
121,
382,
155,
109,
8512,
21680,
953,
834,
357,
3449,
4314,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
134,
2551,
107,
2745,
9,
11825,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the lowest attendance for games played on december 23? | CREATE TABLE table_23308178_6 (attendance INTEGER, date VARCHAR) | SELECT MIN(attendance) FROM table_23308178_6 WHERE date = "December 23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4018,
27640,
834,
948,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
11364,
21,
1031,
1944,
30,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
20879,
4018,
27640,
834,
948,
549,
17444,
427,
833,
3274,
96,
29835,
1902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the studio for super callanetics | CREATE TABLE table_74088 (
"Year" real,
"Title" text,
"Format" text,
"Studio" text,
"Release Date" text,
"Copyright Information" text,
"Catalog Number" text
) | SELECT "Studio" FROM table_74088 WHERE "Title" = 'Super Callanetics' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2445,
4060,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
1649,
40,
14608... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13076,
26,
23,
32,
121,
21680,
953,
834,
940,
2445,
4060,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
23290,
2571,
152,
7578,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the total number of attendance for october 20, 1946 with week less than 4 | CREATE TABLE table_name_43 (
attendance VARCHAR,
date VARCHAR,
week VARCHAR
) | SELECT COUNT(attendance) FROM table_name_43 WHERE date = "october 20, 1946" AND week < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
11364,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
16047,
25021,
121,
3430,
471,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who did not have any job in the past, draw a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, I want to sort by the names from high to low. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
2168... |
specify the drug type of pantoprazole sodium | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Pantoprazole Sodium" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
345,
288,
32,
5319,
12423,
15,
3,
28637,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients of white ethnicity followed the procedure dx ultrasound-heart? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "WHITE" AND procedures.short_title = "Dx ultrasound-heart" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is channel 33.7's official call sign? | CREATE TABLE table_19098 (
"Call sign" text,
"Analog channel" text,
"Digital channel" text,
"Virtual channel" text,
"Network" text,
"Station Ownership" text
) | SELECT "Call sign" FROM table_19098 WHERE "Virtual channel" = '33.7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
3916,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
188,
29,
9,
2152,
4245,
121,
1499,
6,
96,
30225,
4245,
121,
1499,
6,
96,
21031,
17,
3471,
4245,
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,
254,
1748,
1320,
121,
21680,
953,
834,
11776,
3916,
549,
17444,
427,
96,
21031,
17,
3471,
4245,
121,
3274,
3,
31,
519,
25168,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was the ranking 1? | CREATE TABLE table_name_47 (year VARCHAR, rank VARCHAR) | SELECT year FROM table_name_47 WHERE rank = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1201,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
11592,
209,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
11003,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Year(s) Won, when Player is Arnold Palmer? | CREATE TABLE table_50192 (
"Player" text,
"Country" text,
"Year(s) won" real,
"Total" real,
"To par" real,
"Finish" text
) | SELECT "Year(s) won" FROM table_50192 WHERE "Player" = 'arnold palmer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
19978,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
490,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
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,
476,
2741,
599,
7,
61,
751,
121,
21680,
953,
834,
1752,
19978,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
291,
29,
1490,
8466,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest number of drawn games by a team? | CREATE TABLE table_28201906_1 (
drawn INTEGER
) | SELECT MIN(drawn) FROM table_28201906_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
8584,
5176,
834,
536,
41,
6796,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
6796,
1031,
57,
3,
9,
372,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19489,
29,
61,
21680,
953,
834,
2577,
8584,
5176,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which location has an elevation of 3798? | CREATE TABLE table_2731431_1 (location VARCHAR, elevation__m_ VARCHAR) | SELECT location FROM table_2731431_1 WHERE elevation__m_ = 3798 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
519,
2534,
3341,
834,
536,
41,
14836,
584,
4280,
28027,
6,
16417,
834,
834,
51,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1128,
65,
46,
16417,
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,
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,
2555,
519,
2534,
3341,
834,
536,
549,
17444,
427,
16417,
834,
834,
51,
834,
3274,
6862,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Money ($) of the game with a score of 69-74-70-73=286? | CREATE TABLE table_name_57 (
money___ INTEGER,
score VARCHAR
) | SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
540,
834,
834,
834,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8833,
8785,
61,
13,
8,
467,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2604,
3274,
3,
3951,
3,
18,
3,
4581,
3,
18,
2861,
3,
18,
3,
4552,
3274,
204,
3840,
1,
-100,
-100,
... |
What was the 2010 result for a 2008 result of LQ and 2011 result of 2R? | CREATE TABLE table_name_30 (Id VARCHAR) | SELECT 2010 FROM table_name_30 WHERE 2008 = "lq" AND 2011 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2735,
741,
21,
3,
9,
2628,
741,
13,
301,
2247,
11,
2722,
741,
13,
204,
448,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2735,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2628,
3274,
96,
40,
1824,
121,
3430,
2722,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game attended by 54,110? | CREATE TABLE table_name_73 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_73 WHERE attendance = "54,110" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
5526,
57,
10630,
6,
1927... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
11364,
3274,
96,
5062,
6,
19277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the class AAAAA in 2008-09? | CREATE TABLE table_14603057_2 (
class_aAAAA VARCHAR,
school_year VARCHAR
) | SELECT class_aAAAA FROM table_14603057_2 WHERE school_year = "2008-09" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3328,
1458,
3436,
834,
357,
41,
853,
834,
9,
5498,
5498,
584,
4280,
28027,
6,
496,
834,
1201,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
853... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
853,
834,
9,
5498,
5498,
21680,
953,
834,
2534,
3328,
1458,
3436,
834,
357,
549,
17444,
427,
496,
834,
1201,
3274,
96,
16128,
18,
4198,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44? | CREATE TABLE table_name_78 (
silver INTEGER,
gold VARCHAR,
rank VARCHAR
) | SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
4294,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
4294,
9365,
7,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
96,
235,
1947,
121,
2490,
204,
3430,
11003,
3274,
96,
235,
1947,
121,
3430,
2045,
2490,
8537,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
number of players on the team . | CREATE TABLE table_203_621 (
id number,
"player" text,
"games played" number,
"minutes played" number,
"minutes played per game" number,
"rebounds" number,
"rebounds per game" number,
"assists" number,
"assists per game" number,
"field goal %" number,
"free throw %" number,
... | SELECT COUNT("player") FROM table_203_621 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4056,
536,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
7261,
7,
1944,
121,
381,
6,
96,
6890,
7,
1944,
121,
381,
6,
96,
6890,
7,
1944,
399,
467,
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,
2847,
17161,
599,
121,
20846,
8512,
21680,
953,
834,
23330,
834,
4056,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result of the game with a score of 4-1? | CREATE TABLE table_name_65 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_65 WHERE score = "4-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
28,
3,
9,
2604,
13,
314... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
2604,
3274,
96,
591,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many documents for each document type name? Visualize by a ar chart, show how many document type name in asc order. | CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),... | SELECT Document_Type_Name, COUNT(Document_Type_Name) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Name ORDER BY COUNT(Document_Type_Name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
279,
13164,
17,
834,
22737,
7,
41,
12532,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
12532,
834,
25160,
834,
2962,
11830,
584,
4280,
28027,
599,
25502,
61,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
25160,
834,
23954,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
25160,
834,
23954,
61,
21680,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
3... |
When 142900 is the population what is the highest rank? | CREATE TABLE table_25794 (
"Rank" real,
"City/Town" text,
"County" text,
"Region/Province" text,
"Population" real,
"Country" text
) | SELECT MAX("Rank") FROM table_25794 WHERE "Population" = '142900' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4440,
591,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
87,
382,
9197,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
17748,
23,
106,
87,
3174,
2494,
565,
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,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
1828,
4440,
591,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
24978,
7015,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had an Ipsos of 27%? | CREATE TABLE table_55579 (
"Party" text,
"Results 2004" text,
"CSA 5/28/09" text,
"Ifop 5/30/09" text,
"Ipsos 5/30/09" text,
"BVA 6/1/09" text,
"TNS-Sofres 6/2/09" text,
"OpinionWay 6/3/09" text,
"Ipsos 6/3/09" text,
"TNS-Sofres 6/4/09" text,
"CSA 6/4/09" text,
"Ifop 6/4/... | SELECT "Party" FROM table_55579 WHERE "Ipsos 6/3/09" = '27%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28803,
4440,
41,
96,
13725,
63,
121,
1499,
6,
96,
20119,
7,
4406,
121,
1499,
6,
96,
24135,
305,
87,
2577,
87,
4198,
121,
1499,
6,
96,
5801,
32,
102,
305,
87,
1458,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
28803,
4440,
549,
17444,
427,
96,
196,
102,
7,
32,
7,
431,
14207,
87,
4198,
121,
3274,
3,
31,
357,
6170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the average age of students who are living in the dorm with the largest capacity. | CREATE TABLE lives_in (
stuid VARCHAR,
dormid VARCHAR
)
CREATE TABLE student (
age INTEGER,
stuid VARCHAR
)
CREATE TABLE dorm (
student_capacity INTEGER
) | SELECT AVG(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT MAX(student_capacity) FROM dorm) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1342,
834,
77,
41,
21341,
23,
26,
584,
4280,
28027,
6,
103,
52,
6983,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
1246,
3,
21342,
17966,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
382,
5411,
545,
61,
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,
3,
15355,
3162,
103,
52,
... |
For those records from the products and each product's manufacturer, find founder and the average of manufacturer , and group by attribute founder, and visualize them by a bar chart, I want to sort by the Y-axis in asc. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Founder, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY AVG(Manufacturer) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
19145,
6,
71,
17217,
599,
7296,
76,
8717,
450,
49,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
2... |
Tell me the average heat rank for time less than 24.02 and lane of 1 | CREATE TABLE table_4397 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" text
) | SELECT AVG("Heat Rank") FROM table_4397 WHERE "Time" < '24.02' AND "Lane" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4327,
41,
96,
3845,
144,
3,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
134,
210,
12174,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
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,
3845,
144,
3,
22557,
8512,
21680,
953,
834,
4906,
4327,
549,
17444,
427,
96,
13368,
121,
3,
2,
3,
31,
2266,
5,
4305,
31,
3430,
96,
434,
152,
15,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.