NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many wins when the average start is 29.0? | CREATE TABLE table_2182562_1 (
wins VARCHAR,
avg_start VARCHAR
) | SELECT COUNT(wins) FROM table_2182562_1 WHERE avg_start = "29.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
1828,
4056,
834,
536,
41,
9204,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
357,
2606,
1828,
4056,
834,
536,
549,
17444,
427,
3,
9,
208,
122,
834,
10208,
3274,
96,
3166,
5,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose admission location is transfer from hosp/extram and lab test name is magnesium? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND lab.label = "Magnesium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the id and surname of the driver who participated the most number of races? | CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR) | SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3863,
41,
13739,
4055,
584,
4280,
28027,
6,
244,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10879,
41,
12614,
23,
26,
584,
4280,
28027,
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,
332,
5411,
13739,
4055,
6,
332,
5411,
3042,
4350,
21680,
3863,
6157,
332,
536,
3,
15355,
3162,
772,
6157,
332,
357,
9191,
332,
5411,
13739,
4055,
3274,
332,
4416,
13739,
4055,
3,
15355,
3162,
10879,
6157,
332,
519,
91... |
What is Ernie Els' Score? | CREATE TABLE table_46577 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_46577 WHERE "Player" = 'ernie els' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4122,
4013,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
591,
4122,
4013,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
15,
23752,
3,
3573,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the album names, ids and the number of tracks for each album. | CREATE TABLE ALBUM (
Title VARCHAR,
AlbumId VARCHAR
)
CREATE TABLE TRACK (
AlbumID VARCHAR,
AlbumId VARCHAR
) | SELECT T1.Title, T2.AlbumID, COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumID = T2.AlbumID GROUP BY T2.AlbumID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
71,
16976,
6122,
41,
11029,
584,
4280,
28027,
6,
16135,
196,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11466,
15339,
41,
16135,
4309,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
382,
155,
109,
6,
332,
4416,
25691,
440,
4309,
6,
2847,
17161,
599,
1935,
61,
21680,
71,
16976,
6122,
6157,
332,
536,
3,
15355,
3162,
11466,
15339,
6157,
332,
357,
9191,
332,
5411,
25691,
440,
4309,
3274,
... |
List the distinct director of all films. | CREATE TABLE film (Director VARCHAR) | SELECT DISTINCT Director FROM film | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
41,
23620,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
6746,
2090,
13,
66,
4852,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2578,
21680,
814,
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,
-... |
Give me the comparison about All_Games_Percent over the Team_Name , I want to list by the y axis from high to low. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_Name, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
23954,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
23055,
7,
834,
12988,
3728,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Touchdowns have Field goals larger than 0? | CREATE TABLE table_name_73 (
touchdowns VARCHAR,
field_goals INTEGER
) | SELECT COUNT(touchdowns) FROM table_name_73 WHERE field_goals > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
19396,
7,
584,
4280,
28027,
6,
1057,
834,
839,
5405,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11031,
3035,
7,
43,
7257,
1766,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17681,
3035,
7,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1057,
834,
839,
5405,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who was the opponent for game 2 ? | CREATE TABLE table_203_47 (
id number,
"game" number,
"date" text,
"opponent" text,
"location" text,
"score" text,
"ot" text,
"attendance" number,
"record" text
) | SELECT "opponent" FROM table_203_47 WHERE "game" = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4177,
41,
3,
23,
26,
381,
6,
96,
7261,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
7,
9022,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
4177,
549,
17444,
427,
96,
7261,
121,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the loss of the game when the record was 20-16? | CREATE TABLE table_71941 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Loss" FROM table_71941 WHERE "Record" = '20-16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
4240,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
7,
121,
21680,
953,
834,
4450,
4240,
536,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1755,
10892,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On the date of 20 July 1999 what is the English abbr.? | CREATE TABLE table_53770 (
"Group name" text,
"English abbr." text,
"French abbr." text,
"Formal European Parliament name" text,
"From" text
) | SELECT "English abbr." FROM table_53770 WHERE "From" = '20 july 1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
26920,
41,
96,
27247,
564,
121,
1499,
6,
96,
26749,
3,
12982,
52,
535,
1499,
6,
96,
371,
60,
5457,
3,
12982,
52,
535,
1499,
6,
96,
3809,
1982,
1611,
12876,
564,
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,
26749,
3,
12982,
52,
535,
21680,
953,
834,
4867,
26920,
549,
17444,
427,
96,
22674,
121,
3274,
3,
31,
1755,
3,
2047,
120,
5247,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how may patients below 83 years of age are diagnosed with personal history of malignant neoplasm of gastrointestinal tract, unspecified? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "83" AND diagnoses.long_title = "Personal history of malignant neoplasm of gastrointestinal tract, unspecified" | [
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... |
Show the name of each party and the corresponding number of delegates from that party in a bar chart, sort in desc by the the average of count(*) please. | CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
... | SELECT T2.Party, AVG(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY AVG(COUNT(*)) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
196,
26,
16,
17,
6,
1334,
834,
4350,
1499,
6,
29659,
490,
6,
22296,
834,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
13725,
63,
6,
71,
17217,
599,
5911,
17161,
599,
1935,
61,
61,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
3274,
332,
4416,
13725,
63,
834,
4309,
350,
463... |
Which Surface has an Opponent of rafael nadal, and an Event of 2? | CREATE TABLE table_66229 (
"!Event" real,
"Round" text,
"Surface" text,
"Winner" text,
"Opponent" text,
"Result" text
) | SELECT "Surface" FROM table_66229 WHERE "Opponent" = 'rafael nadal' AND "!Event" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
357,
3166,
41,
96,
55,
427,
2169,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
667,
102,
9977... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
4861,
121,
21680,
953,
834,
3539,
357,
3166,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
52,
9,
89,
9,
15,
40,
3,
18089,
40,
31,
3430,
96,
55,
427,
2169,
121,
3274,
3,
31,
357,
31,
1... |
What was the 2012 result associated with a 2007 finish of 2R and a 2009 of 1R? | CREATE TABLE table_name_18 (
Id VARCHAR
) | SELECT 2012 FROM table_name_18 WHERE 2007 = "2r" AND 2009 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1673,
741,
1968,
28,
3,
9,
4101,
1992,
13,
204,
448,
11,
3,
9,
2464,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1673,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
4101,
3274,
96,
357,
52,
121,
3430,
2464,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What height was the forward position at Crockett High School? | CREATE TABLE table_409 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
) | SELECT "Height" FROM table_409 WHERE "Position" = 'Forward' AND "High School" = 'Crockett' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4198,
41,
96,
23954,
121,
1499,
6,
96,
4663,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
96,
476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
121,
21680,
953,
834,
591,
4198,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
3809,
2239,
31,
3430,
96,
21417,
1121,
121,
3274,
3,
31,
254,
7818,
12922,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the name of the project that has a scientist assigned to it whose name contains 'Smith', and count them by a bar chart, and could you show bar in descending order? | CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
) | SELECT T2.Name, COUNT(T2.Name) FROM AssignedTo AS T1 JOIN Projects AS T2 ON T1.Project = T2.Code JOIN Scientists AS T3 ON T1.Scientist = T3.SSN WHERE T3.Name LIKE '%Smith%' GROUP BY T2.Name ORDER BY T2.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21166,
7,
41,
180,
8544,
16,
17,
6,
5570,
7435,
599,
1458,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
7,
41,
3636,
7435,
10820,
6,
5570,
7435,
599,
1752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
2847,
17161,
599,
382,
4416,
23954,
61,
21680,
282,
15532,
3696,
6157,
332,
536,
3,
15355,
3162,
2786,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
3274,
332,
4416,
22737,
3,
15355,
3162,
2116... |
How many lanes have a Nationality of france, and a Rank larger than 8? | CREATE TABLE table_name_92 (
lane INTEGER,
nationality VARCHAR,
rank VARCHAR
) | SELECT SUM(lane) FROM table_name_92 WHERE nationality = "france" AND rank > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
3,
8102,
3,
21342,
17966,
6,
1157,
485,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
50,
1496,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8102,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1157,
485,
3274,
96,
89,
5219,
121,
3430,
11003,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many swimmers did not swim ? | CREATE TABLE table_204_886 (
id number,
"rank" number,
"swimmer" text,
"country" text,
"time" text,
"note" text
) | SELECT COUNT("swimmer") FROM table_204_886 WHERE "rank" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3840,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
7,
210,
12174,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
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,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7,
210,
12174,
8512,
21680,
953,
834,
26363,
834,
927,
3840,
549,
17444,
427,
96,
6254,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many players placed 4th ? | CREATE TABLE table_203_555 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
) | SELECT COUNT("player") FROM table_203_555 WHERE "place" = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
28803,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
235,
260,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20846,
8512,
21680,
953,
834,
23330,
834,
28803,
549,
17444,
427,
96,
4687,
121,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0? | CREATE TABLE table_name_85 (points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR) | SELECT MIN(points) FROM table_name_85 WHERE touchdowns < 2 AND extra_points = 7 AND field_goals < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
2700,
7,
3,
21342,
17966,
6,
1057,
834,
839,
5405,
584,
4280,
28027,
6,
19396,
7,
584,
4280,
28027,
6,
996,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
19396,
7,
3,
2,
204,
3430,
996,
834,
2700,
7,
3274,
489,
3430,
1057,
834,
839,
5405,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
... |
What are all the distinct premise types? | CREATE TABLE premises (premises_type VARCHAR) | SELECT DISTINCT premises_type FROM premises | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12787,
41,
17398,
7,
834,
6137,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
6746,
3,
17398,
1308,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
12787,
834,
6137,
21680,
12787,
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,
... |
Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com? | CREATE TABLE table_name_54 (
type VARCHAR,
company VARCHAR,
incorporated_in VARCHAR,
principal_activities VARCHAR
) | SELECT type FROM table_name_54 WHERE incorporated_in = "netherlands" AND principal_activities = "airline" AND company = "transavia.com" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
686,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
6,
3,
10975,
834,
77,
584,
4280,
28027,
6,
3218,
834,
8463,
2197,
584,
4280,
28027,
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,
686,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
10975,
834,
77,
3274,
96,
29,
16764,
6347,
121,
3430,
3218,
834,
8463,
2197,
3274,
96,
2256,
747,
121,
3430,
349,
3274,
96,
7031,
2960,
9,
5,
287,
121,
1,... |
What's Javagal Srinath's batting style? | CREATE TABLE table_11950720_3 (batting_style VARCHAR, player VARCHAR) | SELECT batting_style FROM table_11950720_3 WHERE player = "Javagal Srinath" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
1752,
18517,
834,
519,
41,
27759,
834,
4084,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
10318,
6191,
8642,
29,
9,
189,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
27759,
834,
4084,
21680,
953,
834,
19993,
1752,
18517,
834,
519,
549,
17444,
427,
1959,
3274,
96,
683,
8644,
6191,
8642,
29,
9,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the game held in Towson? | CREATE TABLE table_47864 (
"Date" text,
"Time" text,
"Opponent" text,
"Site" text,
"City" text
) | SELECT "Date" FROM table_47864 WHERE "City" = 'towson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
3840,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
254,
485,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4177,
3840,
591,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
17,
2381,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which National team has a Year of total? | CREATE TABLE table_name_6 (national_team VARCHAR, year VARCHAR) | SELECT national_team FROM table_name_6 WHERE year = "total" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
16557,
834,
11650,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
868,
372,
65,
3,
9,
2929,
13,
792,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
834,
11650,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
215,
3274,
96,
235,
1947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Competition, when Round is "Group A - Match 1"? | CREATE TABLE table_name_59 (competition VARCHAR, round VARCHAR) | SELECT competition FROM table_name_59 WHERE round = "group a - match 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15571,
6,
116,
9609,
19,
96,
27247,
71,
3,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2259,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1751,
3274,
96,
10739,
3,
9,
3,
18,
1588,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
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 hire_date and the sum of department_id bin hire_date by weekday. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_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... | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
5596,
19846,
11810,
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,
834,... |
What was the record when TKO (punches and elbows) was the method? | CREATE TABLE table_40782 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_40782 WHERE "Method" = 'tko (punches and elbows)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3940,
357,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
2445,
3940,
357,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
17,
157,
32,
41,
6225,
2951,
11,
23630,
7,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many games played on june 25? | CREATE TABLE table_13710464_1 (
score VARCHAR,
date VARCHAR
) | SELECT COUNT(score) FROM table_13710464_1 WHERE date = "June 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
15442,
4389,
834,
536,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
1944,
30,
3,
6959,
15,
944,
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,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
24636,
15442,
4389,
834,
536,
549,
17444,
427,
833,
3274,
96,
683,
444,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pa when the skip is fran ois gagn ? | CREATE TABLE table_3505 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT "PA" FROM table_3505 WHERE "Skip" = 'François Gagné' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3076,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3965,
121,
21680,
953,
834,
2469,
3076,
549,
17444,
427,
96,
134,
2168,
102,
121,
3274,
3,
31,
14564,
2776,
122,
29,
154,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has a Score of 0 2? | CREATE TABLE table_name_55 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_55 WHERE score = "0 – 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
17763,
13,
3,
632,
204,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2604,
3274,
96,
632,
3,
104,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What day was wayne brady performer 2, ryan stiles performer 4, and an episode number greater than 5? | CREATE TABLE table_name_78 (
date VARCHAR,
performer_2 VARCHAR,
performer_4 VARCHAR,
episode VARCHAR
) | SELECT date FROM table_name_78 WHERE performer_4 = "ryan stiles" AND episode > 5 AND performer_2 = "wayne brady" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
833,
584,
4280,
28027,
6,
1912,
49,
834,
357,
584,
4280,
28027,
6,
1912,
49,
834,
591,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
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,
833,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1912,
49,
834,
591,
3274,
96,
651,
152,
7627,
15,
7,
121,
3430,
5640,
2490,
305,
3430,
1912,
49,
834,
357,
3274,
96,
1343,
29,
15,
3858,
26,
63,
121,
1,
-1... |
what is the malayalam name മലയാളം of sanskrit uttarāṣāḍha उत्तराषाढा | CREATE TABLE table_201400_2 (malayalam_name_മലയാളം VARCHAR, sanskrit VARCHAR) | SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE sanskrit = "Uttarāṣāḍha उत्तराषाढा" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10218,
1206,
834,
357,
41,
51,
22858,
40,
265,
834,
4350,
834,
2,
584,
4280,
28027,
6,
1532,
10648,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
51,
22858,
40,
265,
834,
4350,
834,
2,
21680,
953,
834,
10218,
1206,
834,
357,
549,
17444,
427,
1532,
10648,
17,
3274,
96,
1265,
17,
2046,
2,
1024,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In the country where Bush won 4333 votes, what percentage did other receive? | CREATE TABLE table_846 (
"County" text,
"Kerry #" real,
"Kerry %" text,
"Bush #" real,
"Bush %" text,
"Other #" real,
"Other %" text,
"Total #" real
) | SELECT "Other %" FROM table_846 WHERE "Bush #" = '4333' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
927,
4448,
41,
96,
10628,
63,
121,
1499,
6,
96,
439,
49,
651,
1713,
121,
490,
6,
96,
439,
49,
651,
3,
1454,
121,
1499,
6,
96,
279,
8489,
1713,
121,
490,
6,
96,
279,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
189,
49,
3,
1454,
121,
21680,
953,
834,
927,
4448,
549,
17444,
427,
96,
279,
8489,
1713,
121,
3274,
3,
31,
4906,
4201,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what year was his last race ? | CREATE TABLE table_204_780 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | SELECT "year" FROM table_204_780 ORDER BY "year" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
2079,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
287,
4995,
4749,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
7977,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
940,
2079,
4674,
11300,
272,
476,
96,
1201,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT? | CREATE TABLE table_name_25 (year INTEGER, power VARCHAR, trim VARCHAR) | SELECT AVG(year) FROM table_name_25 WHERE power = "bhp (kw)" AND trim = "ls/2lt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1201,
3,
21342,
17966,
6,
579,
584,
4280,
28027,
6,
6228,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2929,
23836,
24,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
579,
3274,
96,
115,
107,
102,
41,
157,
210,
61,
121,
3430,
6228,
3274,
96,
40,
7,
13311,
40,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who was the player from georgia? | CREATE TABLE table_3179 (
"Rank" real,
"WS Points" real,
"Name" text,
"Country" text,
"09-10 I/O best" real,
"09-10 GP/JGP best" real,
"09-10 GP/JGP 2nd" real,
"09-10 OI best" real,
"09-10 OI 2nd" real,
"08-09 I/O best" real,
"08-09 GP/JGP best" real,
"08-09 GP/JGP 2nd" r... | SELECT "Name" FROM table_3179 WHERE "Country" = 'Georgia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
4440,
41,
96,
22557,
121,
490,
6,
96,
8439,
4564,
7,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
4198,
4536,
27,
87,
667,
200,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3341,
4440,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
517,
15,
1677,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the opponent after march 21 and the game is 75? | CREATE TABLE table_name_93 (
opponent VARCHAR,
march VARCHAR,
game VARCHAR
) | SELECT opponent FROM table_name_93 WHERE march > 21 AND game = 75 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
15264,
584,
4280,
28027,
6,
10556,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
15264,
227,
10556,
1401,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
10556,
2490,
1401,
3430,
467,
3274,
6374,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which team after 2008, with less than 2 podium finished and more than 0 FLAPS, had the lowest numberof races? | CREATE TABLE table_49671 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"FLaps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT MIN("Races") FROM table_49671 WHERE "Podiums" < '2' AND "FLaps" > '0' AND "Season" > '2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3708,
536,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
9,
2319,
8512,
21680,
953,
834,
3647,
3708,
536,
549,
17444,
427,
96,
16665,
2552,
7,
121,
3,
2,
3,
31,
357,
31,
3430,
96,
10765,
9,
102,
7,
121,
2490,
3,
31,
632,
31,
3430,
96,
134,
... |
what is the venue when the runner-up (average in final) is wayne jones (94.64)? | CREATE TABLE table_name_6 (venue VARCHAR, runner_up__average_in_final_ VARCHAR) | SELECT venue FROM table_name_6 WHERE runner_up__average_in_final_ = "wayne jones (94.64)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
15098,
584,
4280,
28027,
6,
3,
10806,
834,
413,
834,
834,
28951,
834,
77,
834,
12406,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3,
10806,
834,
413,
834,
834,
28951,
834,
77,
834,
12406,
834,
3274,
96,
1343,
29,
15,
3,
1927,
1496,
14156,
25652,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the pole position for the ferrari at the austrian grand prix? | CREATE TABLE table_1132588_3 (
pole_position VARCHAR,
constructor VARCHAR,
grand_prix VARCHAR
) | SELECT pole_position FROM table_1132588_3 WHERE constructor = "Ferrari" AND grand_prix = "Austrian grand_prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
1828,
4060,
834,
519,
41,
11148,
834,
4718,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
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,
0,
0,
0... | [
3,
23143,
14196,
11148,
834,
4718,
21680,
953,
834,
20522,
1828,
4060,
834,
519,
549,
17444,
427,
6774,
127,
3274,
96,
371,
49,
52,
1665,
121,
3430,
1907,
834,
2246,
226,
3274,
96,
14934,
17,
5288,
1907,
834,
2246,
226,
121,
1,
-100... |
On what circuit is there a race that lasts 2 hours? | CREATE TABLE table_name_69 (circuit VARCHAR, length VARCHAR) | SELECT circuit FROM table_name_69 WHERE length = "2 hours" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
15357,
21560,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
4558,
19,
132,
3,
9,
1964,
24,
336,
7,
204,
716... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4558,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
2475,
3274,
96,
357,
716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Create a bar chart showing maximal revenue across name, and rank in asc by the X. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
4800,
4,
599,
1649,
15098,
61,
21680,
15248,
7,
350,
4630,
6880,
272,
476,
3642,
19973,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the total number of students for each department with a bar chart, and sort in desc by the x axis. | CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
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 course (
course_id va... | SELECT T1.dept_name, COUNT(DISTINCT T2.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY T1.dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
4699,
3,
4331,
4059,
15757,
6,
564,
3,
4331,
4059,
599,
1755,
201,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
9090,
206,
17552,
599,
11864,
7318,
3,
61,
3,
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,
332,
5411,
26,
6707,
834,
4350,
6,
2847,
17161,
599,
15438,
25424,
6227,
332,
4416,
4309,
61,
21680,
3066,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4350,
3274,
332,
4416,
... |
Which team played at home for the second leg and has aggregate score of 2-0? | CREATE TABLE table_name_19 (home__2nd_leg_ VARCHAR, aggregate VARCHAR) | SELECT home__2nd_leg_ FROM table_name_19 WHERE aggregate = "2-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
5515,
834,
834,
357,
727,
834,
5772,
834,
584,
4280,
28027,
6,
12955,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
1944,
44,
234,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
834,
357,
727,
834,
5772,
834,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
12955,
3274,
96,
19423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many black/haitian patients were admitted before 2121? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.admityear < "2121" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
5478,
3177,
21758,
121,
3430,
14798,
5,
20466,
17,
... |
Who vacated the Pennsylvania 6th district? | CREATE TABLE table_225098_4 (vacator VARCHAR, district VARCHAR) | SELECT vacator FROM table_225098_4 WHERE district = "Pennsylvania 6th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11434,
3916,
834,
591,
41,
8938,
1016,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
3,
8938,
920,
8,
8913,
431,
189,
3939,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8938,
1016,
21680,
953,
834,
357,
11434,
3916,
834,
591,
549,
17444,
427,
3939,
3274,
96,
345,
35,
29,
7,
63,
40,
16658,
9,
431,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What song is done by Terence Trent D'Arby? | CREATE TABLE table_39521 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" real,
"Song" text,
"Artist" text
) | SELECT "Song" FROM table_39521 WHERE "Artist" = 'terence trent d''arby' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3301,
2658,
41,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
1499,
6,
96,
1326,
16789,
30,
2224,
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,
134,
2444,
121,
21680,
953,
834,
519,
3301,
2658,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
449,
1433,
14944,
17,
3,
26,
31,
31,
291,
969,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Opponent has a Score of 3 6, 5 7? | CREATE TABLE table_38576 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_38576 WHERE "Score" = '3–6, 5–7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4433,
3959,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
519,
4433,
3959,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
519,
104,
11071,
305,
104,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Block does Northamptonshire Area have? | CREATE TABLE table_name_25 (
block VARCHAR,
area VARCHAR
) | SELECT block FROM table_name_25 WHERE area = "northamptonshire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
2463,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9387,
405,
1117,
265,
11632,
5718,
5690,
43,
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,
2463,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
616,
3274,
96,
29,
127,
17,
1483,
11632,
5718,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of Block for the Player with less than 85 Weight and more than 187 Height? | CREATE TABLE table_6871 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
) | SELECT COUNT("Block") FROM table_6871 WHERE "Weight" < '85' AND "Height" > '187' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4450,
41,
96,
23954,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96,
3845,
2632,
121,
490,
6,
96,
1326,
2632,
121,
490,
6,
96,
134,
102,
5208,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
279,
4029,
8512,
21680,
953,
834,
3651,
4450,
549,
17444,
427,
96,
1326,
2632,
121,
3,
2,
3,
31,
4433,
31,
3430,
96,
3845,
2632,
121,
2490,
3,
31,
25828,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
What are the names of all products, and count them by a bar chart, and I want to list y axis in desc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY COUNT(Name) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
2847,
17161,
599,
23954,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which athlete played against Queensland? | CREATE TABLE table_name_17 (
player VARCHAR,
opponent VARCHAR
) | SELECT player FROM table_name_17 WHERE opponent = "queensland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
1959,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
17893,
1944,
581,
18838,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
15264,
3274,
96,
835,
35,
7,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the year with a score of 305? | CREATE TABLE table_name_60 (
year INTEGER,
total_score VARCHAR
) | SELECT MIN(year) FROM table_name_60 WHERE total_score = "305" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
215,
3,
21342,
17966,
6,
792,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
215,
28,
3,
9,
2604,
13,
3,
2672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
792,
834,
7,
9022,
3274,
96,
26724,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player had a position of QB for Texas Tech? | CREATE TABLE table_name_84 (
player VARCHAR,
pos VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_84 WHERE pos = "qb" AND college = "texas tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1959,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
141,
3,
9,
1102,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
3,
2748,
3274,
96,
1824,
115,
121,
3430,
1900,
3274,
96,
10354,
9,
7,
5256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the number for Vehlefanz where B renklau is 1.288? | CREATE TABLE table_17118 (
"Year" real,
"B\u00f6tzow" text,
"Schwante" text,
"Vehlefanz" text,
"Neu-Vehlefanz" real,
"Marwitz" text,
"B\u00e4renklau" text,
"Eichst\u00e4dt" real
) | SELECT "Vehlefanz" FROM table_17118 WHERE "B\u00e4renklau" = '1.288' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
20056,
41,
96,
476,
2741,
121,
490,
6,
96,
279,
2,
76,
1206,
89,
948,
17,
172,
2381,
121,
1499,
6,
96,
15404,
1841,
121,
1499,
6,
96,
553,
15,
107,
109,
89,
4557,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
15,
107,
109,
89,
4557,
121,
21680,
953,
834,
2517,
20056,
549,
17444,
427,
96,
279,
2,
76,
1206,
15,
591,
1536,
8142,
76,
121,
3274,
3,
31,
10917,
4060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8? | CREATE TABLE table_name_74 (
dvd_release_date VARCHAR,
season VARCHAR,
episodes VARCHAR
) | SELECT dvd_release_date FROM table_name_74 WHERE season < 8 AND episodes < 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
30114,
834,
21019,
834,
5522,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
13562,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30114,
834,
21019,
834,
5522,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
774,
3,
2,
505,
3430,
13562,
3,
2,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is average age of patients whose admission type is elective and days of hospital stay is 16? | 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,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.days_stay = "16" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2938,
121,
1,
-100,
-100,
... |
What is the rank of the player with less than 34 points? | CREATE TABLE table_name_95 (
rank INTEGER,
points INTEGER
) | SELECT SUM(rank) FROM table_name_95 WHERE points < 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
11003,
3,
21342,
17966,
6,
979,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
1959,
28,
705,
145,
6154,
979,
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,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
979,
3,
2,
6154,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What frequency has call sign w228bg? | CREATE TABLE table_name_45 (
frequency_mhz VARCHAR,
call_sign VARCHAR
) | SELECT frequency_mhz FROM table_name_45 WHERE call_sign = "w228bg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
7321,
834,
51,
107,
172,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7321,
65,
580,
1320,
3,
210,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
51,
107,
172,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
580,
834,
6732,
3274,
96,
210,
357,
2577,
115,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What jersey number did Al Harrington wear | CREATE TABLE table_15621965_8 (
no INTEGER,
player VARCHAR
) | SELECT MAX(no) FROM table_15621965_8 WHERE player = "Al Harrington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4056,
2294,
4122,
834,
927,
41,
150,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
13426,
381,
410,
901,
1626,
27636,
2112,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
29,
32,
61,
21680,
953,
834,
1808,
4056,
2294,
4122,
834,
927,
549,
17444,
427,
1959,
3274,
96,
188,
40,
1626,
27636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 1991 when 1990 is ATP Masters Series? | CREATE TABLE table_48274 (
"Tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"Career SR" text
) | SELECT "1991" FROM table_48274 WHERE "1990" = 'atp masters series' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
2555,
591,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
24151,
20364,
1499,
6,
96,
24151,
17395,
1499,
6,
96,
2294,
3840,
121,
1499,
6,
96,
2294,
4225,
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,
2294,
4729,
121,
21680,
953,
834,
3707,
2555,
591,
549,
17444,
427,
96,
2294,
2394,
121,
3274,
3,
31,
144,
102,
2325,
7,
939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the team with grid 9? | CREATE TABLE table_32324 (
"Name" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Team" FROM table_32324 WHERE "Grid" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
2266,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
2668,
519,
2266,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Katie's order number when the theme was The Rolling Stones? | CREATE TABLE table_26250189_1 (order__number VARCHAR, theme VARCHAR) | SELECT order__number FROM table_26250189_1 WHERE theme = "The Rolling Stones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
11434,
25312,
834,
536,
41,
9397,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
20413,
31,
7,
455,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
455,
834,
834,
5525,
1152,
21680,
953,
834,
2688,
11434,
25312,
834,
536,
549,
17444,
427,
3800,
3274,
96,
634,
6070,
53,
5614,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the brand for pick number 15 | CREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR) | SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3288,
5865,
4013,
834,
519,
41,
12164,
834,
834,
235,
834,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1056,
834,
834,
235,
834,
21680,
953,
834,
2688,
3288,
5865,
4013,
834,
519,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown | CREATE TABLE table_name_8 (points_classification_navy_blue_jersey VARCHAR, general_classification_yellow_jersey VARCHAR) | SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = "graeme brown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
2700,
7,
834,
4057,
2420,
834,
29,
19649,
834,
7060,
15,
834,
12488,
7,
15,
63,
584,
4280,
28027,
6,
879,
834,
4057,
2420,
834,
63,
7126,
210,
834,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
834,
4057,
2420,
834,
29,
19649,
834,
7060,
15,
834,
12488,
7,
15,
63,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
879,
834,
4057,
2420,
834,
63,
7126,
210,
834,
12488,
7,
15,
63,
3274,
96,
3484,
15,
... |
Name the district for spencer bachus | CREATE TABLE table_27291 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_27291 WHERE "Incumbent" = 'Spencer Bachus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
357,
4729,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
20066,
121,
21680,
953,
834,
2555,
357,
4729,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
134,
3208,
2110,
16453,
302,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many blocks are there when the rebounds are fewer than 5.2? | CREATE TABLE table_77437 (
"Season" text,
"Points" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Turnovers" real
) | SELECT COUNT("Blocks") FROM table_77437 WHERE "Rebounds" < '5.2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
591,
4118,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
1649,
6115,
7,
121,
490,
6,
96,
188,
7,
7,
343,
7,
121,
490,
6,
96,
279,
4029... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
4029,
7,
8512,
21680,
953,
834,
4013,
591,
4118,
549,
17444,
427,
96,
1649,
6115,
7,
121,
3,
2,
3,
31,
24342,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
most published author at ACL 2010 | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE journal (
journalid int,
journalname va... | SELECT DISTINCT COUNT(paper.paperid), writes.authorid FROM paper, venue, writes WHERE paper.year = 2010 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' AND writes.paperid = paper.paperid GROUP BY writes.authorid ORDER BY COUNT(paper.paperid) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
6757,
2244,
41,
1040,
23,
26,
16,
17,
6,
17953,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5669,
41,
5669,
23,
26,
16,
17,
6,
5669,
4350,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
19587,
5,
19587,
23,
26,
201,
11858,
5,
17415,
23,
26,
21680,
1040,
6,
5669,
6,
11858,
549,
17444,
427,
1040,
5,
1201,
3274,
2735,
3430,
5669,
5,
15098,
23,
26,
3274,
1040,
... |
Name the population density where population % is 1.1% for slovakia | CREATE TABLE table_20520 (
"Member State" text,
"Population in millions" text,
"Population % of EU" text,
"Area km 2" real,
"Area % of EU" text,
"Pop. density People/km 2" text
) | SELECT "Pop. density People/km 2" FROM table_20520 WHERE "Population % of EU" = '1.1%' AND "Member State" = 'Slovakia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
1755,
41,
96,
329,
18247,
1015,
121,
1499,
6,
96,
27773,
7830,
16,
4040,
121,
1499,
6,
96,
27773,
7830,
3,
1454,
13,
3371,
121,
1499,
6,
96,
188,
864,
2280,
204,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27773,
5,
11048,
2449,
87,
5848,
204,
121,
21680,
953,
834,
23201,
1755,
549,
17444,
427,
96,
27773,
7830,
3,
1454,
13,
3371,
121,
3274,
3,
31,
11039,
1454,
31,
3430,
96,
329,
18247,
1015,
121,
3274,
3,
31,
13... |
What is the Pick of the Player from Stamford, CT? | CREATE TABLE table_name_25 (pick INTEGER, hometown_school VARCHAR) | SELECT MAX(pick) FROM table_name_25 WHERE hometown_school = "stamford, ct" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
17967,
3,
21342,
17966,
6,
22295,
834,
6646,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8356,
13,
8,
12387,
45,
472,
265,
2590,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
22295,
834,
6646,
3274,
96,
2427,
51,
2590,
6,
3,
75,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0 | CREATE TABLE table_name_61 (cuts_made INTEGER, wins VARCHAR, top_25 VARCHAR, top_5 VARCHAR) | SELECT MAX(cuts_made) FROM table_name_61 WHERE top_25 > 4 AND top_5 = 1 AND wins > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
3044,
7,
834,
4725,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
420,
834,
1828,
2490,
314,
3430,
420,
834,
755,
3274,
209,
3430,
9204,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729? | CREATE TABLE table_62963 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT MIN("Pop. (2010)") FROM table_62963 WHERE "GEO ID" = '3805373380' AND "Water (sqmi)" < '5.729' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4314,
519,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
27773,
5,
26118,
8512,
21680,
953,
834,
4056,
4314,
519,
549,
17444,
427,
96,
5042,
667,
4699,
121,
3274,
3,
31,
22671,
4867,
4552,
22671,
31,
3430,
96,
28632,
41,
7,
1824,
51,
23,
61,
121,
3,
... |
What is the location of the the game on december 10 | CREATE TABLE table_21588 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_21588 WHERE "Date" = 'December 10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
4060,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
357,
1808,
4060,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
29835,
335,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the name when the sr no is less than 74 and floors is more than 36? | CREATE TABLE table_name_61 (name VARCHAR, sr_no VARCHAR, floors VARCHAR) | SELECT name FROM table_name_61 WHERE sr_no < 74 AND floors > 36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
4350,
584,
4280,
28027,
6,
3,
7,
52,
834,
29,
32,
584,
4280,
28027,
6,
8242,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
564,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
3,
7,
52,
834,
29,
32,
3,
2,
3,
4581,
3430,
8242,
2490,
4475,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +? | CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR) | SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + π 0 or n 0 + π +" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
102,
8372,
584,
4280,
28027,
6,
19,
32,
7,
3180,
834,
23,
584,
4280,
28027,
6,
5871,
834,
221,
658,
63,
7,
834,
235,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
24317,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
19,
32,
7,
3180,
834,
23,
3274,
96,
536,
121,
3430,
5871,
834,
221,
658,
63,
7,
834,
235,
3274,
96,
102,
1768,
1768,
3,
2,
3,
632,
42,
3,
29,
3,
632,
... |
Who plays for the chicago bulls? | CREATE TABLE table_name_92 (player VARCHAR, team VARCHAR) | SELECT player FROM table_name_92 WHERE team = "chicago bulls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
20846,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
4805,
21,
8,
8780,
9,
839,
8434,
7,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
372,
3274,
96,
1436,
658,
839,
8434,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which class has less in quantity than 174 between the years 1921 23? | CREATE TABLE table_name_43 (
class VARCHAR,
quantity VARCHAR,
date VARCHAR
) | SELECT class FROM table_name_43 WHERE quantity < 174 AND date = "1921–23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
853,
584,
4280,
28027,
6,
8708,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
853,
65,
705,
16,
8708,
145,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
8708,
3,
2,
3,
27693,
3430,
833,
3274,
96,
2294,
2658,
104,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who had the fastest lap at the Australian Grand Prix? | CREATE TABLE table_name_36 (fastest_lap VARCHAR, grand_prix VARCHAR) | SELECT fastest_lap FROM table_name_36 WHERE grand_prix = "australian grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
11584,
222,
834,
8478,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
10391,
14941,
44,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10391,
834,
8478,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
402,
3109,
9928,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
find the number of patients who have bradycardia primary disease. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BRADYCARDIA" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
22899,
19409,
254,
4280,
24605,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What's the score in andray blatche (17) high points? | CREATE TABLE table_27721131_2 (score VARCHAR, high_points VARCHAR) | SELECT COUNT(score) FROM table_27721131_2 WHERE high_points = "Andray Blatche (17)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
2658,
22048,
834,
357,
41,
7,
9022,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2604,
16,
11,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
357,
4013,
2658,
22048,
834,
357,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
7175,
2866,
6942,
17,
1033,
18360,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the western title of the pinyin new ch oj m l u xi ngd ? | CREATE TABLE table_40839 (
"Western Title" text,
"Chinese Title" text,
"Pinyin" text,
"Released Date" text,
"Genre" text,
"Game Modes" text
) | SELECT "Western Title" FROM table_40839 WHERE "Pinyin" = 'new chāojí mǎlìōu xiōngdì' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
3288,
41,
96,
1326,
13072,
11029,
121,
1499,
6,
96,
3541,
4477,
15,
11029,
121,
1499,
6,
96,
345,
77,
63,
77,
121,
1499,
6,
96,
1649,
29107,
7678,
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,
1326,
13072,
11029,
121,
21680,
953,
834,
2445,
927,
3288,
549,
17444,
427,
96,
345,
77,
63,
77,
121,
3274,
3,
31,
5534,
3,
524,
2,
32,
354,
2,
3,
51,
2,
40,
2,
76,
3,
226,
23,
2,
1725,
26,
2,
31,
1,
... |
What date did the episode that was written by Fintan Ryan originally air? | CREATE TABLE table_27218002_2 (originalairdate VARCHAR, written_by VARCHAR) | SELECT originalairdate FROM table_27218002_2 WHERE written_by = "Fintan Ryan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2658,
6192,
357,
834,
357,
41,
21878,
2256,
5522,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
8,
5640,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
2256,
5522,
21680,
953,
834,
2555,
2658,
6192,
357,
834,
357,
549,
17444,
427,
1545,
834,
969,
3274,
96,
371,
77,
17,
152,
7826,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the larger number of players that played in 4 events that 2 wins but were less than 6 in the top 10? | CREATE TABLE table_name_16 (
top_25 INTEGER,
top_10 VARCHAR,
events VARCHAR,
wins VARCHAR
) | SELECT MAX(top_25) FROM table_name_16 WHERE events > 4 AND wins = 2 AND top_10 < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
420,
834,
1828,
3,
21342,
17966,
6,
420,
834,
1714,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
4800,
4,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
984,
2490,
314,
3430,
9204,
3274,
204,
3430,
420,
834,
1714,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Season was the Division Two Fownhope Reserves champions? | CREATE TABLE table_60248 (
"Season" text,
"Premier Division" text,
"Division One" text,
"Division Two" text,
"Division Three" text
) | SELECT "Season" FROM table_60248 WHERE "Division Two" = 'fownhope reserves' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
357,
3707,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
10572,
51,
972,
6022,
121,
1499,
6,
96,
308,
23,
6610,
555,
121,
1499,
6,
96,
308,
23,
6610,
2759,
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,
134,
15,
9,
739,
121,
21680,
953,
834,
3328,
357,
3707,
549,
17444,
427,
96,
308,
23,
6610,
2759,
121,
3274,
3,
31,
89,
9197,
10776,
15,
11222,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show me about the distribution of ACC_Road and Team_ID , and group by attribute ACC_Home in a bar chart, list from high to low by the Team_ID. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY Team_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
2271,
834,
4309,
309,
25067,
... |
what is the most laps with the time/retired is differential and the grid is more than 2? | CREATE TABLE table_55861 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MAX("Laps") FROM table_55861 WHERE "Time/Retired" = 'differential' AND "Grid" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3840,
536,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
3769,
3840,
536,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
25880,
23,
138,
31,
3430,
96,
13313,
26,
121,
2490,
3,
31,
357,
31,
1,
... |
Who had the pole position in Detroit? | CREATE TABLE table_3932 (
"Round" real,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Report" text
) | SELECT "Pole position" FROM table_3932 WHERE "Race" = 'Detroit' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2668,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4377,
14941,
121,
1499,
6,
96,
329,
3481,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8931,
15,
1102,
121,
21680,
953,
834,
3288,
2668,
549,
17444,
427,
96,
448,
3302,
121,
3274,
3,
31,
308,
15252,
155,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose language is engl and lab test name is creatine kinase, mb isoenzyme? | 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
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.language = "ENGL" AND lab.label = "Creatine Kinase, MB Isoenzyme" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the home teams score at Arden Street Oval? | CREATE TABLE table_33399 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_33399 WHERE "Venue" = 'arden street oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23360,
3264,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
23360,
3264,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
986,
35,
2815,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of the game where Esteban Paredes scored 2 goals? | CREATE TABLE table_name_62 (
date VARCHAR,
goal VARCHAR
) | SELECT date FROM table_name_62 WHERE goal = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
833,
584,
4280,
28027,
6,
1288,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
213,
2972,
3478,
2180,
15,
1395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1288,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What name completed construction on 09/19/2008? | CREATE TABLE table_9428 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Proposed" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text
) | SELECT "Name" FROM table_9428 WHERE "Construction completed" = '09/19/2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
2577,
41,
96,
4770,
4902,
25769,
4699,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
3174,
12151,
121,
1499,
6,
96,
28886,
121,
1499,
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,
96,
23954,
121,
21680,
953,
834,
4240,
2577,
549,
17444,
427,
96,
4302,
7,
26853,
2012,
121,
3274,
3,
31,
4198,
13523,
87,
16128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many different combinations of team colors are there in all the schools in Maroa, Illinois? | CREATE TABLE table_29612224_1 (
colors VARCHAR,
location VARCHAR
) | SELECT COUNT(colors) FROM table_29612224_1 WHERE location = "Maroa, Illinois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4241,
2884,
2266,
834,
536,
41,
2602,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
15617,
13,
372,
2602,
33,
132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9910,
7,
61,
21680,
953,
834,
3166,
4241,
2884,
2266,
834,
536,
549,
17444,
427,
1128,
3274,
96,
7286,
32,
9,
6,
7659,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest round number for donnie caraway? | CREATE TABLE table_77233 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Round") FROM table_77233 WHERE "Name" = 'donnie caraway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
20879,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
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,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
4013,
20879,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
26,
32,
11113,
443,
8006,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the January climate figure for Eastman? | CREATE TABLE table_name_26 (
january VARCHAR,
region VARCHAR
) | SELECT january FROM table_name_26 WHERE region = "eastman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3,
7066,
76,
1208,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1762,
3298,
2320,
21,
1932,
348,
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,
3,
7066,
76,
1208,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1719,
3274,
96,
11535,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest rank? | CREATE TABLE table_19744915_15 (
rank INTEGER
) | SELECT MIN(rank) FROM table_19744915_15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4581,
3647,
1808,
834,
1808,
41,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11003,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
2294,
4581,
3647,
1808,
834,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At which games was a bronze medal won in the 94kg men's weightlifting event? | CREATE TABLE table_name_71 (games VARCHAR, event VARCHAR, medal VARCHAR, sport VARCHAR) | SELECT games FROM table_name_71 WHERE medal = "bronze" AND sport = "weightlifting" AND event = "94kg men's weightlifting" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
7261,
7,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
9365,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1031,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
9365,
3274,
96,
13711,
776,
121,
3430,
2600,
3274,
96,
9378,
9253,
53,
121,
3430,
605,
3274,
96,
4240,
8711,
1076,
31,
7,
1293,
9253,
53,
121,
1,
-100,
-100,
... |
count the number of patients with urgent hospital admission who had diagnosis icd9 code 5939. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.icd9_code = "5939" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What chassis does the shadow built car use? | CREATE TABLE table_name_36 (
chassis VARCHAR,
constructor VARCHAR
) | SELECT chassis FROM table_name_36 WHERE constructor = "shadow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
22836,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
22836,
405,
8,
8552,
1192,
443,
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,
3420,
549,
17444,
427,
6774,
127,
3274,
96,
21509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.