NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
how many patients diagnosed with the primary disease of acidosis died in or before the year 2131? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ACIDOSIS" AND demographic.dod_year <= "2131.0" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
188,
3597,
9857,
14408,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
... |
what is the number of patients whose age is less than 80 and lab test fluid is other body fluid? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "80" AND lab.fluid = "Other Body Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Name the most wins where position is 16th | CREATE TABLE table_1584 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT MAX("Wins") FROM table_1584 WHERE "Position" = '16th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4608,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
893... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
1808,
4608,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
2938,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the original air date of the episode written by Karen Felix and Don Woodard? | CREATE TABLE table_11630008_8 (original_air_date VARCHAR, written_by VARCHAR) | SELECT original_air_date FROM table_11630008_8 WHERE written_by = "Karen Felix and Don Woodard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
5426,
4018,
834,
927,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
926,
799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
20159,
5426,
4018,
834,
927,
549,
17444,
427,
1545,
834,
969,
3274,
96,
439,
9,
1536,
23354,
11,
1008,
2985,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many times is denmark ranked in technology? | CREATE TABLE table_13677808_1 (technology VARCHAR, rank VARCHAR) | SELECT COUNT(technology) FROM table_13677808_1 WHERE rank = "Denmark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3708,
3940,
4018,
834,
536,
41,
18485,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
19,
177,
3920,
3,
8232,
16,
748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
18485,
61,
21680,
953,
834,
2368,
3708,
3940,
4018,
834,
536,
549,
17444,
427,
11003,
3274,
96,
308,
35,
3920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947? | CREATE TABLE table_17423 (
"Number" real,
"Builder" text,
"Built" text,
"Rebuilt" text,
"Name as rebuilt" text,
"Scrapped/Sold" text
) | SELECT "Built" FROM table_17423 WHERE "Scrapped/Sold" = 'Cannot handle non-empty timestamp argument! 1947' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
2773,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
24752,
49,
121,
1499,
6,
96,
7793,
173,
17,
121,
1499,
6,
96,
1649,
16152,
121,
1499,
6,
96,
23954,
38,
26935,
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,
7793,
173,
17,
121,
21680,
953,
834,
27693,
2773,
549,
17444,
427,
96,
134,
2935,
6811,
26,
87,
134,
1490,
121,
3274,
3,
31,
14050,
2264,
2174,
529,
18,
9045,
63,
648,
17,
4624,
5464,
55,
23992,
31,
1,
-100,
... |
What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953? | CREATE TABLE table_name_7 (
Id VARCHAR
) | SELECT 1941 FROM table_name_7 WHERE 1945 = "n/a" AND 1948 = "n/a" AND 1953 = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
24822,
65,
445,
87,
188,
38,
18315,
6,
445,
87,
188,
21,
21474,
6,
11,
668,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24822,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
18315,
3274,
96,
29,
87,
9,
121,
3430,
21474,
3274,
96,
29,
87,
9,
121,
3430,
23726,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of master recording for doobie brothers the doobie brothers | CREATE TABLE table_25010 (
"Year" real,
"Song title" text,
"Artist" text,
"Master recording" text,
"NA/UK/AUS/JPN/NL tier" text,
"European tier" text
) | SELECT COUNT("Master recording") FROM table_25010 WHERE "Artist" = 'Doobie Brothers The Doobie Brothers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
1714,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
2444,
2233,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
20608,
5592,
121,
1499,
6,
96,
5999,
87,
15787,
87,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20608,
5592,
8512,
21680,
953,
834,
11434,
1714,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
4135,
6690,
15,
17491,
37,
531,
6690,
15,
17491,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Joined has an Institution of abraham baldwin agricultural college, and an Enrollment smaller than 3,284? | CREATE TABLE table_name_96 (joined INTEGER, institution VARCHAR, enrollment VARCHAR) | SELECT MAX(joined) FROM table_name_96 WHERE institution = "abraham baldwin agricultural college" AND enrollment < 3 OFFSET 284 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1927,
630,
26,
3,
21342,
17966,
6,
6568,
584,
4280,
28027,
6,
17938,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5279,
15,
26,
65,
46,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1927,
630,
26,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
6568,
3274,
96,
9,
1939,
1483,
3,
8267,
3757,
10687,
1900,
121,
3430,
17938,
3,
2,
220,
3,
15316,
20788,
204,
4608,
1,
-100,
-100... |
Who provided lyrics or music to the artist Cube? | CREATE TABLE table_7009 (
"Order" real,
"Artist" text,
"Song" text,
"Lyrics (l) / Music (m)" text,
"Results" text
) | SELECT "Lyrics (l) / Music (m)" FROM table_7009 WHERE "Artist" = 'cube' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4198,
41,
96,
7395,
588,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
434,
63,
2234,
7,
41,
40,
61,
3,
87,
3057,
41,
51,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
63,
2234,
7,
41,
40,
61,
3,
87,
3057,
41,
51,
61,
121,
21680,
953,
834,
2518,
4198,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
1071,
346,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total revenue of each manufacturer, and order in desc by the names. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
180,
6122,
599,
1649,
15098,
61,
21680,
15248,
7,
350,
4630,
6880,
272,
476,
5570,
4674,
11300,
272,
476,
5570,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose age is less than 86 and diagnoses icd9 code is 11284? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "86" AND diagnoses.icd9_code = "11284" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the catalog number named callanetics: 10 years younger in 10 hours | CREATE TABLE table_161 (
"Year" real,
"Title" text,
"Format" text,
"Studio" text,
"Release Date" text,
"Copyright Information" text,
"Catalog Number" text
) | SELECT "Catalog Number" FROM table_161 WHERE "Title" = 'Callanetics: 10 Years Younger In 10 Hours' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
1649,
40,
14608,
7678... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18610,
9,
2152,
7720,
121,
21680,
953,
834,
2938,
536,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
14318,
8102,
7636,
10,
335,
13825,
5209,
49,
86,
335,
10768,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%? | CREATE TABLE table_69605 (
"Polling Firm" text,
"Date Published" text,
"T. Papadopoulos" text,
"D. Christofias" text,
"I. Kasoulidis" text,
"K. Themistokleous" text
) | SELECT "K. Themistokleous" FROM table_69605 WHERE "I. Kasoulidis" = '30.1%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3328,
755,
41,
96,
8931,
697,
13530,
121,
1499,
6,
96,
308,
342,
14722,
121,
1499,
6,
96,
382,
5,
17822,
26,
32,
102,
1063,
2298,
121,
1499,
6,
96,
308,
5,
2144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
439,
5,
37,
51,
343,
1825,
109,
1162,
121,
21680,
953,
834,
3951,
3328,
755,
549,
17444,
427,
96,
196,
5,
12783,
1063,
8130,
159,
121,
3274,
3,
31,
1458,
5,
4704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the loss of the game with a record of 54 42? | CREATE TABLE table_name_63 (
loss VARCHAR,
record VARCHAR
) | SELECT loss FROM table_name_63 WHERE record = "54–42" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
1453,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1453,
13,
8,
467,
28,
3,
9,
1368,
13,
10630,
642... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1368,
3274,
96,
5062,
104,
4165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is H/A/N, when Score is 104-109? | CREATE TABLE table_name_10 (h_a_n VARCHAR, score VARCHAR) | SELECT h_a_n FROM table_name_10 WHERE score = "104-109" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
107,
834,
9,
834,
29,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
454,
87,
188,
87,
567,
6,
116,
17763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
834,
9,
834,
29,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2604,
3274,
96,
15442,
18,
17304,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize the relationship between Team_ID and School_ID , and group by attribute All_Neutral. | 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_ID, School_ID FROM basketball_match GROUP BY All_Neutral | [
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,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
26288,
8792,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the local location that has senegal as the resident county, and a mission of mali? | CREATE TABLE table_name_47 (
local_location VARCHAR,
resident_country VARCHAR,
mission VARCHAR
) | SELECT local_location FROM table_name_47 WHERE resident_country = "senegal" AND mission = "mali" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
415,
834,
14836,
584,
4280,
28027,
6,
8141,
834,
17529,
584,
4280,
28027,
6,
2253,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
415,
834,
14836,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
8141,
834,
17529,
3274,
96,
7,
35,
15,
6191,
121,
3430,
2253,
3274,
96,
1982,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets? | CREATE TABLE table_name_78 (leader_at_the_summit VARCHAR, finish VARCHAR, start VARCHAR, stage VARCHAR, category VARCHAR) | SELECT leader_at_the_summit FROM table_name_78 WHERE stage > 14 AND category = 1 AND start = "saint-girons" AND finish = "cauterets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
22900,
834,
144,
834,
532,
834,
4078,
1538,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
6,
3295,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2488,
834,
144,
834,
532,
834,
4078,
1538,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1726,
2490,
968,
3430,
3295,
3274,
209,
3430,
456,
3274,
96,
7,
9,
77,
17,
18,
9427,
106,
7,
121,
3430,
1992,
3274,
96,... |
Bar chart x axis occupation y axis how many occupation, display in descending by the Y-axis. | CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residence text,
Occupation text,
Votes int,
Rank text
)
CREATE TABLE match_result (
Rank int,
Club_ID int,
Gold int,
Big_Silver int,
Small_Silver int,
Bronze int,
Points int
) | SELECT Occupation, COUNT(Occupation) FROM player GROUP BY Occupation ORDER BY COUNT(Occupation) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1949,
834,
4309,
16,
17,
6,
1949,
834,
4350,
1499,
6,
6163,
1499,
6,
3273,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
834,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
411,
75,
4658,
257,
6,
2847,
17161,
599,
667,
75,
4658,
257,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
411,
75,
4658,
257,
4674,
11300,
272,
476,
2847,
17161,
599,
667,
75,
4658,
257,
61,
309,
25067,
1,
-100,
-1... |
What is the method of the match with a win res., 1 round, and a 3-2 record? | CREATE TABLE table_name_44 (
method VARCHAR,
record VARCHAR,
res VARCHAR,
round VARCHAR
) | SELECT method FROM table_name_44 WHERE res = "win" AND round = 1 AND record = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
1573,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
3,
60,
7,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
3,
60,
7,
3274,
96,
3757,
121,
3430,
1751,
3274,
209,
3430,
1368,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the City/State of the Oran Park race? | CREATE TABLE table_name_85 (city___state VARCHAR, race_title VARCHAR) | SELECT city___state FROM table_name_85 WHERE race_title = "oran park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
6726,
834,
834,
834,
5540,
584,
4280,
28027,
6,
1964,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
896,
87,
134,
4748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
834,
834,
834,
5540,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1964,
834,
21869,
3274,
96,
127,
152,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart showing the number of different competition types, display from high to low by the x axis. | CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE competition (
Competition_ID int,
Year real,
Competition_type text,
Country text
)
CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
)
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
) | SELECT Competition_type, COUNT(Competition_type) FROM competition GROUP BY Competition_type ORDER BY Competition_type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7,
83,
17,
41,
15571,
834,
4309,
16,
17,
6,
1949,
834,
4309,
834,
536,
16,
17,
6,
1949,
834,
4309,
834,
357,
16,
17,
6,
17763,
1499,
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,
15571,
834,
6137,
6,
2847,
17161,
599,
5890,
4995,
4749,
834,
6137,
61,
21680,
2259,
350,
4630,
6880,
272,
476,
15571,
834,
6137,
4674,
11300,
272,
476,
15571,
834,
6137,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-... |
If Podiums is 2 and F/Laps are 2, what are the wins? | CREATE TABLE table_name_80 (
wins VARCHAR,
podiums VARCHAR,
f_laps VARCHAR
) | SELECT wins FROM table_name_80 WHERE podiums = "2" AND f_laps = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
9204,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
6,
3,
89,
834,
8478,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
1908,
12925... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
22828,
7,
3274,
96,
357,
121,
3430,
3,
89,
834,
8478,
7,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Call sign of the Omni television network with a Digitial PSIP of 14.1? | CREATE TABLE table_68877 (
"Digital channel" text,
"Digital PSIP" real,
"Rogers Cable (Ottawa)" real,
"Vid\u00e9otron (Gatineau)" real,
"Call sign" text,
"Network" text
) | SELECT "Call sign" FROM table_68877 WHERE "Network" = 'omni television' AND "Digital PSIP" = '14.1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
27697,
41,
96,
30225,
4245,
121,
1499,
6,
96,
30225,
5610,
4629,
121,
490,
6,
96,
448,
32,
1304,
7,
17240,
41,
667,
17,
17,
7396,
61,
121,
490,
6,
96,
553,
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,
96,
254,
1748,
1320,
121,
21680,
953,
834,
3651,
27697,
549,
17444,
427,
96,
9688,
1981,
121,
3274,
3,
31,
16378,
4390,
31,
3430,
96,
30225,
5610,
4629,
121,
3274,
3,
31,
536,
19708,
31,
1,
-100,
-100,
-100,
-100,
... |
Which 1st leg has a Team #1 of ummc ekaterinburg? | CREATE TABLE table_name_33 (team__number1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_33 WHERE team__number1 = "ummc ekaterinburg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
11650,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
209,
7,
17,
4553,
65,
3,
9,
2271,
7172,
13,
561,
51,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
209,
6157,
3,
7,
17,
834,
5772,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
372,
834,
834,
5525,
1152,
536,
3274,
96,
440,
51,
75,
3,
15,
8682,
6655,
4824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Broadcasts (TV) 1, when Aired in Japan 3 is '5 January 2003 to 30 March 2003'? | CREATE TABLE table_43839 (
"Series" text,
"Title" text,
"Broadcasts (TV) 1" real,
"Episodes (TV+extra) 2" text,
"Directors" text,
"Aired in Japan 3" text,
"US Release Date" text
) | SELECT COUNT("Broadcasts (TV) 1") FROM table_43839 WHERE "Aired in Japan 3" = '5 january 2003 to 30 march 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3747,
3288,
41,
96,
12106,
7,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
279,
8635,
5254,
7,
41,
4562,
61,
209,
121,
490,
6,
96,
427,
102,
159,
32,
1395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
279,
8635,
5254,
7,
41,
4562,
61,
209,
8512,
21680,
953,
834,
591,
3747,
3288,
549,
17444,
427,
96,
20162,
15,
26,
16,
3411,
220,
121,
3274,
3,
31,
755,
3,
7066,
76,
1208,
3888,
12,
604,
1... |
Name the number of score for sacramento | CREATE TABLE table_23281862_5 (score VARCHAR, team VARCHAR) | SELECT COUNT(score) FROM table_23281862_5 WHERE team = "Sacramento" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
2606,
4056,
834,
755,
41,
7,
9022,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
2604,
21,
3,
7,
9,
2935,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
2773,
2577,
2606,
4056,
834,
755,
549,
17444,
427,
372,
3274,
96,
134,
9,
2935,
297,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the place of To par of e when Arron Oberholser was the player ? | CREATE TABLE table_name_66 (
place VARCHAR,
to_par VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_66 WHERE to_par = "e" AND player = "arron oberholser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
286,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
286,
13,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
12,
834,
1893,
3274,
96,
15,
121,
3430,
1959,
3274,
96,
19996,
29,
18299,
2831,
7,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the report with winner of louis wagner | CREATE TABLE table_name_51 (report VARCHAR, winning_driver VARCHAR) | SELECT report FROM table_name_51 WHERE winning_driver = "louis wagner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
60,
1493,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
934,
28,
4668,
13,
16585,
159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
40,
1063,
159,
3,
15238,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which races did the jockey weigh less than 55.5 kg? | CREATE TABLE table_name_78 (race VARCHAR, weight__kg_ INTEGER) | SELECT race FROM table_name_78 WHERE weight__kg_ < 55.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
12614,
584,
4280,
28027,
6,
1293,
834,
834,
8711,
834,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
10879,
410,
8,
8624,
4397,
11385,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1293,
834,
834,
8711,
834,
3,
2,
305,
15938,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the team that has 1,317 attempts? | CREATE TABLE table_name_8 (
team VARCHAR,
attempts VARCHAR
) | SELECT team FROM table_name_8 WHERE attempts = "1,317" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
372,
584,
4280,
28027,
6,
9048,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
372,
24,
65,
1914,
519,
2517,
9048,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
9048,
3274,
96,
4347,
519,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the total revenue created by the companies whose headquarter is located at Austin. | CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
) | SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
1499,
6,
594,
381,
6,
4818,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
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,
180,
6122,
599,
60,
15098,
61,
21680,
5360,
549,
17444,
427,
819,
19973,
3274,
3,
31,
14934,
17,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which entrant has a Dallara F398 chassis? | CREATE TABLE table_name_13 (
entrant VARCHAR,
chassis VARCHAR
) | SELECT entrant FROM table_name_13 WHERE chassis = "dallara f398" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
3,
295,
3569,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
295,
3569,
65,
3,
9,
878,
195,
2551,
377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
295,
3569,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
22836,
3274,
96,
26,
1748,
2551,
3,
89,
519,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which title did Neil Affleck direct? | CREATE TABLE table_14724369_1 (
title VARCHAR,
directed_by VARCHAR
) | SELECT title FROM table_14724369_1 WHERE directed_by = "Neil Affleck" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
27730,
3951,
834,
536,
41,
2233,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2233,
410,
17906,
71,
89,
31465,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
24719,
27730,
3951,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
567,
15,
173,
71,
89,
31465,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If -750 is 45.505, what is the maximum rank? | CREATE TABLE table_22842 (
"Rank" real,
"Race Number" real,
"Name" text,
"NOC" text,
"- 250m" text,
"- 500m" text,
"- 750m" text,
"- 1,000m" text
) | SELECT MAX("Rank") FROM table_22842 WHERE "- 750m" = '45.505' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
4165,
41,
96,
22557,
121,
490,
6,
96,
448,
3302,
7720,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
7400,
254,
121,
1499,
6,
96,
18,
5986,
51,
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,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
357,
2577,
4165,
549,
17444,
427,
96,
18,
3,
9979,
51,
121,
3274,
3,
31,
591,
15938,
3076,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has the high assists when April 26 is the date? | CREATE TABLE table_2837 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "High assists" FROM table_2837 WHERE "Date" = 'April 26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4118,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21417,
13041,
121,
21680,
953,
834,
2577,
4118,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
23323,
2208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients with fetal/neonatal jaund nos had a lab test for blood gas? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Fetal/neonatal jaund NOS" AND lab."CATEGORY" = "Blood Gas" | [
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,
3... |
What is the name of the series with the unknown host? | CREATE TABLE table_27487310_5 (
name VARCHAR,
host_s_ VARCHAR
) | SELECT name FROM table_27487310_5 WHERE host_s_ = "unknown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3707,
4552,
1714,
834,
755,
41,
564,
584,
4280,
28027,
6,
2290,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
939,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
2555,
3707,
4552,
1714,
834,
755,
549,
17444,
427,
2290,
834,
7,
834,
3274,
96,
202,
5661,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was third during round 6 in Rybinsk? | CREATE TABLE table_38176 (
"Round" text,
"Venue" text,
"Discipline" text,
"Date" text,
"Winner" text,
"Second" text,
"Third" text
) | SELECT "Third" FROM table_38176 WHERE "Venue" = 'rybinsk' AND "Round" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
26782,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
15683,
23,
10574,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9288,
26,
121,
21680,
953,
834,
3747,
26782,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
651,
4517,
7,
157,
31,
3430,
96,
448,
32,
1106,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-10... |
What seat does Gubernia Warszawska hold? | CREATE TABLE table_11614581_3 (
seat VARCHAR,
name_in_polish VARCHAR
) | SELECT seat FROM table_11614581_3 WHERE name_in_polish = "Gubernia warszawska" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
20987,
4959,
834,
519,
41,
3143,
584,
4280,
28027,
6,
564,
834,
77,
834,
15621,
107,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3143,
405,
2846,
1152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3143,
21680,
953,
834,
20159,
20987,
4959,
834,
519,
549,
17444,
427,
564,
834,
77,
834,
15621,
107,
3274,
96,
517,
14659,
29,
23,
9,
615,
7,
1629,
210,
10717,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is every branch involved in Afghanistan? | CREATE TABLE table_1921_1 (branches_involved VARCHAR, location VARCHAR) | SELECT branches_involved FROM table_1921_1 WHERE location = "Afghanistan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2658,
834,
536,
41,
21016,
7,
834,
77,
4571,
162,
26,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
6421,
1381,
16,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9678,
834,
77,
4571,
162,
26,
21680,
953,
834,
2294,
2658,
834,
536,
549,
17444,
427,
1128,
3274,
96,
188,
89,
22637,
343,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What kilometer (Layac-basis) has a Barangay of general lim (capot)? | CREATE TABLE table_name_29 (kilometer_no__layac_basis_ VARCHAR, barangay VARCHAR) | SELECT kilometer_no__layac_basis_ FROM table_name_29 WHERE barangay = "general lim (capot)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
31247,
834,
29,
32,
834,
834,
5595,
9,
75,
834,
4883,
159,
834,
584,
4280,
28027,
6,
1207,
1468,
9,
63,
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,
31247,
834,
29,
32,
834,
834,
5595,
9,
75,
834,
4883,
159,
834,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1207,
1468,
9,
63,
3274,
96,
27369,
3,
4941,
41,
658,
3013,
61,
121,
1,
-100,
-100,
-100,
-10... |
Ignore movies whose director is NULL For each director, what are the titles and ratings for all the movies they reviewed? Show the result by a bar chart, order y-axis in asc order please. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" ORDER BY stars | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
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,
2233,
6,
4811,
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,
2090,
3,
2,
3155,
96,
29,
83,
40,
121,
4674,
11300,
272,
4... |
How many Laps have a Grid of 15? | CREATE TABLE table_name_52 (laps VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_52 WHERE grid = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
8478,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
325,
102,
7,
43,
3,
9,
23644,
13,
627,
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,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
8634,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the date of the game that had a loss of Burns (0-1)? | CREATE TABLE table_name_85 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_85 WHERE loss = "burns (0-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
5522,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
24,
141,
3,
9,
1453,
13,
10846,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1453,
3274,
96,
7223,
7,
17482,
18,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what city proper has the smallest area in km2 ? | CREATE TABLE table_203_222 (
id number,
"category" text,
"#" number,
"name" text,
"hanzi" text,
"hanyu pinyin" text,
"population (2010 census)" number,
"area (km2)" number,
"density (/km2)" number
) | SELECT "name" FROM table_203_222 WHERE "category" = 'city proper' ORDER BY "area (km2)" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26144,
41,
3,
23,
26,
381,
6,
96,
8367,
839,
651,
121,
1499,
6,
96,
4663,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
2618,
702,
121,
1499,
6,
96,
2618,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
26144,
549,
17444,
427,
96,
8367,
839,
651,
121,
3274,
3,
31,
6726,
2757,
31,
4674,
11300,
272,
476,
96,
498,
41,
5848,
7318,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
... |
Which Rank has a Col (m) of 0, and a Peak of aoraki/mount cook, and a Prominence (m) larger than 3,755? | CREATE TABLE table_13836 (
"Rank" real,
"Peak" text,
"Country" text,
"Island" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT SUM("Rank") FROM table_13836 WHERE "Col (m)" = '0' AND "Peak" = 'aoraki/mount cook' AND "Prominence (m)" > '3,755' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3420,
41,
96,
22557,
121,
490,
6,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
7,
40,
232,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
22744,
3420,
549,
17444,
427,
96,
9939,
41,
51,
61,
121,
3274,
3,
31,
632,
31,
3430,
96,
345,
15,
1639,
121,
3274,
3,
31,
9,
127,
11259,
87,
11231,
3989,
31,
34... |
Name the runs conceded where overs bowled is 53 | CREATE TABLE table_15700367_2 (
runs_conceded VARCHAR,
overs_bowled VARCHAR
) | SELECT COUNT(runs_conceded) FROM table_15700367_2 WHERE overs_bowled = "53" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
9295,
519,
3708,
834,
357,
41,
3154,
834,
11620,
221,
26,
584,
4280,
28027,
6,
147,
7,
834,
17710,
1361,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4312,
7,
834,
11620,
221,
26,
61,
21680,
953,
834,
1808,
9295,
519,
3708,
834,
357,
549,
17444,
427,
147,
7,
834,
17710,
1361,
3274,
96,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose age is less than 82 and days of hospital stay is greater than 5? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "82" AND demographic.days_stay > "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
3,
2,
96,
4613,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
17395,
1,
-100,
-100,
... |
For those records from the products and each product's manufacturer, find name and code , and group by attribute name, and visualize them by a bar chart, and list X from high to low order please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
Bar chart x axis gender y axis the total number, I want to show by the x axis from high to low please. | CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT gender, COUNT(*) FROM Dorm GROUP BY gender ORDER BY gender DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4498,
834,
9,
904,
485,
41,
103,
52,
6983,
3,
21342,
17966,
6,
183,
35,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6200,
51,
41,
103,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7285,
6,
2847,
17161,
599,
1935,
61,
21680,
6200,
51,
350,
4630,
6880,
272,
476,
7285,
4674,
11300,
272,
476,
7285,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the opponent(s) in round 6? | CREATE TABLE table_61140 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
) | SELECT "Opponents" FROM table_61140 WHERE "Round" = 'round 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
22012,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
566,
3,
87,
71,
121,
1499,
6,
96,
20119,
377,
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,
667,
102,
9977,
7,
121,
21680,
953,
834,
4241,
22012,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
7775,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest shots a glazing can handle? | CREATE TABLE table_21538523_1 (
shots INTEGER
) | SELECT MIN(shots) FROM table_21538523_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4867,
4433,
2773,
834,
536,
41,
6562,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
6562,
3,
9,
29301,
54,
2174,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
11159,
7,
61,
21680,
953,
834,
2658,
4867,
4433,
2773,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which driver was number 2 ? | CREATE TABLE table_2230 (
"Pos" text,
"No" text,
"Driver" text,
"Constructor" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Grid" text
) | SELECT "Driver" FROM table_2230 WHERE "No" = '2‡' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
1458,
41,
96,
345,
32,
7,
121,
1499,
6,
96,
4168,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
13725,
209,
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,
20982,
52,
121,
21680,
953,
834,
2884,
1458,
549,
17444,
427,
96,
4168,
121,
3274,
3,
31,
357,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Loss of kendrick (11–8) had what record? | CREATE TABLE table_name_54 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_54 WHERE loss = "kendrick (11–8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
60,
7621,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3144,
7,
13,
3,
2217,
26,
5206,
41,
2596,
104,
13520,
141,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
1453,
3274,
96,
2217,
26,
5206,
41,
2596,
104,
13520,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 2010 population when the 2000 population is 5720? | CREATE TABLE table_24375 (
"Barangay" text,
"Population (2000)" real,
"Population (2007)" real,
"Population (2010)" real,
"Barangay Fiesta" text
) | SELECT MAX("Population (2010)") FROM table_24375 WHERE "Population (2000)" = '5720' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
22954,
41,
96,
14851,
1468,
9,
63,
121,
1499,
6,
96,
27773,
7830,
3,
31804,
121,
490,
6,
96,
27773,
7830,
3,
27964,
121,
490,
6,
96,
27773,
7830,
26118,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
27773,
7830,
26118,
8512,
21680,
953,
834,
2266,
22954,
549,
17444,
427,
96,
27773,
7830,
3,
31804,
121,
3274,
3,
31,
3436,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has greater than 8 Long and a 73 Yards? | CREATE TABLE table_53256 (
"Player" text,
"Car." real,
"Yards" text,
"Avg." text,
"Long" real
) | SELECT "Player" FROM table_53256 WHERE "Long" > '8' AND "Yards" = '73' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
19337,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
1499,
6,
96,
188,
208,
122,
535,
1499,
6,
96,
434,
2444,
121,
490,
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,
15800,
49,
121,
21680,
953,
834,
4867,
19337,
549,
17444,
427,
96,
434,
2444,
121,
2490,
3,
31,
927,
31,
3430,
96,
476,
986,
7,
121,
3274,
3,
31,
4552,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Set 3, when Set 4 is 25-21, and when Date is Jun 14? | CREATE TABLE table_name_79 (set_3 VARCHAR, set_4 VARCHAR, date VARCHAR) | SELECT set_3 FROM table_name_79 WHERE set_4 = "25-21" AND date = "jun 14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
2244,
834,
519,
584,
4280,
28027,
6,
356,
834,
591,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2821,
6180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
356,
834,
519,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
356,
834,
591,
3274,
96,
1828,
16539,
121,
3430,
833,
3274,
96,
6959,
968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Country is listed for the Director Thomas Vinterberg? | CREATE TABLE table_name_74 (country VARCHAR, director VARCHAR) | SELECT country FROM table_name_74 WHERE director = "thomas vinterberg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
17529,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
19,
2616,
21,
8,
2578,
3576,
584,
3870,
2235,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2090,
3274,
96,
189,
32,
2754,
4671,
449,
2235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
did february 2012 or july 2006 have more total votes ? | CREATE TABLE table_203_43 (
id number,
"polling firm" text,
"month" text,
"link" text,
"favor" number,
"oppose" number
) | SELECT "month" FROM table_203_43 WHERE "month" IN ('february 2012', 'july 2006') ORDER BY "favor" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4906,
41,
3,
23,
26,
381,
6,
96,
3233,
697,
1669,
121,
1499,
6,
96,
7393,
121,
1499,
6,
96,
4907,
121,
1499,
6,
96,
89,
9,
1967,
121,
381,
6,
96,
28236,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7393,
121,
21680,
953,
834,
23330,
834,
4906,
549,
17444,
427,
96,
7393,
121,
3388,
41,
31,
89,
15,
9052,
1208,
1673,
31,
6,
3,
31,
2047,
120,
3581,
31,
61,
4674,
11300,
272,
476,
96,
89,
9,
1967,
121,
309,
... |
What team does Al Unser drive for? | CREATE TABLE table_1405704_1 (team VARCHAR, winning_driver VARCHAR) | SELECT team FROM table_1405704_1 WHERE winning_driver = "Al Unser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3436,
6348,
834,
536,
41,
11650,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
405,
901,
10697,
1262,
21,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
22012,
3436,
6348,
834,
536,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
188,
40,
10697,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which episode was the last written by chris hawkshaw this season? | CREATE TABLE table_name_72 (
no_in_season INTEGER,
written_by VARCHAR
) | SELECT MAX(no_in_season) FROM table_name_72 WHERE written_by = "chris hawkshaw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
150,
834,
77,
834,
9476,
3,
21342,
17966,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5640,
47,
8,
336,
1545,
57,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1545,
834,
969,
3274,
96,
524,
52,
159,
3,
14400,
15622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many verbs mean to grow, to produce | CREATE TABLE table_1745843_10 (
part_1 VARCHAR,
verb_meaning VARCHAR
) | SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
3449,
4906,
834,
1714,
41,
294,
834,
536,
584,
4280,
28027,
6,
7375,
834,
27639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7375,
7,
1243,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2274,
834,
6982,
21680,
953,
834,
27693,
3449,
4906,
834,
1714,
549,
17444,
427,
7375,
834,
27639,
3274,
96,
235,
1604,
6,
12,
1759,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is 2000, when 1996 is "A", when 1997 is "A", and when 2007 is "A"? | CREATE TABLE table_name_30 (Id VARCHAR) | SELECT 2000 FROM table_name_30 WHERE 1996 = "a" AND 1997 = "a" AND 2007 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2766,
6,
116,
6911,
19,
96,
188,
1686,
116,
6622,
19,
96,
188,
1686,
11,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2766,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
6911,
3274,
96,
9,
121,
3430,
6622,
3274,
96,
9,
121,
3430,
4101,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the fa cup apps with 0 league cup goals, and a total of 43 apps? | CREATE TABLE table_name_60 (
fa_cup_apps VARCHAR,
league_cup_goals VARCHAR,
total_apps VARCHAR
) | SELECT fa_cup_apps FROM table_name_60 WHERE league_cup_goals = 0 AND total_apps = "43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
3,
89,
9,
834,
4658,
834,
3096,
7,
584,
4280,
28027,
6,
5533,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
6,
792,
834,
3096,
7,
584,
4280,
28027,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
9,
834,
4658,
834,
3096,
7,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
5533,
834,
4658,
834,
839,
5405,
3274,
3,
632,
3430,
792,
834,
3096,
7,
3274,
96,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the race time for Jeff Gordon? | CREATE TABLE table_2196127_1 (
race_time VARCHAR,
driver VARCHAR
) | SELECT race_time FROM table_2196127_1 WHERE driver = "Jeff Gordon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4314,
22367,
834,
536,
41,
1964,
834,
715,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1964,
97,
21,
8507,
14626,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
715,
21680,
953,
834,
2658,
4314,
22367,
834,
536,
549,
17444,
427,
2535,
3274,
96,
7851,
89,
89,
14626,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What skip has norway as the country? | CREATE TABLE table_75428 (
"Country" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Skip" FROM table_75428 WHERE "Country" = 'norway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
591,
2577,
41,
96,
10628,
651,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
2796,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
2168,
102,
121,
21680,
953,
834,
3072,
591,
2577,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
29,
127,
1343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the names and publication dates of all catalogs that have catalog level numbers greater than 5. Bin publication dates into Year interval, and count catalog as a bar chart. | CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_entry_id INTEGER,
next_entry_id INTEGER,
catalog_entry_name VARCHAR(80),
product_stock_number VARCHAR(50),
price_in_dollars DOUBLE,
price_in_euros DOUBLE,
price_in_pounds DOUBLE,
capacity VARCHAR(20),
length VARCHAR(20),
height VARCHAR(20),
width VARCHAR(20)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
) | SELECT date_of_publication, COUNT(date_of_publication) FROM Catalogs AS t1 JOIN Catalog_Structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
486,
5135,
17,
15,
834,
2962,
5582,
10872,
41,
15816,
834,
23,
26,
3,
21342,
17966,
6,
15816,
834,
4350,
584,
4280,
28027,
599,
1458,
201,
15816,
834,
6757,
834,
6137,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
15727,
257,
6,
2847,
17161,
599,
5522,
834,
858,
834,
15727,
257,
61,
21680,
22424,
7,
6157,
3,
17,
536,
3,
15355,
3162,
22424,
834,
134,
17,
11783,
2693,
6157,
3,
17,
357,
9191,
3,
17,
5411,
... |
How many million viewers watched 'You Smell like Dinner'? | CREATE TABLE table_3909 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT "U.S. viewers (million)" FROM table_3909 WHERE "Title" = 'You Smell Like Dinner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
4198,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
21680,
953,
834,
3288,
4198,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
3774,
180,
2341,
40,
2792,
18428,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of Score, when Country is "United States", and when Player is "Lee Trevino"? | CREATE TABLE table_name_75 (score VARCHAR, country VARCHAR, player VARCHAR) | SELECT COUNT(score) FROM table_name_75 WHERE country = "united states" AND player = "lee trevino" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
7,
9022,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
17763,
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,
7,
9022,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
109,
15,
3,
929,
2494,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
How many sets were played in the 2011 tournament, in which 2R were played in 2008? | CREATE TABLE table_name_4 (
Id VARCHAR
) | SELECT 2011 FROM table_name_4 WHERE 2008 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3369,
130,
1944,
16,
8,
2722,
5892,
6,
16,
84,
204,
448,
130,
1944,
16,
2628... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2722,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
2628,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What country does Adam van Koeverden play for? | CREATE TABLE table_66315 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Country" FROM table_66315 WHERE "Athletes" = 'adam van koeverden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
519,
1808,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
109,
1422,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3539,
519,
1808,
549,
17444,
427,
96,
188,
189,
109,
1422,
121,
3274,
3,
31,
9,
7812,
4049,
3,
157,
32,
3258,
537,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which building was built in 2015, has less than 40 floors and is larger than 509 feet? | CREATE TABLE table_name_33 (metres INTEGER, feet VARCHAR, finalized VARCHAR, floors VARCHAR) | SELECT MAX(metres) FROM table_name_33 WHERE finalized = "2015" AND floors < 40 AND feet > 509 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
22404,
7,
3,
21342,
17966,
6,
1922,
584,
4280,
28027,
6,
804,
1601,
584,
4280,
28027,
6,
8242,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
599,
22404,
7,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
804,
1601,
3274,
96,
8651,
121,
3430,
8242,
3,
2,
1283,
3430,
1922,
2490,
305,
4198,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose procedure long title is radical neck dissection, unilateral? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Radical neck dissection, unilateral" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which opponent has a record of 44-28? | CREATE TABLE table_name_2 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_2 WHERE record = "44-28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
65,
3,
9,
1368,
13,
8537,
18,
2577,
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,
15264,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1368,
3274,
96,
3628,
18,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the opponents of the Wildcats in game 4? | CREATE TABLE table_21062353_1 (
opponent VARCHAR,
game VARCHAR
) | SELECT opponent FROM table_21062353_1 WHERE game = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
16431,
2773,
4867,
834,
536,
41,
15264,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
16383,
13,
8,
5342,
2138,
7,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
357,
16431,
2773,
4867,
834,
536,
549,
17444,
427,
467,
3274,
314,
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 average duration in milliseconds of tracks that belong to Latin or Pop genre? | CREATE TABLE TRACK (
GenreId VARCHAR
)
CREATE TABLE GENRE (
GenreId VARCHAR,
Name VARCHAR
) | SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Latin" OR T1.Name = "Pop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11466,
15339,
41,
5945,
60,
196,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
18464,
4386,
41,
5945,
60,
196,
26,
584,
4280,
28027,
6,
5570,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
329,
1092,
23,
12091,
7,
61,
21680,
3,
18464,
4386,
6157,
332,
536,
3,
15355,
3162,
11466,
15339,
6157,
332,
357,
9191,
332,
5411,
13714,
60,
196,
26,
3274,
332,
4416,
13714,
60,
196,
26,
549,
17444,... |
Name the college for dl | CREATE TABLE table_28059992_2 (college VARCHAR, position VARCHAR) | SELECT college FROM table_28059992_2 WHERE position = "DL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3076,
19446,
357,
834,
357,
41,
3297,
7883,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1900,
21,
3,
26,
40,
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,
1900,
21680,
953,
834,
2577,
3076,
19446,
357,
834,
357,
549,
17444,
427,
1102,
3274,
96,
10013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
During which years did player number 35 play for Jazz? | CREATE TABLE table_255 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Years for Jazz" FROM table_255 WHERE "No." = '35' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
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,
476,
2741,
7,
21,
12313,
121,
21680,
953,
834,
25502,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When zachary sanders is the performer what is the lowerst first aired? | CREATE TABLE table_191105_3 (
first_aired INTEGER,
performed_by VARCHAR
) | SELECT MIN(first_aired) FROM table_191105_3 WHERE performed_by = "Zachary Sanders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
536,
12869,
834,
519,
41,
166,
834,
2378,
26,
3,
21342,
17966,
6,
3032,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
1629,
4059,
63,
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,
3,
17684,
599,
14672,
834,
2378,
26,
61,
21680,
953,
834,
2294,
536,
12869,
834,
519,
549,
17444,
427,
3032,
834,
969,
3274,
96,
956,
1836,
1208,
22439,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of fate for pennant of u33? | CREATE TABLE table_1220125_4 (
fate VARCHAR,
pennant VARCHAR
) | SELECT COUNT(fate) FROM table_1220125_4 WHERE pennant = "U33" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
12172,
755,
834,
591,
41,
15126,
584,
4280,
28027,
6,
4550,
29,
288,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
15126,
21,
4550... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
89,
342,
61,
21680,
953,
834,
2122,
12172,
755,
834,
591,
549,
17444,
427,
4550,
29,
288,
3274,
96,
1265,
4201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How tall is the player from Chicago, IL? | CREATE TABLE table_52542 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "Height" FROM table_52542 WHERE "Hometown" = 'chicago, il' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
4165,
41,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
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,
3845,
2632,
121,
21680,
953,
834,
755,
1828,
4165,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
1436,
658,
839,
6,
3,
173,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the president from the Union for a Popular Movement party that represents the Hautes-Alpes department? | CREATE TABLE table_name_36 (président VARCHAR, party VARCHAR, départment__or_collectivity_ VARCHAR) | SELECT président FROM table_name_36 WHERE party = "union for a popular movement" AND départment__or_collectivity_ = "hautes-alpes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
31920,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
12173,
297,
834,
834,
127,
834,
22153,
10696,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
10613,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1088,
3274,
96,
16598,
21,
3,
9,
1012,
2426,
121,
3430,
12173,
297,
834,
834,
127,
834,
22153,
10696,
834,
3274,
96,
1024,
2810,
7,
18,
138,
855,
7,
121,
1... |
On what date was the opponent the White Sox and the record 18-13? | CREATE TABLE table_67932 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_67932 WHERE "Opponent" = 'white sox' AND "Record" = '18-13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4271,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3708,
4271,
357,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
13698,
78,
226,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
2606,
13056,
31,
1,
-100,
-100,
-100,
-100,
... |
WHAT IS THE TV TIME WOTH A WEEK BIGGER THAN 15, WITH THE OAKLAND RAIDERS AS OPPONENT? | CREATE TABLE table_76433 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
) | SELECT "TV Time" FROM table_76433 WHERE "Week" > '15' AND "Opponent" = 'oakland raiders' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4906,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
4562,
2900,
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,
4562,
2900,
121,
21680,
953,
834,
3959,
4906,
519,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
1808,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
32,
1639,
40,
232,
15941,
277,
31,
1,
-100,
-100,
-... |
Which Principal activities have an Incorporated in of france? | CREATE TABLE table_name_76 (
principal_activities VARCHAR,
incorporated_in VARCHAR
) | SELECT principal_activities FROM table_name_76 WHERE incorporated_in = "france" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
3218,
834,
8463,
2197,
584,
4280,
28027,
6,
3,
10975,
834,
77,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15449,
1087,
43,
46,
86,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3218,
834,
8463,
2197,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3,
10975,
834,
77,
3274,
96,
89,
5219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the commentator when spokesperson was claude darget | CREATE TABLE table_22368 (
"Voting order" real,
"Country" text,
"Spokespersons" text,
"Commentator" text,
"Broadcaster" text
) | SELECT "Commentator" FROM table_22368 WHERE "Spokespersons" = 'Claude Darget' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2773,
3651,
41,
96,
553,
32,
1222,
455,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
102,
32,
7735,
6075,
7,
121,
1499,
6,
96,
5890,
297,
1016,
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,
5890,
297,
1016,
121,
21680,
953,
834,
357,
2773,
3651,
549,
17444,
427,
96,
134,
102,
32,
7735,
6075,
7,
121,
3274,
3,
31,
19298,
1920,
2782,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of the episode directed by Rodney Clouden? | CREATE TABLE table_23242958_1 (
title VARCHAR,
directed_by VARCHAR
) | SELECT title FROM table_23242958_1 WHERE directed_by = "Rodney Clouden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3166,
3449,
834,
536,
41,
2233,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
8,
5640,
6640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
2773,
2266,
3166,
3449,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
448,
32,
26,
3186,
5713,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the maximum and minimum number of cities in all markets. | CREATE TABLE market (Number_cities INTEGER) | SELECT MAX(Number_cities), MIN(Number_cities) FROM market | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
512,
41,
567,
5937,
49,
834,
75,
2197,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
2411,
11,
2559,
381,
13,
3119,
16,
66,
3212,
5,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
567,
5937,
49,
834,
75,
2197,
201,
3,
17684,
599,
567,
5937,
49,
834,
75,
2197,
61,
21680,
512,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Bowl game in San Francisco, CA after 1968? | CREATE TABLE table_name_42 (bowl_game VARCHAR, season VARCHAR, location VARCHAR) | SELECT bowl_game FROM table_name_42 WHERE season > 1968 AND location = "san francisco, ca" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
17710,
40,
834,
7261,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
9713,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3047,
834,
7261,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
774,
2490,
16506,
3430,
1128,
3274,
96,
7,
152,
2515,
11389,
3523,
6,
212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Club has a Founded smaller than 1882, and a League of fa premier league? | CREATE TABLE table_8183 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text
) | SELECT "Club" FROM table_8183 WHERE "Founded" < '1882' AND "League" = 'fa premier league' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4959,
4591,
41,
96,
254,
11158,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
254,
11158,
121,
21680,
953,
834,
4959,
4591,
549,
17444,
427,
96,
20100,
121,
3,
2,
3,
31,
2606,
4613,
31,
3430,
96,
2796,
9,
5398,
121,
3274,
3,
31,
89,
9,
2761,
5533,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many picks had a round smaller than 6 and an overall bigger than 153? | CREATE TABLE table_name_47 (
pick INTEGER,
round VARCHAR,
overall VARCHAR
) | SELECT SUM(pick) FROM table_name_47 WHERE round < 6 AND overall > 153 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1432,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1432,
7,
141,
3,
9,
1751,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17967,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1751,
3,
2,
431,
3430,
1879,
2490,
3,
27025,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What kind of animal corresponds to the accession number xp_852505.1? | CREATE TABLE table_20071 (
"Genus/Species" text,
"Common Name" text,
"Accession Number" text,
"Length" text,
"Similarity" text,
"Identity" text
) | SELECT "Common Name" FROM table_20071 WHERE "Accession Number" = 'XP_852505.1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20615,
536,
41,
96,
13714,
302,
87,
7727,
725,
121,
1499,
6,
96,
10205,
106,
5570,
121,
1499,
6,
96,
31679,
23,
106,
7720,
121,
1499,
6,
96,
434,
4606,
189,
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,
10205,
106,
5570,
121,
21680,
953,
834,
20615,
536,
549,
17444,
427,
96,
31679,
23,
106,
7720,
121,
3274,
3,
31,
4,
345,
834,
4433,
11434,
20519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was the number of silver metals given for weightlifting ? | CREATE TABLE table_204_103 (
id number,
"medal" text,
"name" text,
"sport" text,
"event" text
) | SELECT COUNT("medal") FROM table_204_103 WHERE "sport" = 'weightlifting' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
17864,
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,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
2726,
138,
8512,
21680,
953,
834,
26363,
834,
17864,
549,
17444,
427,
96,
6661,
121,
3274,
3,
31,
9378,
9253,
53,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the game when there was a loss of Kern (0-2)? | CREATE TABLE table_name_44 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_44 WHERE loss = "kern (0-2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
7,
9022,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
116,
132,
47,
3,
9,
1453,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1453,
3274,
96,
2304,
29,
17482,
18,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Count the Prominence (m) of Col (m) smaller than 0? | CREATE TABLE table_name_9 (prominence__m_ INTEGER, col__m_ INTEGER) | SELECT AVG(prominence__m_) FROM table_name_9 WHERE col__m_ < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
1409,
1109,
1433,
834,
834,
51,
834,
3,
21342,
17966,
6,
7632,
834,
834,
51,
834,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
3,
10628,
8,
749,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1409,
1109,
1433,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
7632,
834,
834,
51,
834,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29? | CREATE TABLE table_name_48 (
goals INTEGER,
apps VARCHAR,
team VARCHAR,
division VARCHAR
) | SELECT SUM(goals) FROM table_name_48 WHERE team = "torpedo moscow" AND division = 1 AND apps < 29 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1766,
3,
21342,
17966,
6,
4050,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
4889,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
180,
6122,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
372,
3274,
96,
17,
127,
3138,
32,
2288,
3523,
210,
121,
3430,
4889,
3274,
209,
3430,
4050,
3,
2,
2838,
1,
-100,
-100,
-100,
-100,
-... |
when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98 | CREATE TABLE table_23167 (
"RPM" real,
"Standard HP" text,
"Standard torque (lb/ft)" text,
"Standard speed (6th gear)" text,
"Modified speed (6th gear)" real,
"Modified HP" text,
"Modified torque (lb/ft)" text
) | SELECT MAX("Modified speed (6th gear)") FROM table_23167 WHERE "Standard speed (6th gear)" = '98' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
27650,
41,
96,
6294,
329,
121,
490,
6,
96,
134,
17,
232,
986,
5481,
121,
1499,
6,
96,
134,
17,
232,
986,
19527,
41,
40,
115,
87,
89,
17,
61,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
15594,
3676,
1634,
11372,
189,
4124,
61,
8512,
21680,
953,
834,
2773,
27650,
549,
17444,
427,
96,
134,
17,
232,
986,
1634,
11372,
189,
4124,
61,
121,
3274,
3,
31,
3916,
31,
1,
-100,
-100,
-100,
... |
What is the number of party in the arkansas 1 district | CREATE TABLE table_18466 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("Party") FROM table_18466 WHERE "District" = 'Arkansas 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
3539,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
13725,
63,
8512,
21680,
953,
834,
25987,
3539,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
188,
52,
3304,
7,
9,
7,
209,
31,
1,
-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.