NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Music has a Points Jury of 18 (5,5,4,4)? | CREATE TABLE table_name_32 (music VARCHAR, points_jury VARCHAR) | SELECT music FROM table_name_32 WHERE points_jury = "18 (5,5,4,4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
22170,
584,
4280,
28027,
6,
979,
834,
10609,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3057,
65,
3,
9,
4564,
7,
15598,
63,
13,
507... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
723,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
979,
834,
10609,
63,
3274,
96,
2606,
9209,
6,
11116,
8525,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the mean vertical relief in feet when the rank is more than 40 and the location is va0573? | CREATE TABLE table_name_94 (
vertical_relief__ft_ INTEGER,
rank VARCHAR,
location VARCHAR
) | SELECT AVG(vertical_relief__ft_) FROM table_name_94 WHERE rank > 40 AND location = "va0573" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
5857,
834,
60,
1896,
89,
834,
834,
89,
17,
834,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
3027,
1950,
834,
60,
1896,
89,
834,
834,
89,
17,
834,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
11003,
2490,
1283,
3430,
1128,
3274,
96,
900,
3076,
4552,
121,
1,
-100,
-100,
-100,
-100,
... |
What is the number of Mike Thomas? | CREATE TABLE table_20860739_1 (
position VARCHAR,
player VARCHAR
) | SELECT COUNT(position) FROM table_20860739_1 WHERE player = "Mike Thomas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3840,
4560,
3288,
834,
536,
41,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
4794,
3576,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
1755,
3840,
4560,
3288,
834,
536,
549,
17444,
427,
1959,
3274,
96,
329,
5208,
3576,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the partner of the team that faced the guillermo garc a-l pez albert portas on clay? | CREATE TABLE table_name_45 (
partner VARCHAR,
surface VARCHAR,
opponents VARCHAR
) | SELECT partner FROM table_name_45 WHERE surface = "clay" AND opponents = "guillermo garcía-lópez albert portas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
2397,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2397,
13,
8,
372,
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,
2397,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
16383,
3274,
96,
1744,
7613,
51,
32,
5260,
75,
2,
9,
18,
40,
4922,
102,
457,
491,
7041,
2147,
9,
7,
121,
1,
-100,
-10... |
List the number of people injured by perpetrators in ascending order. | CREATE TABLE perpetrator (
Injured VARCHAR
) | SELECT Injured FROM perpetrator ORDER BY Injured | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
28998,
127,
41,
86,
2047,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
381,
13,
151,
7532,
57,
28998,
127,
7,
16,
25200,
53,
455,
5,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
86,
2047,
1271,
21680,
28998,
127,
4674,
11300,
272,
476,
86,
2047,
1271,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find names of trains that run through stations for the local authority Chiltern, compare the total number of name in a bar graph. | CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE route (
train_id int,
station_id int
) | SELECT name, COUNT(name) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" GROUP BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
3,
23,
26,
16,
17,
6,
2412,
834,
5525,
1152,
16,
17,
6,
564,
1499,
6,
5233,
1499,
6,
3954,
1499,
6,
97,
1499,
6,
8572,
1499,
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,
564,
6,
2847,
17161,
599,
4350,
61,
21680,
2478,
6157,
3,
17,
536,
3,
15355,
3162,
2981,
6157,
3,
17,
357,
9191,
3,
17,
5411,
23,
26,
3274,
3,
17,
4416,
6682,
834,
23,
26,
3,
15355,
3162,
2412,
6157,
3,
17,
51... |
Show the nations that have both hosts older than 45 and hosts younger than 35. | CREATE TABLE HOST (
Nationality VARCHAR,
Age INTEGER
) | SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
454,
14464,
41,
868,
485,
584,
4280,
28027,
6,
7526,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
9352,
24,
43,
321,
9855,
2749,
145,
3479,
11,
9855,
5868,
145,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
868,
485,
21680,
454,
14464,
549,
17444,
427,
7526,
2490,
3479,
3,
21342,
5249,
14196,
3,
23143,
14196,
868,
485,
21680,
454,
14464,
549,
17444,
427,
7526,
3,
2,
3097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many won 83 points for? | CREATE TABLE table_20396710_1 (
won VARCHAR,
points_for VARCHAR
) | SELECT won FROM table_20396710_1 WHERE points_for = "83" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3288,
3708,
1714,
834,
536,
41,
751,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
751,
3,
4591,
979,
21,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
751,
21680,
953,
834,
1755,
3288,
3708,
1714,
834,
536,
549,
17444,
427,
979,
834,
1161,
3274,
96,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the points in the season with 47 games and 28 goals? | CREATE TABLE table_61394 (
"Name" text,
"Season" text,
"Games" text,
"Goals" text,
"Assists" text,
"Points" text
) | SELECT "Points" FROM table_61394 WHERE "Goals" = '28' AND "Games" = '47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3288,
591,
41,
96,
23954,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
6221,
5405,
121,
1499,
6,
96,
188,
7,
7,
343,
7,
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,
22512,
7,
121,
21680,
953,
834,
4241,
3288,
591,
549,
17444,
427,
96,
6221,
5405,
121,
3274,
3,
31,
2577,
31,
3430,
96,
23055,
7,
121,
3274,
3,
31,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what 's the total limiting matitude of coast visible and coast infrared ? | CREATE TABLE table_203_279 (
id number,
"interferometer and observing mode" text,
"waveband" text,
"limiting magnitude" number,
"minimum baseline (m)\n(un-projected)" number,
"maximum baseline (m)" number,
"approx. no. visibility measurements per year\n(measurements per night x nights used per year)" number,
"max ratio of no. phase / no. amplitude measurements\n(measure of imaging performance, 0 = none)" number,
"accuracy of amplitude2 measurements" text,
"accuracy of phase measurements\n(milli-radians)" number,
"number of spectral channels\n(max in use simultaneously)" text,
"comments" text
) | SELECT SUM("limiting magnitude") FROM table_203_279 WHERE "interferometer and observing mode" IN ('coast visible', 'coast infrared') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
4440,
41,
3,
23,
26,
381,
6,
96,
3870,
1010,
14148,
11,
3,
23493,
2175,
121,
1499,
6,
96,
12301,
3348,
121,
1499,
6,
96,
17979,
20722,
121,
381,
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,
180,
6122,
599,
121,
17979,
20722,
8512,
21680,
953,
834,
23330,
834,
357,
4440,
549,
17444,
427,
96,
3870,
1010,
14148,
11,
3,
23493,
2175,
121,
3388,
41,
31,
25500,
5183,
31,
6,
3,
31,
25500,
16,
89,
11096,
26,
... |
What is the date of the election where Sir Christopher William Codrington was elected as First Member and Robert Stayner Holford as the Second Member? | CREATE TABLE table_53214 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "Election" FROM table_53214 WHERE "1st Member" = 'sir christopher william codrington' AND "2nd Member" = 'robert stayner holford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
27357,
41,
96,
427,
12252,
121,
1499,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
12252,
121,
21680,
953,
834,
4867,
27357,
549,
17444,
427,
96,
536,
7,
17,
8541,
121,
3274,
3,
31,
7,
23,
52,
3,
15294,
10775,
49,
56,
23,
265,
10763,
52,
6029,
31,
3430,
96,
357,
727,
8541,
121,
3274,
... |
Which location has a Score of 3 2, and a Record of 3 2 3? | CREATE TABLE table_name_31 (
location VARCHAR,
score VARCHAR,
record VARCHAR
) | SELECT location FROM table_name_31 WHERE score = "3–2" AND record = "3–2–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1128,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1128,
65,
3,
9,
17763,
13,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2604,
3274,
96,
519,
104,
357,
121,
3430,
1368,
3274,
96,
519,
104,
357,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average age for each dorm and what are the names of each dorm Plot them as bar chart, and show by the total number from low to high. | CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
) | SELECT dorm_name, 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 GROUP BY T3.dorm_name ORDER BY AVG(T1.Age) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4498,
834,
9,
904,
485,
41,
103,
52,
6983,
3,
21342,
17966,
6,
183,
35,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
103,
52,
51,
834,
4350,
6,
71,
17217,
599,
382,
5411,
188,
397,
61,
21680,
6341,
6157,
332,
536,
3,
15355,
3162,
3306,
7,
834,
77,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76... |
What is the copa libertadores 1996 of team corinthians? | CREATE TABLE table_name_32 (
copa_libertadores_1996 VARCHAR,
team VARCHAR
) | SELECT copa_libertadores_1996 FROM table_name_32 WHERE team = "corinthians" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
7326,
9,
834,
10661,
17,
10097,
7,
834,
2294,
4314,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7326,
9,
834,
10661,
17,
10097,
7,
834,
2294,
4314,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
372,
3274,
96,
5715,
77,
189,
7137,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the biggest series episode number whose production code is 2t7211? | CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR) | SELECT MAX(no) FROM table_21979779_1 WHERE production_code = "2T7211" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4327,
4327,
4440,
834,
536,
41,
29,
32,
3,
21342,
17966,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2630,
939,
5640,
381,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
61,
21680,
953,
834,
2658,
4327,
4327,
4440,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
357,
382,
5865,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which week had an attendance of 53,677? | CREATE TABLE table_name_43 (week VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_43 WHERE attendance = "53,677" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
8041,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
471,
141,
46,
11364,
13,
12210,
6,
3708,
940,
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,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
11364,
3274,
96,
4867,
6,
3708,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many districts have John C. Calhoun as the incumbent? | CREATE TABLE table_2668352_16 (district VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_2668352_16 WHERE incumbent = "John C. Calhoun" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
2469,
357,
834,
2938,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14126,
43,
1079,
205,
5,
3104,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
2688,
3651,
2469,
357,
834,
2938,
549,
17444,
427,
28406,
3274,
96,
18300,
205,
5,
3104,
9492,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team has a bowl of humanitarian? | CREATE TABLE table_32715 (
"Team" text,
"Bowl" text,
"Season coach" text,
"Interim head coach" text,
"Result" text,
"2008 head coach" text
) | SELECT "Team" FROM table_32715 WHERE "Bowl" = 'humanitarian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
1808,
41,
96,
18699,
121,
1499,
6,
96,
279,
2381,
40,
121,
1499,
6,
96,
134,
15,
9,
739,
3763,
121,
1499,
6,
96,
17555,
603,
819,
3763,
121,
1499,
6,
96,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
519,
2555,
1808,
549,
17444,
427,
96,
279,
2381,
40,
121,
3274,
3,
31,
12450,
155,
6855,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
when patient 006-254232 was first discharged in a year before from the hospital? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
) | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '006-254232' AND DATETIME(patient.hospitaldischargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaldischargetime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
26,
159,
7993,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
25369,
5062,
23188,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
26,
159,
7993,
715,
6,
3,
... |
What is the accreditation type of Vodacom Group PTY LTD (Vodafone group)? | CREATE TABLE table_45493 (
"Company name" text,
"Network brand name" text,
"Country" text,
"Accreditation type" text,
"Accreditation level" text,
"Date" text
) | SELECT "Accreditation type" FROM table_45493 WHERE "Company name" = 'vodacom group pty ltd (vodafone group)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3647,
519,
41,
96,
5890,
2837,
63,
564,
121,
1499,
6,
96,
9688,
1981,
1056,
564,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
188,
75,
15547,
257,
686,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
75,
15547,
257,
686,
121,
21680,
953,
834,
2128,
3647,
519,
549,
17444,
427,
96,
5890,
2837,
63,
564,
121,
3274,
3,
31,
1621,
26,
9,
287,
563,
3,
102,
17,
63,
3,
40,
17,
26,
41,
1621,
26,
9,
89,
782... |
List the names of all distinct nurses ordered by alphabetical order? | CREATE TABLE nurse (
name VARCHAR
) | SELECT DISTINCT name FROM nurse ORDER BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10444,
41,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
3056,
13,
66,
6746,
14993,
5563,
57,
20688,
1950,
455,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
564,
21680,
10444,
4674,
11300,
272,
476,
564,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the most serial number for feb 1994 | CREATE TABLE table_30892 (
"Number" text,
"Serial Number" real,
"Into Service" text,
"Withdrawn" text,
"Scrapped" text
) | SELECT MAX("Serial Number") FROM table_30892 WHERE "Scrapped" = 'Feb 1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3914,
357,
41,
96,
567,
5937,
49,
121,
1499,
6,
96,
134,
15,
12042,
7720,
121,
490,
6,
96,
27201,
1387,
121,
1499,
6,
96,
15013,
19489,
29,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
15,
12042,
7720,
8512,
21680,
953,
834,
1458,
3914,
357,
549,
17444,
427,
96,
134,
2935,
6811,
26,
121,
3274,
3,
31,
371,
15,
115,
7520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What team ran car #24 on August 30? | CREATE TABLE table_name_56 (
team VARCHAR,
car__number VARCHAR,
date VARCHAR
) | SELECT team FROM table_name_56 WHERE car__number = 24 AND date = "august 30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
372,
584,
4280,
28027,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
4037,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
443,
834,
834,
5525,
1152,
3274,
997,
3430,
833,
3274,
96,
402,
17198,
604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the partner with opponent of micha lla krajicek eleni daniilidou | CREATE TABLE table_6500 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponent" text,
"Score" text
) | SELECT "Partner" FROM table_6500 WHERE "Opponent" = 'michaëlla krajicek eleni daniilidou' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2560,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
687,
121,
21680,
953,
834,
948,
2560,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
51,
362,
9,
2,
195,
9,
3,
157,
9655,
867,
157,
3,
15,
26532,
3,
26,
10365,
8130,
1063,
31,
1,
-100,
-100,... |
What is the permitted length of stay in the Jersey territory? | CREATE TABLE table_25965003_3 (length_of_stay_permitted VARCHAR, countries_and_territories VARCHAR) | SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "Jersey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4314,
2560,
519,
834,
519,
41,
19457,
834,
858,
834,
21545,
834,
883,
16030,
584,
4280,
28027,
6,
1440,
834,
232,
834,
449,
52,
15467,
15,
7,
584,
4280,
28027,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2475,
834,
858,
834,
21545,
834,
883,
16030,
21680,
953,
834,
1828,
4314,
2560,
519,
834,
519,
549,
17444,
427,
1440,
834,
232,
834,
449,
52,
15467,
15,
7,
3274,
96,
683,
277,
15,
63,
121,
1,
-100,
-100,
-100,
-10... |
what is minimum age of patients whose gender is m and discharge location is disch-tran to psych hosp? | 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 text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
15438,
8360,
18,
11359,
567,
3001,
5610,
476,
8360... |
WHich Tournament has a Finalist of marat safin (12)? | CREATE TABLE table_name_47 (tournament VARCHAR, finalist VARCHAR) | SELECT tournament FROM table_name_47 WHERE finalist = "marat safin (12)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
804,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
20502,
65,
3,
9,
6514,
343,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
804,
343,
3274,
96,
1635,
144,
3,
7,
9,
89,
77,
16465,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was incumbent jim ramstad first elected? | CREATE TABLE table_1341423_23 (first_elected INTEGER, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_1341423_23 WHERE incumbent = "Jim Ramstad" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
2773,
834,
2773,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
28406,
3,
354,
603,
3,
2375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2534,
2773,
834,
2773,
549,
17444,
427,
28406,
3274,
96,
683,
603,
4425,
2427,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Height, when Name is "Manuela Zanchi"? | CREATE TABLE table_name_95 (height VARCHAR, name VARCHAR) | SELECT height FROM table_name_95 WHERE name = "manuela zanchi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
88,
2632,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
24231,
6,
116,
5570,
19,
96,
7296,
76,
15,
521,
4904,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3902,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
564,
3274,
96,
348,
76,
15,
521,
3,
10241,
1436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When asv n rnberg-s d is the mittelfranken s d what is the season? | CREATE TABLE table_23224961_2 (
season VARCHAR,
mittelfranken_süd VARCHAR
) | SELECT season FROM table_23224961_2 WHERE mittelfranken_süd = "ASV Nürnberg-Süd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2884,
3647,
4241,
834,
357,
41,
774,
584,
4280,
28027,
6,
3,
5401,
6296,
2217,
834,
7,
1272,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
38,
208,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
774,
21680,
953,
834,
2773,
2884,
3647,
4241,
834,
357,
549,
17444,
427,
3,
5401,
6296,
2217,
834,
7,
1272,
26,
3274,
96,
188,
7416,
28211,
18,
134,
1272,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many laps were there when the Time/Retired was +14.403? | CREATE TABLE table_name_45 (
laps VARCHAR,
time_retired VARCHAR
) | SELECT laps FROM table_name_45 WHERE time_retired = "+14.403" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
14941,
7,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
130,
132,
116,
8,
2900... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14941,
7,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
18446,
23444,
4928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which patients have the bupr75 drug code? | 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,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "BUPR75" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8? | CREATE TABLE table_name_62 (voter_turnout INTEGER, byut VARCHAR, ou_psd VARCHAR) | SELECT MIN(voter_turnout) FROM table_name_62 WHERE byut = 50.7 AND ou_psd < 36.8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1621,
449,
834,
7535,
670,
3,
21342,
17966,
6,
57,
76,
17,
584,
4280,
28027,
6,
407,
834,
102,
7,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1621,
449,
834,
7535,
670,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
57,
76,
17,
3274,
305,
22426,
3430,
407,
834,
102,
7,
26,
3,
2,
4475,
5,
927,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the opponent in week 4? | CREATE TABLE table_19637 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | SELECT "Opponent" FROM table_19637 WHERE "Week" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
4118,
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,
1649,
7621,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
26937,
4118,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What series was Sam Evans on? | CREATE TABLE table_14758 (
"Series" text,
"Name" text,
"Hometown" text,
"Occupation" text,
"Status" text
) | SELECT "Series" FROM table_14758 WHERE "Name" = 'sam evans' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
3449,
41,
96,
12106,
7,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
667,
75,
4658,
257,
121,
1499,
6,
96,
134,
17,
144,
302,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
24719,
3449,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7,
265,
3,
15,
2132,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the nationality of the player kevin stevens? | CREATE TABLE table_2679061_6 (
nationality VARCHAR,
player VARCHAR
) | SELECT nationality FROM table_2679061_6 WHERE player = "Kevin Stevens" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3708,
2394,
4241,
834,
948,
41,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1157,
485,
13,
8,
1959,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
357,
3708,
2394,
4241,
834,
948,
549,
17444,
427,
1959,
3274,
96,
439,
15,
2494,
9316,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Report the distinct registration date and the election cycle. | CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number,
secretary_vote number,
treasurer_vote number,
class_president_vote number,
class_senator_vote number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT DISTINCT registration_date, election_cycle FROM voting_record | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10601,
834,
60,
7621,
41,
21341,
23,
26,
381,
6,
3816,
834,
5522,
1499,
6,
4356,
834,
10136,
1499,
6,
2753,
834,
1621,
17,
15,
381,
6,
6444,
834,
102,
15704,
834,
1621,
17,
15,
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,
3,
15438,
25424,
6227,
3816,
834,
5522,
6,
4356,
834,
10136,
21680,
10601,
834,
60,
7621,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was a game played at MCG? | CREATE TABLE table_51988 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_51988 WHERE "Venue" = 'mcg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
4060,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
755,
2294,
4060,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
51,
75,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What band is the highest and has a System of gsm-450? | CREATE TABLE table_name_22 (
band INTEGER,
system VARCHAR
) | SELECT MAX(band) FROM table_name_22 WHERE system = "gsm-450" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
1928,
3,
21342,
17966,
6,
358,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1928,
19,
8,
2030,
11,
65,
3,
9,
2149,
13,
3,
122,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3348,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
358,
3274,
96,
122,
7,
51,
18,
10593,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me the comparison about enr over the state by a bar chart. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | SELECT state, enr FROM College ORDER BY enr | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
538,
6,
3,
35,
52,
21680,
1888,
4674,
11300,
272,
476,
3,
35,
52,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the finished place where exited is day 11? | CREATE TABLE table_14345690_5 (
finished VARCHAR,
exited VARCHAR
) | SELECT finished FROM table_14345690_5 WHERE exited = "Day 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3710,
4834,
2394,
834,
755,
41,
2369,
584,
4280,
28027,
6,
7189,
15,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2369,
286,
213,
7189,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2369,
21680,
953,
834,
2534,
3710,
4834,
2394,
834,
755,
549,
17444,
427,
7189,
15,
26,
3274,
96,
16803,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who had a rank more than 48, and a last in 2005? | CREATE TABLE table_name_16 (name VARCHAR, rank VARCHAR, last VARCHAR) | SELECT name FROM table_name_16 WHERE rank > 48 AND last = 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
4350,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
11003,
72,
145,
4678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
11003,
2490,
4678,
3430,
336,
3274,
3105,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest tier for a position smaller than 7 for a Turkish Cup group stage? | CREATE TABLE table_name_99 (tier INTEGER, turkish_cup VARCHAR, pos VARCHAR) | SELECT MIN(tier) FROM table_name_99 WHERE turkish_cup = "group stage" AND pos < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
3276,
3,
21342,
17966,
6,
3,
2905,
157,
1273,
834,
4658,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3276,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
3,
2905,
157,
1273,
834,
4658,
3274,
96,
10739,
1726,
121,
3430,
3,
2748,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients with lab test item id 50803 and delta lab test abnormal status. | 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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50803" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
count the number of patients whose discharge location is disc-tran cancer/chldrn h and procedure icd9 code is 8604? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.icd9_code = "8604" | [
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,... |
Who was the worship leader that had a lead supporting vocal Marcus Temu? | CREATE TABLE table_50427 (
"Track" real,
"Song" text,
"Author" text,
"Worship Leader" text,
"Lead Supporting Vocal" text,
"Time" text
) | SELECT "Worship Leader" FROM table_50427 WHERE "Lead Supporting Vocal" = 'marcus temu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
2555,
41,
96,
382,
16729,
121,
490,
6,
96,
134,
2444,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
518,
127,
2009,
10310,
121,
1499,
6,
96,
2796,
9,
26,
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,
96,
518,
127,
2009,
10310,
121,
21680,
953,
834,
1752,
591,
2555,
549,
17444,
427,
96,
2796,
9,
26,
4224,
53,
3152,
1489,
121,
3274,
3,
31,
1635,
1071,
7,
3,
3524,
76,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total in 2000 2012, with more than 2 silver, 0 Bronze, and a Rank smaller than 70? | CREATE TABLE table_63315 (
"Rank" real,
"Nation" text,
"Sport" text,
"Years" text,
"Games" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Total") FROM table_63315 WHERE "Years" = '2000–2012' AND "Silver" > '2' AND "Bronze" = '0' AND "Rank" < '70' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
519,
1808,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
23576,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
8512,
21680,
953,
834,
3891,
519,
1808,
549,
17444,
427,
96,
476,
2741,
7,
121,
3274,
3,
31,
13527,
104,
12172,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
357,
31,
3430,
96,
... |
What is the rank associated with 0 wins and a 350cc class? | CREATE TABLE table_37047 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | SELECT "Rank" FROM table_37047 WHERE "Wins" = '0' AND "Class" = '350cc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22520,
4177,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22557,
121,
1499,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
22520,
4177,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
21486,
121,
3274,
3,
31,
16975,
75,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which state regent is from the same hometown as ronald h. white , m.d. ? | CREATE TABLE table_204_68 (
id number,
"name" text,
"profession" text,
"hometown" text,
"term expires" number,
"office" text
) | SELECT "name" FROM table_204_68 WHERE "name" <> 'ronald h. white, m.d' AND "hometown" = (SELECT "hometown" FROM table_204_68 WHERE "name" = 'ronald h. white, m.d') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3651,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
1409,
17585,
121,
1499,
6,
96,
5515,
3540,
121,
1499,
6,
96,
1987,
8982,
15,
7,
121,
381,
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,
4350,
121,
21680,
953,
834,
26363,
834,
3651,
549,
17444,
427,
96,
4350,
121,
3,
2,
3155,
3,
31,
52,
9533,
26,
3,
107,
5,
872,
6,
3,
51,
5,
26,
31,
3430,
96,
5515,
3540,
121,
3274,
41,
23143,
14196,
96,
... |
let me know the prescribed drug and primary disease of patient with patient id 10317. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT demographic.diagnosis, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "10317" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
7744,
7,
5,
26,
13534,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5... |
What is the result in 2008-09 that has a 2011-12 result of qf? | CREATE TABLE table_41247 (
"Event" text,
"2006\u201307" text,
"2007\u201308" text,
"2008\u201309" text,
"2009\u201310" text,
"2010\u201311" text,
"2011\u201312" text,
"2012\u201313" text
) | SELECT "2008\u201309" FROM table_41247 WHERE "2011\u201312" = 'qf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
4177,
41,
96,
427,
2169,
121,
1499,
6,
96,
21196,
2,
76,
11138,
4560,
121,
1499,
6,
96,
20615,
2,
76,
11138,
4018,
121,
1499,
6,
96,
16128,
2,
76,
11138,
4198,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16128,
2,
76,
11138,
4198,
121,
21680,
953,
834,
591,
2122,
4177,
549,
17444,
427,
96,
13907,
2,
76,
11138,
2122,
121,
3274,
3,
31,
1824,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many episodes were directed by Sarah Pia Anderson? | CREATE TABLE table_23287683_1 (title VARCHAR, directed_by VARCHAR) | SELECT COUNT(title) FROM table_23287683_1 WHERE directed_by = "Sarah Pia Anderson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
3959,
4591,
834,
536,
41,
21869,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
130,
6640,
57,
8077,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
2773,
2577,
3959,
4591,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
134,
2551,
107,
2745,
9,
11825,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which series had a title of Boyhood Daze? | CREATE TABLE table_66178 (
"Title" text,
"Series" text,
"Director" text,
"Release date" text,
"reissue?" text
) | SELECT "Series" FROM table_66178 WHERE "Title" = 'boyhood daze' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
27640,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
60,
13159,
4609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12106,
7,
121,
21680,
953,
834,
3539,
27640,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
7531,
4500,
836,
776,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show all transaction types. | CREATE TABLE financial_transactions (
transaction_id number,
previous_transaction_id number,
account_id number,
card_id number,
transaction_type text,
transaction_date time,
transaction_amount number,
transaction_comment text,
other_transaction_details text
)
CREATE TABLE customers_cards (
card_id number,
customer_id number,
card_type_code text,
card_number text,
date_valid_from time,
date_valid_to time,
other_card_details text
)
CREATE TABLE accounts (
account_id number,
customer_id number,
account_name text,
other_account_details text
)
CREATE TABLE customers (
customer_id number,
customer_first_name text,
customer_last_name text,
customer_address text,
customer_phone text,
customer_email text,
other_customer_details text
) | SELECT DISTINCT transaction_type FROM financial_transactions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
981,
834,
7031,
4787,
7,
41,
5878,
834,
23,
26,
381,
6,
1767,
834,
7031,
4787,
834,
23,
26,
381,
6,
905,
834,
23,
26,
381,
6,
895,
834,
23,
26,
381,
6,
5878,
834,
6137,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
5878,
834,
6137,
21680,
981,
834,
7031,
4787,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09? | CREATE TABLE table_39645 (
"Date" text,
"2nd Bundesliga 16th" text,
"3rd Liga 3rd" text,
"Game 1" text,
"Game 2" text
) | SELECT "3rd Liga 3rd" FROM table_39645 WHERE "Game 1" = '0-1' AND "Date" = '2008-09' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4314,
2128,
41,
96,
308,
342,
121,
1499,
6,
96,
357,
727,
28117,
898,
189,
121,
1499,
6,
96,
519,
52,
26,
18515,
220,
52,
26,
121,
1499,
6,
96,
23055,
209,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
519,
52,
26,
18515,
220,
52,
26,
121,
21680,
953,
834,
519,
4314,
2128,
549,
17444,
427,
96,
23055,
209,
121,
3274,
3,
31,
632,
2292,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
16128,
18,
4198,
31,
1,
-100,
... |
On the Circuit Zolder who was the winning team? | CREATE TABLE table_25213146_2 (
winning_team VARCHAR,
circuit VARCHAR
) | SELECT winning_team FROM table_25213146_2 WHERE circuit = "circuit Zolder" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
357,
2368,
24300,
834,
357,
41,
3447,
834,
11650,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
8,
17007,
1027,
1490,
49,
113,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
11650,
21680,
953,
834,
1828,
357,
2368,
24300,
834,
357,
549,
17444,
427,
4558,
3274,
96,
15357,
21560,
1027,
1490,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which department has a small of 11370? | CREATE TABLE table_21249915_1 (department VARCHAR, small__100ha_ VARCHAR) | SELECT department FROM table_21249915_1 WHERE small__100ha_ = 11370 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2266,
3264,
1808,
834,
536,
41,
221,
2274,
297,
584,
4280,
28027,
6,
422,
834,
834,
2915,
1024,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3066,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3066,
21680,
953,
834,
2658,
2266,
3264,
1808,
834,
536,
549,
17444,
427,
422,
834,
834,
2915,
1024,
834,
3274,
850,
22520,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many results have the two candidates Gene Taylor (r) 67.0% Ken Young (d) 33.0%? | CREATE TABLE table_1341586_26 (result VARCHAR, candidates VARCHAR) | SELECT COUNT(result) FROM table_1341586_26 WHERE candidates = "Gene Taylor (R) 67.0% Ken Young (D) 33.0%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
3840,
834,
2688,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
772,
43,
8,
192,
4341,
6939,
7909... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
7,
83,
17,
61,
21680,
953,
834,
23747,
1808,
3840,
834,
2688,
549,
17444,
427,
4341,
3274,
96,
13714,
15,
7909,
41,
448,
61,
3,
3708,
5,
6932,
5704,
5209,
41,
308,
61,
5400,
5,
6932,
121,
1... |
What are the enrollments of schools whose denomination is not 'Catholic'? | CREATE TABLE school_performance (
school_id number,
school_year text,
class_a text,
class_aa text
)
CREATE TABLE school_details (
school_id number,
nickname text,
colors text,
league text,
class text,
division text
)
CREATE TABLE player (
player_id number,
player text,
team text,
age number,
position text,
school_id number
)
CREATE TABLE school (
school_id number,
school text,
location text,
enrollment number,
founded number,
denomination text,
boys_or_girls text,
day_or_boarding text,
year_entered_competition number,
school_colors text
) | SELECT enrollment FROM school WHERE denomination <> "Catholic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
18558,
41,
496,
834,
23,
26,
381,
6,
496,
834,
1201,
1499,
6,
853,
834,
9,
1499,
6,
853,
834,
9,
9,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
17938,
21680,
496,
549,
17444,
427,
28730,
3,
2,
3155,
96,
18610,
26641,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did elisabeth of valois die? | CREATE TABLE table_71257 (
"Name" text,
"Father" text,
"Birth" text,
"Marriage" text,
"Became Countess" text,
"Ceased to be Countess" text,
"Death" text,
"Spouse" text
) | SELECT "Death" FROM table_71257 WHERE "Name" = 'elisabeth of valois' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
357,
3436,
41,
96,
23954,
121,
1499,
6,
96,
371,
144,
760,
121,
1499,
6,
96,
279,
23,
52,
189,
121,
1499,
6,
96,
329,
10269,
545,
121,
1499,
6,
96,
2703,
6527,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2962,
9,
189,
121,
21680,
953,
834,
4450,
357,
3436,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
15,
40,
159,
9,
346,
189,
13,
409,
14970,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the aggressive rider when the sprint classification was andr greipel and mountains classification was timothy roe? | CREATE TABLE table_25580292_13 (
aggressive_rider VARCHAR,
sprint_classification VARCHAR,
mountains_classification VARCHAR
) | SELECT aggressive_rider FROM table_25580292_13 WHERE sprint_classification = "André Greipel" AND mountains_classification = "Timothy Roe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
2079,
3166,
357,
834,
2368,
41,
8299,
834,
4055,
49,
584,
4280,
28027,
6,
21710,
834,
4057,
2420,
584,
4280,
28027,
6,
8022,
834,
4057,
2420,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8299,
834,
4055,
49,
21680,
953,
834,
25502,
2079,
3166,
357,
834,
2368,
549,
17444,
427,
21710,
834,
4057,
2420,
3274,
96,
7175,
2339,
7186,
23,
4343,
121,
3430,
8022,
834,
4057,
2420,
3274,
96,
382,
603,
32,
189,
... |
what is the oldest and lives in veraguas | CREATE TABLE table_27515452_3 (age INTEGER, hometown VARCHAR) | SELECT MAX(age) FROM table_27515452_3 WHERE hometown = "Veraguas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
27308,
5373,
834,
519,
41,
545,
3,
21342,
17966,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
10043,
11,
1342,
16,
548,
9,
1744,
9,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
545,
61,
21680,
953,
834,
25988,
27308,
5373,
834,
519,
549,
17444,
427,
22295,
3274,
96,
5000,
9,
1744,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
With Laps greater than 78, what is the lowest Grid? | CREATE TABLE table_52757 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MIN("Grid") FROM table_52757 WHERE "Laps" > '78' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2555,
3436,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
13313,
26,
8512,
21680,
953,
834,
755,
2555,
3436,
549,
17444,
427,
96,
3612,
102,
7,
121,
2490,
3,
31,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the sum of ERP W for class of d and frequency mhz of 98.7 | CREATE TABLE table_name_56 (erp_w INTEGER, class VARCHAR, frequency_mhz VARCHAR) | SELECT SUM(erp_w) FROM table_name_56 WHERE class = "d" AND frequency_mhz = 98.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
49,
102,
834,
210,
3,
21342,
17966,
6,
853,
584,
4280,
28027,
6,
7321,
834,
51,
107,
172,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
49,
102,
834,
210,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
853,
3274,
96,
26,
121,
3430,
7321,
834,
51,
107,
172,
3274,
3,
3916,
5,
940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 1 active, 1 inactive is the canadian chapters how many founding dates are there? | CREATE TABLE table_30523 (
"Letters" text,
"Organization" text,
"Nickname" text,
"Founding Date" text,
"Founding University" text,
"Type" text,
"Canadian Chapters" text
) | SELECT COUNT("Founding Date") FROM table_30523 WHERE "Canadian Chapters" = '1 Active, 1 Inactive' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26724,
2773,
41,
96,
434,
15583,
7,
121,
1499,
6,
96,
14878,
257,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
371,
32,
1106,
53,
7678,
121,
1499,
6,
96,
371,
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,
2847,
17161,
599,
121,
371,
32,
1106,
53,
7678,
8512,
21680,
953,
834,
26724,
2773,
549,
17444,
427,
96,
14050,
9,
8603,
8647,
7,
121,
3274,
3,
31,
536,
11383,
6,
209,
86,
6645,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is Record, when Location Attendance is 'Izod Center 16,911'? | CREATE TABLE table_50735 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_50735 WHERE "Location Attendance" = 'izod center 16,911' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
940,
2469,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
1752,
940,
2469,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
14406,
26,
1530,
11940,
4729,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0? | CREATE TABLE table_name_69 (
division INTEGER,
goals VARCHAR,
country VARCHAR,
apps VARCHAR
) | SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
4889,
3,
21342,
17966,
6,
1766,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
4050,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
26,
23,
6610,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
684,
3274,
96,
7,
49,
15500,
11,
6278,
35,
15,
3844,
121,
3430,
4050,
3,
2,
586,
3430,
1766,
2490,
3,
632,
1,
-100,
-100,
-100... |
How many tries for are there when 11 were won? | CREATE TABLE table_21849 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Tries for" FROM table_21849 WHERE "Won" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
3647,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
2593,
21,
121,
21680,
953,
834,
357,
2606,
3647,
549,
17444,
427,
96,
518,
106,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients? | CREATE TABLE table_16175217_1 (
donor_payment VARCHAR,
children_per_donor VARCHAR,
allowed_recipients VARCHAR
) | SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2517,
5373,
2517,
834,
536,
41,
18936,
834,
21752,
584,
4280,
28027,
6,
502,
834,
883,
834,
2029,
127,
584,
4280,
28027,
6,
2225,
834,
60,
3389,
4741,
7,
584,
4280,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18936,
834,
21752,
21680,
953,
834,
2938,
2517,
5373,
2517,
834,
536,
549,
17444,
427,
502,
834,
883,
834,
2029,
127,
3274,
96,
948,
502,
121,
3430,
2225,
834,
60,
3389,
4741,
7,
3274,
96,
29,
32,
331,
121,
1,
-10... |
What are the names of the tourist attractions that can be accessed by bus? | CREATE TABLE tourist_attractions (
tourist_attraction_id number,
attraction_type_code text,
location_id number,
how_to_get_there text,
name text,
description text,
opening_hours text,
other_details text
)
CREATE TABLE tourist_attraction_features (
tourist_attraction_id number,
feature_id number
)
CREATE TABLE theme_parks (
theme_park_id number,
theme_park_details text
)
CREATE TABLE locations (
location_id number,
location_name text,
address text,
other_details text
)
CREATE TABLE hotels (
hotel_id number,
star_rating_code text,
pets_allowed_yn text,
price_range number,
other_hotel_details text
)
CREATE TABLE features (
feature_id number,
feature_details text
)
CREATE TABLE ref_hotel_star_ratings (
star_rating_code text,
star_rating_description text
)
CREATE TABLE street_markets (
market_id number,
market_details text
)
CREATE TABLE royal_family (
royal_family_id number,
royal_family_details text
)
CREATE TABLE visitors (
tourist_id number,
tourist_details text
)
CREATE TABLE museums (
museum_id number,
museum_details text
)
CREATE TABLE staff (
staff_id number,
tourist_attraction_id number,
name text,
other_details text
)
CREATE TABLE shops (
shop_id number,
shop_details text
)
CREATE TABLE photos (
photo_id number,
tourist_attraction_id number,
name text,
description text,
filename text,
other_details text
)
CREATE TABLE visits (
visit_id number,
tourist_attraction_id number,
tourist_id number,
visit_date time,
visit_details text
)
CREATE TABLE ref_attraction_types (
attraction_type_code text,
attraction_type_description text
) | SELECT name FROM tourist_attractions WHERE how_to_get_there = "bus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8548,
834,
144,
10559,
7,
41,
8548,
834,
144,
10559,
834,
23,
26,
381,
6,
13715,
834,
6137,
834,
4978,
1499,
6,
1128,
834,
23,
26,
381,
6,
149,
834,
235,
834,
2782,
834,
12137,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
8548,
834,
144,
10559,
7,
549,
17444,
427,
149,
834,
235,
834,
2782,
834,
12137,
3274,
96,
3465,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When 61 is the entries what is the winning boat? | CREATE TABLE table_24673710_1 (
winning_boat VARCHAR,
entries VARCHAR
) | SELECT winning_boat FROM table_24673710_1 WHERE entries = 61 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3708,
4118,
1714,
834,
536,
41,
3447,
834,
14131,
584,
4280,
28027,
6,
10066,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
4241,
19,
8,
10066,
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,
3447,
834,
14131,
21680,
953,
834,
2266,
3708,
4118,
1714,
834,
536,
549,
17444,
427,
10066,
3274,
3,
4241,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What lowest games have 20 goals and a Goal Ratio smaller than 0.14? | CREATE TABLE table_name_51 (
games INTEGER,
goals VARCHAR,
goal_ratio VARCHAR
) | SELECT MIN(games) FROM table_name_51 WHERE goals = 20 AND goal_ratio < 0.14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1031,
3,
21342,
17966,
6,
1766,
584,
4280,
28027,
6,
1288,
834,
6850,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7402,
1031,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1766,
3274,
460,
3430,
1288,
834,
6850,
32,
3,
2,
4097,
2534,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Money of the Player with a Score of 71-66-74-67=278? | CREATE TABLE table_name_46 (money___ INTEGER, score VARCHAR) | SELECT AVG(money___) AS $__ FROM table_name_46 WHERE score = 71 - 66 - 74 - 67 = 278 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
28442,
834,
834,
834,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8833,
13,
8,
12387,
28,
3,
9,
17763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2604,
3274,
3,
4450,
3,
18,
3,
3539,
3,
18,
3,
4581,
3,
18,
3,
3708,
3274,
204,
3940,
1,
-100,
... |
Name the school/club team for 9 | CREATE TABLE table_15463188_16 (school_club_team VARCHAR, number VARCHAR) | SELECT school_club_team FROM table_15463188_16 WHERE number = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
3891,
25794,
834,
2938,
41,
6646,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
496,
87,
13442,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
27308,
3891,
25794,
834,
2938,
549,
17444,
427,
381,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When has a Result of w 41-27? | CREATE TABLE table_name_23 (
date VARCHAR,
result VARCHAR
) | SELECT date FROM table_name_23 WHERE result = "w 41-27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
833,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
65,
3,
9,
3,
20119,
13,
3,
210,
8798,
18,
2555,
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,
833,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
741,
3274,
96,
210,
8798,
18,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the last diagnosis for patient 009-13409 in the first hospital encounter. | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-13409' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) ORDER BY diagnosis.diagnosistime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
8209,
5,
25930,
4844,
159,
4350,
21680,
8209,
549,
17444,
427,
8209,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3... |
What is the average Tries with less than 0 goals? | CREATE TABLE table_name_7 (
tries INTEGER,
goals INTEGER
) | SELECT AVG(tries) FROM table_name_7 WHERE goals < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3,
9000,
3,
21342,
17966,
6,
1766,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
332,
2593,
28,
705,
145,
3,
632,
1766,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
9000,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1766,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the venue of the game on 20 November 2002? | CREATE TABLE table_name_33 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_33 WHERE date = "20 november 2002" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
13,
8,
467,
30,
460,
1671,
4407,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
1755,
3,
5326,
18247,
4407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose item id is 51256 and lab test abnormal status is abnormal? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51256" AND lab.flag = "abnormal" | [
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 was the crowd size at Victoria Park? | CREATE TABLE table_name_18 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_18 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
75,
3623,
26,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4374,
812,
44,
7488,
1061,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4374,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List the wheels and locations of the railways. | CREATE TABLE railway (
Wheels VARCHAR,
LOCATION VARCHAR
) | SELECT Wheels, LOCATION FROM railway | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14421,
41,
10707,
7,
584,
4280,
28027,
6,
301,
5618,
8015,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
8277,
11,
3248,
13,
8,
14421,
7,
5,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10707,
7,
6,
301,
5618,
8015,
21680,
14421,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)? | CREATE TABLE table_name_40 (
frequency__mhz_ INTEGER,
type VARCHAR,
call_letters VARCHAR
) | SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
7321,
834,
834,
51,
107,
172,
834,
3,
21342,
17966,
6,
686,
584,
4280,
28027,
6,
580,
834,
16024,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
30989,
834,
834,
51,
107,
172,
834,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
686,
3274,
96,
8234,
1208,
121,
3430,
580,
834,
16024,
7,
3274,
96,
8511,
17,
226,
18,
89,
51,
121,
1,
-... |
How many downloads of ep and album respectively? | CREATE TABLE tags (
index number,
id number,
tag text
)
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
) | SELECT SUM(totalsnatched) FROM torrents WHERE releasetype = "ep" UNION SELECT SUM(totalsnatched) FROM torrents WHERE releasetype = "album" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12391,
41,
5538,
381,
6,
3,
23,
26,
381,
6,
7860,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23326,
7,
41,
563,
4350,
1499,
6,
792,
7,
29,
144,
4513,
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,
180,
6122,
599,
235,
1947,
7,
29,
144,
4513,
61,
21680,
23326,
7,
549,
17444,
427,
1576,
6137,
3274,
96,
15,
102,
121,
4417,
9215,
3,
23143,
14196,
180,
6122,
599,
235,
1947,
7,
29,
144,
4513,
61,
21680,
23326,
7,... |
Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders. | CREATE TABLE invoice_lines (
id number,
invoice_id number,
track_id number,
unit_price number,
quantity number
)
CREATE TABLE artists (
id number,
name text
)
CREATE TABLE invoices (
id number,
customer_id number,
invoice_date time,
billing_address text,
billing_city text,
billing_state text,
billing_country text,
billing_postal_code text,
total number
)
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE genres (
id number,
name text
)
CREATE TABLE albums (
id number,
title text,
artist_id number
)
CREATE TABLE playlist_tracks (
playlist_id number,
track_id number
)
CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
)
CREATE TABLE sqlite_sequence (
name text,
seq text
)
CREATE TABLE tracks (
id number,
name text,
album_id number,
media_type_id number,
genre_id number,
composer text,
milliseconds number,
bytes number,
unit_price number
)
CREATE TABLE media_types (
id number,
name text
)
CREATE TABLE playlists (
id number,
name text
) | SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10921,
834,
6972,
41,
3,
23,
26,
381,
6,
10921,
834,
23,
26,
381,
6,
1463,
834,
23,
26,
381,
6,
1745,
834,
102,
4920,
381,
6,
8708,
381,
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,
332,
5411,
14672,
834,
4350,
6,
332,
5411,
5064,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
10921,
7,
6157,
332,
357,
9191,
332,
4416,
25697,
49,
834,
23,
26,
3274,
332,
... |
Who did the high rebounds in the game in which Brandon Jennings (8) did the high assists? | CREATE TABLE table_22871316_6 (
high_rebounds VARCHAR,
high_assists VARCHAR
) | SELECT high_rebounds FROM table_22871316_6 WHERE high_assists = "Brandon Jennings (8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4225,
2368,
2938,
834,
948,
41,
306,
834,
23768,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
2884,
4225,
2368,
2938,
834,
948,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
18304,
29,
2029,
1022,
9416,
7,
3,
28007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Kitchen knives is segment a of what episode? | CREATE TABLE table_1193 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Episode" FROM table_1193 WHERE "Segment A" = 'Kitchen Knives' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4271,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
9688,
89,
17591,
121,
1499,
6,
96,
134,
15,
122,
297,
71,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
102,
159,
32,
221,
121,
21680,
953,
834,
2596,
4271,
549,
17444,
427,
96,
134,
15,
122,
297,
71,
121,
3274,
3,
31,
439,
7059,
35,
16141,
162,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What commercial operation that has a gross capacity of 1,126 mw, and a unit of tianwan-4? | CREATE TABLE table_name_95 (
commercial_operation VARCHAR,
gross_capacity VARCHAR,
unit VARCHAR
) | SELECT commercial_operation FROM table_name_95 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
1328,
834,
22280,
584,
4280,
28027,
6,
8690,
834,
4010,
9,
6726,
584,
4280,
28027,
6,
1745,
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,
1... | [
3,
23143,
14196,
1328,
834,
22280,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
8690,
834,
4010,
9,
6726,
3274,
96,
4347,
21976,
3,
51,
210,
121,
3430,
1745,
3274,
96,
12572,
3877,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Which To par is of thomas aiken? | CREATE TABLE table_63613 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) | SELECT "To par" FROM table_63613 WHERE "Player" = 'thomas aiken' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3420,
2368,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
948,
3420,
2368,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
189,
32,
2754,
3,
9,
23,
2217,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me the comparison about ID over the meter_300 , and show by the y axis in descending. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
) | SELECT meter_300, ID FROM swimmer ORDER BY ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
5426,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
4699,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Rider is grid 7? | CREATE TABLE table_49648 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Rider" FROM table_49648 WHERE "Grid" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4314,
3707,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
448,
23,
588,
121,
21680,
953,
834,
591,
4314,
3707,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which position is the team Cerro Porte o? | CREATE TABLE table_19682 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | SELECT "Position" FROM table_19682 WHERE "Team" = 'Cerro Porteño' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
4613,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
26937,
4613,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
254,
49,
52,
32,
3625,
15,
2,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the most runs conceded | CREATE TABLE table_20274 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
) | SELECT MAX("Runs Conceded") FROM table_20274 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
4581,
41,
96,
23954,
121,
1499,
6,
96,
23847,
7,
10715,
1361,
121,
1499,
6,
96,
21978,
537,
7,
121,
490,
6,
96,
448,
202,
7,
1193,
565,
221,
26,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
202,
7,
1193,
565,
221,
26,
8512,
21680,
953,
834,
19818,
4581,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the reason for change in staff in formal installations on March 15, 1865? | CREATE TABLE table_2147588_3 (
reason_for_change VARCHAR,
date_of_successors_formal_installation VARCHAR
) | SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = "March 15, 1865" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
3072,
4060,
834,
519,
41,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
6,
833,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
584,
4280,
28027,
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,
1053,
834,
1161,
834,
13073,
21680,
953,
834,
27357,
3072,
4060,
834,
519,
549,
17444,
427,
833,
834,
858,
834,
7,
17431,
24901,
7,
834,
2032,
138,
834,
14790,
3274,
96,
25019,
10725,
507,
4122,
121,
1,
-100,
-100,
... |
what is the number of inpatient hospital admission patients born before 2175? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "2175" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
11421,
7016,
11951,
3162,
12689,
377,
5173,
3502,
15296,
121,
3... |
What is the lowest First Elected, when Party is 'Republican', and when District is 'Minnesota 1'? | CREATE TABLE table_58741 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) | SELECT MIN("First elected") FROM table_58741 WHERE "Party" = 'republican' AND "District" = 'minnesota 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4581,
536,
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,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
3449,
4581,
536,
549,
17444,
427,
96,
13725,
63,
121,
3274,
3,
31,
60,
15727,
152,
31,
3430,
96,
308,
23,
20066,
121,
3274,
3,
31,
1109,
1496,
32,
17,
9,
2... |
What team was the opponent on 03/18/08? | CREATE TABLE table_47859 (
"Date" text,
"Time" text,
"Opponent" text,
"Site" text,
"City" text
) | SELECT "Opponent" FROM table_47859 WHERE "Date" = '03/18/08' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
3390,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
254,
485,
121,
1499,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
591,
3940,
3390,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
4928,
19133,
87,
4018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What player attended UAB college? | CREATE TABLE table_name_53 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_53 WHERE college = "uab" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
20846,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
5526,
412,
5359,
1900,
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,
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,
1959,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1900,
3274,
96,
76,
9,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who wrote the series number 49 with a season larger than 4? | CREATE TABLE table_name_27 (
written_by VARCHAR,
season_no VARCHAR,
series_no VARCHAR
) | SELECT written_by FROM table_name_27 WHERE season_no > 4 AND series_no = 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1545,
834,
969,
584,
4280,
28027,
6,
774,
834,
29,
32,
584,
4280,
28027,
6,
939,
834,
29,
32,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
774,
834,
29,
32,
2490,
314,
3430,
939,
834,
29,
32,
3274,
9526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the position for christopher smith | CREATE TABLE table_25017530_5 (position VARCHAR, player VARCHAR) | SELECT position FROM table_25017530_5 WHERE player = "Christopher Smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
2517,
26918,
834,
755,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1102,
21,
3,
15294,
10775,
49,
3,
16331,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
11434,
2517,
26918,
834,
755,
549,
17444,
427,
1959,
3274,
96,
20941,
10775,
49,
3931,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the 2nd runner-up for season 7 | CREATE TABLE table_name_59 (
season_number VARCHAR
) | SELECT 2 AS nd_runner_up FROM table_name_59 WHERE season_number = "season 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
774,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
204,
727,
3,
10806,
18,
413,
21,
774,
489,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
10806,
834,
413,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
774,
834,
5525,
1152,
3274,
96,
9476,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.