NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the average song rating for each language. Plot them as bar chart. | CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating number(10),
languages varchar2(20),
releasedate Date,
resolution number(10)
)
CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(... | SELECT languages, AVG(rating) FROM song GROUP BY languages | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
2324,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
684,
3,
4331,
4059,
357,
599,
1755,
201,
3,
89,
834,
23,
26,
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,
8024,
6,
71,
17217,
599,
52,
1014,
61,
21680,
2324,
350,
4630,
6880,
272,
476,
8024,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
With a Tally of 0-14, what is the Rank in Kilkenny County? | CREATE TABLE table_name_3 (
rank VARCHAR,
county VARCHAR,
tally VARCHAR
) | SELECT COUNT(rank) FROM table_name_3 WHERE county = "kilkenny" AND tally = "0-14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
11003,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
6,
3,
17,
1427,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
332,
1427,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
5435,
3274,
96,
157,
173,
9376,
63,
121,
3430,
3,
17,
1427,
3274,
96,
632,
11590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Team has a Year smaller than 2007, and a Class of gts? | CREATE TABLE table_name_96 (
team VARCHAR,
year VARCHAR,
class VARCHAR
) | SELECT team FROM table_name_96 WHERE year < 2007 AND class = "gts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
372,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
65,
3,
9,
2929,
2755,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
215,
3,
2,
4101,
3430,
853,
3274,
96,
122,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What shows for 2010 Employees (Total) when the employer is University of Alberta? | CREATE TABLE table_63080 (
"Rank (2012)" real,
"Rank (2010)" real,
"Employer" text,
"Industry" text,
"2012 Employees (Total)" real,
"2010 Employees (Total)" real,
"2007 Employees (Total)" text,
"Head office" text
) | SELECT SUM("2010 Employees (Total)") FROM table_63080 WHERE "Employer" = 'university of alberta' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26106,
2079,
41,
96,
22557,
24705,
121,
490,
6,
96,
22557,
26118,
121,
490,
6,
96,
427,
1167,
28014,
121,
1499,
6,
96,
1570,
8655,
8224,
121,
1499,
6,
96,
12172,
15871,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
14926,
15871,
7,
41,
3696,
1947,
61,
8512,
21680,
953,
834,
26106,
2079,
549,
17444,
427,
96,
427,
1167,
28014,
121,
3274,
3,
31,
7846,
485,
13,
491,
7041,
9,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is the team 2 with cobreloa as team 1? | CREATE TABLE table_name_2 (
team_2 VARCHAR,
team_1 VARCHAR
) | SELECT team_2 FROM table_name_2 WHERE team_1 = "cobreloa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
372,
834,
357,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
204,
28,
576,
1999,
40,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
357,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
372,
834,
536,
3274,
96,
509,
1999,
40,
32,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which party had the most prime ministers ? | CREATE TABLE table_203_694 (
id number,
"#" number,
"name" text,
"took office" text,
"left office" text,
"party" text
) | SELECT "party" FROM table_203_694 GROUP BY "party" ORDER BY COUNT("name") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3951,
591,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
235,
1825,
828,
121,
1499,
6,
96,
17068,
828,
121,
1499,
6,
96,
8071,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8071,
121,
21680,
953,
834,
23330,
834,
3951,
591,
350,
4630,
6880,
272,
476,
96,
8071,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
4350,
8512,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,... |
Which Date has a Set 1 of 21 25? | CREATE TABLE table_44504 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | SELECT "Date" FROM table_44504 WHERE "Set 1" = '21–25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
1752,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
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,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3628,
1752,
591,
549,
17444,
427,
96,
17175,
209,
121,
3274,
3,
31,
2658,
104,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many points did the driver who won $127,541 driving car #31 get? | CREATE TABLE table_name_88 (points INTEGER, winnings VARCHAR, car__number VARCHAR) | SELECT MAX(points) FROM table_name_88 WHERE winnings = "$127,541" AND car__number > 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2700,
7,
3,
21342,
17966,
6,
3447,
7,
584,
4280,
28027,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3447,
7,
3274,
96,
3229,
22367,
6,
5062,
536,
121,
3430,
443,
834,
834,
5525,
1152,
2490,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many women from england were ranked in top 14 in the heats of 100m women 's hurdles ? | CREATE TABLE table_204_71 (
id number,
"rank" number,
"heat" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT COUNT("name") FROM table_204_71 WHERE "nationality" = 'england' AND "rank" <= 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4450,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
88,
144,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4350,
8512,
21680,
953,
834,
26363,
834,
4450,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
4606,
40,
232,
31,
3430,
96,
6254,
121,
3,
2,
2423,
968,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose days of hospital stay is greater than 6 and drug route is ivpca? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "6" AND prescriptions.route = "IVPCA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the character name that has phyllis welch as the leading lady? | CREATE TABLE table_6588 (
"Release date" text,
"Length" text,
"Director(s)" text,
"Character name" text,
"Character type" text,
"Leading lady" text
) | SELECT "Character name" FROM table_6588 WHERE "Leading lady" = 'phyllis welch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
4060,
41,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
18947,
2708,
49,
564,
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,
18947,
2708,
49,
564,
121,
21680,
953,
834,
4122,
4060,
549,
17444,
427,
96,
2796,
9,
26,
53,
9360,
121,
3274,
3,
31,
6941,
195,
159,
62,
40,
524,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Run 4 has a Run 1 of 1:25.82? | CREATE TABLE table_77471 (
"Team" text,
"Athletes" text,
"Run 1" text,
"Run 2" text,
"Run 3" text,
"Run 4" text,
"Final" text
) | SELECT "Run 4" FROM table_77471 WHERE "Run 1" = '1:25.82' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4177,
536,
41,
96,
18699,
121,
1499,
6,
96,
188,
189,
109,
1422,
121,
1499,
6,
96,
448,
202,
209,
121,
1499,
6,
96,
448,
202,
204,
121,
1499,
6,
96,
448,
202,
220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
3,
20364,
21680,
953,
834,
4013,
4177,
536,
549,
17444,
427,
96,
448,
202,
209,
121,
3274,
3,
31,
536,
10,
1828,
5,
4613,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes? | CREATE TABLE table_35717 (
"Rocket" text,
"Country" text,
"Family" text,
"Launches" real,
"Successes" real,
"Failures" real,
"Partial failures" real
) | SELECT AVG("Launches") FROM table_35717 WHERE "Failures" = '0' AND "Rocket" = 'soyuz' AND "Successes" < '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3436,
2517,
41,
96,
23349,
15,
17,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
371,
3690,
120,
121,
1499,
6,
96,
3612,
202,
2951,
121,
490,
6,
96,
134,
17431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3612,
202,
2951,
8512,
21680,
953,
834,
519,
3436,
2517,
549,
17444,
427,
96,
371,
9,
173,
7665,
121,
3274,
3,
31,
632,
31,
3430,
96,
23349,
15,
17,
121,
3274,
3,
31,
7,
32,
63,
76,
172,
3... |
Return the the details of all products. | CREATE TABLE products (
product_id number,
product_details text
)
CREATE TABLE order_items (
order_id number,
product_id number,
order_quantity text
)
CREATE TABLE addresses (
address_id number,
address_content text,
city text,
zip_postcode text,
state_province_county text,
... | SELECT DISTINCT product_details FROM products | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
556,
834,
23,
26,
381,
6,
556,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
455,
834,
23,
3524,
7,
41,
455,
834,
23,
26,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
556,
834,
221,
5756,
7,
21680,
494,
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,
... |
What's the Nickname listed for the Name of University Cricket Club? | CREATE TABLE table_64642 (
"Name" text,
"Nickname" text,
"Location" text,
"Home ground(s)" text,
"Coach" text,
"Captain" text
) | SELECT "Nickname" FROM table_64642 WHERE "Name" = 'university cricket club' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4389,
357,
41,
96,
23954,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
19040,
1591,
599,
7,
61,
121,
1499,
6,
96,
3881... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
3142,
4350,
121,
21680,
953,
834,
4389,
4389,
357,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7846,
485,
18096,
1886,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Score, when Country is 'United States', and when Player is 'Mark Brooks'? | CREATE TABLE table_name_34 (
score VARCHAR,
country VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_34 WHERE country = "united states" AND player = "mark brooks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
2604,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
6993,
19,
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,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
3920,
3,
14370,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where is Robert Morris University-Illinois held? | CREATE TABLE table_74099 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) | SELECT "Location" FROM table_74099 WHERE "Institution" = 'Robert Morris University-Illinois' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2445,
3264,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
940,
2445,
3264,
549,
17444,
427,
96,
1570,
17448,
121,
3274,
3,
31,
24372,
49,
17,
12193,
636,
18,
196,
195,
77,
32,
159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many students are affected by each allergy type. | CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... | SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4498,
834,
6838,
49,
122,
63,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
4498,
834,
6838,
49,
122,
63,
6157,
332,
536,
3,
15355,
3162,
432,
49,
122,
63,
834,
25160,
6157,
332,
357,
9191,
332,
5411,
6838,
49,
122,
63,
3274,
... |
For each competition, count the number of matches. | CREATE TABLE match (
match_id number,
date text,
venue text,
score text,
result text,
competition text
)
CREATE TABLE city (
city_id number,
city text,
hanzi text,
hanyu_pinyin text,
regional_population number,
gdp number
)
CREATE TABLE hosting_city (
year number,
... | SELECT COUNT(*), competition FROM match GROUP BY competition | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1588,
41,
1588,
834,
23,
26,
381,
6,
833,
1499,
6,
5669,
1499,
6,
2604,
1499,
6,
741,
1499,
6,
2259,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
2259,
21680,
1588,
350,
4630,
6880,
272,
476,
2259,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the League for 1952–1960? | CREATE TABLE table_name_2 (league_a VARCHAR, years VARCHAR) | SELECT league_a FROM table_name_2 WHERE years = "1952–1960" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
29512,
834,
9,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3815,
21,
23744,
104,
2294,
3328,
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,
5533,
834,
9,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
203,
3274,
96,
22464,
357,
104,
2294,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the semifinal result for Dorrie Timmermans-Van Hall? | CREATE TABLE table_18602462_22 (semifinals VARCHAR, athlete VARCHAR) | SELECT semifinals FROM table_18602462_22 WHERE athlete = "Dorrie Timmermans-Van Hall" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
2266,
4056,
834,
2884,
41,
7,
15,
51,
23,
12406,
7,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27504,
741,
21,
6200... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27504,
7,
21680,
953,
834,
24700,
2266,
4056,
834,
2884,
549,
17444,
427,
17893,
3274,
96,
308,
127,
1753,
332,
12174,
348,
7,
18,
553,
152,
2501,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
the top elevation measured for this station is 2591m | CREATE TABLE table_203_839 (
id number,
"station" text,
"type" text,
"latitude" text,
"longitude" text,
"el. (m)" number,
"opened" number,
"closed" number,
"coordinates" text
) | SELECT "station" FROM table_203_839 WHERE "el. (m)" = 2591 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
3288,
41,
3,
23,
26,
381,
6,
96,
6682,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
521,
6592,
121,
1499,
6,
96,
2961,
20341,
121,
1499,
6,
96,
15,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6682,
121,
21680,
953,
834,
23330,
834,
927,
3288,
549,
17444,
427,
96,
15,
40,
5,
41,
51,
61,
121,
3274,
944,
4729,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what grid was the time for part 1 1:31.063? | CREATE TABLE table_20159025_1 (grid VARCHAR, part_1 VARCHAR) | SELECT grid FROM table_20159025_1 WHERE part_1 = "1:31.063" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8651,
2394,
1828,
834,
536,
41,
3496,
26,
584,
4280,
28027,
6,
294,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
8634,
47,
8,
97,
21,
294,
209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8634,
21680,
953,
834,
8651,
2394,
1828,
834,
536,
549,
17444,
427,
294,
834,
536,
3274,
96,
536,
10,
519,
12734,
3891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the biggest points when the grid is less than 13 and the time/retired is +7.538 secs? | CREATE TABLE table_name_34 (
points INTEGER,
grid VARCHAR,
time_retired VARCHAR
) | SELECT MAX(points) FROM table_name_34 WHERE grid < 13 AND time_retired = "+7.538 secs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
979,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2630,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
8634,
3,
2,
1179,
3430,
97,
834,
10682,
1271,
3274,
96,
1220,
15731,
3747,
4220,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the player moving to Arminia Bielefeld? | CREATE TABLE table_name_68 (name VARCHAR, moving_to VARCHAR) | SELECT name FROM table_name_68 WHERE moving_to = "arminia bielefeld" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
4350,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1959,
1735,
12,
1533,
7619,
9,
2106,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1735,
834,
235,
3274,
96,
291,
7619,
9,
2647,
400,
5003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List Aerosmith's albums. | CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR) | SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3153,
41,
23,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14234,
41,
21869,
584,
4280,
28027,
6,
2377,
834,
23,
26,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
332,
5411,
21869,
21680,
14234,
6157,
332,
536,
3,
15355,
3162,
3153,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
23,
26,
3274,
332,
4416,
23,
26,
549,
17444,
427,
332,
4416,
4350,
3274,
96,
188,
49,
32,
16331,... |
what is the number of patients whose diagnoses short title is personality disorder nos and lab test abnormal status is delta? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Personality disorder NOS" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
what is the drug type of drug name syringe (neonatal) *ns*? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Syringe (Neonatal) *NS*" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
134,
63,
1007,
15,
41,
567,
15,
32,
16978,
61,
1429,
7369,
1935,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the champion in the match where C.A. Palmer was the runner-up? | CREATE TABLE table_name_80 (
champion VARCHAR,
runner_up VARCHAR
) | SELECT champion FROM table_name_80 WHERE runner_up = "c.a. palmer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
6336,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
6336,
16,
8,
1588,
213,
205,
5,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6336,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
75,
5,
9,
5,
8466,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of Laps for year of 1961 | CREATE TABLE table_name_48 (
laps VARCHAR,
year VARCHAR
) | SELECT COUNT(laps) FROM table_name_48 WHERE year = "1961" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
14941,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
325,
102,
7,
21,
215,
13,
21018,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
215,
3274,
96,
2294,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Lead has a Nation of switzerland? | CREATE TABLE table_75136 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Lead" FROM table_75136 WHERE "Nation" = 'switzerland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
23459,
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,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2796,
9,
26,
121,
21680,
953,
834,
3072,
23459,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
7,
15686,
15,
7721,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the competition when aggregate is 1 4? | CREATE TABLE table_1233026_4 (
competition VARCHAR,
aggregate VARCHAR
) | SELECT competition FROM table_1233026_4 WHERE aggregate = "1–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14574,
1458,
2688,
834,
591,
41,
2259,
584,
4280,
28027,
6,
12955,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2259,
116,
12955,
19,
209,
314,
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,
2259,
21680,
953,
834,
14574,
1458,
2688,
834,
591,
549,
17444,
427,
12955,
3274,
96,
536,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many rounds was the bout against bobby rehman? | CREATE TABLE table_59340 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Round" FROM table_59340 WHERE "Opponent" = 'bobby rehman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
21129,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
3390,
21129,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
17396,
969,
3,
60,
107,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What college did Bob Larose attend? | CREATE TABLE table_26996293_1 (
college VARCHAR,
player VARCHAR
) | SELECT college FROM table_26996293_1 WHERE player = "Bob LaRose" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3264,
4056,
4271,
834,
536,
41,
1900,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
5762,
325,
8115,
2467,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
2688,
3264,
4056,
4271,
834,
536,
549,
17444,
427,
1959,
3274,
96,
279,
32,
115,
325,
448,
32,
7,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
who was the top ranked swimmer in the semifinals ? | CREATE TABLE table_204_544 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT "name" FROM table_204_544 ORDER BY "rank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3628,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
755,
3628,
4674,
11300,
272,
476,
96,
6254,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
papers from 2014 | CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paperkeyphrase (
paperid int,
... | SELECT DISTINCT paperid FROM paper WHERE year = 2014 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
17,
6,
3,
11675,
19587,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
843,
27111,
41,
843,
27111,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
23,
26,
21680,
1040,
549,
17444,
427,
215,
3274,
1412,
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 district of the incumbent Thomas Larkin Thompson? | CREATE TABLE table_name_37 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_37 WHERE incumbent = "thomas larkin thompson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3939,
13,
8,
28406,
3576,
325,
52,
2917,
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,
3939,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
28406,
3274,
96,
189,
32,
2754,
50,
52,
2917,
3,
189,
32,
1167,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which 2009 has a 2008 of wta premier mandatory tournaments? | CREATE TABLE table_name_64 (
Id VARCHAR
) | SELECT 2009 FROM table_name_64 WHERE 2008 = "wta premier mandatory tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2464,
65,
3,
9,
2628,
13,
3,
210,
17,
9,
2761,
13488,
5892,
7,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2464,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
2628,
3274,
96,
210,
17,
9,
2761,
13488,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Tournament was on the Date 6 Sep 2009? | CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_23 WHERE date = "6 sep 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
47,
30,
8,
7678,
431,
12219,
2464,
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,
5892,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
833,
3274,
96,
948,
142,
102,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where are all school boards associated with a number of elementary schools of 96? | CREATE TABLE table_1506619_1 (
school_board VARCHAR,
number_of_elementary_schools VARCHAR
) | SELECT school_board FROM table_1506619_1 WHERE number_of_elementary_schools = 96 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3539,
2294,
834,
536,
41,
496,
834,
1976,
584,
4280,
28027,
6,
381,
834,
858,
834,
15,
3335,
1208,
834,
6646,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
496,
834,
1976,
21680,
953,
834,
12278,
3539,
2294,
834,
536,
549,
17444,
427,
381,
834,
858,
834,
15,
3335,
1208,
834,
6646,
7,
3274,
3,
4314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many of the patients discharged-transfer to psych hospital had endosc inser stent bile | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND procedures.short_title = "Endosc inser stent bile" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what was the finishing place of the team before the 2007-2008 ? | CREATE TABLE table_204_186 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
) | SELECT "place" FROM table_204_186 WHERE "season" < '2007/08' ORDER BY "season" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25398,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
3276,
121,
381,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
4687,
121,
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,
0... | [
3,
23143,
14196,
96,
4687,
121,
21680,
953,
834,
26363,
834,
25398,
549,
17444,
427,
96,
9476,
121,
3,
2,
3,
31,
20615,
87,
4018,
31,
4674,
11300,
272,
476,
96,
9476,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-... |
Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong? | CREATE TABLE table_name_67 (
team VARCHAR,
driver VARCHAR,
points VARCHAR,
grid VARCHAR
) | SELECT team FROM table_name_67 WHERE points = 0 AND grid > 13 AND driver = "alex yoong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
372,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
979,
3274,
3,
632,
3430,
8634,
2490,
1179,
3430,
2535,
3274,
96,
138,
994,
3,
63,
32,
2444,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the location of the school established in 2013? | CREATE TABLE table_name_27 (location VARCHAR, established VARCHAR) | SELECT location FROM table_name_27 WHERE established = 2013 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
14836,
584,
4280,
28027,
6,
2127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
496,
2127,
16,
2038,
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,
1128,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
2127,
3274,
2038,
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... |
Where did they play that the score was 22-12? | CREATE TABLE table_name_21 (
venue VARCHAR,
result VARCHAR
) | SELECT venue FROM table_name_21 WHERE result = "22-12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
79,
577,
24,
8,
2604,
47,
1630,
5947,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
741,
3274,
96,
2884,
5947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position does the player from the MLS New England Revolution team hold? | CREATE TABLE table_name_35 (position VARCHAR, mls_team VARCHAR) | SELECT position FROM table_name_35 WHERE mls_team = "new england revolution" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
4718,
584,
4280,
28027,
6,
3,
51,
40,
7,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
8,
1959,
45,
8,
3,
17976,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
51,
40,
7,
834,
11650,
3274,
96,
5534,
3,
4606,
40,
232,
9481,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the MNZ FEA when the SIL SPR was 18? | CREATE TABLE table_69847 (
"Team" text,
"Car No." text,
"MNZ SPR" text,
"MNZ FEA" text,
"SPA SPR" text,
"SPA FEA" text,
"MON FEA" text,
"SIL SPR" text,
"SIL FEA" text,
"HUN SPR" text,
"HUN FEA" text,
"LMS SPR" text,
"LMS FEA" text,
"CAT SPR" text,
"CAT FEA" te... | SELECT "MNZ FEA" FROM table_69847 WHERE "SIL SPR" = '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
927,
4177,
41,
96,
18699,
121,
1499,
6,
96,
6936,
465,
535,
1499,
6,
96,
329,
567,
956,
180,
5554,
121,
1499,
6,
96,
329,
567,
956,
3,
6392,
188,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
567,
956,
3,
6392,
188,
121,
21680,
953,
834,
3951,
927,
4177,
549,
17444,
427,
96,
26525,
180,
5554,
121,
3274,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give the number of students living in either HKG or CHI. | CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
) | SELECT COUNT(*) FROM student WHERE city_code = "HKG" OR city_code = "CHI" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
834,
6137,
41,
23886,
1499,
6,
23886,
6137,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
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,
2847,
17161,
599,
1935,
61,
21680,
1236,
549,
17444,
427,
690,
834,
4978,
3274,
96,
566,
18256,
121,
4674,
690,
834,
4978,
3274,
96,
17226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the id of each employee and the number of document destroyed by that employee? | CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE ref_locations (
location_code text,
location_name text,
location_description text
)
CREATE TABLE documents_to_be_destroyed (
document_id number,
destruction_authorised_by_employee_id number,
d... | SELECT destroyed_by_employee_id, COUNT(*) FROM documents_to_be_destroyed GROUP BY destroyed_by_employee_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6270,
41,
1075,
834,
4978,
1499,
6,
1075,
834,
4350,
1499,
6,
1075,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
14836,
7,
41,
1128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10932,
834,
969,
834,
15,
51,
7379,
63,
15,
15,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
2691,
834,
235,
834,
346,
834,
221,
6626,
10093,
350,
4630,
6880,
272,
476,
10932,
834,
969,
834,
15,
51,
7379,
... |
Give me the comparison about meter_100 over the meter_500 , order by the meter_100 in desc. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_100 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
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,
3,
4401,
834,
2560,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the shooter at the WC Rio De Janeiro event with 10 rank points? | CREATE TABLE table_12271 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
) | SELECT "Shooter" FROM table_12271 WHERE "Event" = 'wc rio de janeiro' AND "Rank points" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
4450,
41,
96,
10499,
32,
32,
449,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
22557,
979,
121,
1499,
6,
96,
134,
9022,
979,
121,
1499,
6,
96,
3696,
1947,
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,
10499,
32,
32,
449,
121,
21680,
953,
834,
20889,
4450,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
210,
75,
3,
52,
23,
32,
20,
3,
7066,
21810,
31,
3430,
96,
22557,
979,
121,
3274,
3,
31,
1714,
31,
1,... |
Can you tell me the Place that has the Score of 68, and the Player of christy o'connor jnr? | CREATE TABLE table_name_70 (
place VARCHAR,
score VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_70 WHERE score = 68 AND player = "christy o'connor jnr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
3399,
24,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
2604,
3274,
3,
3651,
3430,
1959,
3274,
96,
15294,
63,
3,
32,
31,
1018,
29,
127,
3,
354,
29,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Winning Driver has a Circuit of circuit zandvoort? | CREATE TABLE table_12252 (
"Round" real,
"Date" text,
"Event" text,
"Circuit" text,
"Winning Driver" text,
"Winning Team" text
) | SELECT "Winning Driver" FROM table_12252 WHERE "Circuit" = 'circuit zandvoort' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
5373,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
518,
10503,
10546,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
10546,
121,
21680,
953,
834,
20889,
5373,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
15357,
21560,
3,
172,
232,
1621,
127,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Round smaller than 7, and an Overall of 129 is what college? | CREATE TABLE table_name_67 (
college VARCHAR,
round VARCHAR,
overall VARCHAR
) | SELECT college FROM table_name_67 WHERE round < 7 AND overall = 129 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1900,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
9609,
2755,
145,
7973,
11,
46,
9126,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1751,
3,
2,
489,
3430,
1879,
3274,
3,
22174,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the most recent year georgia tech chose a linebacker? | CREATE TABLE table_name_3 (a_ VARCHAR, year_ INTEGER, position VARCHAR, college VARCHAR) | SELECT MAX(year_)[a_] FROM table_name_3 WHERE position = "linebacker" AND college = "georgia tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
9,
834,
584,
4280,
28027,
6,
215,
834,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
834,
61,
6306,
9,
834,
908,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1102,
3274,
96,
747,
1549,
49,
121,
3430,
1900,
3274,
96,
397,
1677,
23,
9,
5256,
121,
1,
-100,
-100,
-100,
-100,
... |
What team was the away team at Junction Oval? | CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_20 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
550,
372,
44,
29092,
411,
2165,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Club has a Not winning editions of 1992, 2003? | CREATE TABLE table_15298 (
"Club" text,
"Winners" text,
"Finalists" text,
"Winning editions" text,
"Not winning editions" text
) | SELECT "Club" FROM table_15298 WHERE "Not winning editions" = '1992, 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
3916,
41,
96,
254,
11158,
121,
1499,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
371,
10270,
343,
7,
121,
1499,
6,
96,
518,
10503,
4182,
7,
121,
1499,
6,
96,
10358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11158,
121,
21680,
953,
834,
26320,
3916,
549,
17444,
427,
96,
10358,
3447,
4182,
7,
121,
3274,
3,
31,
19479,
4482,
3888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the number of patients diagnosed with mitral valve disorders. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Mitral valve disorders" | [
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... |
Which Date has a Score of 0–3, and a Set 2 of 16–25? | CREATE TABLE table_name_49 (date VARCHAR, score VARCHAR, set_2 VARCHAR) | SELECT date FROM table_name_49 WHERE score = "0–3" AND set_2 = "16–25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
17763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
2604,
3274,
96,
632,
104,
519,
121,
3430,
356,
834,
357,
3274,
96,
2938,
104,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show all card type codes and the number of customers holding cards in each type. | CREATE TABLE Customers_cards (
card_type_code VARCHAR,
customer_id VARCHAR
) | SELECT card_type_code, COUNT(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
6043,
7,
41,
895,
834,
6137,
834,
4978,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
895,
686,
5633,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
895,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
15438,
25424,
6227,
884,
834,
23,
26,
61,
21680,
16423,
834,
6043,
7,
350,
4630,
6880,
272,
476,
895,
834,
6137,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Years in Orlando has a Position of center, and a School/Club Team of louisiana state? | CREATE TABLE table_7450 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "Years in Orlando" FROM table_7450 WHERE "Position" = 'center' AND "School/Club Team" = 'louisiana state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
1752,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
121,
1499,
6,
96,
29364,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
7,
16,
14374,
121,
21680,
953,
834,
4581,
1752,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
13866,
31,
3430,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
40,
1063,
159,
13662,
5... |
Which Location has a Previous Conference of independents, and a Mascot of hilltoppers? | CREATE TABLE table_65966 (
"School" text,
"Location" text,
"Mascot" text,
"Size" real,
"IHSAA Class" text,
"County" text,
"Year Joined" real,
"Previous Conference" text
) | SELECT "Location" FROM table_65966 WHERE "Previous Conference" = 'independents' AND "Mascot" = 'hilltoppers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3390,
3539,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
134,
1737,
121,
490,
6,
96,
196,
4950,
5498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
948,
3390,
3539,
549,
17444,
427,
96,
10572,
19117,
4379,
121,
3274,
3,
31,
77,
17631,
7,
31,
3430,
96,
329,
9,
7,
4310,
121,
3274,
3,
31,
6321,
2916,
4660,
31,
1,
-... |
What is the highest selection number for the saskatchewan roughriders team? | CREATE TABLE table_16400 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT MAX("Pick #") FROM table_16400 WHERE "CFL Team" = 'Saskatchewan Roughriders' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
5548,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
2938,
5548,
549,
17444,
427,
96,
254,
10765,
2271,
121,
3274,
3,
31,
134,
9,
7,
8682,
1033,
3877,
391,
4607,
4055,
277,
31,
1,
-100,
-100,
-100,
-100,
-10... |
What is Place, when To Par is '5', and when Score is '72-73=145'? | CREATE TABLE table_47828 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
) | SELECT "Place" FROM table_47828 WHERE "To par" = '5' AND "Score" = '72-73=145' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
2577,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
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,
96,
345,
11706,
121,
21680,
953,
834,
591,
3940,
2577,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
755,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
5865,
18,
4552,
2423,
20987,
31,
1,
-100,
-100,
-100,
-100,
... |
What did Vaxjo score when Karlstad scored 1? | CREATE TABLE table_name_53 (
växjö VARCHAR,
karlstad VARCHAR
) | SELECT växjö FROM table_name_53 WHERE karlstad = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
3,
208,
1864,
226,
354,
1872,
584,
4280,
28027,
6,
3,
4031,
40,
2427,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
2964,
226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
208,
1864,
226,
354,
1872,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3,
4031,
40,
2427,
26,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
was arven released by universal or curling legs ? | CREATE TABLE table_204_529 (
id number,
"year" number,
"personnel" text,
"album" text,
"label" text,
"peak positions\nnor" number
) | SELECT "label" FROM table_204_529 WHERE "album" = 'arven' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3166,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
6075,
29,
15,
40,
121,
1499,
6,
96,
23703,
121,
1499,
6,
96,
40,
10333,
121,
1499,
6,
96,
146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
10333,
121,
21680,
953,
834,
26363,
834,
755,
3166,
549,
17444,
427,
96,
23703,
121,
3274,
3,
31,
291,
1926,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of times patient 002-75209 was prescribed with sodium chloride 0.9% 1000 ml pb in the last hospital visit. | 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 num... | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-75209' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hosp... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
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,
2847,
17161,
599,
1935,
61,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
Who is the head of household for task number 7? | CREATE TABLE table_name_39 (
head_of_household VARCHAR,
task_no VARCHAR
) | SELECT head_of_household FROM table_name_39 WHERE task_no = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
819,
834,
858,
834,
1840,
6134,
584,
4280,
28027,
6,
2491,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
819,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
819,
834,
858,
834,
1840,
6134,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2491,
834,
29,
32,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What position did the player have who was from the college of california? | CREATE TABLE table_47857 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_47857 WHERE "College" = 'california' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
3436,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
591,
3940,
3436,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
15534,
1161,
29,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number where the player was jimmy demaret | CREATE TABLE table_28455 (
"Year" real,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
) | SELECT "54 holes" FROM table_28455 WHERE "Runner(s)-up" = 'Jimmy Demaret' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2128,
755,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
5062,
8034,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5062,
8034,
121,
21680,
953,
834,
2577,
2128,
755,
549,
17444,
427,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
683,
603,
2258,
10007,
355,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the transfer window for Hleb? | CREATE TABLE table_12746 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
) | SELECT "Transfer window" FROM table_12746 WHERE "Name" = 'hleb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
4448,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
45,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18474,
1010,
2034,
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,
18474,
1010,
2034,
121,
21680,
953,
834,
22367,
4448,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
107,
109,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841. | CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR) | SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7688,
7618,
7,
41,
13739,
4055,
584,
4280,
28027,
6,
5097,
4652,
584,
4280,
28027,
6,
8659,
3,
21342,
17966,
6,
1964,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
4055,
6,
5097,
4652,
21680,
7688,
7618,
7,
549,
17444,
427,
8659,
3,
2,
41,
23143,
14196,
4800,
4,
599,
1259,
2661,
61,
21680,
7688,
7618,
7,
549,
17444,
427,
1964,
23,
26,
3274,
3,
46... |
what is procedure short title of procedure icd9 code 3613? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT procedures.short_title FROM procedures WHERE procedures.icd9_code = "3613" | [
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,
4293,
5,
7,
14184,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
447,
26,
1298,
834,
4978,
3274,
96,
3420,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what year only had one other finalist ? | CREATE TABLE table_204_655 (
id number,
"year" number,
"winner" text,
"album" text,
"other finalists" text
) | SELECT "year" FROM table_204_655 WHERE "other finalists" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4122,
755,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
3757,
687,
121,
1499,
6,
96,
23703,
121,
1499,
6,
96,
9269,
3,
28077,
121,
1499,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
4122,
755,
549,
17444,
427,
96,
9269,
3,
28077,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
By how many strokes did Lema beat Jack Nicklaus? | CREATE TABLE table_41402 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_41402 WHERE "Runner(s)-up" = 'jack nicklaus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
2445,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
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,
7286,
122,
77,
13,
6224,
121,
21680,
953,
834,
4853,
2445,
357,
549,
17444,
427,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
9325,
3,
11191,
40,
2064,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the catalog number of the album whose label is Atlantic Records and region is the United States? | CREATE TABLE table_name_8 (
catalog__number VARCHAR,
label VARCHAR,
region VARCHAR
) | SELECT catalog__number FROM table_name_8 WHERE label = "atlantic records" AND region = "united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
10173,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
10173,
834,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
3783,
3274,
96,
31767,
3187,
121,
3430,
1719,
3274,
96,
15129,
15,
26,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Player, when Total is greater than 288, and when Country is 'South Africa'? | CREATE TABLE table_47349 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) | SELECT "Player" FROM table_47349 WHERE "Total" > '288' AND "Country" = 'south africa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
3647,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4177,
519,
3647,
549,
17444,
427,
96,
3696,
1947,
121,
2490,
3,
31,
357,
4060,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
7,
670,
107,
24040,
31,
1,
-100,
-100,
-100,
-100,
... |
On what day was Stuart Potts the Man of the Match? | CREATE TABLE table_17120964_6 (date VARCHAR, man_of_the_match VARCHAR) | SELECT date FROM table_17120964_6 WHERE man_of_the_match = "Stuart Potts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
4198,
4389,
834,
948,
41,
5522,
584,
4280,
28027,
6,
388,
834,
858,
834,
532,
834,
19515,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
239,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2517,
2122,
4198,
4389,
834,
948,
549,
17444,
427,
388,
834,
858,
834,
532,
834,
19515,
3274,
96,
13076,
1408,
7995,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the first elected for south carolina 4? | CREATE TABLE table_1342256_40 (
first_elected VARCHAR,
district VARCHAR
) | SELECT first_elected FROM table_1342256_40 WHERE district = "South Carolina 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
19337,
834,
2445,
41,
166,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
8160,
21,
3414,
443,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
166,
834,
19971,
21680,
953,
834,
2368,
4165,
19337,
834,
2445,
549,
17444,
427,
3939,
3274,
96,
22081,
5089,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which home team has a record of 3-2? | CREATE TABLE table_74927 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Home" FROM table_74927 WHERE "Record" = '3-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3647,
2555,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
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,
0... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
940,
3647,
2555,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
21160,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Milepost of the Twin Tunnel #1 North? | CREATE TABLE table_name_74 (
milepost VARCHAR,
name_of_the_tunnel VARCHAR
) | SELECT COUNT(milepost) FROM table_name_74 WHERE name_of_the_tunnel = "twin tunnel #1 north" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
7728,
5950,
584,
4280,
28027,
6,
564,
834,
858,
834,
532,
834,
17,
202,
29,
15,
40,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8770,
5950,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
564,
834,
858,
834,
532,
834,
17,
202,
29,
15,
40,
3274,
96,
17,
3757,
11916,
7172,
3457,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What's Kaia Kanepi's Sd? | CREATE TABLE table_3814 (
"Sd" real,
"Rk" real,
"Player" text,
"Points" real,
"Points defending" text,
"Points won" real,
"New points" real,
"Status" text
) | SELECT MIN("Sd") FROM table_3814 WHERE "Player" = 'Kaia Kanepi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2534,
41,
96,
134,
26,
121,
490,
6,
96,
448,
157,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22512,
7,
3,
20309,
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,
3,
17684,
599,
121,
134,
26,
8512,
21680,
953,
834,
3747,
2534,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
439,
9,
23,
9,
4540,
15,
102,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the number range for 4vip | CREATE TABLE table_name_36 (
no_range VARCHAR,
type VARCHAR
) | SELECT no_range FROM table_name_36 WHERE type = "4vip" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
150,
834,
5517,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
381,
620,
21,
314,
2099,
102,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
5517,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
686,
3274,
96,
591,
2099,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which away team played at Kardinia Park? | CREATE TABLE table_name_35 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_35 WHERE venue = "kardinia park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
550,
372,
1944,
44,
4556,
2644,
23,
9,
1061,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
5669,
3274,
96,
4031,
2644,
23,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of the 21:12 Set 2? | CREATE TABLE table_59005 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Total" text
) | SELECT "Date" FROM table_59005 WHERE "Set 2" = '21:12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
1206,
755,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
3696,
1947,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3390,
1206,
755,
549,
17444,
427,
96,
17175,
204,
121,
3274,
3,
31,
2658,
10,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
vajiravhud went to college at christ church . who is the other monarch that went there ? | CREATE TABLE table_203_640 (
id number,
"name" text,
"college" text,
"years" text,
"reign" text
) | SELECT "name" FROM table_203_640 WHERE "name" <> 'vajiravhud' AND "college" = 'christ church' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
23714,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
3297,
7883,
121,
1499,
6,
96,
1201,
7,
121,
1499,
6,
96,
60,
3191,
121,
1499,
3,
61,
3,
32102,
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,
4350,
121,
21680,
953,
834,
23330,
834,
23714,
549,
17444,
427,
96,
4350,
121,
3,
2,
3155,
3,
31,
208,
17815,
11852,
107,
76,
26,
31,
3430,
96,
3297,
7883,
121,
3274,
3,
31,
15294,
2078,
31,
1,
-100,
-100,
-... |
How many Latin Americans were there in the Northwest Territories in 2011? | CREATE TABLE table_2045 (
"Province" text,
"Latin Americans 2001" real,
"% 2001" text,
"Latin Americans 2011" real,
"% 2011" text
) | SELECT MIN("Latin Americans 2011") FROM table_2045 WHERE "Province" = 'Northwest Territories' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
2128,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
3612,
17,
77,
5452,
4402,
121,
490,
6,
96,
1454,
4402,
121,
1499,
6,
96,
3612,
17,
77,
5452,
2722,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3612,
17,
77,
5452,
2722,
8512,
21680,
953,
834,
1755,
2128,
549,
17444,
427,
96,
3174,
2494,
565,
121,
3274,
3,
31,
22969,
12425,
17495,
235,
2593,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is earliest year that had a 50km event with a 2nd place result played in London, United Kingdom? | CREATE TABLE table_name_8 (year INTEGER, venue VARCHAR, event VARCHAR, result VARCHAR) | SELECT MIN(year) FROM table_name_8 WHERE event = "50km" AND result = "2nd" AND venue = "london, united kingdom" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1201,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
605,
3274,
96,
1752,
5848,
121,
3430,
741,
3274,
96,
357,
727,
121,
3430,
5669,
3274,
96,
40,
106,
2029,
6,
18279,
14740,
121,
1,
-100,
-1... |
What was the date of the game against Northwestern? | CREATE TABLE table_name_62 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_62 WHERE opponent = "northwestern" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
581,
30198,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
15264,
3274,
96,
29,
127,
189,
24411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Result has a Game larger than 6, and an Attendance larger than 12,782, and a Date of 5 december 1987? | CREATE TABLE table_62816 (
"Game" real,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_62816 WHERE "Game" > '6' AND "Attendance" > '12,782' AND "Date" = '5 december 1987' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2577,
2938,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
948,
2577,
2938,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
948,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
2122,
6,
3940,
357,
31,
3430,
96,
308,
342,
121,
3274,
... |
What is the average played that has a drawn greater than 1, with an against greater than 16? | CREATE TABLE table_41344 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Played") FROM table_41344 WHERE "Drawn" > '1' AND "Against" > '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
3628,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
591,
2368,
3628,
549,
17444,
427,
96,
308,
10936,
29,
121,
2490,
3,
31,
536,
31,
3430,
96,
20749,
121,
2490,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
... |
How many different chromosomal locations are there in the family il-1f8? | CREATE TABLE table_4255 (
"Name" text,
"Family name" text,
"Receptor" text,
"Coreceptor" text,
"Property" text,
"Chromosomal location" text
) | SELECT COUNT("Chromosomal location") FROM table_4255 WHERE "Family name" = 'IL-1F8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
3769,
41,
96,
23954,
121,
1499,
6,
96,
371,
3690,
120,
564,
121,
1499,
6,
96,
1649,
6873,
127,
121,
1499,
6,
96,
13026,
15,
6873,
127,
121,
1499,
6,
96,
3174,
883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3541,
3522,
32,
10348,
138,
1128,
8512,
21680,
953,
834,
4165,
3769,
549,
17444,
427,
96,
371,
3690,
120,
564,
121,
3274,
3,
31,
3502,
2292,
371,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date for the ship Afrika, with nationality Great Britain? | CREATE TABLE table_13731 (
"Date" text,
"Ship" text,
"Nationality" text,
"Tonnage" real,
"Fate" text
) | SELECT "Date" FROM table_13731 WHERE "Nationality" = 'great britain' AND "Ship" = 'afrika' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
3341,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
10462,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
382,
106,
9761,
121,
490,
6,
96,
371,
342,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
24636,
3341,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
20288,
3,
115,
10694,
77,
31,
3430,
96,
134,
10462,
121,
3274,
3,
31,
9,
89,
9629,
9,
31,
1,
-100,
-100,
-100,
... |
How many titles were there for the 113 episode? | CREATE TABLE table_10718631_2 (title VARCHAR, no_in_series VARCHAR) | SELECT COUNT(title) FROM table_10718631_2 WHERE no_in_series = 113 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
25398,
3341,
834,
357,
41,
21869,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8342,
130,
132,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
18057,
25398,
3341,
834,
357,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
3,
20522,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the least amount of podiums? | CREATE TABLE table_25548630_1 (
podiums INTEGER
) | SELECT MIN(podiums) FROM table_25548630_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
3707,
26106,
834,
536,
41,
22828,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
22828,
7,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
11410,
2552,
7,
61,
21680,
953,
834,
25502,
3707,
26106,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of jurisdiction for 57.3 percent? | CREATE TABLE table_17409 (
"Jurisdiction" text,
"For Prohibition" real,
"Percent For" text,
"Against Prohibition" real,
"Percent Against" text
) | SELECT COUNT("Jurisdiction") FROM table_17409 WHERE "Percent For" = '57.3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
4198,
41,
96,
683,
459,
7,
12472,
121,
1499,
6,
96,
3809,
749,
13506,
1575,
121,
490,
6,
96,
12988,
3728,
242,
121,
1499,
6,
96,
20749,
749,
13506,
1575,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
683,
459,
7,
12472,
8512,
21680,
953,
834,
27693,
4198,
549,
17444,
427,
96,
12988,
3728,
242,
121,
3274,
3,
31,
755,
27914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the weight in kg on the day of the race at Ranvet Stakes? | CREATE TABLE table_18848 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" real,
"Jockey" text,
"Winner/2nd" text
) | SELECT "Weight (kg)" FROM table_18848 WHERE "Race" = 'Ranvet Stakes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
3707,
41,
96,
20119,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1326,
2632,
41,
8711,
61,
121,
21680,
953,
834,
25794,
3707,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
448,
152,
162,
17,
180,
4914,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who has rank 5? | CREATE TABLE table_name_23 (
name VARCHAR,
rank VARCHAR
) | SELECT name FROM table_name_23 WHERE rank = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
564,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
11003,
305,
58,
1,
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,
564,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
11003,
3274,
305,
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... |
For what country does the golfer play who has a score of 72-65=137? | CREATE TABLE table_60342 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_60342 WHERE "Score" = '72-65=137' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3710,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
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,
10628,
651,
121,
21680,
953,
834,
3328,
3710,
357,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
5865,
18,
4122,
2423,
24636,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose primary disease is newborn and procedure icd9 code is 5361? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND procedures.icd9_code = "5361" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.