NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the election date for those politicians who left office on 1850-11-15? | CREATE TABLE table_26362472_1 (election_date VARCHAR, left_office VARCHAR) | SELECT COUNT(election_date) FROM table_26362472_1 WHERE left_office = "1850-11-15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3420,
2266,
5865,
834,
536,
41,
15,
12252,
834,
5522,
584,
4280,
28027,
6,
646,
834,
19632,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4356,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15,
12252,
834,
5522,
61,
21680,
953,
834,
2688,
3420,
2266,
5865,
834,
536,
549,
17444,
427,
646,
834,
19632,
3274,
96,
2606,
1752,
9169,
10106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many students participated in tryouts for each college by descennding count. Show a pie chart. | CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) | SELECT cName, COUNT(*) FROM Tryout GROUP BY cName ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1888,
41,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
538,
3,
4331,
4059,
16426,
6,
3,
35,
52,
206,
17552,
599,
11116,
632,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
75,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
5263,
670,
350,
4630,
6880,
272,
476,
3,
75,
23954,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the population of the area that was formerly under the authority of the Audenshaw Urban District? | CREATE TABLE table_name_65 (
population VARCHAR,
former_local_authority VARCHAR
) | SELECT population FROM table_name_65 WHERE former_local_authority = "audenshaw urban district" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
2074,
584,
4280,
28027,
6,
1798,
834,
16882,
834,
17415,
485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2074,
13,
8,
616,
24,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1798,
834,
16882,
834,
17415,
485,
3274,
96,
402,
537,
15622,
4150,
3939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Game, when Team is 'Milwaukee'? | CREATE TABLE table_76271 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT AVG("Game") FROM table_76271 WHERE "Team" = 'milwaukee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
2555,
536,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
8512,
21680,
953,
834,
3959,
2555,
536,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
51,
173,
210,
402,
1050,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the area in kilometers squared the population density is 137.61? | CREATE TABLE table_991 (
"Name" text,
"Population (2002 census)" real,
"Population (2007 estimation)" real,
"Population (2011 census)" real,
"Area (km\u00b2)" text,
"Density (pop/km\u00b2)" text
) | SELECT "Area (km\u00b2)" FROM table_991 WHERE "Density (pop/km\u00b2)" = '137.61' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3264,
536,
41,
96,
23954,
121,
1499,
6,
96,
27773,
7830,
41,
24898,
23087,
61,
121,
490,
6,
96,
27773,
7830,
41,
20615,
22781,
61,
121,
490,
6,
96,
27773,
7830,
41,
13907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
21680,
953,
834,
3264,
536,
549,
17444,
427,
96,
308,
35,
7,
485,
41,
9791,
87,
5848,
2,
76,
1206,
115,
7318,
121,
3274,
3,
31,
24636,
5,
4241,
31,
1,
-100,... |
What is the lowest 2011 number (,000)? | CREATE TABLE table_74103 (
"Status" text,
"2001 number (,000)" real,
"2001 %" text,
"2011 number (,000)" real,
"2011 %" text
) | SELECT MIN("2011 number (,000)") FROM table_74103 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
17864,
41,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23658,
381,
41,
6,
2313,
61,
121,
490,
6,
96,
23658,
3,
1454,
121,
1499,
6,
96,
13907,
381,
41,
6,
2313,
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,
3,
17684,
599,
121,
13907,
381,
41,
6,
2313,
61,
8512,
21680,
953,
834,
4581,
17864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2? | CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR) | SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
3968,
834,
221,
89,
3,
21342,
17966,
6,
3,
15525,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
6729,
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,
71,
17217,
599,
3968,
834,
221,
89,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
372,
3274,
96,
9423,
10210,
4153,
277,
121,
3430,
6729,
3274,
3,
4056,
3430,
3,
15525,
7,
3,
2,
204,
1,
-100,
-100,
-100,
... |
Where is lootos põlva from? | CREATE TABLE table_27409644_1 (location VARCHAR, club VARCHAR) | SELECT location FROM table_27409644_1 WHERE club = "Lootos Põlva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2445,
4314,
3628,
834,
536,
41,
14836,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
6899,
32,
235,
7,
3,
102,
2,
40,
900,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2555,
2445,
4314,
3628,
834,
536,
549,
17444,
427,
1886,
3274,
96,
434,
32,
32,
235,
7,
276,
2,
40,
900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many female patients had the diagnosis long title 35-36 completed weeks of gestation? | 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 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 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.gender = "F" AND diagnoses.long_title = "35-36 completed weeks of gestation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
individuals who are found to have prediabetes. pre _ diabetes is defined as having a fasting glucose > 100 mg / dl and < 126 mg / dl. | CREATE TABLE table_dev_52 (
"id" int,
"anemia" bool,
"gender" string,
"prediabetes" bool,
"systolic_blood_pressure_sbp" int,
"metabolic_syndrome" bool,
"hemoglobin_a1c_hba1c" float,
"dyslipidemia" bool,
"dsp" int,
"renal_disease" bool,
"hepatic_disease" bool,
"elevated_triglyceride" int,
"chronic_hematology_disorders" bool,
"ldl" int,
"serum_creatinine" float,
"diagnosed_hypertension" bool,
"waist_circumference" int,
"triglyceride_tg" float,
"low_hdl" int,
"fasting_glucose" int,
"NOUSE" float
) | SELECT * FROM table_dev_52 WHERE prediabetes = 1 OR (fasting_glucose > 100 AND fasting_glucose < 126) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
5373,
41,
96,
23,
26,
121,
16,
17,
6,
96,
152,
11658,
121,
3,
12840,
40,
6,
96,
122,
3868,
121,
6108,
6,
96,
2026,
26,
23,
9,
346,
1422,
121,
3,
12840,
40,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9776,
834,
5373,
549,
17444,
427,
4880,
18999,
346,
1422,
3274,
209,
4674,
41,
11584,
53,
834,
13492,
509,
7,
15,
2490,
910,
3430,
1006,
53,
834,
13492,
509,
7,
15,
3,
2,
586,
10938,
1,
-100... |
Which club was founded after 1998? | CREATE TABLE table_name_49 (club VARCHAR, founded INTEGER) | SELECT club FROM table_name_49 WHERE founded > 1998 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
13442,
584,
4280,
28027,
6,
5710,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
1886,
47,
5710,
227,
6260,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1886,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
5710,
2490,
6260,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List the players for team brynäs if (sweden). | CREATE TABLE table_2850912_12 (player VARCHAR, college_junior_club_team VARCHAR) | SELECT player FROM table_2850912_12 WHERE college_junior_club_team = "Brynäs IF (Sweden)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
4729,
357,
834,
2122,
41,
20846,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2577,
1752,
4729,
357,
834,
2122,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
279,
651,
29,
1864,
7,
3,
6058,
41,
134,
1123,
537,
61,
121,
1,
-100,
-100,
-10... |
Find the average price of wines that are not produced from Sonoma county. | CREATE TABLE wine (price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Appelation VARCHAR) | SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
102,
4920,
3,
21342,
17966,
6,
3,
27794,
257,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
13747,
12735,
8015,
134,
41,
27794,
257,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
102,
4920,
61,
21680,
2013,
549,
17444,
427,
4486,
3,
27794,
257,
3388,
41,
23143,
14196,
332,
5411,
27794,
257,
21680,
3,
13747,
12735,
8015,
134,
6157,
332,
536,
3,
15355,
3162,
549,
9730,
6157,
332,... |
Name the country with a score of 69-71=140. | CREATE TABLE table_47688 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_47688 WHERE "Score" = '69-71=140' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3959,
4060,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
591,
3959,
4060,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3951,
18,
4450,
2423,
22012,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of cuts made of tournaments with 2 Events? | CREATE TABLE table_76035 (
"Tournament" text,
"Wins" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT COUNT("Cuts made") FROM table_76035 WHERE "Events" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
2469,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
14855,
121,
490,
6,
96,
427,
2169,
7,
121,
490,
6,
96,
15784,
17,
7,
263,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15784,
17,
7,
263,
8512,
21680,
953,
834,
28212,
2469,
549,
17444,
427,
96,
427,
2169,
7,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the time for Peter Berwick of Team Suzuki? | CREATE TABLE table_74609 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Time" FROM table_74609 WHERE "Team" = 'suzuki' AND "Rider" = 'peter berwick' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4448,
4198,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
940,
4448,
4198,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
7,
76,
1000,
2168,
31,
3430,
96,
448,
23,
588,
121,
3274,
3,
31,
4995,
49,
3,
1152,
5981,
31,
1,
-100,
-100,
-100,
... |
Tell me the date for warsaw 1929 | CREATE TABLE table_name_50 (date VARCHAR, location VARCHAR, year VARCHAR) | SELECT date FROM table_name_50 WHERE location = "warsaw" AND year = 1929 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
5522,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
833,
21,
615,
13125,
27332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1128,
3274,
96,
2910,
13125,
121,
3430,
215,
3274,
27332,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis software platform y axis the total number, and sort by the Y-axis from high to low. | CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Date text,
Open_Year int
)
CREATE TABLE stock (
Shop_ID int,
Device_ID int,
Quantity int
)
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
) | SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
3687,
834,
4309,
16,
17,
6,
3687,
834,
23954,
1499,
6,
10450,
1499,
6,
2384,
834,
308,
342,
1499,
6,
2384,
834,
476,
2741,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4300,
834,
10146,
2032,
6,
2847,
17161,
599,
1935,
61,
21680,
1407,
350,
4630,
6880,
272,
476,
4300,
834,
10146,
2032,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Wicket was it that had a 104 (69) Runs (balls) amount? | CREATE TABLE table_name_55 (
wicket VARCHAR,
runs__balls_ VARCHAR
) | SELECT wicket FROM table_name_55 WHERE runs__balls_ = "104 (69)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
29719,
584,
4280,
28027,
6,
3154,
834,
834,
3184,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
18602,
15,
17,
47,
34,
24,
141,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29719,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
3154,
834,
834,
3184,
7,
834,
3274,
96,
15442,
41,
3951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times did a can i bus album reach the top 10 on the us charts ? | CREATE TABLE table_203_137 (
id number,
"title" text,
"album details" text,
"peak chart positions\nus" number,
"peak chart positions\nus r&b" number,
"certifications" text
) | SELECT COUNT(*) FROM table_203_137 WHERE "title" = 'can-i-bus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24636,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
23703,
1030,
121,
1499,
6,
96,
14661,
5059,
4655,
2,
29,
302,
121,
381,
6,
96,
14661,
5059,
4655,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
24636,
549,
17444,
427,
96,
21869,
121,
3274,
3,
31,
1608,
18,
23,
18,
3465,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the winning score in the PGA Championship? | CREATE TABLE table_67416 (
"Year" text,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text
) | SELECT "Winning score" FROM table_67416 WHERE "Championship" = 'pga championship' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
591,
2938,
41,
96,
476,
2741,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
5062,
8034,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
2604,
121,
21680,
953,
834,
3708,
591,
2938,
549,
17444,
427,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
102,
122,
9,
10183,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the attendance at the game that had a loss of Mercker (3-1)? | CREATE TABLE table_name_12 (attendance VARCHAR, loss VARCHAR) | SELECT attendance FROM table_name_12 WHERE loss = "mercker (3-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
15116,
663,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
44,
8,
467,
24,
141,
3,
9,
1453,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1453,
3274,
96,
935,
3383,
6918,
18,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the opponent for 6 2, 3 6, 4 6 | CREATE TABLE table_name_29 (
opponent_in_the_final VARCHAR,
score_in_the_final VARCHAR
) | SELECT opponent_in_the_final FROM table_name_29 WHERE score_in_the_final = "6–2, 3–6, 4–6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
948,
104,
4482,
220,
104,
11071,
314,
104,
948,
121,
1,
-100,
-100,
-100,
-100,... |
What type of surface did Thomaz Bellucci play against tommy robredo? | CREATE TABLE table_48015 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Surface" FROM table_48015 WHERE "Opponent" = 'tommy robredo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20579,
1808,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
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,
450,
4861,
121,
21680,
953,
834,
20579,
1808,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
235,
635,
63,
3,
5840,
1271,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Date, when Score is 6-3, 4-6, 0-6? | CREATE TABLE table_name_88 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_88 WHERE score = "6-3, 4-6, 0-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
17763,
19,
3,
24262,
6,
3,
20445,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
2604,
3274,
96,
24262,
6,
3,
20445,
6,
3,
632,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
The Dallas Burn had a 12-9-7 record and what number of goals for? | CREATE TABLE table_17709 (
"Club" text,
"Overall Record" text,
"Goals For" real,
"Goals For Avg." text,
"Goals Against" real,
"Goals Against Avg." text
) | SELECT "Goals For" FROM table_17709 WHERE "Overall Record" = '12-9-7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26793,
4198,
41,
96,
254,
11158,
121,
1499,
6,
96,
23847,
1748,
11392,
121,
1499,
6,
96,
6221,
5405,
242,
121,
490,
6,
96,
6221,
5405,
242,
71,
208,
122,
535,
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,
6221,
5405,
242,
121,
21680,
953,
834,
26793,
4198,
549,
17444,
427,
96,
23847,
1748,
11392,
121,
3274,
3,
31,
2122,
7141,
6832,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
was it azeta racing or target racing that won the misano world circuit ? | CREATE TABLE table_204_63 (
id number,
"round" number,
"circuit" text,
"date" text,
"pole position" text,
"winning driver" text,
"winning team" text,
"trophy winner" text
) | SELECT "winning team" FROM table_204_63 WHERE "circuit" = 'misano world circuit' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3891,
41,
3,
23,
26,
381,
6,
96,
7775,
121,
381,
6,
96,
15357,
21560,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
14332,
1102,
121,
1499,
6,
96,
8163,
2535,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8163,
372,
121,
21680,
953,
834,
26363,
834,
3891,
549,
17444,
427,
96,
15357,
21560,
121,
3274,
3,
31,
51,
159,
152,
32,
296,
4558,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what's the night rank with rating of 6.2 | CREATE TABLE table_16650 (
"#" real,
"Episode" text,
"Air Date" text,
"Rating" text,
"Share" real,
"Rating/Share 18\u201349" text,
"Viewers (m)" text,
"Timeslot Rank" real,
"Night Rank" text,
"Overall Rank" real
) | SELECT "Night Rank" FROM table_16650 WHERE "Rating" = '6.2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
15348,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
20162,
7678,
121,
1499,
6,
96,
448,
1014,
121,
1499,
6,
96,
24501,
121,
490,
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,
567,
2632,
3,
22557,
121,
21680,
953,
834,
2938,
15348,
549,
17444,
427,
96,
448,
1014,
121,
3274,
3,
31,
23913,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position? | CREATE TABLE table_name_24 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) | SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
15448,
834,
2246,
226,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1907,
834,
2246,
226,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
1304,
5651,
3,
16170,
121,
3430,
11148,
834,
4718,
3274,
96,
1191,
75,
7771,
3,
1420,
26445,
121,
1,
-100,
-100,
-... |
what is 2009 when 2004 is 107? | CREATE TABLE table_name_5 (
Id VARCHAR
) | SELECT 2009 FROM table_name_5 WHERE 2004 = "107" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
2464,
116,
4406,
19,
3,
18057,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2464,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
4406,
3274,
96,
18057,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name who wrote the episode when the viewers was 1.81 | CREATE TABLE table_15584067_7 (written_by VARCHAR, us_viewers__million_ VARCHAR) | SELECT written_by FROM table_15584067_7 WHERE us_viewers__million_ = "1.81" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
26311,
3708,
834,
940,
41,
14973,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
20896,
26311,
3708,
834,
940,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
16253,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the country is fenghuang how many provinces are there? | CREATE TABLE table_152834_2 (
province VARCHAR,
county VARCHAR
) | SELECT COUNT(province) FROM table_152834_2 WHERE county = "Fenghuang" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2577,
3710,
834,
357,
41,
7985,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
684,
19,
3,
89,
4606,
107,
76,
1468,
149,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1409,
2494,
565,
61,
21680,
953,
834,
1808,
2577,
3710,
834,
357,
549,
17444,
427,
5435,
3274,
96,
371,
4606,
107,
76,
1468,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Opponent when Todd Woodbridge was the runner-up, and a Date of 26 august 1996? | CREATE TABLE table_43358 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_43358 WHERE "Outcome" = 'runner-up' AND "Date" = '26 august 1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
519,
3449,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4906,
519,
3449,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
10806,
18,
413,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2688,
14663,
6911,
31,
1,
-100,
-100,
-... |
What season had 3rd position, a 36 pld, and a bbl div? | CREATE TABLE table_63302 (
"Season" text,
"Div." text,
"Pos." text,
"Pld." text,
"Pts." text
) | SELECT "Season" FROM table_63302 WHERE "Pos." = '3rd' AND "Pld." = '36' AND "Div." = 'bbl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
1458,
357,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
21313,
535,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
345,
40,
26,
535,
1499,
6,
96,
345,
17,
7,
535,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
3891,
1458,
357,
549,
17444,
427,
96,
345,
32,
7,
535,
3274,
3,
31,
519,
52,
26,
31,
3430,
96,
345,
40,
26,
535,
3274,
3,
31,
3420,
31,
3430,
96,
21313,
535,
3274,
... |
What is Date, when Home Team is 'Luton Town'? | CREATE TABLE table_name_53 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_53 WHERE home_team = "luton town" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
1210,
2271,
19,
3,
31,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
234,
834,
11650,
3274,
96,
40,
76,
17,
106,
1511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest percentage when there are more than 361 blocks? | CREATE TABLE table_name_66 (percentage INTEGER, total_blocks INTEGER) | SELECT MAX(percentage) FROM table_name_66 WHERE total_blocks > 361 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
883,
3728,
545,
3,
21342,
17966,
6,
792,
834,
10734,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
5294,
116,
132,
33,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
792,
834,
10734,
7,
2490,
220,
4241,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was total number of civilian casualties in vilovo ? | CREATE TABLE table_204_693 (
id number,
"place" text,
"total" number,
"men" number,
"women" number,
"children" number,
"elderly" number,
"serbs" number,
"jews" number,
"romani" number,
"rusyns" number,
"hungarians" number,
"russians" number
) | SELECT "total" FROM table_204_693 WHERE "place" = 'vilovo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3951,
519,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
1499,
6,
96,
235,
1947,
121,
381,
6,
96,
904,
121,
381,
6,
96,
210,
32,
904,
121,
381,
6,
96,
25782,
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,
235,
1947,
121,
21680,
953,
834,
26363,
834,
3951,
519,
549,
17444,
427,
96,
4687,
121,
3274,
3,
31,
6372,
32,
1621,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Part 4, when Part 2 is "hljóp"? | CREATE TABLE table_name_65 (part_4 VARCHAR, part_2 VARCHAR) | SELECT part_4 FROM table_name_65 WHERE part_2 = "hljóp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
2274,
834,
591,
584,
4280,
28027,
6,
294,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2733,
6464,
116,
2733,
204,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
294,
834,
591,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
294,
834,
357,
3274,
96,
107,
40,
354,
4922,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of rounds that had draft pick 97, duncan mccoll? | CREATE TABLE table_name_62 (round VARCHAR, player VARCHAR, pick VARCHAR) | SELECT COUNT(round) FROM table_name_62 WHERE player = "duncan mccoll" AND pick < 97 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
7775,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
14419,
24,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1959,
3274,
96,
26,
202,
1608,
3,
51,
75,
3297,
40,
121,
3430,
1432,
3,
2,
3,
4327,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the smallest introduced value? | CREATE TABLE table_1081459_1 (
introduced INTEGER
) | SELECT MIN(introduced) FROM table_1081459_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
2534,
3390,
834,
536,
41,
3665,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
3665,
701,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
20322,
32,
12160,
26,
61,
21680,
953,
834,
16169,
2534,
3390,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which model of car won the most races in the 1992 season ? | CREATE TABLE table_203_271 (
id number,
"date" text,
"series" text,
"circuit" text,
"city / state" text,
"winner" text,
"team" text,
"car" text,
"report" text
) | SELECT "car" FROM table_203_271 GROUP BY "car" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2555,
536,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
10833,
7,
121,
1499,
6,
96,
15357,
21560,
121,
1499,
6,
96,
6726,
3,
87,
538,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1720,
121,
21680,
953,
834,
23330,
834,
2555,
536,
350,
4630,
6880,
272,
476,
96,
1720,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the section where gordon lee ran | CREATE TABLE table_1342393_10 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1342393_10 WHERE incumbent = "Gordon Lee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
4271,
834,
1714,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1375,
213,
281,
52,
2029,
90,
15,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2773,
4271,
834,
1714,
549,
17444,
427,
28406,
3274,
96,
517,
127,
2029,
5531,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of the game that holds a record of 80-61? | CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_69 WHERE record = "80-61" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
467,
24,
4532,
3,
9,
1368,
13,
2775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1368,
3274,
96,
2079,
18,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of types of competition?, sort the number of competition type from high to low order. | CREATE TABLE competition (
Competition_ID int,
Year real,
Competition_type text,
Country text
)
CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
)
CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points 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 COUNT(Competition_type) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
41,
15571,
834,
4309,
16,
17,
6,
2929,
490,
6,
15571,
834,
6137,
1499,
6,
6993,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7,
83,
17,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
5890,
4995,
4749,
834,
6137,
61,
309,
25067,
1... |
count the number of patients who are married and their lab test item id is 51446. | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.itemid = "51446" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the lowest mintage in a year earlier than 2005? | CREATE TABLE table_10334 (
"Year" real,
"Park" text,
"Artist" text,
"Mintage" real,
"Issue Price" text
) | SELECT MIN("Mintage") FROM table_10334 WHERE "Year" < '2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
3710,
41,
96,
476,
2741,
121,
490,
6,
96,
26163,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
12858,
6505,
121,
490,
6,
96,
196,
7,
7,
76,
15,
5312,
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,
3,
17684,
599,
121,
12858,
6505,
8512,
21680,
953,
834,
17864,
3710,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
22594,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is average age of patients whose admission type is elective and days of hospital stay is 20? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.days_stay = "20" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
1755,
121,
1,
-100,
-100,
... |
Who has a larger than 70.99 km2? | CREATE TABLE table_55276 (
"Province" text,
"Comune" text,
"Population (inh.)" real,
"Area (km\u00b2)" real,
"Total (km\u00b2)" real
) | SELECT "Comune" FROM table_55276 WHERE "Total (km\u00b2)" > '70.99' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
357,
3959,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
5890,
444,
121,
1499,
6,
96,
27773,
7830,
41,
77,
107,
5,
61,
121,
490,
6,
96,
188,
864,
41,
5848,
2,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
121,
21680,
953,
834,
3769,
357,
3959,
549,
17444,
427,
96,
3696,
1947,
41,
5848,
2,
76,
1206,
115,
7318,
121,
2490,
3,
31,
2518,
14990,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which round has an Opposing Team of manchester united? | CREATE TABLE table_name_64 (round VARCHAR, opposing_team VARCHAR) | SELECT round FROM table_name_64 WHERE opposing_team = "manchester united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
7775,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1751,
65,
46,
4495,
2748,
53,
2271,
13,
388,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
10720,
53,
834,
11650,
3274,
96,
348,
13263,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose primary disease is stemi and procedure icd9 code is 9755? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "STEMI" AND procedures.icd9_code = "9755" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
which team was the only team that was undefeated ? | CREATE TABLE table_203_654 (
id number,
"position" number,
"team" text,
"points" number,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"for" number,
"against" number,
"difference" number
) | SELECT "team" FROM table_203_654 WHERE "lost" = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4122,
591,
41,
3,
23,
26,
381,
6,
96,
4718,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
2700,
7,
121,
381,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
23330,
834,
4122,
591,
549,
17444,
427,
96,
2298,
17,
121,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the home team score when the away team is south melbourne | CREATE TABLE table_name_15 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_15 WHERE away_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
234,
372,
2604,
116,
8,
550,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many cast members had sydney walker as their fresh meat partner? | CREATE TABLE table_26419467_1 (hometown VARCHAR, fresh_meat_partner VARCHAR) | SELECT COUNT(hometown) FROM table_26419467_1 WHERE fresh_meat_partner = "Sydney Walker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4853,
4240,
3708,
834,
536,
41,
5515,
3540,
584,
4280,
28027,
6,
1434,
834,
51,
1544,
834,
12300,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4061,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5515,
3540,
61,
21680,
953,
834,
2688,
4853,
4240,
3708,
834,
536,
549,
17444,
427,
1434,
834,
51,
1544,
834,
12300,
3274,
96,
134,
63,
26,
3186,
13521,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What award was Trent Tesoro nominated for in 2007? | CREATE TABLE table_71282 (
"Year" real,
"Ceremony" text,
"Result" text,
"Award" text,
"Work" text
) | SELECT "Award" FROM table_71282 WHERE "Result" = 'nominated' AND "Year" = '2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
2577,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
49,
15,
21208,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
2239,
121,
1499,
6,
96,
12492,
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,
188,
2239,
121,
21680,
953,
834,
4450,
2577,
357,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3114,
77,
920,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
20615,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what title did he act in 1940? | CREATE TABLE table_name_65 (
title VARCHAR,
year VARCHAR
) | SELECT title FROM table_name_65 WHERE year = 1940 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
2233,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
2233,
410,
3,
88,
1810,
16,
15830,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
215,
3274,
15830,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What country was the player from who placed t3 with a score of 70-68=138? | CREATE TABLE table_48692 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_48692 WHERE "Place" = 't3' AND "Score" = '70-68=138' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3951,
357,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3707,
3951,
357,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
519,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
2518,
18,
3651,
2423,
22744,
31,
1,
-100,
-100,
-100,
... |
What is High Points, when Game is less than 10, and when High Assists is 'Chauncey Billups (8)'? | CREATE TABLE table_76273 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_76273 WHERE "Game" < '10' AND "High assists" = 'chauncey billups (8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
2555,
519,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
979,
121,
21680,
953,
834,
3959,
2555,
519,
549,
17444,
427,
96,
23055,
121,
3,
2,
3,
31,
1714,
31,
3430,
96,
21417,
13041,
121,
3274,
3,
31,
3441,
202,
565,
63,
2876,
413,
7,
3,
28007,
31,
1,
-100,
... |
What player has defensive back as the position, with a round less than 2? | CREATE TABLE table_name_19 (
player VARCHAR,
position VARCHAR,
round VARCHAR
) | SELECT player FROM table_name_19 WHERE position = "defensive back" AND round < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
1959,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
65,
11976,
223,
38,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1102,
3274,
96,
221,
23039,
15,
223,
121,
3430,
1751,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What City is the Jal hotel in? | CREATE TABLE table_4983 (
"Rank" text,
"Name" text,
"Height m (ft)" text,
"Floors" real,
"Year" real,
"City" text
) | SELECT "City" FROM table_4983 WHERE "Name" = 'jal hotel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4591,
41,
96,
22557,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
3,
51,
41,
89,
17,
61,
121,
1499,
6,
96,
11251,
127,
7,
121,
490,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
485,
121,
21680,
953,
834,
3647,
4591,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1191,
40,
1595,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the route number for santa rosa avenue | CREATE TABLE table_28021 (
"Agency" text,
"Route Number" text,
"North/East Terminal" text,
"South/West Terminal" text,
"More Information" text
) | SELECT "Route Number" FROM table_28021 WHERE "North/East Terminal" = 'Santa Rosa Avenue' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
2658,
41,
96,
188,
122,
4392,
121,
1499,
6,
96,
448,
670,
15,
7720,
121,
1499,
6,
96,
22969,
87,
25235,
22181,
121,
1499,
6,
96,
22081,
87,
19069,
22181,
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,
448,
670,
15,
7720,
121,
21680,
953,
834,
17518,
2658,
549,
17444,
427,
96,
22969,
87,
25235,
22181,
121,
3274,
3,
31,
134,
288,
9,
15641,
6916,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Win % in the Span of 2011–2013 with a Lost of less than 1? | CREATE TABLE table_name_91 (win__percentage INTEGER, span VARCHAR, lost VARCHAR) | SELECT AVG(win__percentage) FROM table_name_91 WHERE span = "2011–2013" AND lost < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
3757,
834,
834,
883,
3728,
545,
3,
21342,
17966,
6,
8438,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
8438,
3274,
96,
13907,
104,
11138,
121,
3430,
1513,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart of acc_percent from each all neutral | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT All_Neutral, ACC_Percent FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the ministries number when duration is 4 years, 4 days (1,465 days)? | CREATE TABLE table_2454 (
"N\u00ba" real,
"Cabinet (Nickname)" text,
"Took office" text,
"Left office" text,
"Duration" text,
"Coalition parties" text,
"ministers" text,
"ministries" text,
"President" text
) | SELECT "ministries" FROM table_2454 WHERE "Duration" = '4 years, 4 days (1,465 days)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
5062,
41,
96,
567,
2,
76,
1206,
115,
9,
121,
490,
6,
96,
254,
9,
12712,
17,
41,
567,
3142,
4350,
61,
121,
1499,
6,
96,
3696,
1825,
828,
121,
1499,
6,
96,
2796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7619,
7,
9000,
121,
21680,
953,
834,
2266,
5062,
549,
17444,
427,
96,
12998,
2661,
121,
3274,
3,
31,
591,
203,
6,
314,
477,
4077,
6,
591,
4122,
477,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players are from Purdue? | CREATE TABLE table_3463 (
"Round #" real,
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Player") FROM table_3463 WHERE "College" = 'Purdue' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
3891,
41,
96,
448,
32,
1106,
1713,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
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,
2847,
17161,
599,
121,
15800,
49,
8512,
21680,
953,
834,
3710,
3891,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
345,
450,
1259,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was Tony Oakey's Rd., Time when he fought against hastings rasani? | CREATE TABLE table_13104 (
"Result" text,
"Opponent" text,
"Type" text,
"Rd., Time" text,
"Date" text
) | SELECT "Rd., Time" FROM table_13104 WHERE "Opponent" = 'hastings rasani' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
15442,
41,
96,
20119,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
448,
26,
5,
6,
2900,
121,
1499,
6,
96,
308,
342,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
26,
5,
6,
2900,
121,
21680,
953,
834,
2368,
15442,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1024,
11026,
7,
28246,
29,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which wrestler lasted the least amount of time in part two of battle royal ? | CREATE TABLE table_203_277 (
id number,
"entered" number,
"wrestler" text,
"place" text,
"eliminated by" text,
"time" text
) | SELECT "wrestler" FROM table_203_277 ORDER BY "time" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
4013,
41,
3,
23,
26,
381,
6,
96,
35,
11196,
121,
381,
6,
96,
210,
6216,
1171,
121,
1499,
6,
96,
4687,
121,
1499,
6,
96,
15,
4941,
77,
920,
57,
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,
1... | [
3,
23143,
14196,
96,
210,
6216,
1171,
121,
21680,
953,
834,
23330,
834,
357,
4013,
4674,
11300,
272,
476,
96,
715,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many gold medals for bellbrook HS with less than 1 silver? | CREATE TABLE table_71150 (
"Ensemble" text,
"Gold Medals" real,
"Silver Medals" real,
"Bronze Medals" real,
"Total Medals" real
) | SELECT COUNT("Gold Medals") FROM table_71150 WHERE "Ensemble" = 'bellbrook hs' AND "Silver Medals" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
12278,
41,
96,
8532,
7,
8312,
15,
121,
1499,
6,
96,
23576,
20002,
7,
121,
490,
6,
96,
134,
173,
624,
20002,
7,
121,
490,
6,
96,
22780,
29,
776,
20002,
7,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23576,
20002,
7,
8512,
21680,
953,
834,
4450,
12278,
549,
17444,
427,
96,
8532,
7,
8312,
15,
121,
3274,
3,
31,
7708,
14370,
3,
107,
7,
31,
3430,
96,
134,
173,
624,
20002,
7,
121,
3,
2,
3,
... |
When was Blackburn Point Bridge built? | CREATE TABLE table_name_55 (built VARCHAR, name VARCHAR) | SELECT built FROM table_name_55 WHERE name = "blackburn point bridge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
16152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
1589,
7223,
4564,
6132,
1192,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1192,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
564,
3274,
96,
19699,
7223,
500,
4716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which tournament has marielle bruens for the opponent in the final? | CREATE TABLE table_name_81 (tournament VARCHAR, opponent_in_the_final VARCHAR) | SELECT tournament FROM table_name_81 WHERE opponent_in_the_final = "marielle bruens" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5892,
65,
2774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
17289,
693,
3,
9052,
35,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest pick number for the Russian Major League? | CREATE TABLE table_54541 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"League from" text
) | SELECT MIN("Pick #") FROM table_54541 WHERE "League from" = 'russian major league' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2128,
4853,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
5398,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
755,
2128,
4853,
549,
17444,
427,
96,
2796,
9,
5398,
45,
121,
3274,
3,
31,
26165,
29,
779,
5533,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What record company has robert craft conducting? | CREATE TABLE table_name_32 (
record_company VARCHAR,
conductor VARCHAR
) | SELECT record_company FROM table_name_32 WHERE conductor = "robert craft" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1368,
834,
29179,
584,
4280,
28027,
6,
3498,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1368,
349,
65,
3,
5840,
49,
17,
5449,
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,
1368,
834,
29179,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3498,
127,
3274,
96,
5840,
49,
17,
5449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the away team's score when the home team scored 16.19 (115)? | CREATE TABLE table_55231 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_55231 WHERE "Home team score" = '16.19 (115)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
357,
3341,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
3769,
357,
3341,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2938,
5,
2294,
41,
15660,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the minimum age of male patients who are 55 years old or older than that. | 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
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.age >= "55" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
3769,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Played has a Drawn of 4, and a Position of 9, and Goals Against larger than 59? | CREATE TABLE table_name_70 (played INTEGER, goals_against VARCHAR, drawn VARCHAR, position VARCHAR) | SELECT AVG(played) FROM table_name_70 WHERE drawn = 4 AND position = 9 AND goals_against > 59 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
4895,
15,
26,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
6796,
3274,
314,
3430,
1102,
3274,
668,
3430,
1766,
834,
9,
16720,
7,
17,
2490,
3,
3390,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When included ram (mib) is the model what is the sonnet? | CREATE TABLE table_3002894_4 (
sonnet VARCHAR,
model VARCHAR
) | SELECT sonnet FROM table_3002894_4 WHERE model = "Included RAM (MiB)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
2577,
4240,
834,
591,
41,
520,
1582,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
1285,
3,
2375,
41,
51,
23,
115,
61,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
520,
1582,
21680,
953,
834,
5426,
2577,
4240,
834,
591,
549,
17444,
427,
825,
3274,
96,
1570,
21418,
26,
12118,
41,
329,
23,
279,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the away team score at vfl park? | CREATE TABLE table_10202 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_10202 WHERE "Venue" = 'vfl park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
19818,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
1714,
19818,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
208,
89,
40,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the category of the touchdown atlantic? | CREATE TABLE table_name_76 (
category VARCHAR,
event_name VARCHAR
) | SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
3295,
584,
4280,
28027,
6,
605,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3295,
13,
8,
19396,
3,
31767,
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,
3295,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
605,
834,
4350,
3274,
96,
17681,
3035,
3,
31767,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was Parker Moloney's party affiliation when he was the Minister for Markets? | CREATE TABLE table_name_3 (party VARCHAR, minister VARCHAR, title VARCHAR) | SELECT party FROM table_name_3 WHERE minister = "parker moloney" AND title = "minister for markets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
8071,
584,
4280,
28027,
6,
6323,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
13156,
11019,
782,
63,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
6323,
3274,
96,
6334,
49,
3,
4641,
782,
63,
121,
3430,
2233,
3274,
96,
17791,
21,
3212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many fast laps are in 6 races with 30 points in the World Series by Nissan? | CREATE TABLE table_name_28 (fast_laps VARCHAR, points VARCHAR, series VARCHAR, races VARCHAR) | SELECT fast_laps FROM table_name_28 WHERE series = "world series by nissan" AND races = "6" AND points = "30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
11584,
834,
8478,
7,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1006,
834,
8478,
7,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
939,
3274,
96,
7276,
939,
57,
3,
29,
159,
7,
152,
121,
3430,
10879,
3274,
96,
948,
121,
3430,
979,
3274,
96,
1458,
121,
1,
-100,
-100,
-100,
... |
In 2010, how many people lived in cities with a population density of 3,965.02? | CREATE TABLE table_23509 (
"No." real,
"Barangay" text,
"Area (in km 2 )" text,
"Rank" real,
"Population (2000)" real,
"Population (2007)" real,
"Population (2010)" real,
"Population Density (2010)" text
) | SELECT "Population (2010)" FROM table_23509 WHERE "Population Density (2010)" = '3,965.02' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
4198,
41,
96,
4168,
535,
490,
6,
96,
14851,
1468,
9,
63,
121,
1499,
6,
96,
188,
864,
41,
77,
2280,
204,
3,
61,
121,
1499,
6,
96,
22557,
121,
490,
6,
96,
27773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27773,
7830,
26118,
121,
21680,
953,
834,
25174,
4198,
549,
17444,
427,
96,
27773,
7830,
3128,
7,
485,
26118,
121,
3274,
3,
31,
6355,
4314,
20734,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who played home team at the Arden Street Oval game? | CREATE TABLE table_4480 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_4480 WHERE "Venue" = 'arden street oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2079,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
3628,
2079,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
986,
35,
2815,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHat was the score for Phil Mickelson when he placed t3? | CREATE TABLE table_58930 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_58930 WHERE "Place" = 't3' AND "Player" = 'phil mickelson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3914,
1458,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
755,
3914,
1458,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
18118,
1337,
15259,
739,
31,
1,
-100,
-100,
-100,
-100,
... |
Which School did Player Tyrone Johnson attend? | CREATE TABLE table_name_41 (school VARCHAR, player VARCHAR) | SELECT school FROM table_name_41 WHERE player = "tyrone johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
6646,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1121,
410,
12387,
24652,
782,
5891,
2467,
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,
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,
496,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1959,
3274,
96,
17,
63,
52,
782,
3,
27341,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest value for runs when the average is 42.36? | CREATE TABLE table_4247 (
"Year" real,
"Matches" real,
"Innings" real,
"Not out" real,
"Runs" real,
"High Score" text,
"100" real,
"50" real,
"Average" text,
"Strike rate" text,
"Catches/Stumpings" text
) | SELECT MIN("Runs") FROM table_4247 WHERE "Average" = '42.36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
4177,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
10358,
91,
121,
490,
6,
96,
448,
202,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
202,
7,
8512,
21680,
953,
834,
4165,
4177,
549,
17444,
427,
96,
188,
624,
545,
121,
3274,
3,
31,
4165,
5,
3420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played? | CREATE TABLE table_name_43 (
position INTEGER,
played VARCHAR,
lost VARCHAR,
difference VARCHAR
) | SELECT MIN(position) FROM table_name_43 WHERE lost < 3 AND difference = "1" AND played > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1102,
3,
21342,
17966,
6,
1944,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
1750,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
4718,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1513,
3,
2,
220,
3430,
1750,
3274,
96,
536,
121,
3430,
1944,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what are the four most common procedures for patients with the age 60 or above in 2101? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND STRFTIME('%y', treatment.treatmenttime) = '2101' GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
26889,
4350,
21680,
41,
23143,
14196,
1058,
5,
26889,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
75,
536,
... |
What is the lowest number of points of any team with less than 6 draws and less than 18 matches played? | CREATE TABLE table_name_3 (points INTEGER, drawn VARCHAR, played VARCHAR) | SELECT MIN(points) FROM table_name_3 WHERE drawn < 6 AND played < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
2700,
7,
3,
21342,
17966,
6,
6796,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
979,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
6796,
3,
2,
431,
3430,
1944,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose age is less than 68 and drug code is d5w100? | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "68" AND prescriptions.formulary_drug_cd = "D5W100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What was the attendance for the game at groves stadium winston-salem, nc with a result of L 0-14? | CREATE TABLE table_40996 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Attendance") FROM table_40996 WHERE "Location" = 'groves stadium • winston-salem, nc' AND "Result" = 'l 0-14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3264,
948,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20119,
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,
2847,
17161,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
2445,
3264,
948,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
20254,
7,
14939,
1697,
1369,
4411,
18,
7,
9,
109,
51,
6,
3,
29,
75... |
What is the location for the win against Johan Mparmpagiannis? | CREATE TABLE table_name_78 (location VARCHAR, result VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_78 WHERE result = "win" AND opponent = "johan mparmpagiannis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
14836,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
21,
8,
1369,
581,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
741,
3274,
96,
3757,
121,
3430,
15264,
3274,
96,
1927,
2618,
3,
51,
1893,
1167,
6623,
14431,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian? | CREATE TABLE table_19282 (
"Series" text,
"Main presenter" text,
"Co-presenter" text,
"Comedian" text,
"UK co-presenter" text
) | SELECT COUNT("UK co-presenter") FROM table_19282 WHERE "Co-presenter" = 'Joe Swash' AND "Comedian" = 'Russell Kane' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4613,
41,
96,
12106,
7,
121,
1499,
6,
96,
21978,
29,
915,
49,
121,
1499,
6,
96,
3881,
18,
12640,
49,
121,
1499,
6,
96,
5890,
15,
8603,
121,
1499,
6,
96,
15787,
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,
2847,
17161,
599,
121,
15787,
576,
18,
12640,
49,
8512,
21680,
953,
834,
19978,
4613,
549,
17444,
427,
96,
3881,
18,
12640,
49,
121,
3274,
3,
31,
683,
32,
15,
180,
14710,
31,
3430,
96,
5890,
15,
8603,
121,
3274,
3... |
what is the director of la ronde | CREATE TABLE table_name_23 (director VARCHAR, original_title VARCHAR) | SELECT director FROM table_name_23 WHERE original_title = "la ronde" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
25982,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2090,
13,
50,
19033,
15,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
926,
834,
21869,
3274,
96,
521,
19033,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which venue hosts the Olympic Games for DNQ position? | CREATE TABLE table_name_24 (
venue VARCHAR,
competition VARCHAR,
position VARCHAR
) | SELECT venue FROM table_name_24 WHERE competition = "olympic games" AND position = "dnq" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
5669,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
9855,
8,
11548,
5880,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
2259,
3274,
96,
32,
120,
51,
6174,
1031,
121,
3430,
1102,
3274,
96,
26,
29,
1824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"? | CREATE TABLE table_name_77 (rank_points VARCHAR, event VARCHAR, shooter VARCHAR) | SELECT rank_points FROM table_name_77 WHERE event = "wc milan" AND shooter = "lalita yauhleuskaya ( aus )" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
6254,
834,
2700,
7,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
4279,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
22557,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11003,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
605,
3274,
96,
210,
75,
1337,
1618,
121,
3430,
4279,
49,
3274,
96,
521,
4250,
9,
3,
63,
402,
107,
109,
302,
18075,
9,
41,
403,
3,
61,
121,
... |
how many won 83 points for? | CREATE TABLE table_20396710_1 (won VARCHAR, points_for VARCHAR) | SELECT won FROM table_20396710_1 WHERE points_for = "83" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3288,
3708,
1714,
834,
536,
41,
210,
106,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
751,
3,
4591,
979,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
751,
21680,
953,
834,
1755,
3288,
3708,
1714,
834,
536,
549,
17444,
427,
979,
834,
1161,
3274,
96,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
I want to know the D 49 + for D 42 of d 42 | CREATE TABLE table_57563 (
"D 41 \u221a" text,
"D 42 \u221a" text,
"D 43 \u221a" text,
"D 44 \u221a" text,
"D 45 O" text,
"D 46 O" text,
"D 47 +" text,
"D 48 +" text,
"D 49 +" text,
"D 50 +" text
) | SELECT "D 49 +" FROM table_57563 WHERE "D 42 \u221a" = 'd 42 √' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
4834,
519,
41,
96,
308,
8798,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
6426,
3,
2,
76,
357,
2658,
9,
121,
1499,
6,
96,
308,
8838,
3,
2,
76,
357,
2658,
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,
308,
9526,
1768,
121,
21680,
953,
834,
3436,
4834,
519,
549,
17444,
427,
96,
308,
6426,
3,
2,
76,
357,
2658,
9,
121,
3274,
3,
31,
26,
6426,
3,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give the name of the wine with the highest score. | CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
)
CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
) | SELECT name FROM wine ORDER BY score LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
150,
381,
6,
11457,
1499,
6,
2013,
651,
1499,
6,
8319,
257,
1499,
6,
538,
1499,
6,
564,
1499,
6,
215,
381,
6,
594,
381,
6,
2604,
381,
6,
1488,
381,
6,
3281,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
2013,
4674,
11300,
272,
476,
2604,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients posses private insurance and are diagnosed with icd9 code 7140? | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.icd9_code = "7140" | [
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... |
Where is the first season that Anthony Hemingway appears? | CREATE TABLE table_11664625_2 (
no_in_season INTEGER,
directed_by VARCHAR
) | SELECT MIN(no_in_season) FROM table_11664625_2 WHERE directed_by = "Anthony Hemingway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3539,
4448,
1828,
834,
357,
41,
150,
834,
77,
834,
9476,
3,
21342,
17966,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
166,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
2596,
3539,
4448,
1828,
834,
357,
549,
17444,
427,
6640,
834,
969,
3274,
96,
188,
29,
189,
106,
63,
216,
51,
53,
1343,
121,
1,
-100,
-100,
-100,
-1... |
Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008? | CREATE TABLE table_name_50 (rider VARCHAR, year VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR) | SELECT rider FROM table_name_50 WHERE final_position___tour < 50 AND final_position___vuelta < 11 AND year < 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
4055,
49,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
804,
834,
4718,
834,
834,
834,
17,
1211,
584,
4280,
28027,
6,
804,
834,
4718,
834,
834,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2564,
52,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
804,
834,
4718,
834,
834,
834,
17,
1211,
3,
2,
943,
3430,
804,
834,
4718,
834,
834,
834,
208,
76,
15,
40,
17,
9,
3,
2,
850,
3430,
215,
3,
2,
2628,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.