NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What locations did sid o'neill play football? | CREATE TABLE table_16527640_2 (location VARCHAR, player VARCHAR) | SELECT location FROM table_16527640_2 WHERE player = "Sid O'Neill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2555,
23714,
834,
357,
41,
14836,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3248,
410,
108,
26,
3,
32,
31,
29,
15,
1092,
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,
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,
22823,
2555,
23714,
834,
357,
549,
17444,
427,
1959,
3274,
96,
134,
23,
26,
411,
31,
29821,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the Plain stop is , what is the Non- stop? | CREATE TABLE table_9325 (
"Articulatory class" text,
"Non- stop" text,
"Plain stop" text,
"Aspirated stop" text,
"\"Muddy\" voice" text
) | SELECT "Non- stop" FROM table_9325 WHERE "Plain stop" = 'ㄷ' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4271,
1828,
41,
96,
7754,
7034,
6546,
853,
121,
1499,
6,
96,
567,
106,
18,
1190,
121,
1499,
6,
96,
345,
521,
77,
1190,
121,
1499,
6,
96,
188,
7675,
4094,
1190,
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,
567,
106,
18,
1190,
121,
21680,
953,
834,
4271,
1828,
549,
17444,
427,
96,
345,
521,
77,
1190,
121,
3274,
3,
31,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Score, when Player is 'Bob Murphy'? | CREATE TABLE table_43879 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_43879 WHERE "Player" = 'bob murphy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3747,
4440,
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,
134,
9022,
121,
21680,
953,
834,
591,
3747,
4440,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17396,
9593,
6941,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees? | CREATE TABLE table_16439764_1 (
time_to_ft__m__at_25°__seconds_ VARCHAR,
shell__lb_ VARCHAR,
max_height__ft_ VARCHAR
) | SELECT time_to_ft__m__at_25°__seconds_ FROM table_16439764_1 WHERE shell__lb_ = "12.5" AND max_height__ft_ > 20000.0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4906,
4327,
4389,
834,
536,
41,
97,
834,
235,
834,
89,
17,
834,
834,
51,
834,
834,
144,
834,
1828,
1956,
834,
834,
12091,
7,
834,
584,
4280,
28027,
6,
7300,
834,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
97,
834,
235,
834,
89,
17,
834,
834,
51,
834,
834,
144,
834,
1828,
1956,
834,
834,
12091,
7,
834,
21680,
953,
834,
2938,
4906,
4327,
4389,
834,
536,
549,
17444,
427,
7300,
834,
834,
40,
115,
834,
3274,
96,
9368,
... |
What is the average track number 3:25 long and a title of Great Getting up Mornin'? | CREATE TABLE table_name_52 (track_number INTEGER, time VARCHAR, title VARCHAR) | SELECT AVG(track_number) FROM table_name_52 WHERE time = "3:25" AND title = "great getting up mornin'" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
11991,
834,
5525,
1152,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
11991,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
97,
3274,
96,
519,
10,
1828,
121,
3430,
2233,
3274,
96,
20288,
652,
95,
8030,
29,
77,
31,
121,
1,
-100,
-100,
-100,
-1... |
Name the votes given for michael russo, genevy dimitrion , manny ortega | CREATE TABLE table_1855841_1 (
votes_given VARCHAR,
running_with__in_team_ VARCHAR
) | SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
3449,
4853,
834,
536,
41,
11839,
834,
17935,
29,
584,
4280,
28027,
6,
1180,
834,
4065,
834,
834,
77,
834,
11650,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11839,
834,
17935,
29,
21680,
953,
834,
21594,
3449,
4853,
834,
536,
549,
17444,
427,
1180,
834,
4065,
834,
834,
77,
834,
11650,
834,
3274,
96,
329,
362,
9,
15,
40,
2770,
7,
7,
32,
6,
6939,
208,
63,
18150,
155,
... |
Who was the artist with a start date of 1966-10-23? | CREATE TABLE table_2560677_1 (artist_s_ VARCHAR, start_date VARCHAR) | SELECT artist_s_ FROM table_2560677_1 WHERE start_date = "1966-10-23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
5176,
4013,
834,
536,
41,
1408,
343,
834,
7,
834,
584,
4280,
28027,
6,
456,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2377,
28,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2377,
834,
7,
834,
21680,
953,
834,
19337,
5176,
4013,
834,
536,
549,
17444,
427,
456,
834,
5522,
3274,
96,
2294,
3539,
4536,
18,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want to know the 2001 that has a 2004 of a and 2003 of a with 2012 of 3r | CREATE TABLE table_name_53 (
Id VARCHAR
) | SELECT 2001 FROM table_name_53 WHERE 2004 = "a" AND 2003 = "a" AND 2012 = "3r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
4402,
24,
65,
3,
9,
4406,
13,
3,
9,
11,
3888,
13,
3,
9,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4402,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
4406,
3274,
96,
9,
121,
3430,
3888,
3274,
96,
9,
121,
3430,
1673,
3274,
96,
519,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show me the total number of the flag of ships that are not steered by any captain with Midshipman rank using a bar graph. | CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | SELECT Flag, COUNT(Flag) FROM Ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM captain WHERE Rank = 'Midshipman') GROUP BY Flag | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15508,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
14862,
834,
476,
2741,
490,
6,
4501,
1499,
6,
17016,
1499,
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,
17016,
6,
2847,
17161,
599,
371,
5430,
61,
21680,
15508,
549,
17444,
427,
4486,
15508,
834,
4309,
3388,
41,
23143,
14196,
15508,
834,
4309,
21680,
14268,
549,
17444,
427,
3,
22557,
3274,
3,
31,
329,
23,
26,
2009,
348,... |
How many tournament wins were at Volvo Masters Andalucia? | CREATE TABLE table_20583 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT COUNT("No.") FROM table_20583 WHERE "Tournament" = 'Volvo Masters Andalucia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
4591,
41,
96,
4168,
535,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
3696,
260,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4168,
5,
8512,
21680,
953,
834,
23201,
4591,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
22803,
1621,
14119,
275,
9,
12804,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the content of the television service ewtn in the United Kingdom? | CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR) | SELECT content FROM table_name_94 WHERE country = "united kingdom" AND television_service = "ewtn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
14819,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
738,
13,
8,
439... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
738,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
14740,
121,
3430,
4390,
834,
5114,
3274,
96,
15,
210,
17,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the figure for Tujunga when Pasadena is 134,941? | CREATE TABLE table_name_39 (
tujunga VARCHAR,
pasadena VARCHAR
) | SELECT tujunga FROM table_name_39 WHERE pasadena = "134,941" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
3,
17,
76,
22498,
9,
584,
4280,
28027,
6,
330,
9,
537,
9,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2320,
21,
2740,
22498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17,
76,
22498,
9,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
330,
9,
537,
9,
3274,
96,
23747,
6,
4240,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is February, when Record is '21-29-11'? | CREATE TABLE table_8174 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "February" FROM table_8174 WHERE "Record" = '21-29-11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
4581,
41,
96,
23055,
121,
490,
6,
96,
31122,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
31122,
121,
21680,
953,
834,
4959,
4581,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2658,
18,
3166,
9169,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 1999 has 2000 as the year-end championship? | CREATE TABLE table_name_40 (
Id VARCHAR
) | SELECT 1999 FROM table_name_40 WHERE 2000 = "year-end championship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5247,
65,
2766,
38,
8,
215,
18,
989,
10183,
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,
5247,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2766,
3274,
96,
1201,
18,
989,
10183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A pie chart about the proportion of the total number for each team. | CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
) | SELECT Team, COUNT(*) FROM Elimination GROUP BY Team | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7495,
14484,
41,
7495,
14484,
834,
4309,
1499,
6,
549,
6216,
1171,
834,
4309,
1499,
6,
2271,
1499,
6,
7495,
1109,
920,
834,
279,
63,
1499,
6,
7495,
14484,
834,
329,
32,
162,
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,
2271,
6,
2847,
17161,
599,
1935,
61,
21680,
7495,
14484,
350,
4630,
6880,
272,
476,
2271,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Long when the ryds is 18? | CREATE TABLE table_name_14 (
long VARCHAR,
ryds VARCHAR
) | SELECT long FROM table_name_14 WHERE ryds = "18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
307,
584,
4280,
28027,
6,
3,
651,
26,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3230,
116,
8,
3,
651,
26,
7,
19,
507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
307,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3,
651,
26,
7,
3274,
96,
2606,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Host of the Show with a Market of New York? | CREATE TABLE table_50181 (
"Show" text,
"Host(s)" text,
"Flagship" text,
"Market" text,
"iHeartRadio" text
) | SELECT "Host(s)" FROM table_50181 WHERE "Market" = 'new york' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20176,
4959,
41,
96,
134,
4067,
121,
1499,
6,
96,
566,
3481,
599,
7,
61,
121,
1499,
6,
96,
371,
5430,
2009,
121,
1499,
6,
96,
22572,
121,
1499,
6,
96,
23,
3845,
1408,
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,
566,
3481,
599,
7,
61,
121,
21680,
953,
834,
20176,
4959,
549,
17444,
427,
96,
22572,
121,
3274,
3,
31,
5534,
25453,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Elimination for Candice? | CREATE TABLE table_name_96 (elimination VARCHAR, wrestler VARCHAR) | SELECT elimination FROM table_name_96 WHERE wrestler = "candice" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
15,
40,
23,
14484,
584,
4280,
28027,
6,
26033,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7495,
14484,
21,
12959,
867,
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,
23458,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
26033,
52,
3274,
96,
75,
232,
867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX? | CREATE TABLE table_name_55 (
top_division_titles VARCHAR,
number_of_seasons_in_liga_mx VARCHAR,
number_of_seasons_in_top_division VARCHAR,
first_season_of_current_spell_in_top_division VARCHAR
) | SELECT COUNT(top_division_titles) FROM table_name_55 WHERE number_of_seasons_in_top_division > 40 AND first_season_of_current_spell_in_top_division = "1943-44" AND number_of_seasons_in_liga_mx > 89 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
420,
834,
26,
23,
6610,
834,
21869,
7,
584,
4280,
28027,
6,
381,
834,
858,
834,
9476,
7,
834,
77,
834,
17140,
834,
51,
226,
584,
4280,
28027,
6,
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,
2847,
17161,
599,
2916,
834,
26,
23,
6610,
834,
21869,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
381,
834,
858,
834,
9476,
7,
834,
77,
834,
2916,
834,
26,
23,
6610,
2490,
1283,
3430,
166,
834,
9476... |
What is the format for the label Mightier than Sword on January 12, 2010 in the United States? | CREATE TABLE table_name_50 (format VARCHAR, label VARCHAR, region VARCHAR, date VARCHAR) | SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "mightier than sword" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
8995,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1719,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
833,
3274,
96,
7066,
76,
1208,
10440,
2735,
121,
3430,
3783,
3274,
96,
51,
2632,
972,
145,
16600,
121,
1,
-100... |
Show the number of document type for different document type description in a pie chart. | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
) | SELECT Document_Type_Description, COUNT(Document_Type_Description) FROM Ref_Document_Types GROUP BY Document_Type_Description | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
25160,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
11167,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
25160,
834,
2962,
11830,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
25160,
834,
2962,
11830,
61,
21680,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
350,
4630,
6880,
272,
476,
11167,
834,
25160,
834,
2962... |
What is the Date of the game where the Cavaliers have a Record of 15-27? | CREATE TABLE table_name_57 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_57 WHERE record = "15-27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
5522,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
8,
467,
213,
8,
17655,
138,
4518,
43,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1368,
3274,
96,
1808,
18,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Runner-up on April 11? | CREATE TABLE table_name_36 (
runner_up VARCHAR,
week VARCHAR
) | SELECT runner_up FROM table_name_36 WHERE week = "april 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
23572,
18,
413,
30,
1186,
850,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
471,
3274,
96,
9,
2246,
40,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the league for strikeouts being 451 | CREATE TABLE table_242813_2 (
league VARCHAR,
strikeouts VARCHAR
) | SELECT league FROM table_242813_2 WHERE strikeouts = 451 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2577,
2368,
834,
357,
41,
5533,
584,
4280,
28027,
6,
6585,
670,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5533,
21,
6585,
670,
7,
271,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
2266,
2577,
2368,
834,
357,
549,
17444,
427,
6585,
670,
7,
3274,
314,
5553,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many bands are there? | CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CREATE TABLE band (
id number,
firstname text,
lastname text
)
CREATE TABLE vocals (
songid number,
bandmate number,
type text
)
CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type text
)
CREATE TABLE instruments (
songid number,
bandmateid number,
instrument text
)
CREATE TABLE songs (
songid number,
title text
) | SELECT COUNT(*) FROM band | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
3350,
7,
41,
2306,
23,
26,
381,
6,
1102,
381,
6,
2324,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1928,
41,
3,
23,
26,
381,
6,
166,
4350,
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,
1935,
61,
21680,
1928,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHERE THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME? | CREATE TABLE table_15778392_1 (theme VARCHAR, week__number VARCHAR) | SELECT theme FROM table_15778392_1 WHERE week__number = "Top 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4013,
4591,
4508,
834,
536,
41,
532,
526,
584,
4280,
28027,
6,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
549,
17444,
427,
1853,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3800,
21680,
953,
834,
1808,
4013,
4591,
4508,
834,
536,
549,
17444,
427,
471,
834,
834,
5525,
1152,
3274,
96,
22481,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Player that has a To standard of –4? | CREATE TABLE table_name_15 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_15 WHERE to_par = "–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
20846,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12387,
24,
65,
3,
9,
304,
1068,
13,
3,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each record in schedule, show average of the price for each day in a bar chart, and order x-axis in ascending order. | CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
) | SELECT Date, AVG(Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Date ORDER BY Date | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10276,
41,
17544,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2384,
29,
53,
834,
1201,
16,
17,
6,
4000,
9,
6726,
16,
17,
6,
10450,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
6,
71,
17217,
599,
345,
4920,
61,
21680,
2023,
6157,
332,
536,
3,
15355,
3162,
814,
6157,
332,
357,
9191,
332,
5411,
371,
173,
51,
834,
4309,
3274,
332,
4416,
371,
173,
51,
834,
4309,
3,
15355,
3162,
10276,
... |
Name the fourth district for beverly bodem | CREATE TABLE table_20085 (
"First District" text,
"Second District" text,
"Third District" text,
"Fourth District" text,
"Fifth District" text
) | SELECT "Fourth District" FROM table_20085 WHERE "First District" = 'Beverly Bodem' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16128,
755,
41,
96,
25171,
3570,
121,
1499,
6,
96,
134,
15,
1018,
26,
3570,
121,
1499,
6,
96,
382,
9288,
26,
3570,
121,
1499,
6,
96,
371,
1211,
189,
3570,
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,
371,
1211,
189,
3570,
121,
21680,
953,
834,
16128,
755,
549,
17444,
427,
96,
25171,
3570,
121,
3274,
3,
31,
279,
3258,
120,
1491,
1778,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the average 1st prize for tennessee | CREATE TABLE table_57453 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | SELECT AVG("1st Prize( $ )") FROM table_57453 WHERE "Location" = 'tennessee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2128,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
599,
1514,
3,
61,
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,
71,
17217,
599,
121,
536,
7,
17,
11329,
599,
1514,
3,
61,
8512,
21680,
953,
834,
3436,
2128,
519,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
324,
655,
15,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
List top 10 employee work longest in the company. List employee's first and last name. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR) | SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
28027,
6,
3804,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
420,
335,
3490,
161,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
4350,
6,
336,
834,
4350,
21680,
1652,
4674,
11300,
272,
476,
3804,
834,
5522,
8729,
12604,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which country has is Len Mattiace in T10 place? | CREATE TABLE table_76809 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Country" FROM table_76809 WHERE "Place" = 't10' AND "Player" = 'len mattiace' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
2079,
1298,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
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,
3959,
2079,
1298,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
1714,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
40,
35,
3,
51,
15817,
3302,
31,
1,
-100,
-100,
-100... |
what is the money for trevor immelman? | CREATE TABLE table_name_77 (money___$__ VARCHAR, player VARCHAR) | SELECT money___$__ FROM table_name_77 WHERE player = "trevor immelman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
28442,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
540,
21,
3,
929,
1967... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
834,
834,
834,
3229,
834,
834,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1959,
3274,
96,
929,
1967,
256,
2341,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the population of people for area being 24.35 | CREATE TABLE table_14465924_1 (population__people_ VARCHAR, area__km_2__ VARCHAR) | SELECT population__people_ FROM table_14465924_1 WHERE area__km_2__ = "24.35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4448,
3390,
2266,
834,
536,
41,
9791,
7830,
834,
834,
16588,
834,
584,
4280,
28027,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
834,
834,
16588,
834,
21680,
953,
834,
2534,
4448,
3390,
2266,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
834,
357,
834,
834,
3274,
96,
2266,
5,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which nation is Danilo di Luca from? | CREATE TABLE table_name_7 (nation VARCHAR, cyclist VARCHAR) | SELECT nation FROM table_name_7 WHERE cyclist = "danilo di luca" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
29,
257,
584,
4280,
28027,
6,
21074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,
19,
2744,
173,
32,
1227,
3,
11748,
9,
45,
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,
2982,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
21074,
3274,
96,
3768,
173,
32,
1227,
3,
11525,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients admitted before the year 2145 with iv drip as their drug route? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2145" AND prescriptions.route = "IV DRIP" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
When 42.903° n is the latitude how many measurements of longitude are there? | CREATE TABLE table_24192190_1 (longitude VARCHAR, latitude VARCHAR) | SELECT COUNT(longitude) FROM table_24192190_1 WHERE latitude = "42.903° N" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
19978,
11776,
834,
536,
41,
2961,
20341,
584,
4280,
28027,
6,
50,
6592,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
314,
27297,
4928,
1956,
3,
29,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2961,
20341,
61,
21680,
953,
834,
2266,
19978,
11776,
834,
536,
549,
17444,
427,
50,
6592,
3274,
96,
591,
27297,
4928,
1956,
445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is teaching language where the focus is auditing? | CREATE TABLE table_12591022_2 (
teaching_language VARCHAR,
focus VARCHAR
) | SELECT teaching_language FROM table_12591022_2 WHERE focus = "Auditing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3390,
1714,
2884,
834,
357,
41,
2119,
834,
24925,
584,
4280,
28027,
6,
992,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
2119,
1612,
213,
8,
992,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2119,
834,
24925,
21680,
953,
834,
2122,
3390,
1714,
2884,
834,
357,
549,
17444,
427,
992,
3274,
96,
188,
5291,
1222,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53? | CREATE TABLE table_name_32 (
february VARCHAR,
game VARCHAR,
opponent VARCHAR,
record VARCHAR
) | SELECT COUNT(february) FROM table_name_32 WHERE opponent = "montreal canadiens" AND record = "18-25-10" AND game > 53 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
29976,
76,
1208,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
89,
15,
9052,
1208,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
15264,
3274,
96,
4662,
6644,
27114,
7,
121,
3430,
1368,
3274,
96,
2606,
14855,
4536,
121,
3430,
467,
2490,
12210,
1,
-100,
... |
What was the team #1 for the match that had a result of 0-3? | CREATE TABLE table_50062 (
"Date" text,
"Team #1" text,
"Res." text,
"Team #2" text,
"Competition" text,
"Attendance" real
) | SELECT "Team #1" FROM table_50062 WHERE "Res." = '0-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
4056,
41,
96,
308,
342,
121,
1499,
6,
96,
18699,
7172,
121,
1499,
6,
96,
1649,
7,
535,
1499,
6,
96,
18699,
15493,
121,
1499,
6,
96,
5890,
4995,
4749,
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,
18699,
7172,
121,
21680,
953,
834,
2560,
4056,
549,
17444,
427,
96,
1649,
7,
535,
3274,
3,
31,
632,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)? | CREATE TABLE table_14948647_1 (
total_points VARCHAR,
oberstdorf__rk_ VARCHAR
) | SELECT total_points FROM table_14948647_1 WHERE oberstdorf__rk_ = "252.6 (11)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4240,
3840,
4177,
834,
536,
41,
792,
834,
2700,
7,
584,
4280,
28027,
6,
18299,
7,
17,
8716,
834,
834,
52,
157,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
792,
834,
2700,
7,
21680,
953,
834,
2534,
4240,
3840,
4177,
834,
536,
549,
17444,
427,
18299,
7,
17,
8716,
834,
834,
52,
157,
834,
3274,
96,
1828,
22724,
4077,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When interjection is the subject who are the lyrics by? | CREATE TABLE table_191105_2 (lyrics_by VARCHAR, subject VARCHAR) | SELECT lyrics_by FROM table_191105_2 WHERE subject = "interjection" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
536,
12869,
834,
357,
41,
120,
2234,
7,
834,
969,
584,
4280,
28027,
6,
1426,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
1413,
21440,
19,
8,
1426,
113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13475,
834,
969,
21680,
953,
834,
2294,
536,
12869,
834,
357,
549,
17444,
427,
1426,
3274,
96,
3870,
21440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What were the casualties in the Baghlan location? | CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR) | SELECT casualties FROM table_name_64 WHERE location = "baghlan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
6769,
3471,
3010,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
6995,
3010,
16,
8,
8055,
107,
1618,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6995,
3010,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1128,
3274,
96,
7893,
107,
1618,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Phillip Landrum was first elected in 1952 from the ninth district of Georgia. | CREATE TABLE table_1341707_12 (district VARCHAR, first_elected VARCHAR) | SELECT district FROM table_1341707_12 WHERE first_elected = 1952 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
4560,
834,
2122,
41,
26,
23,
20066,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
16202,
2216,
2781,
47,
166,
8160,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2517,
4560,
834,
2122,
549,
17444,
427,
166,
834,
19971,
3274,
23744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who won in 1988 with a total less than 287? | CREATE TABLE table_64946 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Player" FROM table_64946 WHERE "Total" < '287' AND "Year(s) won" = '1988' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3647,
4448,
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,
948,
3647,
4448,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
357,
4225,
31,
3430,
96,
476,
2741,
599,
7,
61,
751,
121,
3274,
3,
31,
2294,
4060,
31,
1,
-100,
-100,
-1... |
What position is Charone Peake? | CREATE TABLE table_11677691_3 (position VARCHAR, player VARCHAR) | SELECT position FROM table_11677691_3 WHERE player = "Charone Peake" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3708,
3959,
4729,
834,
519,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
19,
7435,
782,
18996,
15,
58,
3,
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,
1102,
21680,
953,
834,
2596,
3708,
3959,
4729,
834,
519,
549,
17444,
427,
1959,
3274,
96,
18947,
782,
18996,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum enrollment at barton college | CREATE TABLE table_16989 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text,
"Nickname" text
) | SELECT MIN("Enrollment") FROM table_16989 WHERE "Institution" = 'Barton College' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
3914,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
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,
8532,
4046,
297,
8512,
21680,
953,
834,
27096,
3914,
549,
17444,
427,
96,
1570,
17448,
121,
3274,
3,
31,
14851,
17,
106,
1888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333? | CREATE TABLE table_48902 (
"State" text,
"Preliminary" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT MIN("Preliminary") FROM table_48902 WHERE "Swimsuit" < '8.822' AND "Interview" > '8.744' AND "Evening Gown" > '9.333' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
2394,
357,
41,
96,
134,
4748,
121,
1499,
6,
96,
10572,
4941,
77,
1208,
121,
490,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10572,
4941,
77,
1208,
8512,
21680,
953,
834,
3707,
2394,
357,
549,
17444,
427,
96,
134,
210,
603,
7628,
121,
3,
2,
3,
31,
927,
5,
4613,
357,
31,
3430,
96,
17555,
4576,
121,
2490,
3,
31,
927,... |
What is the family of the constellation that has lyncis / l ns s/ as genitive? | CREATE TABLE table_30698 (
"Constellation" text,
"IAU abbreviation" text,
"Other abbreviation" text,
"Genitive" text,
"Family" text,
"Origin" text,
"Meaning" text,
"Brightest star" text
) | SELECT "Family" FROM table_30698 WHERE "Genitive" = 'Lyncis /ˈlɪnsɨs/' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3951,
927,
41,
96,
4302,
7,
6714,
257,
121,
1499,
6,
96,
196,
6727,
703,
1999,
2099,
257,
121,
1499,
6,
96,
667,
189,
49,
703,
1999,
2099,
257,
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,
371,
3690,
120,
121,
21680,
953,
834,
1458,
3951,
927,
549,
17444,
427,
96,
13714,
23,
3268,
121,
3274,
3,
31,
434,
63,
29,
75,
159,
3,
87,
2,
40,
2,
29,
7,
2,
7,
87,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
Which of the networks originate in Xalapa? | CREATE TABLE table_2899987_2 (network VARCHAR, origin VARCHAR) | SELECT network FROM table_2899987_2 WHERE origin = "Xalapa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
19446,
4225,
834,
357,
41,
1582,
1981,
584,
4280,
28027,
6,
5233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
5275,
26843,
16,
3,
4,
138,
9750,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1229,
21680,
953,
834,
2577,
19446,
4225,
834,
357,
549,
17444,
427,
5233,
3274,
96,
4,
138,
9750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the crowd size for st kilda as the home team? | CREATE TABLE table_56079 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_56079 WHERE "Home team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3328,
4440,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
3623,
26,
121,
21680,
953,
834,
755,
3328,
4440,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of christian scientist religious background patients who have lab test item id 51254. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "CHRISTIAN SCIENTIST" AND lab.itemid = "51254" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the phoneme for realizaiton of [ j] | CREATE TABLE table_name_13 (
phoneme VARCHAR,
realization VARCHAR
) | SELECT phoneme FROM table_name_13 WHERE realization = "[ɪj]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
951,
526,
584,
4280,
28027,
6,
23543,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
951,
526,
21,
16200,
155,
106,
13,
784,
3,
354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
951,
526,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
23543,
3274,
96,
6306,
2,
354,
908,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the final score when the player was an e to par? | CREATE TABLE table_name_97 (
score VARCHAR,
to_par VARCHAR
) | SELECT score FROM table_name_97 WHERE to_par = "e" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
2604,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
116,
8,
1959,
47,
46,
3,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
12,
834,
1893,
3274,
96,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many touchdowns were scored by William Cole? | CREATE TABLE table_name_88 (touchdowns VARCHAR, player VARCHAR) | SELECT touchdowns FROM table_name_88 WHERE player = "william cole" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
17681,
3035,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
19396,
7,
130,
5799,
57,
4599,
16311,
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,
19396,
7,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1959,
3274,
96,
8894,
23,
265,
7632,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which movie had the character ' Daffy Duck | CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE directed_by (
id int,
msid int,
did int
)
CREATE TABLE classification (
id int,
msid int,
gid int
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE cast (
id int,
msid int,
aid int,
role text
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE director (
did int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE made_by (
id int,
msid int,
pid int
)
CREATE TABLE keyword (
id int,
keyword text
)
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes int,
title_aka text,
budget text
) | SELECT movie.title FROM cast, movie WHERE cast.role = 'Daffy Duck' AND movie.mid = cast.msid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1545,
834,
969,
41,
3,
23,
26,
16,
17,
6,
3,
51,
7,
23,
26,
16,
17,
6,
3,
12018,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4346,
41,
3,
12018,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1974,
5,
21869,
21680,
4061,
6,
1974,
549,
17444,
427,
4061,
5,
3491,
15,
3274,
3,
31,
308,
9,
20334,
19998,
31,
3430,
1974,
5,
6983,
3274,
4061,
5,
51,
7,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many top 10s associated with 3 top 5s and under 22 cuts made? | CREATE TABLE table_74860 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT MAX("Top-10") FROM table_74860 WHERE "Top-5" = '3' AND "Cuts made" < '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3840,
632,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22481,
4536,
8512,
21680,
953,
834,
4581,
3840,
632,
549,
17444,
427,
96,
22481,
18,
17395,
3274,
3,
31,
519,
31,
3430,
96,
15784,
17,
7,
263,
121,
3,
2,
3,
31,
2884,
31,
1,
-100,
-100,
-100,
... |
how many patients whose insurance is private and procedure long title is open biopsy of liver? | 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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Open biopsy of liver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the Location for the newington international airport? | CREATE TABLE table_name_6 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_6 WHERE name = "newington international airport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
14836,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10450,
21,
8,
126,
6029,
1038,
3761,
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,
948,
549,
17444,
427,
564,
3274,
96,
5534,
6029,
1038,
3761,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What record had an alca-271 cd? | CREATE TABLE table_name_88 (
region VARCHAR,
format VARCHAR,
catalog VARCHAR
) | SELECT region FROM table_name_88 WHERE format = "cd" AND catalog = "alca-271" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1719,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1368,
141,
46,
491,
658,
4949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1719,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1910,
3274,
96,
75,
26,
121,
3430,
10173,
3274,
96,
138,
658,
4949,
4450,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose admission location is phys referral/normal deli and diagnoses icd9 code is 43411? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND diagnoses.icd9_code = "43411" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What are the downloaded numbers and their release types? | CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
) | SELECT SUM(totalsnatched), releasetype FROM torrents GROUP BY releasetype | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23326,
7,
41,
563,
4350,
1499,
6,
792,
7,
29,
144,
4513,
381,
6,
2377,
1499,
6,
563,
1201,
381,
6,
1576,
6137,
1499,
6,
563,
23,
26,
381,
6,
3,
23,
26,
381,
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,
180,
6122,
599,
235,
1947,
7,
29,
144,
4513,
201,
1576,
6137,
21680,
23326,
7,
350,
4630,
6880,
272,
476,
1576,
6137,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank. | CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, rank VARCHAR) | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
4350,
584,
4280,
28027,
6,
4383,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
2009,
834,
23,
26,
584,
4280,
28027,
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,
17,
5411,
4350,
21680,
4383,
6157,
3,
17,
536,
3,
15355,
3162,
14268,
6157,
3,
17,
357,
9191,
3,
17,
5411,
2009,
834,
23,
26,
3274,
3,
17,
4416,
2009,
834,
23,
26,
549,
17444,
427,
3,
17,
4416,
6254,
3274,
... |
What driver had a total time of 16:58? | CREATE TABLE table_name_66 (driver VARCHAR, total_time VARCHAR) | SELECT driver FROM table_name_66 WHERE total_time = "16:58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
13739,
52,
584,
4280,
28027,
6,
792,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
141,
3,
9,
792,
97,
13,
898,
10,
3449,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
792,
834,
715,
3274,
96,
2938,
10,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, could you display in ascending by the names? | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
... |
What is the total number of CFL teams in the college Wilfrid Laurier | CREATE TABLE table_15817998_5 (cfl_team VARCHAR, college VARCHAR) | SELECT COUNT(cfl_team) FROM table_15817998_5 WHERE college = "Wilfrid Laurier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
26593,
3916,
834,
755,
41,
75,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
205,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
75,
89,
40,
834,
11650,
61,
21680,
953,
834,
26556,
26593,
3916,
834,
755,
549,
17444,
427,
1900,
3274,
96,
518,
173,
89,
4055,
29935,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the average of credits of courses that have more than one prerequisite for each title with a bar chart. | CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
) | SELECT title, AVG(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
740,
3,
4331,
4059,
599,
1808,
201,
1487,
206,
17552,
599,
2122,
6,
7318,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
6,
71,
17217,
599,
15547,
7,
61,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
554,
60,
1824,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
350,
4630,
6880,
272,
476... |
What is the sum for the week with the date october 30, 1994? | CREATE TABLE table_45257 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT SUM("Week") FROM table_45257 WHERE "Date" = 'october 30, 1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
357,
3436,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
180,
6122,
599,
121,
518,
10266,
8512,
21680,
953,
834,
2128,
357,
3436,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
11558,
7520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the frequency for the Christian Kawz-fm Translator station? | CREATE TABLE table_134987_3 (frequency VARCHAR, format VARCHAR) | SELECT frequency FROM table_134987_3 WHERE format = "Christian KAWZ-FM translator" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3647,
4225,
834,
519,
41,
30989,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
21,
8,
2826,
2209,
210,
172,
18,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
21680,
953,
834,
2368,
3647,
4225,
834,
519,
549,
17444,
427,
1910,
3274,
96,
28412,
480,
9851,
956,
18,
14908,
22770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division? | CREATE TABLE table_40634 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT COUNT("Division") FROM table_40634 WHERE "Regular Season" = '2nd, northeast' AND "Year" < '2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3891,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
6,
96,
15800,
1647,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
23,
6610,
8512,
21680,
953,
834,
2445,
3891,
591,
549,
17444,
427,
96,
17748,
4885,
7960,
121,
3274,
3,
31,
357,
727,
6,
25806,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
16128,
31,
1... |
The game played 31 May 2010 was played on what surface? | CREATE TABLE table_name_98 (
surface VARCHAR,
date VARCHAR
) | SELECT surface FROM table_name_98 WHERE date = "31 may 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1774,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
467,
1944,
2664,
932,
2735,
47,
1944,
30,
125,
1774,
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,
1774,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
3274,
96,
3341,
164,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which DOB has Throws of r, and a Position of c, and a First of torey? | CREATE TABLE table_name_25 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR) | SELECT dob FROM table_name_25 WHERE throws = "r" AND position = "c" AND first = "torey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
26,
32,
115,
584,
4280,
28027,
6,
166,
584,
4280,
28027,
6,
3793,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
103,
115,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
3793,
7,
3274,
96,
52,
121,
3430,
1102,
3274,
96,
75,
121,
3430,
166,
3274,
96,
235,
60,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the attendance for a week smaller than 9 with a result of L 38-20? | CREATE TABLE table_name_67 (attendance INTEGER, result VARCHAR, week VARCHAR) | SELECT MAX(attendance) FROM table_name_67 WHERE result = "l 38-20" AND week < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
15116,
663,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11364,
21,
3,
9,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
741,
3274,
96,
40,
6654,
7988,
121,
3430,
471,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Gold has a Nation of south korea (kor), and Bronze smaller than 65? | CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_83 WHERE nation = "south korea (kor)" AND bronze < 65 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
14910,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2540,
65,
3,
9,
11046,
13,
3414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
2982,
3274,
96,
7,
670,
107,
3,
5543,
15,
9,
41,
5543,
61,
121,
3430,
13467,
3,
2,
7123,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which District has a First elected larger than 1858? | CREATE TABLE table_name_21 (district VARCHAR, first_elected INTEGER) | SELECT district FROM table_name_21 WHERE first_elected > 1858 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
26,
23,
20066,
584,
4280,
28027,
6,
166,
834,
19971,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
3570,
65,
3,
9,
1485,
8160,
2186,
145,
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,
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,
2658,
549,
17444,
427,
166,
834,
19971,
2490,
507,
3449,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What club has a Try Bonus of 8? | CREATE TABLE table_name_16 (
club VARCHAR,
try_bonus VARCHAR
) | SELECT club FROM table_name_16 WHERE try_bonus = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1886,
584,
4280,
28027,
6,
653,
834,
5407,
302,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1886,
65,
3,
9,
5263,
10659,
13,
505,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
653,
834,
5407,
302,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which position did the player from the hometown of Dallas, TX play? | CREATE TABLE table_11677100_12 (position VARCHAR, hometown VARCHAR) | SELECT position FROM table_11677100_12 WHERE hometown = "Dallas, TX" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
4013,
2915,
834,
2122,
41,
4718,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
410,
8,
1959,
45,
8,
22295,
13,
9628,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
20159,
4013,
2915,
834,
2122,
549,
17444,
427,
22295,
3274,
96,
308,
1748,
9,
7,
6,
332,
4,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is every high point when the team is Washington? | CREATE TABLE table_17325580_6 (high_points VARCHAR, team VARCHAR) | SELECT high_points FROM table_17325580_6 WHERE team = "Washington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
3769,
2079,
834,
948,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
306,
500,
116,
8,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2517,
2668,
3769,
2079,
834,
948,
549,
17444,
427,
372,
3274,
96,
518,
3198,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which state has a Reason for termination of retirement, and an Active service of 1926 1928? | CREATE TABLE table_15578 (
"State" text,
"Born/Died" text,
"Active service" text,
"Chief Judge" text,
"Senior status" text,
"Appointed by" text,
"Reason for termination" text
) | SELECT "State" FROM table_15578 WHERE "Reason for termination" = 'retirement' AND "Active service" = '1926–1928' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
3940,
41,
96,
134,
4748,
121,
1499,
6,
96,
279,
127,
29,
87,
8639,
26,
121,
1499,
6,
96,
13035,
15,
313,
121,
1499,
6,
96,
3541,
23,
15,
89,
12330,
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,
134,
4748,
121,
21680,
953,
834,
20896,
3940,
549,
17444,
427,
96,
1649,
9,
739,
21,
18739,
121,
3274,
3,
31,
10682,
60,
297,
31,
3430,
96,
13035,
15,
313,
121,
3274,
3,
31,
2294,
2688,
104,
2294,
2577,
31,
... |
What is the result for 2006 of a tournament that is 107 in 2010? | CREATE TABLE table_67900 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2006" FROM table_67900 WHERE "2010" = '107' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
7015,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
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,
21196,
121,
21680,
953,
834,
3708,
7015,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
18057,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
high cardiovascular risk defined as at least one of the following: 7.5 percentile risk or higher using ascvd risk calculator; myocardial infarction more than 6 months ago; diabetes ; taking medication for blood pressure > 140 / 90 blood pressure ; taking medication for lyperlipidemia ldl > 160 | CREATE TABLE table_train_139 (
"id" int,
"ascvd_risk_calculator" float,
"systolic_blood_pressure_sbp" int,
"stomach_problems" bool,
"muscle_weakness" bool,
"heart_disease" bool,
"stroke" bool,
"renal_disease" bool,
"cerebrovascular_disease" bool,
"hepatic_disease" bool,
"cardiovascular_disease" bool,
"bowel_problems" bool,
"diastolic_blood_pressure_dbp" int,
"lyperlipidemia_ldl" int,
"diabetes" bool,
"hepatitis_c_antibody" bool,
"hepatitis_b_surface_antigen" bool,
"serum_creatinine" float,
"ulcerative_colitis" bool,
"blockage" bool,
"hypertension" bool,
"myocardial_infarction" bool,
"NOUSE" float
) | SELECT * FROM table_train_139 WHERE cardiovascular_disease = 1 OR (ascvd_risk_calculator > 7.5 OR myocardial_infarction = 1 OR diabetes = 1 OR (systolic_blood_pressure_sbp >= 140 OR diastolic_blood_pressure_dbp >= 90) OR lyperlipidemia_ldl > 160) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
24090,
41,
96,
23,
26,
121,
16,
17,
6,
96,
9,
7,
75,
208,
26,
834,
13261,
834,
10379,
83,
1016,
121,
3,
12660,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
24090,
549,
17444,
427,
16712,
834,
26,
159,
14608,
3274,
209,
4674,
41,
9,
7,
75,
208,
26,
834,
13261,
834,
10379,
83,
1016,
2490,
3,
15731,
4674,
82,
32,
16464,
138,
834,
77,
55... |
mmse total score > 27 | CREATE TABLE table_train_81 (
"id" int,
"high_glucose" bool,
"mini_mental_state_examination_mmse" int,
"uncontrolled_diabetes" bool,
"modified_hachinski_ischemia_scale" int,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
) | SELECT * FROM table_train_81 WHERE mini_mental_state_examination_mmse > 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4959,
41,
96,
23,
26,
121,
16,
17,
6,
96,
6739,
834,
13492,
509,
7,
15,
121,
3,
12840,
40,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
4959,
549,
17444,
427,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
2490,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which malaysian team classification had mohd nur rizuan zainal as points classification? | CREATE TABLE table_22464308_2 (malaysian_team_classification VARCHAR, points_classification VARCHAR) | SELECT malaysian_team_classification FROM table_22464308_2 WHERE points_classification = "Mohd Nur Rizuan Zainal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
4389,
1458,
927,
834,
357,
41,
1982,
9,
63,
10488,
834,
11650,
834,
4057,
2420,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
954,
5595,
10488,
834,
11650,
834,
4057,
2420,
21680,
953,
834,
24622,
4389,
1458,
927,
834,
357,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
329,
32,
107,
26,
10037,
2403,
1000,
152,
4904,
10270,
121,
1,
-100,
... |
Show the number of the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000. | CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
) | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count > 100 OR amount_of_transaction > 1000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14839,
7,
41,
1242,
834,
7031,
4787,
834,
23,
26,
3,
21342,
17966,
6,
1242,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
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,
833,
834,
858,
834,
7031,
4787,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7031,
4787,
61,
21680,
21469,
7,
549,
17444,
427,
698,
834,
13362,
2490,
910,
4674,
866,
834,
858,
834,
7031,
4787,
2490,
5580,
1,
-100,
-100... |
What season has 6 races and the team is Australia? | CREATE TABLE table_name_90 (season VARCHAR, races VARCHAR, team VARCHAR) | SELECT season FROM table_name_90 WHERE races = 6 AND team = "australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
9476,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
774,
65,
431,
10879,
11,
8,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
10879,
3274,
431,
3430,
372,
3274,
96,
2064,
8792,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many values for attendance on the date of September 5? | CREATE TABLE table_23916462_3 (attendance VARCHAR, date VARCHAR) | SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = "September 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3288,
26987,
4056,
834,
519,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2620,
21,
11364,
30,
8,
833,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
357,
3288,
26987,
4056,
834,
519,
549,
17444,
427,
833,
3274,
96,
27652,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the size of the screen that came out in 2006 and is iliad | CREATE TABLE table_name_73 (screen_size__inch_ VARCHAR, intro_year VARCHAR, model VARCHAR) | SELECT screen_size__inch_ FROM table_name_73 WHERE intro_year = "2006" AND model = "iliad" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
8527,
834,
7991,
834,
834,
4976,
834,
584,
4280,
28027,
6,
16728,
834,
1201,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1641,
834,
7991,
834,
834,
4976,
834,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
16728,
834,
1201,
3274,
96,
21196,
121,
3430,
825,
3274,
96,
13565,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the title with presentation of credentials of april 10, 1907 | CREATE TABLE table_name_62 (
title VARCHAR,
presentation_of_credentials VARCHAR
) | SELECT title FROM table_name_62 WHERE presentation_of_credentials = "april 10, 1907" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
2233,
584,
4280,
28027,
6,
3831,
834,
858,
834,
17216,
7220,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2233,
28,
3831,
13,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3831,
834,
858,
834,
17216,
7220,
7,
3274,
96,
9,
2246,
40,
10372,
957,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What race after round 6 did Graham Rahal win with a pole position of graham rahal? | CREATE TABLE table_name_59 (
race_name VARCHAR,
pole_position VARCHAR,
winning_driver VARCHAR,
round VARCHAR
) | SELECT race_name FROM table_name_59 WHERE winning_driver = "graham rahal" AND round > 6 AND pole_position = "graham rahal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
1964,
834,
4350,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1964,
834,
4350,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
3484,
1483,
3,
52,
9,
3828,
121,
3430,
1751,
2490,
431,
3430,
11148,
834,
4718,
3274,
96,
3484,
1483,
3,
52,
9,
3... |
Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811? | CREATE TABLE table_name_91 (
water__sqmi_ INTEGER,
pop__2010_ VARCHAR,
longitude VARCHAR
) | SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
387,
834,
834,
7,
1824,
51,
23,
834,
3,
21342,
17966,
6,
2783,
834,
834,
14926,
834,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3552,
834,
834,
7,
1824,
51,
23,
834,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2783,
834,
834,
14926,
834,
3274,
220,
3390,
3430,
307,
20341,
3,
2,
3,
18,
4327,
5,
2517,
3651,
2596,
1... |
Which tournament did Thomas Enqvist win? | CREATE TABLE table_name_23 (
tournament VARCHAR,
winner VARCHAR
) | SELECT tournament FROM table_name_23 WHERE winner = "thomas enqvist" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
5892,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
410,
3576,
695,
1824,
3466,
17,
1369,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
4668,
3274,
96,
189,
32,
2754,
3,
35,
1824,
3466,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest average a contestant from Iowa with a swimsuit smaller than 9.267 has? | CREATE TABLE table_name_14 (average INTEGER, state VARCHAR, swimsuit VARCHAR) | SELECT MAX(average) FROM table_name_14 WHERE state = "iowa" AND swimsuit < 9.267 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
28951,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1348,
3,
9,
423... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
28951,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
538,
3274,
96,
23,
2381,
9,
121,
3430,
9728,
7628,
3,
2,
5835,
357,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the name when death is november 10, 1842? | CREATE TABLE table_50854 (
"Name" text,
"Other names" text,
"Birth" text,
"Death" text,
"Death Place" text,
"Mother" text
) | SELECT "Name" FROM table_50854 WHERE "Death" = 'november 10, 1842' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
4433,
591,
41,
96,
23954,
121,
1499,
6,
96,
667,
189,
49,
3056,
121,
1499,
6,
96,
279,
23,
52,
189,
121,
1499,
6,
96,
2962,
9,
189,
121,
1499,
6,
96,
2962,
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,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
1752,
4433,
591,
549,
17444,
427,
96,
2962,
9,
189,
121,
3274,
3,
31,
5326,
18247,
10372,
507,
4165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the simplified charaacters being hsin-y an i-ma | CREATE TABLE table_16162581_1 (
simplified_characters VARCHAR,
wade_giles VARCHAR
) | SELECT simplified_characters FROM table_16162581_1 WHERE wade_giles = "hsin-yüan … i-ma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2938,
1828,
4959,
834,
536,
41,
24687,
834,
31886,
7,
584,
4280,
28027,
6,
8036,
221,
834,
122,
699,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24687,
834,
31886,
7,
21680,
953,
834,
2938,
2938,
1828,
4959,
834,
536,
549,
17444,
427,
8036,
221,
834,
122,
699,
7,
3274,
96,
107,
7,
77,
18,
63,
1272,
152,
3,
233,
3,
23,
18,
51,
9,
121,
1,
-100,
-100,
-10... |
Show the number of documents in different starting date Bin starting date by year interval and group by location code with a group line chart, sort x axis from low to high order. | CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
) | SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Location_Code ORDER BY Date_in_Location_From | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
434,
32,
75,
1628,
41,
10450,
834,
22737,
3,
28027,
599,
1808,
201,
10450,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
10450,
834,
2962,
11830,
584,
4280,
28027,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
6,
2847,
17161,
599,
308,
342,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
61,
21680,
11167,
834,
434,
32,
75,
1628,
350,
4630,
6880,
272,
476,
10450,
834,
22737,
... |
What country is the Eurasia Astana team from? | CREATE TABLE table_name_69 (
country VARCHAR,
team VARCHAR
) | SELECT country FROM table_name_69 WHERE team = "eurasia astana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
684,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
19,
8,
4491,
19867,
9,
13131,
29,
9,
372,
45,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
372,
3274,
96,
1238,
15974,
2966,
29,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What chassis does Gary Bettenhausen use? | CREATE TABLE table_name_13 (chassis VARCHAR, drivers VARCHAR) | SELECT chassis FROM table_name_13 WHERE drivers = "gary bettenhausen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
524,
6500,
7,
584,
4280,
28027,
6,
3863,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
22836,
405,
13439,
9736,
35,
18535,
169,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3863,
3274,
96,
1478,
63,
36,
17,
324,
18535,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Region with a Catalog that is vlmx 1087-3? | CREATE TABLE table_name_27 (region VARCHAR, catalog VARCHAR) | SELECT region FROM table_name_27 WHERE catalog = "vlmx 1087-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
18145,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6163,
28,
3,
9,
22424,
24,
19,
3,
208,
40,
51,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
10173,
3274,
96,
208,
40,
51,
226,
335,
4225,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is drug type and drug code of drug name vial? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT prescriptions.drug_type, prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Vial" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
6,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
553,
23,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What name has 8.19 as the mark, with 3 as the lane? | CREATE TABLE table_name_32 (name VARCHAR, mark VARCHAR, lane VARCHAR) | SELECT name FROM table_name_32 WHERE mark = "8.19" AND lane = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
4350,
584,
4280,
28027,
6,
3946,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
564,
65,
4848,
2294,
38,
8,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3946,
3274,
96,
20677,
1298,
121,
3430,
3,
8102,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.