NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many votes did Obama get in Lake County? | CREATE TABLE table_20799905_1 (obama_number INTEGER, county VARCHAR) | SELECT MIN(obama_number) FROM table_20799905_1 WHERE county = "LAKE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
19446,
3076,
834,
536,
41,
32,
115,
265,
9,
834,
5525,
1152,
3,
21342,
17966,
6,
5435,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11839,
410,
4534,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
32,
115,
265,
9,
834,
5525,
1152,
61,
21680,
953,
834,
26426,
19446,
3076,
834,
536,
549,
17444,
427,
5435,
3274,
96,
434,
17253,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the venue when the score is 10-0 on 1997-06-22? | CREATE TABLE table_48178 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_48178 WHERE "Score" = '10-0' AND "Date" = '1997-06-22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
27640,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
3707,
27640,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
536,
18629,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2294,
4327,
18,
5176,
16149,
31,
1,
-100,
-100,
-10... |
Which Laps have a Rider of andrea dovizioso? | CREATE TABLE table_name_2 (
laps INTEGER,
rider VARCHAR
) | SELECT MIN(laps) FROM table_name_2 WHERE rider = "andrea dovizioso" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
14941,
7,
3,
21342,
17966,
6,
2564,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
325,
102,
7,
43,
3,
9,
25218,
13,
11,
864,
103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2564,
52,
3274,
96,
232,
864,
103,
16880,
32,
7,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Higgins with a Davis that is 9%? | CREATE TABLE table_43239 (
"Date" text,
"Source" text,
"Polling Agency" text,
"Davis" text,
"Gallagher" text,
"Higgins" text,
"McGuinness" text,
"Mitchell" text,
"Norris" text,
"Scallon" text
) | SELECT "Higgins" FROM table_43239 WHERE "Davis" = '9%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2668,
3288,
41,
96,
308,
342,
121,
1499,
6,
96,
23799,
121,
1499,
6,
96,
8931,
697,
7038,
121,
1499,
6,
96,
308,
2960,
7,
121,
1499,
6,
96,
517,
138,
5430,
760,
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,
96,
12146,
122,
19655,
121,
21680,
953,
834,
591,
2668,
3288,
549,
17444,
427,
96,
308,
2960,
7,
121,
3274,
3,
31,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
A bar chart for what are the number of the titles of all movies that have between 3 and 5 stars?, and list by the y axis in desc. | CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT title, COUNT(title) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 GROUP BY title ORDER BY COUNT(title) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
6,
2847,
17161,
599,
21869,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
549,
17444,
427,
332,
5411,
3624,
7,
272,
7969,
518,
2... |
Which 2005 has a Güzelçamlı’s Lost Panther of the muse? | CREATE TABLE table_name_38 (güzelçamlı’s_lost_panther VARCHAR) | SELECT MAX(2005) FROM table_name_38 WHERE güzelçamlı’s_lost_panther = "the muse" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
122,
1272,
4650,
11666,
51,
40,
2,
22,
7,
834,
2298,
17,
834,
2837,
189,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3105,
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,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
29495,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
3,
122,
1272,
4650,
11666,
51,
40,
2,
22,
7,
834,
2298,
17,
834,
2837,
189,
49,
3274,
96,
532,
3,
3252,
15,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Who manufactured grid 11? | CREATE TABLE table_name_91 (
manufacturer VARCHAR,
grid VARCHAR
) | SELECT manufacturer FROM table_name_91 WHERE grid = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
4818,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
9554,
8634,
850,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4818,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
8634,
3274,
850,
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... |
how many dead patients were diagnosed with late effect of unspecified injury? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.long_title = "Late effect of unspecified injury" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which week led to a record of 4-10? | CREATE TABLE table_name_87 (week VARCHAR, record VARCHAR) | SELECT week FROM table_name_87 WHERE record = "4-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
8041,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
2237,
12,
3,
9,
1368,
13,
314,
4536,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1368,
3274,
96,
591,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many viewers (in millions) did episode 1 have? | CREATE TABLE table_73790 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
) | SELECT "Viewers (in millions)" FROM table_73790 WHERE "Series #" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
2394,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15270,
277,
41,
77,
4040,
61,
121,
21680,
953,
834,
27931,
2394,
549,
17444,
427,
96,
12106,
7,
1713,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
After Match 43, what was the Attendance of the Match with a Score of 2-4? | CREATE TABLE table_76093 (
"Match No." real,
"Home Team" text,
"Score" text,
"Away Team" text,
"Attendance" real
) | SELECT MAX("Attendance") FROM table_76093 WHERE "Match No." > '43' AND "Score" = '2-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
4271,
41,
96,
329,
14547,
465,
535,
490,
6,
96,
19040,
2271,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
2271,
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,
4800,
4,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
28212,
4271,
549,
17444,
427,
96,
329,
14547,
465,
535,
2490,
3,
31,
4906,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
21432,
31,
1,
-100,
-100,
-1... |
What player has a college named san sebastian? | CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_97 WHERE college = "san sebastian" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
20846,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
65,
3,
9,
1900,
2650,
3,
7,
152,
142,
4883,
12572,
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,
1959,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1900,
3274,
96,
7,
152,
142,
4883,
12572,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What value can you find under the column 'august 21-22' and the row of June 11, 1983? | CREATE TABLE table_25195 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
) | SELECT "August 21-22" FROM table_25195 WHERE "June 10-11" = 'June 11, 1983' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
22464,
41,
96,
683,
444,
335,
9169,
121,
1499,
6,
96,
25019,
2307,
18,
3166,
121,
1499,
6,
96,
30404,
627,
10892,
121,
1499,
6,
96,
28635,
220,
121,
1499,
6,
96,
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,
26579,
1401,
16149,
121,
21680,
953,
834,
1828,
22464,
549,
17444,
427,
96,
683,
444,
335,
9169,
121,
3274,
3,
31,
683,
444,
9694,
15041,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the high rebounds when the record was 14 7? | CREATE TABLE table_27723228_8 (
high_rebounds VARCHAR,
record VARCHAR
) | SELECT high_rebounds FROM table_27723228_8 WHERE record = "14–7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5865,
2668,
2577,
834,
927,
41,
306,
834,
23768,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
3,
23768,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
2555,
5865,
2668,
2577,
834,
927,
549,
17444,
427,
1368,
3274,
96,
2534,
104,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Rank, when Silver is less than 6, when Bronze is greater than 4, and when Total is 10? | CREATE TABLE table_name_29 (
rank VARCHAR,
total VARCHAR,
silver VARCHAR,
bronze VARCHAR
) | SELECT rank FROM table_name_29 WHERE silver < 6 AND bronze > 4 AND total = 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
4294,
3,
2,
431,
3430,
13467,
2490,
314,
3430,
792,
3274,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Gold for the Nation in Rank 15 with 0 Silver? | CREATE TABLE table_9961 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Gold") FROM table_9961 WHERE "Rank" = '15' AND "Silver" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3264,
4241,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23576,
8512,
21680,
953,
834,
3264,
4241,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
1808,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the 1:25 for 7 august 2005 being 19 november 2001 | CREATE TABLE table_26482 (
"World record" text,
"Olimpiada Ivanova ( RUS )" text,
"1:25:41" text,
"Helsinki , Finland" text,
"7 August 2005" text
) | SELECT "1:25:41" FROM table_26482 WHERE "7 August 2005" = '19 November 2001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
4613,
41,
96,
17954,
1368,
121,
1499,
6,
96,
30370,
23,
9,
26,
9,
27,
2132,
6194,
41,
391,
3063,
3,
61,
121,
1499,
6,
96,
536,
10,
1828,
10,
4853,
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,
536,
10,
1828,
10,
4853,
121,
21680,
953,
834,
26755,
4613,
549,
17444,
427,
96,
940,
1660,
3105,
121,
3274,
3,
31,
2294,
1671,
4402,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose primary disease is rash and drug route is iv? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "RASH" AND prescriptions.route = "IV" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What title runs for 3:22? | CREATE TABLE table_52754 (
"Title" text,
"Author(s)" text,
"Recorded" text,
"Location(s)" text,
"Time" text
) | SELECT "Title" FROM table_52754 WHERE "Time" = '3:22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3072,
591,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
23602,
127,
599,
7,
61,
121,
1499,
6,
96,
1649,
7621,
15,
26,
121,
1499,
6,
96,
434,
32,
75,
257,
599,
7,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
5373,
3072,
591,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
519,
10,
2884,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What theme placed as #3 in the finale? | CREATE TABLE table_12175755_1 (result VARCHAR, theme VARCHAR, order__number VARCHAR) | SELECT result FROM table_12175755_1 WHERE theme = "Finale" AND order__number = "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2517,
3436,
3769,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
6,
455,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2122,
2517,
3436,
3769,
834,
536,
549,
17444,
427,
3800,
3274,
96,
371,
10270,
15,
121,
3430,
455,
834,
834,
5525,
1152,
3274,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the venue when the result was 3-2? | CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_50 WHERE result = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
15098,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
116,
8,
741,
47,
3,
21160,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
741,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which race was in Sydney, New South Wales? | CREATE TABLE table_name_37 (race_name VARCHAR, city_state VARCHAR) | SELECT race_name FROM table_name_37 WHERE city_state = "sydney, new south wales" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
12614,
834,
4350,
584,
4280,
28027,
6,
690,
834,
5540,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1964,
47,
16,
7476,
6,
368,
1013,
10256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
834,
4350,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
690,
834,
5540,
3274,
96,
7,
63,
26,
3186,
6,
126,
3414,
3,
210,
4529,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the average age of female students. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number,
secretary_vote number,
treasurer_vote number,
class_president_vote number,
class_senator_vote number
) | SELECT AVG(age) FROM student WHERE sex = "F" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
545,
61,
21680,
1236,
549,
17444,
427,
3,
7,
994,
3274,
96,
371,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the result of the week 1 game? | CREATE TABLE table_name_91 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_91 WHERE week = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
13,
8,
471,
209,
467,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
471,
3274,
209,
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,
... |
How many touchdowns did the fullback score? | CREATE TABLE table_28035 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MIN("Touchdowns") FROM table_28035 WHERE "Position" = 'Fullback' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
2469,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
2295,
3035,
7,
8512,
21680,
953,
834,
17518,
2469,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
371,
83,
40,
1549,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the largest value of population? | CREATE TABLE table_2926 (
"Year" real,
"Population" real,
"Serbs" text,
"Germans" text,
"Romanians" text,
"Hungarians" text,
"Croats" text,
"Roma" text,
"Slovaks" text,
"Rest" text
) | SELECT MAX("Population") FROM table_2926 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2688,
41,
96,
476,
2741,
121,
490,
6,
96,
27773,
7830,
121,
490,
6,
96,
134,
49,
115,
7,
121,
1499,
6,
96,
24518,
7,
121,
1499,
6,
96,
25139,
7137,
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,
27773,
7830,
8512,
21680,
953,
834,
3166,
2688,
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,... |
What is the position of the competition in Tampere, Finland? | CREATE TABLE table_67926 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | SELECT "Position" FROM table_67926 WHERE "Venue" = 'tampere, finland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
4440,
2688,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
948,
4440,
2688,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
17,
4624,
49,
15,
6,
3,
89,
25948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average number of goals for a player who had a Leeds career from 1960 1964 and made fewer than 120 appearances? | CREATE TABLE table_name_68 (
goals INTEGER,
leeds_career VARCHAR,
appearances VARCHAR
) | SELECT AVG(goals) FROM table_name_68 WHERE leeds_career = "1960–1964" AND appearances < 120 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1766,
3,
21342,
17966,
6,
90,
15,
26,
7,
834,
2864,
49,
584,
4280,
28027,
6,
3179,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
90,
15,
26,
7,
834,
2864,
49,
3274,
96,
2294,
3328,
104,
26937,
20364,
3430,
3179,
7,
3,
2,
5864,
1,
-100,
-100,
-100,
-100,
-100,
... |
how many times did john mullane win ? | CREATE TABLE table_204_310 (
id number,
"month" text,
"year" number,
"player" text,
"county" text,
"club" text,
"position" number
) | SELECT COUNT(*) FROM table_204_310 WHERE "player" = 'john mullane' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19947,
41,
3,
23,
26,
381,
6,
96,
7393,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
13362,
63,
121,
1499,
6,
96,
13442,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
19947,
549,
17444,
427,
96,
20846,
121,
3274,
3,
31,
27341,
3,
4115,
8102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is after robert hofstadter on the list ? | CREATE TABLE table_203_437 (
id number,
"year" number,
"laureate" text,
"relation" text,
"category" text,
"rationale" text
) | SELECT "laureate" FROM table_203_437 WHERE id = (SELECT id FROM table_203_437 WHERE "laureate" = 'robert hofstadter') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
4118,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
521,
1462,
342,
121,
1499,
6,
96,
60,
6105,
121,
1499,
6,
96,
8367,
839,
651,
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,
521,
1462,
342,
121,
21680,
953,
834,
23330,
834,
591,
4118,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
591,
4118,
549,
17444,
427,
96,
521,
1462,
342,
121,
327... |
What is the length of the coaster with the unknown speed | CREATE TABLE table_73986 (
"Name" text,
"Park" text,
"Length (ft)" real,
"Height (ft)" real,
"Speed (mph)" text,
"Opened" text,
"Status" text
) | SELECT "Length (ft)" FROM table_73986 WHERE "Speed (mph)" = 'unknown' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3288,
3840,
41,
96,
23954,
121,
1499,
6,
96,
26163,
121,
1499,
6,
96,
434,
4606,
189,
41,
89,
17,
61,
121,
490,
6,
96,
3845,
2632,
41,
89,
17,
61,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
4606,
189,
41,
89,
17,
61,
121,
21680,
953,
834,
940,
3288,
3840,
549,
17444,
427,
96,
28328,
41,
7656,
61,
121,
3274,
3,
31,
202,
5661,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
does the united states have more nation of citzenship then united kingdom ? | CREATE TABLE table_203_364 (
id number,
"year" number,
"driver" text,
"nation of citizenship" text,
"racing series" text,
"type of vehicle" text
) | SELECT (SELECT COUNT(*) FROM table_203_364 WHERE "nation of citizenship" = 'united states') > (SELECT COUNT(*) FROM table_203_364 WHERE "nation of citizenship" = 'united kingdom') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3420,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
29,
257,
13,
22214,
121,
1499,
6,
96,
3738,
53,
939,
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,
41,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
3420,
591,
549,
17444,
427,
96,
29,
257,
13,
22214,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
61,
2490,
41,
23143,
14196,
2847,
17161,
599,... |
Who was the director of Pecado Mortal | CREATE TABLE table_15277629_1 (
director VARCHAR,
original_title VARCHAR
) | SELECT director FROM table_15277629_1 WHERE original_title = "Pecado Mortal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2555,
3959,
3166,
834,
536,
41,
2090,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2090,
13,
1276,
658,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2090,
21680,
953,
834,
1808,
2555,
3959,
3166,
834,
536,
549,
17444,
427,
926,
834,
21869,
3274,
96,
345,
15,
658,
26,
32,
19729,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was the aircraft retired when it was replaced by 737-300s? | CREATE TABLE table_60831 (
"Aircraft" text,
"Introduced" real,
"Retired" text,
"Seating" text,
"Notes" text
) | SELECT "Retired" FROM table_60831 WHERE "Notes" = 'replaced by 737-300s' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4591,
536,
41,
96,
20162,
6696,
121,
1499,
6,
96,
1570,
17,
52,
32,
12160,
26,
121,
490,
6,
96,
1649,
11809,
26,
121,
1499,
6,
96,
134,
15,
1014,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
11809,
26,
121,
21680,
953,
834,
3328,
4591,
536,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
60,
4687,
26,
57,
3,
27931,
18,
5426,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Jay Bruce's hometown? | CREATE TABLE table_11677100_11 (hometown VARCHAR, player VARCHAR) | SELECT hometown FROM table_11677100_11 WHERE player = "Jay Bruce" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
4013,
2915,
834,
2596,
41,
5515,
3540,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9373,
13800,
31,
7,
22295,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22295,
21680,
953,
834,
20159,
4013,
2915,
834,
2596,
549,
17444,
427,
1959,
3274,
96,
683,
9,
63,
13800,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who did not have any job in the past, a bar chart shows the distribution of hire_date and the average of employee_id bin hire_date by weekday, list Y-axis from low to high order please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(EMPLOYEE_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
... |
Which papers have 'Stephanie Weirich' as an author? | CREATE TABLE authorship (
authid VARCHAR,
paperid VARCHAR
)
CREATE TABLE papers (
title VARCHAR,
paperid VARCHAR
)
CREATE TABLE authors (
authid VARCHAR,
fname VARCHAR,
lname VARCHAR
) | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
2009,
41,
185,
17,
11740,
584,
4280,
28027,
6,
1040,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
2233,
584,
4280,
28027,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
21869,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
17,
11740,
3,
15355,
3162,
5778,
6157,
3,
17,
519,
9191... |
Draw a bar chart of transaction type versus the total number, and list transaction_type in descending order please. | CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
) | SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
6936,
26,
7,
41,
895,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
23,
26,
3,
21342,
17966,
6,
895,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
895,
834,
5525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5878,
834,
6137,
6,
2847,
17161,
599,
1935,
61,
21680,
5421,
834,
18474,
4787,
7,
350,
4630,
6880,
272,
476,
5878,
834,
6137,
4674,
11300,
272,
476,
5878,
834,
6137,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Arantxa S nchez Vicario? | CREATE TABLE table_name_71 (
winner VARCHAR,
week_of VARCHAR,
runner_up VARCHAR
) | SELECT winner FROM table_name_71 WHERE week_of = "26 june 2 weeks" AND runner_up = "arantxa sánchez vicario" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
4668,
584,
4280,
28027,
6,
471,
834,
858,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4668,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
471,
834,
858,
3274,
96,
2688,
3,
6959,
15,
204,
1274,
121,
3430,
3,
10806,
834,
413,
3274,
96,
9,
3569,
226,
9,
3,
7,
12916,
20095,
3,
7287,
14414,
121,
... |
Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team? | CREATE TABLE table_1473672_2 (nhl_team VARCHAR, college_junior_club_team VARCHAR) | SELECT nhl_team FROM table_1473672_2 WHERE college_junior_club_team = "Oshawa Generals (OMJHL)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
3420,
5865,
834,
357,
41,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
24719,
3420,
5865,
834,
357,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
667,
15622,
9,
2146,
7,
41,
8638,
683,
13641,
61,
121,
1,
-100... |
What are the names and seatings for all tracks opened after 2000, ordered by seating? | CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
) | SELECT name, seating FROM track WHERE year_opened > 2000 ORDER BY seating | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
41,
1463,
834,
23,
26,
381,
6,
564,
1499,
6,
1128,
1499,
6,
10259,
381,
6,
215,
834,
26940,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1964,
41,
1964,
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,
564,
6,
10259,
21680,
1463,
549,
17444,
427,
215,
834,
26940,
2490,
2766,
4674,
11300,
272,
476,
10259,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the team with the best of 1:43.134? | CREATE TABLE table_68798 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Team" FROM table_68798 WHERE "Best" = '1:43.134' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
940,
3916,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5991,
138,
209,
121,
1499,
6,
96,
5991,
138,
204,
121,
1499,
6,
96,
17278,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
3651,
940,
3916,
549,
17444,
427,
96,
17278,
121,
3274,
3,
31,
536,
10,
4906,
5,
23747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which fluid sample has been tested for patient id 2560? | 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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT lab.fluid FROM lab WHERE lab.subject_id = "2560" | [
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,
7690,
5,
6947,
23,
26,
21680,
7690,
549,
17444,
427,
7690,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many fastest laps did I.C. Team have? | CREATE TABLE table_73170 (
"Season" real,
"Class" text,
"Team" text,
"Motorcycle" text,
"Type" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real,
"Pts" real,
"Position" text
) | SELECT COUNT("Fastest Laps") FROM table_73170 WHERE "Team" = 'I.C. Team' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
536,
2518,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
329,
32,
17,
127,
10136,
121,
1499,
6,
96,
25160,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
9,
7,
4377,
325,
102,
7,
8512,
21680,
953,
834,
4552,
536,
2518,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
196,
5,
254,
5,
2271,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the last year that they received first ? | CREATE TABLE table_203_28 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | SELECT MAX("year") FROM table_203_28 WHERE "position" = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2577,
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,
15,
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,
4800,
4,
599,
121,
1201,
8512,
21680,
953,
834,
23330,
834,
2577,
549,
17444,
427,
96,
4718,
121,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What city played on april 29? | CREATE TABLE table_name_32 (city VARCHAR, date VARCHAR) | SELECT city FROM table_name_32 WHERE date = "april 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
6726,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
1944,
30,
3,
9,
2246,
40,
2838,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
2838,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What positions were drafted from Las Vegas, NV? | CREATE TABLE table_11677100_16 (position VARCHAR, hometown VARCHAR) | SELECT position FROM table_11677100_16 WHERE hometown = "Las Vegas, NV" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
4013,
2915,
834,
2938,
41,
4718,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4655,
130,
3,
23505,
45,
7263,
7615,
6,
3,
17058... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
20159,
4013,
2915,
834,
2938,
549,
17444,
427,
22295,
3274,
96,
3612,
7,
7615,
6,
3,
17058,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What parties have at least three representatives? | CREATE TABLE election (
election_id number,
representative_id number,
date text,
votes number,
vote_percent number,
seats number,
place number
)
CREATE TABLE representative (
representative_id number,
name text,
state text,
party text,
lifespan text
) | SELECT party FROM representative GROUP BY party HAVING COUNT(*) >= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
4356,
834,
23,
26,
381,
6,
6978,
834,
23,
26,
381,
6,
833,
1499,
6,
11839,
381,
6,
2902,
834,
883,
3728,
381,
6,
6116,
381,
6,
286,
381,
3,
61,
3,
32102,
32103,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1088,
21680,
6978,
350,
4630,
6880,
272,
476,
1088,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ? | CREATE TABLE table_name_24 (money_requested__ INTEGER, episode VARCHAR, entrepreneur_s_ VARCHAR) | SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = "episode 7" AND entrepreneur_s_ = "jerry mantalvanos & paul merker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
28442,
834,
60,
835,
6265,
834,
834,
3,
21342,
17966,
6,
5640,
584,
4280,
28027,
6,
3,
12290,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
28442,
834,
60,
835,
6265,
834,
834,
61,
6157,
3996,
834,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
5640,
3274,
96,
15,
102,
159,
32,
221,
489,
121,
3430,
3,
12290,
834,
7,
834,
3274,
96,
... |
For all employees who have the letters D or S in their first name, a scatter chart shows the correlation between employee_id and department_id . | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT EMPLOYEE_ID, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
... |
Which group has David D'Angers as the official history? | CREATE TABLE table_8988 (
"Side" text,
"Group" text,
"Inscription" text,
"Official history" text,
"Identification" text
) | SELECT "Group" FROM table_8988 WHERE "Official history" = 'david d''angers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3914,
4060,
41,
96,
134,
1599,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
1570,
11830,
121,
1499,
6,
96,
667,
89,
22816,
892,
121,
1499,
6,
96,
21153,
2420,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27247,
121,
21680,
953,
834,
3914,
4060,
549,
17444,
427,
96,
667,
89,
22816,
892,
121,
3274,
3,
31,
26,
9,
6961,
3,
26,
31,
31,
1468,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
mark skaife was the winnter of atcc round 1 , but what was the name of his team ? | CREATE TABLE table_203_271 (
id number,
"date" text,
"series" text,
"circuit" text,
"city / state" text,
"winner" text,
"team" text,
"car" text,
"report" text
) | SELECT "team" FROM table_203_271 WHERE "series" = 'atcc round 1' AND "winner" = 'mark skaife' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2555,
536,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
10833,
7,
121,
1499,
6,
96,
15357,
21560,
121,
1499,
6,
96,
6726,
3,
87,
538,
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,
11650,
121,
21680,
953,
834,
23330,
834,
2555,
536,
549,
17444,
427,
96,
10833,
7,
121,
3274,
3,
31,
144,
75,
75,
1751,
209,
31,
3430,
96,
3757,
687,
121,
3274,
3,
31,
3920,
3,
10717,
99,
15,
31,
1,
-100,
... |
Which Week 10 Nov 2 has a Week 9 Oct 26 of lsu (5-2)? | CREATE TABLE table_5693 (
"Week 6 Oct 5" text,
"Week 7 Oct 12" text,
"Week 9 Oct 26" text,
"Week 10 Nov 2" text,
"Week 11 Nov 9" text,
"Week 13 Nov 23" text,
"Week 14 Nov 30" text,
"Week 15 (Final) Dec 7" text
) | SELECT "Week 10 Nov 2" FROM table_5693 WHERE "Week 9 Oct 26" = 'lsu (5-2)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
4271,
41,
96,
518,
10266,
431,
6416,
3,
17395,
1499,
6,
96,
518,
10266,
489,
6416,
586,
121,
1499,
6,
96,
518,
10266,
668,
6416,
2208,
121,
1499,
6,
96,
518,
10266,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
335,
5098,
204,
121,
21680,
953,
834,
4834,
4271,
549,
17444,
427,
96,
518,
10266,
668,
6416,
2208,
121,
3274,
3,
31,
40,
7,
76,
41,
24279,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the production code # for episode 109 | CREATE TABLE table_2342078_6 (
production_code__number VARCHAR,
episode__number VARCHAR
) | SELECT COUNT(production_code__number) FROM table_2342078_6 WHERE episode__number = 109 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
21899,
3940,
834,
948,
41,
999,
834,
4978,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
5640,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20762,
834,
4978,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2773,
21899,
3940,
834,
948,
549,
17444,
427,
5640,
834,
834,
5525,
1152,
3274,
3,
17304,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 2003 value with 1r in 2009 at the Australian Open? | CREATE TABLE table_68653 (
"Tournament" text,
"2003" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text
) | SELECT "2003" FROM table_68653 WHERE "2009" = '1r' AND "Tournament" = 'australian open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4122,
519,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
23948,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
13907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23948,
121,
21680,
953,
834,
3651,
4122,
519,
549,
17444,
427,
96,
16660,
121,
3274,
3,
31,
536,
52,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
402,
3109,
9928,
539,
31,
1,
-100,
-100,
-100,
-100,
... |
College of san diego state, and a Pick # smaller than 30 is what lowest overall? | CREATE TABLE table_name_32 (
overall INTEGER,
college VARCHAR,
pick__number VARCHAR
) | SELECT MIN(overall) FROM table_name_32 WHERE college = "san diego state" AND pick__number < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1879,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1888,
13,
3,
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,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1900,
3274,
96,
7,
152,
67,
839,
538,
121,
3430,
1432,
834,
834,
5525,
1152,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
With a score of 2-2, what was the Result? | CREATE TABLE table_43417 (
"Date" text,
"Result" text,
"Score" text,
"Brazil scorers" text,
"Competition" text
) | SELECT "Result" FROM table_43417 WHERE "Score" = '2-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3710,
2517,
41,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
279,
7275,
173,
14056,
277,
121,
1499,
6,
96,
5890,
4995,
4749,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
591,
3710,
2517,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
22451,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the Home team that had a decider of Conklin? | CREATE TABLE table_47582 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
) | SELECT "Home" FROM table_47582 WHERE "Decision" = 'conklin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
3449,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
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,
19040,
121,
21680,
953,
834,
4177,
3449,
357,
549,
17444,
427,
96,
2962,
18901,
121,
3274,
3,
31,
1018,
20529,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of students for the cities where have more than one student. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
) | SELECT city_code, COUNT(*) FROM Student GROUP BY city_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
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,
690,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
690,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983? | CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, june_10_11 VARCHAR) | SELECT COUNT(august_21_22) FROM table_25287007_2 WHERE june_10_11 = "June 11, 1983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2577,
9295,
940,
834,
357,
41,
402,
17198,
834,
2658,
834,
2884,
584,
4280,
28027,
6,
3,
6959,
15,
834,
1714,
834,
2596,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
402,
17198,
834,
2658,
834,
2884,
61,
21680,
953,
834,
1828,
2577,
9295,
940,
834,
357,
549,
17444,
427,
3,
6959,
15,
834,
1714,
834,
2596,
3274,
96,
683,
444,
9694,
15041,
121,
1,
-100,
-100,
-100... |
For each film, show the price and group them by cinema name in a stacked bar chart, and sort Name in desc order. | CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
) | SELECT Name, Price FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Title, Name ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2023,
41,
17544,
834,
4309,
16,
17,
6,
3417,
834,
4309,
16,
17,
6,
7678,
1499,
6,
3111,
834,
715,
7,
834,
883,
834,
1135,
16,
17,
6,
5312,
3,
12660,
3,
61,
3,
32102,
32103,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
5312,
21680,
2023,
6157,
332,
536,
3,
15355,
3162,
814,
6157,
332,
357,
9191,
332,
5411,
371,
173,
51,
834,
4309,
3274,
332,
4416,
371,
173,
51,
834,
4309,
3,
15355,
3162,
10276,
6157,
332,
519,
9191,
332,
... |
What visiting team has a record of 4-3? | CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_49 WHERE record = "4-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
3466,
155,
127,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3644,
372,
65,
3,
9,
1368,
13,
314,
3486,
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,
7019,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1368,
3274,
96,
591,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the remarks for sawhouse | CREATE TABLE table_211791_1 (remarks VARCHAR, nato_reporting_name VARCHAR) | SELECT remarks FROM table_211791_1 WHERE nato_reporting_name = "SAWHOUSE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2517,
4729,
834,
536,
41,
60,
3920,
7,
584,
4280,
28027,
6,
3,
29,
9,
235,
834,
60,
1493,
53,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21029,
21680,
953,
834,
2658,
2517,
4729,
834,
536,
549,
17444,
427,
3,
29,
9,
235,
834,
60,
1493,
53,
834,
4350,
3274,
96,
134,
9851,
6299,
11927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ? | CREATE TABLE table_19565 (
"Rank" real,
"Country" text,
"International tourist arrivals (2011)" text,
"International tourist arrivals (2010)" text,
"Change (2010 to 2011)" text,
"Change (2009 to 2010)" text
) | SELECT "International tourist arrivals (2010)" FROM table_19565 WHERE "Change (2010 to 2011)" = '+11.2%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
4122,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
27490,
8548,
6870,
7,
25163,
121,
1499,
6,
96,
27490,
8548,
6870,
7,
26118,
121,
1499,
6,
96,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27490,
8548,
6870,
7,
26118,
121,
21680,
953,
834,
22464,
4122,
549,
17444,
427,
96,
3541,
3280,
41,
14926,
12,
2722,
61,
121,
3274,
3,
31,
1220,
10032,
5406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What college did the player selected in rounds over 3 play for? | CREATE TABLE table_34750 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team (League)" text
) | SELECT "College/junior/club team (League)" FROM table_34750 WHERE "Round" > '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
9979,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
6959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9939,
7883,
87,
6959,
23,
127,
87,
13442,
372,
41,
2796,
9,
5398,
61,
121,
21680,
953,
834,
3710,
9979,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total? | CREATE TABLE table_69258 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Gold") FROM table_69258 WHERE "Silver" = '2' AND "Total" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
357,
3449,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23576,
8512,
21680,
953,
834,
3951,
357,
3449,
549,
17444,
427,
96,
134,
173,
624,
121,
3274,
3,
31,
357,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What's the losing bonus of Crumlin RFC? | CREATE TABLE table_name_21 (
losing_bonus VARCHAR,
club VARCHAR
) | SELECT losing_bonus FROM table_name_21 WHERE club = "crumlin rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
5489,
834,
5407,
302,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
5489,
4023,
13,
12461,
51,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5489,
834,
5407,
302,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1886,
3274,
96,
75,
2781,
40,
77,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the rider where the horse is galan de sauvagere? | CREATE TABLE table_18666752_3 (
rider VARCHAR,
horse VARCHAR
) | SELECT rider FROM table_18666752_3 WHERE horse = "Galan De Sauvagere" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
3539,
3072,
357,
834,
519,
41,
2564,
52,
584,
4280,
28027,
6,
4952,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2564,
52,
213,
8,
4952,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2564,
52,
21680,
953,
834,
25398,
3539,
3072,
357,
834,
519,
549,
17444,
427,
4952,
3274,
96,
517,
9,
1618,
374,
7745,
11515,
60,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the extra points for left guard | CREATE TABLE table_14342592_8 (
extra_points VARCHAR,
position VARCHAR
) | SELECT extra_points FROM table_14342592_8 WHERE position = "Left guard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3710,
1828,
4508,
834,
927,
41,
996,
834,
2700,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
996,
979,
21,
646,
4879... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
996,
834,
2700,
7,
21680,
953,
834,
2534,
3710,
1828,
4508,
834,
927,
549,
17444,
427,
1102,
3274,
96,
2796,
89,
17,
4879,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the event details of the services that have the type code 'Marriage', and count them by a bar chart, show in descending by the Y please. | CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
) | SELECT Event_Details, COUNT(Event_Details) FROM Events AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' GROUP BY Event_Details ORDER BY COUNT(Event_Details) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19204,
834,
77,
834,
427,
2169,
7,
41,
8042,
834,
4309,
3,
21342,
17966,
6,
15077,
288,
834,
4309,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8042,
834,
2962,
5756,
7,
6,
2847,
17161,
599,
427,
2169,
834,
2962,
5756,
7,
61,
21680,
11137,
6157,
332,
536,
3,
15355,
3162,
1799,
6157,
332,
357,
9191,
332,
5411,
15260,
834,
4309,
3274,
332,
4416,
15260,
834,
4... |
What is the Home team at the Lincoln City Away game? | CREATE TABLE table_name_80 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_80 WHERE away_team = "lincoln city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1210,
372,
44,
8,
9884,
896,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
550,
834,
11650,
3274,
96,
40,
77,
3297,
29,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many laps did the team with a time/retired of +1.906 have? | CREATE TABLE table_37671 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT COUNT("Laps") FROM table_37671 WHERE "Time/Retired" = '+1.906' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
3708,
536,
41,
96,
20982,
52,
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3612,
102,
7,
8512,
21680,
953,
834,
4118,
3708,
536,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
1220,
22493,
5176,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the second leg score from the group stage on matchday 5? | CREATE TABLE table_name_35 (
second_leg VARCHAR,
phase VARCHAR,
round VARCHAR
) | SELECT second_leg FROM table_name_35 WHERE phase = "group stage" AND round = "matchday 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
511,
834,
5772,
584,
4280,
28027,
6,
3944,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
511,
4553,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
511,
834,
5772,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3944,
3274,
96,
10739,
1726,
121,
3430,
1751,
3274,
96,
19515,
1135,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what event is listed right before team dressage ? | CREATE TABLE table_204_884 (
id number,
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
) | SELECT "event" FROM table_204_884 WHERE id = (SELECT id FROM table_204_884 WHERE "event" = 'team dressage') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4060,
591,
41,
3,
23,
26,
381,
6,
96,
2726,
138,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
6661,
121,
1499,
6,
96,
15,
2169,
121,
1499,
6,
96,
5522,
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,
15,
2169,
121,
21680,
953,
834,
26363,
834,
4060,
591,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
4060,
591,
549,
17444,
427,
96,
15,
2169,
121,
3274,
3,
31,
... |
What was the result of the 4:27 fight? | CREATE TABLE table_4403 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Res." FROM table_4403 WHERE "Time" = '4:27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22335,
519,
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,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7,
535,
21680,
953,
834,
22335,
519,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
591,
10,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200? | CREATE TABLE table_name_80 (
track VARCHAR,
pole_winner VARCHAR,
event_name VARCHAR
) | SELECT track FROM table_name_80 WHERE pole_winner = "frank kimmel" AND event_name = "pennsylvania 200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1463,
584,
4280,
28027,
6,
11148,
834,
3757,
687,
584,
4280,
28027,
6,
605,
834,
4350,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1463,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
11148,
834,
3757,
687,
3274,
96,
89,
6254,
3,
19754,
2341,
121,
3430,
605,
834,
4350,
3274,
96,
3208,
29,
7,
63,
40,
16658,
9,
2382,
121,
1,
-100,
-100,
-10... |
high triglycerides ( > 3.5 mmol / l ) | CREATE TABLE table_train_110 (
"id" int,
"cholesterol" float,
"body_weight" float,
"creatinine_clearance_cl" float,
"triglyceride_tg" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_110 WHERE triglyceride_tg > 3.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
19277,
41,
96,
23,
26,
121,
16,
17,
6,
96,
14297,
2613,
3491,
121,
3,
12660,
6,
96,
6965,
834,
9378,
121,
3,
12660,
6,
96,
5045,
144,
77,
630,
834,
2482,
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,
1429,
21680,
953,
834,
9719,
834,
19277,
549,
17444,
427,
3,
17,
3380,
120,
2110,
1599,
834,
17,
122,
2490,
3,
9285,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Wins have Losses larger than 2, and an Against of 73.3? | CREATE TABLE table_name_26 (wins INTEGER, loses VARCHAR, against VARCHAR) | SELECT SUM(wins) FROM table_name_26 WHERE loses > 2 AND against = "73.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
3757,
7,
3,
21342,
17966,
6,
2615,
7,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4871,
7,
43,
3144,
2260,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
2615,
7,
2490,
204,
3430,
581,
3274,
96,
940,
19660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
A pie chart for finding the number of the names of stadiums that some Australian swimmers have been to. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
) | SELECT T4.Name, COUNT(T4.Name) FROM swimmer AS t1 JOIN record AS t2 ON t1.ID = t2.Swimmer_ID JOIN event AS t3 ON t2.Event_ID = t3.ID JOIN stadium AS t4 ON t4.ID = t3.Stadium_ID WHERE t1.Nationality = 'Australia' GROUP BY T4.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
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,
332,
7984,
23954,
6,
2847,
17161,
599,
382,
7984,
23954,
61,
21680,
27424,
6157,
3,
17,
536,
3,
15355,
3162,
1368,
6157,
3,
17,
357,
9191,
3,
17,
5411,
4309,
3274,
3,
17,
4416,
134,
210,
12174,
834,
4309,
3,
15355... |
Find the last names of the members of the club 'Bootup Baltimore'. | CREATE TABLE member_of_club (
clubid VARCHAR,
stuid VARCHAR
)
CREATE TABLE club (
clubid VARCHAR,
clubname VARCHAR
)
CREATE TABLE student (
lname VARCHAR,
stuid VARCHAR
) | SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
858,
834,
13442,
41,
1886,
23,
26,
584,
4280,
28027,
6,
21341,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1886,
23,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
40,
4350,
21680,
1886,
6157,
3,
17,
536,
3,
15355,
3162,
1144,
834,
858,
834,
13442,
6157,
3,
17,
357,
9191,
3,
17,
5411,
13442,
23,
26,
3274,
3,
17,
4416,
13442,
23,
26,
3,
15355,
3162,
1236,
6157,... |
What's the total losses that has more than 12 wins and 1017 against? | CREATE TABLE table_name_42 (losses VARCHAR, against VARCHAR, wins VARCHAR) | SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2298,
2260,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
8467,
24,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
581,
3274,
335,
2517,
3430,
9204,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pseudoknot prediction of the software named tfold? | CREATE TABLE table_name_65 (_ VARCHAR, knots_knots VARCHAR, name VARCHAR) | SELECT knots_knots AS :_pseudoknot_prediction, _ FROM table_name_65 WHERE name = "tfold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
834,
584,
4280,
28027,
6,
12705,
7,
834,
157,
2264,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22726... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12705,
7,
834,
157,
2264,
7,
6157,
3,
10,
834,
102,
7,
15,
76,
26,
1825,
2264,
834,
2026,
12472,
6,
3,
834,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
564,
3274,
96,
17,
10533,
121,
1,
-100,
-100,
-100,
... |
oh what is the maximum value of bedside glucose on patient 022-6959 in this hospital encounter? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-6959' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bedside glucose' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9339,
5,
9339,
60,
7,
83,
17,
61,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
... |
Who was the builder for joffre | CREATE TABLE table_name_60 (
builder VARCHAR,
name_number VARCHAR
) | SELECT builder FROM table_name_60 WHERE name_number = "joffre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
918,
49,
584,
4280,
28027,
6,
564,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
918,
49,
21,
3,
354,
15007,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
49,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
564,
834,
5525,
1152,
3274,
96,
354,
15007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the area km 2 for balmoral | CREATE TABLE table_171361_2 (
area_km_2 VARCHAR,
official_name VARCHAR
) | SELECT area_km_2 FROM table_171361_2 WHERE official_name = "Balmoral" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2368,
4241,
834,
357,
41,
616,
834,
5848,
834,
357,
584,
4280,
28027,
6,
2314,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
616,
2280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
616,
834,
5848,
834,
357,
21680,
953,
834,
2517,
2368,
4241,
834,
357,
549,
17444,
427,
2314,
834,
4350,
3274,
96,
279,
138,
21511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the 2nd runner-up for season 7 | CREATE TABLE table_11283 (
"Season Number" text,
"Premiere Date" text,
"Winner" text,
"Runner Up" text,
"2nd Runner-up" text,
"3rd Runner-up" text
) | SELECT "2nd Runner-up" FROM table_11283 WHERE "Season Number" = 'season 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2577,
519,
41,
96,
134,
15,
9,
739,
7720,
121,
1499,
6,
96,
10572,
2720,
60,
7678,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
3234,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
3,
23572,
18,
413,
121,
21680,
953,
834,
2596,
2577,
519,
549,
17444,
427,
96,
134,
15,
9,
739,
7720,
121,
3274,
3,
31,
9476,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fineness of the 2008 chinese cuju sport Reverse? | CREATE TABLE table_name_11 (
fineness VARCHAR,
year VARCHAR,
reverse VARCHAR
) | SELECT fineness FROM table_name_11 WHERE year = 2008 AND reverse = "chinese cuju sport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
1399,
655,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
7211,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1399,
655,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1399,
655,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
215,
3274,
2628,
3430,
7211,
3274,
96,
1436,
1496,
15,
123,
2047,
2600,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which 1997 has sf as the 2002? | CREATE TABLE table_12853 (
"Tournament" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "1997" FROM table_12853 WHERE "2002" = 'sf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4433,
519,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
4327,
121,
1499,
6,
96,
2294,
3916,
121,
1499,
6,
96,
2294,
3264,
121,
1499,
6,
96,
13527,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2294,
4327,
121,
21680,
953,
834,
2122,
4433,
519,
549,
17444,
427,
96,
24898,
121,
3274,
3,
31,
7,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those dates that have the 5 highest cloud cover rates, please bin the date into weekdays interval and compute their total cloud cover, and show total number in descending order. | CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pressure_inches NUMERIC,
mean_sea_level_pressure_inches NUMERIC,
min_sea_level_pressure_inches NUMERIC,
max_visibility_miles INTEGER,
mean_visibility_miles INTEGER,
min_visibility_miles INTEGER,
max_wind_Speed_mph INTEGER,
mean_wind_speed_mph INTEGER,
max_gust_speed_mph INTEGER,
precipitation_inches INTEGER,
cloud_cover INTEGER,
events TEXT,
wind_dir_degrees INTEGER,
zip_code INTEGER
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
) | SELECT date, SUM(cloud_cover) FROM weather ORDER BY SUM(cloud_cover) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
3,
21342,
17966,
6,
8659,
3,
21342,
17966,
6,
456,
834,
5522,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
4350,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
23,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
180,
6122,
599,
23742,
834,
9817,
61,
21680,
1969,
4674,
11300,
272,
476,
180,
6122,
599,
23742,
834,
9817,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Where was the game against the away team Footscray held? | CREATE TABLE table_name_49 (
venue VARCHAR,
away_team VARCHAR
) | SELECT venue FROM table_name_49 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5669,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
581,
8,
550,
372,
15213,
7,
2935,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the number of apartment bookings in each day and group by booking end date with a line chart, sort by the booking_end_date in descending. | CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
) | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings GROUP BY booking_end_date ORDER BY booking_end_date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
13355,
53,
7,
41,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3886,
834,
23,
26,
3,
21342,
17966,
6,
5038,
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,
5038,
834,
989,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
989,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
350,
4630,
6880,
272,
476,
5038,
834,
989,
834,
5522,
4674,
11300,
272,
476,
5038,
834,
989,
834,
... |
What is the smallest amount of freight carried on the road that closed on March 31 and reached super B capacity on February 17 after 2011? | CREATE TABLE table_name_80 (freight_carried_s_tonne INTEGER, year VARCHAR, road_closed VARCHAR, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR) | SELECT MIN(freight_carried_s_tonne) FROM table_name_80 WHERE road_closed = "march 31" AND super_b_capacity_reached_[_citation_needed_] = "february 17" AND year > 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
89,
60,
2632,
834,
1720,
9889,
834,
7,
834,
17,
5993,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
1373,
834,
16221,
26,
584,
4280,
28027,
6,
1355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
89,
60,
2632,
834,
1720,
9889,
834,
7,
834,
17,
5993,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1373,
834,
16221,
26,
3274,
96,
51,
7064,
2664,
121,
3430,
1355,
834,
115,
834,
4010,
9,
... |
Visualize a bar chart about the distribution of Team_Name and Team_ID . | 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_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT Team_Name, Team_ID FROM basketball_match | [
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,
2271,
834,
4309,
21680,
8498,
834,
19515,
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,
-10... |
what is the properties of potassium when lithium is h a l o g e n s and sodium is bromine? | CREATE TABLE table_name_76 (potassium VARCHAR, lithium VARCHAR, sodium VARCHAR) | SELECT potassium FROM table_name_76 WHERE lithium = "h a l o g e n s" AND sodium = "bromine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
3013,
6500,
440,
584,
4280,
28027,
6,
26780,
584,
4280,
28027,
6,
19049,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2605,
13,
26110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
26110,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
26780,
3274,
96,
107,
3,
9,
3,
40,
3,
32,
3,
122,
3,
15,
3,
29,
3,
7,
121,
3430,
19049,
3274,
96,
5702,
8695,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose item id is 51256 and lab test abnormal status is delta? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 lab.itemid = "51256" AND lab.flag = "delta" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is Score, when Place is 'T5', and when Player is 'George Archer'? | CREATE TABLE table_9814 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_9814 WHERE "Place" = 't5' AND "Player" = 'george archer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
2534,
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,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3916,
2534,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
755,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
397,
1677,
15,
11508,
49,
31,
1,
-100,
-100,
-100,
-100,
-1... |
Who is the away team that tottenham hotspur played? | CREATE TABLE table_59970 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_59970 WHERE "Home team" = 'tottenham hotspur' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3264,
2518,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
188,
1343,
372,
121,
21680,
953,
834,
755,
3264,
2518,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
235,
17,
324,
1483,
1312,
7,
3791,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What position is played by the player from the Chicago Cubs? | CREATE TABLE table_name_8 (position VARCHAR, team VARCHAR) | SELECT position FROM table_name_8 WHERE team = "chicago cubs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
4718,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
19,
1944,
57,
8,
1959,
45,
8,
3715,
18640,
7,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
372,
3274,
96,
1436,
658,
839,
123,
115,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the frequency of the dates (bin into weekday interval) that had the top 5 cloud cover rates? You can draw me a bar chart for this purpose. | CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pressure_inches NUMERIC,
mean_sea_level_pressure_inches NUMERIC,
min_sea_level_pressure_inches NUMERIC,
max_visibility_miles INTEGER,
mean_visibility_miles INTEGER,
min_visibility_miles INTEGER,
max_wind_Speed_mph INTEGER,
mean_wind_speed_mph INTEGER,
max_gust_speed_mph INTEGER,
precipitation_inches INTEGER,
cloud_cover INTEGER,
events TEXT,
wind_dir_degrees INTEGER,
zip_code INTEGER
) | SELECT date, COUNT(date) FROM weather | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
3,
21342,
17966,
6,
13490,
834,
28843,
3,
21342,
17966,
6,
12908,
7,
834,
28843,
3,
21342,
17966,
6,
97,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
6,
2847,
17161,
599,
5522,
61,
21680,
1969,
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,... |
Who was the supporting actress in 1943? | CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, year VARCHAR) | SELECT supporting_actress FROM table_24225238_1 WHERE year = 1943 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
20489,
357,
3747,
834,
536,
41,
20390,
53,
834,
2708,
9377,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3956,
15676,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3956,
834,
2708,
9377,
21680,
953,
834,
2266,
20489,
357,
3747,
834,
536,
549,
17444,
427,
215,
3274,
26436,
1,
-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.