NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who is the developer when the pre-release is no*? | CREATE TABLE table_12231 (
"Version" text,
"KINKA Developer" text,
"KINKA Pre-release" text,
"KINKA 1.0" text,
"KINKA 1.2" text,
"KINKA 1.3" text
) | SELECT "KINKA Developer" FROM table_12231 WHERE "KINKA Pre-release" = 'no*' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
3341,
41,
96,
5000,
1938,
121,
1499,
6,
96,
439,
3162,
12048,
17179,
121,
1499,
6,
96,
439,
3162,
12048,
1266,
18,
21019,
121,
1499,
6,
96,
439,
3162,
12048,
3,
1273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
439,
3162,
12048,
17179,
121,
21680,
953,
834,
20889,
3341,
549,
17444,
427,
96,
439,
3162,
12048,
1266,
18,
21019,
121,
3274,
3,
31,
29,
32,
1935,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which of the Res., has Ryan Scheepe as an opponent? | CREATE TABLE table_name_34 (
res VARCHAR,
opponent VARCHAR
) | SELECT res FROM table_name_34 WHERE opponent = "ryan scheepe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
3,
60,
7,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
7127,
5,
6,
65,
7826,
10248,
15,
855,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
60,
7,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
15264,
3274,
96,
651,
152,
3,
3992,
15,
855,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Year, when Time is '1:47.55'? | CREATE TABLE table_59146 (
"Event" text,
"Time" text,
"Swimmer" text,
"School" text,
"Year" real
) | SELECT "Year" FROM table_59146 WHERE "Time" = '1:47.55' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
24300,
41,
96,
427,
2169,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
210,
12174,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
476,
2741,
121,
490,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
3390,
24300,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
536,
10,
4177,
5,
3769,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the total number of the first year of parties with the theme 'Spring' or 'Teqnology' with a bar chart. | CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
) | SELECT First_year, COUNT(First_year) FROM party WHERE Party_Theme = "Spring" OR Party_Theme = "Teqnology" GROUP BY First_year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
12675,
41,
3450,
834,
4309,
16,
17,
6,
1546,
7,
17,
834,
4309,
16,
17,
6,
27,
7,
834,
21978,
29,
834,
77,
834,
18947,
397,
3,
12840,
40,
3,
61,
3,
32102,
32103,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1485,
834,
1201,
6,
2847,
17161,
599,
25171,
834,
1201,
61,
21680,
1088,
549,
17444,
427,
3450,
834,
634,
526,
3274,
96,
14562,
53,
121,
4674,
3450,
834,
634,
526,
3274,
96,
382,
15,
1824,
29,
1863,
121,
350,
4630,
... |
Record of 8 1, and a Week larger than 9 had what highest attendance? | CREATE TABLE table_name_18 (
attendance INTEGER,
record VARCHAR,
week VARCHAR
) | SELECT MAX(attendance) FROM table_name_18 WHERE record = "8–1" AND week > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
11364,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
11392,
13,
505,
1914,
11,
3,
9,
6551... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1368,
3274,
96,
927,
104,
536,
121,
3430,
471,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the tournament for 2010 of grand slam tournaments | CREATE TABLE table_name_93 (
tournament VARCHAR
) | SELECT tournament FROM table_name_93 WHERE 2010 = "grand slam tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5892,
21,
2735,
13,
1907,
3,
7,
40,
265,
5892,
7,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2735,
3274,
96,
15448,
3,
7,
40,
265,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the home team on the May 2 game? | CREATE TABLE table_name_30 (
home VARCHAR,
date VARCHAR
) | SELECT home FROM table_name_30 WHERE date = "may 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
30,
8,
932,
204,
467,
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,
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,
234,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
833,
3274,
96,
13726,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the company that constructed the vehicle for Timo Glock? | CREATE TABLE table_name_15 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_15 WHERE driver = "timo glock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
15982,
5317,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
349,
24,
8520,
8,
1689,
21,
4485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6774,
127,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2535,
3274,
96,
2998,
32,
3,
122,
4029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many departments are built in each year? Group by creation time in a line chart. | CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
) | SELECT Creation, COUNT(Creation) FROM department GROUP BY Creation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
758,
41,
3066,
834,
4309,
16,
17,
6,
819,
834,
4309,
16,
17,
6,
7234,
834,
2708,
53,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
1775,
834,
4309,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
24589,
6,
2847,
17161,
599,
254,
60,
257,
61,
21680,
3066,
350,
4630,
6880,
272,
476,
24589,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
when q1 pos is 8 what is the q1+q2 time? | CREATE TABLE table_1924975_1 (
q1 VARCHAR,
q2_time VARCHAR,
q1_pos VARCHAR
) | SELECT q1 + q2_time FROM table_1924975_1 WHERE q1_pos = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
3647,
3072,
834,
536,
41,
3,
1824,
536,
584,
4280,
28027,
6,
3,
1824,
357,
834,
715,
584,
4280,
28027,
6,
3,
1824,
536,
834,
2748,
584,
4280,
28027,
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,
3,
1824,
536,
1768,
3,
1824,
357,
834,
715,
21680,
953,
834,
19978,
3647,
3072,
834,
536,
549,
17444,
427,
3,
1824,
536,
834,
2748,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which name had a bodyweight bigger than 89.64, a total (kg) bigger than 310, a clean and jerk less than 207.5, and a snatch that is bigger than 165? | CREATE TABLE table_name_89 (name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) | SELECT name FROM table_name_89 WHERE bodyweight > 89.64 AND total__kg_ > 310 AND clean_ & _jerk < 207.5 AND snatch > 165 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
4350,
584,
4280,
28027,
6,
3,
7,
29,
14547,
584,
4280,
28027,
6,
643,
9378,
584,
4280,
28027,
6,
792,
834,
834,
8711,
834,
584,
4280,
28027,
6,
1349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
643,
9378,
2490,
3,
3914,
5,
4389,
3430,
792,
834,
834,
8711,
834,
2490,
3,
19947,
3430,
1349,
834,
3,
184,
3,
834,
12488,
157,
3,
2,
460,
15731,
3430,
3,
... |
which Streak has a Location/Attendance of staples center, and a Score of 67 89? | CREATE TABLE table_name_1 (
streak VARCHAR,
location_attendance VARCHAR,
score VARCHAR
) | SELECT streak FROM table_name_1 WHERE location_attendance = "staples center" AND score = "67–89" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
18631,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
472,
60,
1639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18631,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
7,
8873,
965,
1530,
121,
3430,
2604,
3274,
96,
3708,
104,
3914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who did the most high rebounds in the game where Sales (17) did the high points? | CREATE TABLE table_18904831_5 (high_rebounds VARCHAR, high_points VARCHAR) | SELECT high_rebounds FROM table_18904831_5 WHERE high_points = "Sales (17)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2394,
3707,
3341,
834,
755,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
8,
167,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
2606,
2394,
3707,
3341,
834,
755,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
134,
4529,
18360,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which line was green? | CREATE TABLE table_name_95 (
line VARCHAR,
colour VARCHAR
) | SELECT line FROM table_name_95 WHERE colour = "green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
689,
584,
4280,
28027,
6,
3243,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
689,
47,
1442,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
689,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
3243,
3274,
96,
9423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57? | CREATE TABLE table_69459 (
"Rider" text,
"Year" real,
"Final Position - Giro" real,
"Final Position - Tour" real,
"Final Position - Vuelta" real
) | SELECT MIN("Year") FROM table_69459 WHERE "Final Position - Tour" > '72' AND "Final Position - Vuelta" < '77' AND "Final Position - Giro" < '57' AND "Rider" = 'valdimir poelnikov' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
591,
3390,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
371,
10270,
14258,
3,
18,
3,
30428,
121,
490,
6,
96,
371,
10270,
14258,
3,
18,
3351... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
8512,
21680,
953,
834,
3951,
591,
3390,
549,
17444,
427,
96,
371,
10270,
14258,
3,
18,
3351,
121,
2490,
3,
31,
5865,
31,
3430,
96,
371,
10270,
14258,
3,
18,
584,
76,
15,
40,
17,
9,... |
when did patient 011-31236 get admitted for the first time until 2102 in the hospital? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
) | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '011-31236' AND STRFTIME('%y', patient.hospitaladmittime) <= '2102' ORDER BY patient.hospitaladmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
4542,
16737,
2122,
3420,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
31386,
20466,
17,
... |
what is the number of patients whose primary disease is sternal wound infection and lab test category is chemistry? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "STERNAL WOUND INFECTION" AND lab."CATEGORY" = "Chemistry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
which race in 1880 took the least amount of time to finish ? | CREATE TABLE table_203_584 (
id number,
"date" text,
"race name" text,
"d(f)" number,
"course" text,
"prize (\u00a3)" number,
"odds" text,
"runners" number,
"place" number,
"margin" number,
"winner/runner-up" text,
"time" text,
"jockey" text
) | SELECT "race name" FROM table_203_584 WHERE "date" = 1880 ORDER BY "date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3449,
591,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
12614,
564,
121,
1499,
6,
96,
26,
599,
89,
61,
121,
381,
6,
96,
19221,
121,
1499,
6,
96,
224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12614,
564,
121,
21680,
953,
834,
23330,
834,
3449,
591,
549,
17444,
427,
96,
5522,
121,
3274,
507,
2079,
4674,
11300,
272,
476,
96,
5522,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,... |
What is the smallest drawn when the points are less than 7 and the against greater than 31? | CREATE TABLE table_name_79 (
drawn INTEGER,
points VARCHAR,
against VARCHAR
) | SELECT MIN(drawn) FROM table_name_79 WHERE points < 7 AND against > 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
6796,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
6796,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
979,
3,
2,
489,
3430,
581,
2490,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest round number of a Pick after 209. | CREATE TABLE table_name_31 (
round INTEGER,
pick INTEGER
) | SELECT MAX(round) FROM table_name_31 WHERE pick > 209 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
1751,
3,
21342,
17966,
6,
1432,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1751,
381,
13,
3,
9,
8356,
227,
204,
12900,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7775,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1432,
2490,
460,
1298,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Give me the average prices of wines that are produced by appelations in Sonoma County. | CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
)
CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
) | SELECT AVG(T2.price) FROM appellations AS T1 JOIN wine AS T2 ON T1.appelation = T2.appelation WHERE T1.county = "Sonoma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
3,
23,
26,
381,
6,
11457,
1499,
6,
945,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
150,
381,
6,
11457,
1499,
6,
2013,
651,
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,
71,
17217,
599,
382,
4416,
102,
4920,
61,
21680,
8319,
6105,
7,
6157,
332,
536,
3,
15355,
3162,
2013,
6157,
332,
357,
9191,
332,
5411,
13219,
257,
3274,
332,
4416,
13219,
257,
549,
17444,
427,
332,
5411,
13362,
63,
... |
What was the decision when the attendance was 19,592? | CREATE TABLE table_name_6 (
decision VARCHAR,
attendance VARCHAR
) | SELECT decision FROM table_name_6 WHERE attendance = "19,592" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
1357,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1357,
116,
8,
11364,
47,
12370,
3390,
357,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1357,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
11364,
3274,
96,
2294,
6,
3390,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What city is the school that had less than 17 titles in boys basketball with the last title being after 2005? | CREATE TABLE table_name_86 (city VARCHAR, sport VARCHAR, _number_of_titles VARCHAR, last VARCHAR) | SELECT city FROM table_name_86 WHERE _number_of_titles < 17 AND last > 2005 AND sport = "boys basketball" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
6726,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
858,
834,
21869,
7,
584,
4280,
28027,
6,
336,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3,
834,
5525,
1152,
834,
858,
834,
21869,
7,
3,
2,
1003,
3430,
336,
2490,
3105,
3430,
2600,
3274,
96,
7531,
7,
8498,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of each ship type? Give me a bar chart, and list Type in desc order. | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Type, COUNT(Type) FROM ship GROUP BY Type ORDER BY Type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
868,
485,
1499,
6,
8475,
9761,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
25160,
61,
21680,
4383,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
6632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the ids of the investors who have at least two transactions. | CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (investor_id VARCHAR) | SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26585,
30518,
134,
41,
15601,
127,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27,
17058,
6038,
22500,
41,
15601,
127,
834,
23,
26,
584,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
15601,
127,
834,
23,
26,
21680,
27,
17058,
6038,
22500,
6157,
332,
536,
3,
15355,
3162,
26585,
30518,
134,
6157,
332,
357,
9191,
332,
5411,
15601,
127,
834,
23,
26,
3274,
332,
4416,
15601,
127,
834,
23,
2... |
Who is every high rebound when the team is Mount St. Mary's? | CREATE TABLE table_29846807_4 (
high_rebounds VARCHAR,
team VARCHAR
) | SELECT high_rebounds FROM table_29846807_4 WHERE team = "Mount St. Mary's" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4608,
3651,
4560,
834,
591,
41,
306,
834,
23768,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
334,
306,
20756,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
3166,
4608,
3651,
4560,
834,
591,
549,
17444,
427,
372,
3274,
96,
329,
32,
202,
17,
472,
5,
3790,
31,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Issue number was released on August 17, 2011? | CREATE TABLE table_name_22 (
issue VARCHAR,
date VARCHAR
) | SELECT issue FROM table_name_22 WHERE date = "august 17, 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
962,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
13235,
381,
47,
1883,
30,
1660,
12864,
2722,
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,
962,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
833,
3274,
96,
402,
17198,
12864,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose age is less than 50 and admission year is less than 2112? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
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 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 WHERE demographic.age < "50" AND demographic.admityear < "2112" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
3,
2,
96,
1752,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,
2658,
2122,
121,
1,
-100,... |
What is the smallest number of cuts when there were more than 0 wins? | CREATE TABLE table_43326 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT MIN("Cuts made") FROM table_43326 WHERE "Wins" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
519,
2688,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
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,
3,
17684,
599,
121,
15784,
17,
7,
263,
8512,
21680,
953,
834,
4906,
519,
2688,
549,
17444,
427,
96,
18455,
7,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201? | CREATE TABLE table_6367 (
"Date" real,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Competition" text
) | SELECT MIN("Date") FROM table_6367 WHERE "Competition" = 'league' AND "Venue" = 'away' AND "Opponent" = 'swindon wildcats' AND "Attendance" > '1,201' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3708,
41,
96,
308,
342,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
342,
8512,
21680,
953,
834,
3891,
3708,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
29512,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
8006,
31,
3430,
96,
667,
102,
997... |
what is religion of subject name paul edwards? | 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 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 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 demographic.religion FROM demographic WHERE demographic.name = "Paul Edwards" | [
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,
14798,
5,
60,
2825,
23,
106,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
23183,
8200,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
With events less than 0, what is the fewest Top-5? | CREATE TABLE table_name_12 (top_5 INTEGER, events INTEGER) | SELECT MIN(top_5) FROM table_name_12 WHERE events < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2916,
834,
755,
3,
21342,
17966,
6,
984,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
438,
984,
705,
145,
8014,
125,
19,
8,
360,
222,
2224,
4525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2916,
834,
9120,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
984,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What school is the team from that has the colors blue and gold? | CREATE TABLE table_39924 (
"School" text,
"Nickname" text,
"Colors" text,
"League" text,
"Class" text,
"Division" text
) | SELECT "School" FROM table_39924 WHERE "Colors" = 'blue and gold' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3264,
2266,
41,
96,
29364,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
3881,
322,
7,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
21486,
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,
29364,
121,
21680,
953,
834,
519,
3264,
2266,
549,
17444,
427,
96,
3881,
322,
7,
121,
3274,
3,
31,
7060,
15,
11,
2045,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find out the admission type and short title of diagnoses of patient with patient id 26285. | 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 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.admission_type, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "26285" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
18730,
7,
5,
7,
14184,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
549,
... |
What was the total number of votes for Tom Connally | CREATE TABLE table_787 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT MIN("First elected") FROM table_787 WHERE "Incumbent" = 'Tom Connally' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
940,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
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,
3,
17684,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
3940,
940,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
3696,
51,
1193,
29,
1427,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the 1st round when team 1 is stade lavallois (d2)? | CREATE TABLE table_name_56 (
team_1 VARCHAR
) | SELECT 1 AS st_round FROM table_name_56 WHERE team_1 = "stade lavallois (d2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
209,
7,
17,
1751,
116,
372,
209,
19,
3342,
221,
50,
2165,
14970,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
209,
6157,
3,
7,
17,
834,
7775,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
372,
834,
536,
3274,
96,
2427,
221,
50,
2165,
14970,
41,
26,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What 2011 has 4r as the 2008? | CREATE TABLE table_name_68 (
Id VARCHAR
) | SELECT 2011 FROM table_name_68 WHERE 2008 = "4r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2722,
65,
314,
52,
38,
8,
2628,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2722,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2628,
3274,
96,
591,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For which jockey was the weight in kg 53.5? | CREATE TABLE table_3160 (
"Saddle cloth" real,
"Horse" text,
"Trainer" text,
"Jockey" text,
"Weight (kg)" text,
"Barrier [b ]" real,
"Placing" text
) | SELECT "Jockey" FROM table_3160 WHERE "Weight (kg)" = '53.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
3328,
41,
96,
134,
9,
8437,
10366,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
1326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
683,
3961,
15,
63,
121,
21680,
953,
834,
3341,
3328,
549,
17444,
427,
96,
1326,
2632,
41,
8711,
61,
121,
3274,
3,
31,
755,
9285,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many seasons did Ken Bouchard finish in 38th place? | CREATE TABLE table_25978 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT COUNT("Year") FROM table_25978 WHERE "Position" = '38th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
21441,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
8931,
15,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
1828,
21441,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
3747,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the most number in season | CREATE TABLE table_3487 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Vessel Type" text,
"Vessel Operator" text,
"Narrated by" text,
"Original air date" real
) | SELECT MIN("No. in season") FROM table_3487 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
4225,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
553,
19132,
6632,
121,
1499,
6,
96,
553,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
4168,
5,
16,
774,
8512,
21680,
953,
834,
3710,
4225,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the opponent with a Loss of Leal (1 4)? | CREATE TABLE table_name_35 (
opponent VARCHAR,
loss VARCHAR
) | SELECT opponent FROM table_name_35 WHERE loss = "leal (1–4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
15264,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
28,
3,
9,
3144,
7,
13,
312,
138,
4077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1453,
3274,
96,
109,
138,
4077,
104,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hematologic or advanced malignancies | CREATE TABLE table_train_35 (
"id" int,
"pregnancy_or_lactation" bool,
"glucocorticoid_history" bool,
"impaired_consciousness" bool,
"hematologic_disease" bool,
"glasgow_come_score_gcs" int,
"liver_disease" bool,
"NOUSE" float
) | SELECT * FROM table_train_35 WHERE hematologic_disease = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2469,
41,
96,
23,
26,
121,
16,
17,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
13492,
509,
5715,
1225,
32,
23,
26,
834,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2469,
549,
17444,
427,
3,
88,
3357,
7925,
834,
26,
159,
14608,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What venue did the game on september 5, 1998 take place at? | CREATE TABLE table_name_71 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_71 WHERE date = "september 5, 1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5669,
410,
8,
467,
30,
16022,
18247,
7836,
6260,
240,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
7836,
6260,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the High rebounds of washington Team? | CREATE TABLE table_name_43 (high_rebounds VARCHAR, team VARCHAR) | SELECT high_rebounds FROM table_name_43 WHERE team = "washington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1592,
3,
23768,
13,
6179,
6029,
2271,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
372,
3274,
96,
14710,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Prominence (m) has an Elevation (m) of 2,797, and a Col (m) smaller than 0? | CREATE TABLE table_13834 (
"Rank" real,
"Peak" text,
"Country" text,
"Island" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT SUM("Prominence (m)") FROM table_13834 WHERE "Elevation (m)" = '2,797' AND "Col (m)" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3710,
41,
96,
22557,
121,
490,
6,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
7,
40,
232,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3174,
1109,
1433,
41,
51,
61,
8512,
21680,
953,
834,
22744,
3710,
549,
17444,
427,
96,
427,
10912,
257,
41,
51,
61,
121,
3274,
3,
31,
4482,
940,
4327,
31,
3430,
96,
9939,
41,
51,
61,
121,
3,... |
What is the street address of Oliver Building? | CREATE TABLE table_51734 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft / m" text,
"Floors" text
) | SELECT "Street address" FROM table_51734 WHERE "Name" = 'oliver building' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
3710,
41,
96,
23954,
121,
1499,
6,
96,
11500,
15,
15,
17,
1115,
121,
1499,
6,
96,
476,
2741,
7,
38,
5065,
222,
121,
1499,
6,
96,
3845,
2632,
3,
89,
17,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11500,
15,
15,
17,
1115,
121,
21680,
953,
834,
755,
2517,
3710,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
4172,
624,
740,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which round 1 has a from prior to 1984, double as round 3, with a goal lwss than 300? | CREATE TABLE table_40351 (
"From" real,
"Goal" real,
"Round 1" text,
"Round 2" text,
"Round 3" text,
"Round 4" text,
"Round 5" text,
"Round 6+" text
) | SELECT "Round 1" FROM table_40351 WHERE "From" < '1984' AND "Round 3" = 'double' AND "Goal" < '300' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
2469,
536,
41,
96,
22674,
121,
490,
6,
96,
6221,
138,
121,
490,
6,
96,
448,
32,
1106,
209,
121,
1499,
6,
96,
448,
32,
1106,
204,
121,
1499,
6,
96,
448,
32,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
209,
121,
21680,
953,
834,
2445,
2469,
536,
549,
17444,
427,
96,
22674,
121,
3,
2,
3,
31,
2294,
4608,
31,
3430,
96,
448,
32,
1106,
220,
121,
3274,
3,
31,
25761,
31,
3430,
96,
6221,
138,
121,
... |
How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse? | CREATE TABLE table_298883_5 (
date_of_issue VARCHAR,
obverse VARCHAR
) | SELECT COUNT(date_of_issue) FROM table_298883_5 WHERE obverse = "Kumsusan Memorial Palace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
10927,
519,
834,
755,
41,
833,
834,
858,
834,
13159,
584,
4280,
28027,
6,
3,
32,
115,
7583,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
512... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5522,
834,
858,
834,
13159,
61,
21680,
953,
834,
3166,
10927,
519,
834,
755,
549,
17444,
427,
3,
32,
115,
7583,
3274,
96,
439,
440,
7,
302,
152,
9107,
12530,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
In what Week has a Result of l 24 20, and a Opponent of at new england patriots? | CREATE TABLE table_name_32 (
week INTEGER,
result VARCHAR,
opponent VARCHAR
) | SELECT MAX(week) FROM table_name_32 WHERE result = "l 24–20" AND opponent = "at new england patriots" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
471,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
6551,
65,
3,
9,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
8041,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
741,
3274,
96,
40,
997,
104,
1755,
121,
3430,
15264,
3274,
96,
144,
126,
3,
4606,
40,
232,
6234,
12884,
7,
121,
1,
-100,
-100,
-100,
-100,... |
Which Rank is the lowest one that has Points larger than 52, and a Year larger than 1970? | CREATE TABLE table_75473 (
"Rank" real,
"Player" text,
"Year" real,
"Game" text,
"Points" real
) | SELECT MIN("Rank") FROM table_75473 WHERE "Points" > '52' AND "Year" > '1970' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4177,
519,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
23055,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
3072,
4177,
519,
549,
17444,
427,
96,
22512,
7,
121,
2490,
3,
31,
5373,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
2294,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the byes for Woorineen when losses are more than 13? | CREATE TABLE table_name_27 (byes INTEGER, central_murray VARCHAR, losses VARCHAR) | SELECT SUM(byes) FROM table_name_27 WHERE central_murray = "woorineen" AND losses > 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
969,
15,
7,
3,
21342,
17966,
6,
2069,
834,
11054,
2866,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
57,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
969,
15,
7,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
2069,
834,
11054,
2866,
3274,
96,
14952,
9249,
35,
121,
3430,
8467,
2490,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
get me the number of male patients diagnosed with continuous opioid type dependence. | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.short_title = "Opioid dependence-contin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the lowest episode number with an original airdate on 8 June 2008? | CREATE TABLE table_name_31 (
episode INTEGER,
original_airdate VARCHAR
) | SELECT MIN(episode) FROM table_name_31 WHERE original_airdate = "8 june 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5640,
3,
21342,
17966,
6,
926,
834,
2256,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
5640,
381,
28,
46,
926,
799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
926,
834,
2256,
5522,
3274,
96,
927,
3,
6959,
15,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
in what year did he first race ? | CREATE TABLE table_203_150 (
id number,
"season" number,
"series" text,
"team" text,
"races" number,
"wins" number,
"poles" number,
"f/laps" number,
"podiums" number,
"points" number,
"position" text
) | SELECT "season" FROM table_203_150 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
12278,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
381,
6,
96,
10833,
7,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
12614,
7,
121,
381,
6,
96,
3757,
7,
121,
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,
96,
9476,
121,
21680,
953,
834,
23330,
834,
12278,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the up/down at the venue that hosted 7 games? | CREATE TABLE table_16929 (
"Venue" text,
"Hosted" real,
"Average" real,
"Highest" real,
"Lowest" real,
"Total" real,
"Last Year" text,
"Up/Down" text
) | SELECT "Up/Down" FROM table_16929 WHERE "Hosted" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
3166,
41,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
4489,
6265,
121,
490,
6,
96,
188,
624,
545,
121,
490,
6,
96,
21417,
222,
121,
490,
6,
96,
434,
32,
12425,
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,
11161,
87,
308,
9197,
121,
21680,
953,
834,
27096,
3166,
549,
17444,
427,
96,
4489,
6265,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
mini _ mental state examinations ( mmse ) score between 10 _ 20 inclusive. | CREATE TABLE table_train_78 (
"id" int,
"mini_mental_state_examination_mmse" int,
"consent" bool,
"swallow_oral_medication" bool,
"rosen_modified_hachinski_ischemic_score" int,
"NOUSE" float
) | SELECT * FROM table_train_78 WHERE mini_mental_state_examination_mmse >= 10 AND mini_mental_state_examination_mmse <= 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3940,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
8056,
295,
121,
3,
12840,
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,
1429,
21680,
953,
834,
9719,
834,
3940,
549,
17444,
427,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
2490,
2423,
335,
3430,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
3... |
Which Video has a Channel of 25.3? | CREATE TABLE table_name_49 (
video VARCHAR,
channel VARCHAR
) | SELECT video FROM table_name_49 WHERE channel = 25.3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
671,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3953,
65,
3,
9,
9916,
13,
204,
26627,
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,
671,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
4245,
3274,
204,
26627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Can you tell me the sum of Starts that the Winnings of $139,774, and the Wins smaller than 0? | CREATE TABLE table_name_37 (starts INTEGER, winnings VARCHAR, wins VARCHAR) | SELECT SUM(starts) FROM table_name_37 WHERE winnings = "$139,774" AND wins < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
10208,
7,
3,
21342,
17966,
6,
3447,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
4505,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
10208,
7,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
3447,
7,
3274,
96,
3229,
24090,
6,
4013,
20364,
3430,
9204,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest game with a 47-21-3 record? | CREATE TABLE table_name_77 (
game INTEGER,
record VARCHAR
) | SELECT MAX(game) FROM table_name_77 WHERE record = "47-21-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
467,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
467,
28,
3,
9,
10635,
16539,
3486,
1368,
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,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1368,
3274,
96,
4177,
16539,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date when France is the opposing team? | CREATE TABLE table_name_50 (date VARCHAR, opposing_teams VARCHAR) | SELECT date FROM table_name_50 WHERE opposing_teams = "france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
5522,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
116,
1410,
19,
8,
10720,
53,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
10720,
53,
834,
11650,
7,
3274,
96,
89,
5219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What show had a nomination for best actor in a lead role female (popular) in 2006? | CREATE TABLE table_name_22 (
for_the_show VARCHAR,
category VARCHAR,
year VARCHAR
) | SELECT for_the_show FROM table_name_22 WHERE category = "best actor in a lead role – female (popular)" AND year = 2006 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
21,
834,
532,
834,
10049,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
504,
141,
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,
21,
834,
532,
834,
10049,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
3295,
3274,
96,
9606,
7556,
16,
3,
9,
991,
1075,
3,
104,
3955,
41,
27302,
61,
121,
3430,
215,
3274,
3581,
1,
-100,
-100,
-100,
-100,
-10... |
Display a bar chart for the names and the ages of editors, list by the bar from low to high. | CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
) | SELECT Name, Age FROM editor ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
3559,
834,
4309,
16,
17,
6,
7678,
1499,
6,
37,
526,
1499,
6,
7107,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6005,
41,
11953,
834,
4309,
16,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
7526,
21680,
6005,
4674,
11300,
272,
476,
5570,
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,
-10... |
What are the total enrollments of universities of each affiliation type Plot them as bar chart, and could you rank in asc by the bar please? | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation ORDER BY Affiliation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
89,
8027,
23,
257,
6,
180,
6122,
599,
8532,
4046,
297,
61,
21680,
3819,
350,
4630,
6880,
272,
476,
71,
89,
8027,
23,
257,
4674,
11300,
272,
476,
71,
89,
8027,
23,
257,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Lead has Hans Frauenlob as a Third? | CREATE TABLE table_43406 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
) | SELECT "Lead" FROM table_43406 WHERE "Third" = 'hans frauenlob' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3710,
5176,
41,
96,
567,
257,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
26,
121,
21680,
953,
834,
591,
3710,
5176,
549,
17444,
427,
96,
382,
9288,
26,
121,
3274,
3,
31,
2618,
7,
3,
17931,
35,
11846,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many directors were there in total for the episode with series #62? | CREATE TABLE table_20859 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT COUNT("Directed by") FROM table_20859 WHERE "Series #" = '62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
3390,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23620,
15,
26,
57,
8512,
21680,
953,
834,
23946,
3390,
549,
17444,
427,
96,
12106,
7,
1713,
121,
3274,
3,
31,
4056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where was the location and attendance when they played milwaukee? | CREATE TABLE table_27882867_9 (location_attendance VARCHAR, team VARCHAR) | SELECT location_attendance FROM table_27882867_9 WHERE team = "Milwaukee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4060,
2577,
3708,
834,
1298,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1128,
11,
11364,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
4060,
2577,
3708,
834,
1298,
549,
17444,
427,
372,
3274,
96,
329,
173,
210,
402,
1050,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Iceland gets the Silver, who gets the Bronze? | CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR) | SELECT bronze FROM table_name_67 WHERE silver = "iceland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
13711,
776,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
20910,
2347,
8,
5642,
6,
113,
2347,
8,
20841,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13467,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
4294,
3274,
96,
867,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied? | CREATE TABLE table_name_93 (nature_of_incident VARCHAR, casualties VARCHAR, circumstances VARCHAR) | SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
27440,
834,
858,
834,
77,
75,
4215,
584,
4280,
28027,
6,
6995,
3010,
584,
4280,
28027,
6,
4616,
584,
4280,
28027,
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,
1405,
834,
858,
834,
77,
75,
4215,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
6995,
3010,
3274,
96,
519,
11064,
9,
121,
3430,
4616,
3274,
96,
5973,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0? | CREATE TABLE table_65148 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
) | SELECT MIN("League Goals") FROM table_65148 WHERE "League Apps" = '1' AND "FA Cup Goals" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
24748,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
5398,
2276,
7,
121,
1499,
6,
96,
2796,
9,
5398,
17916,
7,
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,
3,
17684,
599,
121,
2796,
9,
5398,
17916,
7,
8512,
21680,
953,
834,
4122,
24748,
549,
17444,
427,
96,
2796,
9,
5398,
2276,
7,
121,
3274,
3,
31,
536,
31,
3430,
96,
4795,
3802,
17916,
7,
121,
2490,
3,
31,
632,
31,... |
What label has brol 34531 as it's catalogue? | CREATE TABLE table_name_31 (label VARCHAR, catalogue VARCHAR) | SELECT label FROM table_name_31 WHERE catalogue = "brol 34531" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
40,
10333,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
65,
9161,
40,
220,
2128,
3341,
38,
34,
31,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
14978,
3274,
96,
5702,
40,
220,
2128,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +? | CREATE TABLE table_name_85 (particle VARCHAR, makeup VARCHAR, spin___parity___j_p VARCHAR) | SELECT particle FROM table_name_85 WHERE makeup = "d s s" AND spin___parity___j_p = "3⁄2 +" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
102,
8372,
584,
4280,
28027,
6,
9244,
584,
4280,
28027,
6,
5404,
834,
834,
834,
1893,
485,
834,
834,
834,
354,
834,
102,
584,
4280,
28027,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
24317,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
9244,
3274,
96,
26,
3,
7,
3,
7,
121,
3430,
5404,
834,
834,
834,
1893,
485,
834,
834,
834,
354,
834,
102,
3274,
96,
519,
2,
357,
1768,
121,
1,
-100,
-100,... |
who published the most at chi | CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
) | SELECT DISTINCT COUNT(DISTINCT paper.paperid), writes.authorid FROM paper, venue, writes WHERE venue.venueid = paper.venueid AND venue.venuename = 'chi' AND writes.paperid = paper.paperid GROUP BY writes.authorid ORDER BY COUNT(DISTINCT paper.paperid) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
23,
26,
16,
17,
6,
6378,
4350,
3,
4331,
4059... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
201,
11858,
5,
17415,
23,
26,
21680,
1040,
6,
5669,
6,
11858,
549,
17444,
427,
5669,
5,
15098,
23,
26,
3274,
1040,
5,
15098,
23,
... |
Which player was pick number 150? | CREATE TABLE table_16376436_1 (player VARCHAR, pick__number VARCHAR) | SELECT player FROM table_16376436_1 WHERE pick__number = 150 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4118,
4389,
3420,
834,
536,
41,
20846,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
47,
1432,
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,
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,
2938,
4118,
4389,
3420,
834,
536,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
4261,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total of pick numbers with a Reg GP larger than 0? | CREATE TABLE table_name_80 (pick__number VARCHAR, reg_gp INTEGER) | SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
5925,
834,
122,
102,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
1432,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
5925,
834,
122,
102,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What does the inactive state for University of Texas, El Paso? | CREATE TABLE table_21821014_1 (inactive VARCHAR, institution VARCHAR) | SELECT inactive FROM table_21821014_1 WHERE institution = "University of Texas, El Paso" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
15239,
2534,
834,
536,
41,
77,
6645,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
405,
8,
16,
6645,
538,
21,
636,
13,
251... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
6645,
21680,
953,
834,
357,
2606,
15239,
2534,
834,
536,
549,
17444,
427,
6568,
3274,
96,
8313,
485,
13,
2514,
6,
1289,
6156,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
body mass index ( bmi ) 18 to 29 kilograms per meter squared ( kg / m^2 ) | CREATE TABLE table_train_193 (
"id" int,
"gender" string,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"proteinuria" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_193 WHERE body_mass_index_bmi > 18 AND body_mass_index_bmi < 29 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2294,
519,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
75,
834,
21826,
15,
834,
4563,
121,
3,
12660,
6,
96,
6015,
32,
14063,
77,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2294,
519,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
507,
3430,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
3,
2,
2838,
1,
-100,
-100,
-100,
-... |
Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team? | CREATE TABLE table_57055 (
"Game" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_57055 WHERE "Visitor" = 'nashville' AND "Decision" = 'ellis' AND "Game" > '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
3769,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28363,
3769,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
29,
3198,
1420,
31,
3430,
96,
2962,
18901,
121,
3274,
3,
31,
7999,
7,
31,
3430,
96,
23055,
121,
2490,
... |
During what years are the percentage over total tax revenue is 0.65? | CREATE TABLE table_20612 (
"Year" text,
"Stamp duty reserve tax" text,
"Standard Stamp Duty" text,
"Standard Duties Total Revenue (in \u20acmillion)" real,
"over Total Tax Revenue (in %)" text,
"over GDP (in %)" text
) | SELECT "Year" FROM table_20612 WHERE "over Total Tax Revenue (in %)" = '0.65' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
2122,
41,
96,
476,
2741,
121,
1499,
6,
96,
134,
17,
4624,
5461,
7866,
1104,
121,
1499,
6,
96,
134,
17,
232,
986,
18331,
22203,
121,
1499,
6,
96,
134,
17,
232,
986,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
24643,
2122,
549,
17444,
427,
96,
1890,
9273,
5287,
19764,
41,
77,
3,
6210,
121,
3274,
3,
31,
22787,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no? | CREATE TABLE table_name_97 (
perth VARCHAR,
adelaide VARCHAR,
sydney VARCHAR,
gold_coast VARCHAR
) | SELECT perth FROM table_name_97 WHERE sydney = "yes" AND gold_coast = "yes" AND adelaide = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
399,
189,
584,
4280,
28027,
6,
3,
15311,
5385,
584,
4280,
28027,
6,
3,
7,
63,
26,
3186,
584,
4280,
28027,
6,
2045,
834,
25500,
584,
4280,
28027,
3,
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,
399,
189,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
3,
7,
63,
26,
3186,
3274,
96,
10070,
121,
3430,
2045,
834,
25500,
3274,
96,
10070,
121,
3430,
3,
15311,
5385,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100... |
Which Date has a Road team of portland, and a Game of game 5? | CREATE TABLE table_name_16 (date VARCHAR, road_team VARCHAR, game VARCHAR) | SELECT date FROM table_name_16 WHERE road_team = "portland" AND game = "game 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
5522,
584,
4280,
28027,
6,
1373,
834,
11650,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
2409,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1373,
834,
11650,
3274,
96,
1493,
40,
232,
121,
3430,
467,
3274,
96,
7261,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What county is associated with ansi code 1759686? | CREATE TABLE table_22476 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | SELECT "County" FROM table_22476 WHERE "ANSI code" = '1759686' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
3959,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
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,
10628,
63,
121,
21680,
953,
834,
24622,
3959,
549,
17444,
427,
96,
16897,
196,
1081,
121,
3274,
3,
31,
536,
3072,
4314,
3840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of home town for number being 32 | CREATE TABLE table_27600 (
"#" real,
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"Last School" text
) | SELECT COUNT("Home Town") FROM table_27600 WHERE "#" = '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
6007,
41,
96,
4663,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
96,
476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19040,
4463,
8512,
21680,
953,
834,
2555,
6007,
549,
17444,
427,
96,
4663,
121,
3274,
3,
31,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified? | CREATE TABLE table_name_82 (
driver VARCHAR,
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
2535,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
14941,
7,
3,
2,
968,
3430,
8634,
3,
2,
898,
3430,
97,
834,
10682,
1271,
3274,
96,
2264,
12910,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is week 3 if week 2 is Nikki Fiction? | CREATE TABLE table_name_64 (week_3 VARCHAR, week_2 VARCHAR) | SELECT week_3 FROM table_name_64 WHERE week_2 = "nikki fiction" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
8041,
834,
519,
584,
4280,
28027,
6,
471,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
471,
220,
3,
99,
471,
204,
19,
2504,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
519,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
471,
834,
357,
3274,
96,
4953,
2168,
8973,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the sum of code , and group by attribute founder, and I want to sort by the Y-axis in desc. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T1.Code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
19145,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4416,
1... |
What Date was the Game at Griffith Stadium? | CREATE TABLE table_name_9 (date VARCHAR, game_site VARCHAR) | SELECT date FROM table_name_9 WHERE game_site = "griffith stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
5522,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
7678,
47,
8,
4435,
44,
29345,
12750,
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,
833,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
467,
834,
3585,
3274,
96,
11442,
23,
189,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the employee ids for those who had two or more jobs. | CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
country_id text
)
CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE employees (
employee_id number,
first_name text,
last_name text,
email text,
phone_number text,
hire_date time,
job_id text,
salary number,
commission_pct number,
manager_id number,
department_id number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE departments (
department_id number,
department_name text,
manager_id number,
location_id number
) | SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
1128,
834,
23,
26,
381,
6,
2815,
834,
9,
26,
12039,
1499,
6,
19085,
834,
4978,
1499,
6,
690,
1499,
6,
538,
834,
1409,
2494,
565,
1499,
6,
684,
834,
23,
26,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3490,
834,
23,
26,
21680,
613,
834,
10193,
10972,
350,
4630,
6880,
272,
476,
3490,
834,
23,
26,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location of the opponent Siarhei Navarka? | CREATE TABLE table_name_79 (
location VARCHAR,
opponent VARCHAR
) | SELECT location FROM table_name_79 WHERE opponent = "siarhei navarka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1128,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
15264,
925,
291,
88,
23,
3,
22192,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
15264,
3274,
96,
7,
23,
291,
88,
23,
3,
14128,
6604,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the letter name for the Asomtavruli ? | CREATE TABLE table_name_74 (
letter_name VARCHAR,
asomtavruli VARCHAR
) | SELECT letter_name FROM table_name_74 WHERE asomtavruli = "ⴙ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
2068,
834,
4350,
584,
4280,
28027,
6,
3,
9,
10348,
17,
9,
23178,
40,
23,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2068,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2068,
834,
4350,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
3,
9,
10348,
17,
9,
23178,
40,
23,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What game week did the buccaneers have a record of 0-5? | CREATE TABLE table_name_67 (
week VARCHAR,
record VARCHAR
) | SELECT week FROM table_name_67 WHERE record = "0-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
471,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
467,
471,
410,
8,
8062,
1608,
15,
277,
43,
3,
9,
1368,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1368,
3274,
96,
9498,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients on urgent admission received id therapy? | 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
)
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.route = "ID" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What place had an Away team get a score of 10.17 (77)? | CREATE TABLE table_77599 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_77599 WHERE "Away team score" = '10.17 (77)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3072,
3264,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
940,
3072,
3264,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
10415,
2517,
41,
4013,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
The series titled dragon laws i: the undercover has what role? | CREATE TABLE table_name_73 (role VARCHAR, series_title VARCHAR) | SELECT role FROM table_name_73 WHERE series_title = "dragon laws i: the undercover" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
3491,
15,
584,
4280,
28027,
6,
939,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
37,
939,
3,
10920,
14580,
3786,
3,
23,
10,
8,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1075,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
939,
834,
21869,
3274,
96,
3515,
5307,
3786,
3,
23,
10,
8,
365,
9817,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total number of patients diagnosed with icd9 code 45620? | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "45620" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the venue when the result was 3-2? | CREATE TABLE table_name_50 (
venue VARCHAR,
result VARCHAR
) | SELECT venue FROM table_name_50 WHERE result = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
116,
8,
741,
47,
3,
21160,
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,
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,
5669,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
741,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the original title of the film submitted by Greece? | CREATE TABLE table_18994724_1 (original_title VARCHAR, submitting_country VARCHAR) | SELECT original_title FROM table_18994724_1 WHERE submitting_country = "Greece" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3264,
4177,
2266,
834,
536,
41,
21878,
834,
21869,
584,
4280,
28027,
6,
3,
14975,
834,
17529,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
926,
2233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
21869,
21680,
953,
834,
2606,
3264,
4177,
2266,
834,
536,
549,
17444,
427,
3,
14975,
834,
17529,
3274,
96,
517,
60,
15,
565,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many weeks did the single that entered the charts 14 september 2002 stay on the charts ? | CREATE TABLE table_69948 (
"Title" text,
"Entered chart (UK)" text,
"Peak position (UK)" real,
"Weeks on Chart (UK)" real,
"Sent to CBeebies Album" text
) | SELECT COUNT("Weeks on Chart (UK)") FROM table_69948 WHERE "Entered chart (UK)" = '14 september 2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3264,
3707,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
16924,
3737,
5059,
41,
15787,
61,
121,
1499,
6,
96,
345,
15,
1639,
1102,
41,
15787,
61,
121,
490,
6,
96,
1326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1326,
16789,
30,
15054,
41,
15787,
61,
8512,
21680,
953,
834,
948,
3264,
3707,
549,
17444,
427,
96,
16924,
3737,
5059,
41,
15787,
61,
121,
3274,
3,
31,
2534,
16022,
18247,
4407,
31,
1,
-100,
-... |
How many times did an episode with a production code of 12003 was aired? | CREATE TABLE table_29372 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | SELECT COUNT("Original air date") FROM table_29372 WHERE "Production code" = '12003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4118,
357,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
3380,
10270,
799,
833,
8512,
21680,
953,
834,
3166,
4118,
357,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
536,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality? | CREATE TABLE table_23469 (
"Language" text,
"Concepci\u00f3n Municipality (%)" real,
"San Javier Municipality (%)" real,
"San Ram\u00f3n Municipality (%)" real,
"San Juli\u00e1n Municipality (%)" real,
"San Antonio de Lomer\u00edo Municipality (%)" text,
"Cuatro Ca\u00f1adas Municipality (%)" text
) | SELECT COUNT("San Juli\u00e1n Municipality (%)") FROM table_23469 WHERE "San Antonio de Lomer\u00edo Municipality (%)" = '5.480' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3710,
3951,
41,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
4302,
565,
102,
75,
23,
2,
76,
1206,
89,
519,
29,
16492,
485,
41,
6210,
121,
490,
6,
96,
134,
152,
2215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
152,
9983,
2,
76,
1206,
15,
536,
29,
16492,
485,
41,
6210,
8512,
21680,
953,
834,
357,
3710,
3951,
549,
17444,
427,
96,
134,
152,
12923,
20,
1815,
935,
2,
76,
1206,
15,
26,
32,
16492,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.