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 id of the shortest trip? | CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE weather (
date text,
max_temperature_f number,
mean_temperature_f number,
min_temperature_f number,
max_dew_point_f number,
mean_dew_point_f number,
min_dew_point_f number,
max_humidity number,
mean_humidity number,
min_humidity number,
max_sea_level_pressure_inches number,
mean_sea_level_pressure_inches number,
min_sea_level_pressure_inches number,
max_visibility_miles number,
mean_visibility_miles number,
min_visibility_miles number,
max_wind_speed_mph number,
mean_wind_speed_mph number,
max_gust_speed_mph number,
precipitation_inches number,
cloud_cover number,
events text,
wind_dir_degrees number,
zip_code number
)
CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
) | SELECT id FROM trip ORDER BY duration LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
381,
6,
8659,
381,
6,
456,
834,
5522,
1499,
6,
456,
834,
6682,
834,
4350,
1499,
6,
456,
834,
6682,
834,
23,
26,
381,
6,
414,
834,
5522,
1499,
6,
414,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
23,
26,
21680,
1469,
4674,
11300,
272,
476,
8659,
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,
... |
give me the number of patients whose diagnoses short title is atrial fibrillation and procedure long title is other and unspecified coronary arteriography? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE diagnoses.short_title = "Atrial fibrillation" AND procedures.long_title = "Other and unspecified coronary arteriography" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What citation is shown for the employed years of 1970 1996? | CREATE TABLE table_name_6 (
citation VARCHAR,
employed VARCHAR
) | SELECT citation FROM table_name_6 WHERE employed = "1970–1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
3,
13903,
584,
4280,
28027,
6,
8152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
13903,
19,
2008,
21,
8,
8152,
203,
13,
7434,
6911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
13903,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
8152,
3274,
96,
2294,
2518,
104,
2294,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who used the Ford Cosworth DFV 3.0 v8 engine in rounds 3-12, with a G tire? | CREATE TABLE table_name_22 (driver VARCHAR, tyre VARCHAR, engine VARCHAR, rounds VARCHAR) | SELECT driver FROM table_name_22 WHERE engine = "ford cosworth dfv 3.0 v8" AND rounds = "3-12" AND tyre = "g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
13739,
52,
584,
4280,
28027,
6,
3,
17,
63,
60,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
14419,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1948,
3274,
96,
2590,
576,
7,
7048,
3,
26,
89,
208,
1877,
632,
3,
208,
927,
121,
3430,
14419,
3274,
96,
519,
5947,
121,
3430,
3,
17,
63,
60,
3274,
96,
122... |
Which tracking method supports MySQL databases and is named Open Web Analytics? | CREATE TABLE table_name_62 (tracking_method VARCHAR, supported_databases VARCHAR, name VARCHAR) | SELECT tracking_method FROM table_name_62 WHERE supported_databases = "mysql" AND name = "open web analytics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
17,
22499,
834,
23152,
584,
4280,
28027,
6,
3510,
834,
6757,
10925,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6418,
834,
23152,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3510,
834,
6757,
10925,
7,
3274,
96,
2258,
7,
1824,
40,
121,
3430,
564,
3274,
96,
8751,
765,
9952,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many clubs had 29 points? | CREATE TABLE table_18018248_2 (club VARCHAR, points VARCHAR) | SELECT COUNT(club) FROM table_18018248_2 WHERE points = 29 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
2606,
357,
3707,
834,
357,
41,
13442,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8122,
141,
2838,
979,
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,
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,
2847,
17161,
599,
13442,
61,
21680,
953,
834,
20829,
2606,
357,
3707,
834,
357,
549,
17444,
427,
979,
3274,
2838,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama? | CREATE TABLE table_68096 (
"Year" real,
"Group" text,
"Award" text,
"Film/Show" text,
"Result" text
) | SELECT "Group" FROM table_68096 WHERE "Result" = 'nominated' AND "Year" < '2012' AND "Film/Show" = 'east west 101' AND "Award" = 'best lead actor in a television drama' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2079,
4314,
41,
96,
476,
2741,
121,
490,
6,
96,
27247,
121,
1499,
6,
96,
188,
2239,
121,
1499,
6,
96,
371,
173,
51,
87,
134,
4067,
121,
1499,
6,
96,
20119,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27247,
121,
21680,
953,
834,
948,
2079,
4314,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3114,
77,
920,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
12172,
31,
3430,
96,
371,
173,
51,
87,
134,
4067,
121,
... |
What is thr type in Aut country? | CREATE TABLE table_name_81 (type VARCHAR, country VARCHAR) | SELECT type FROM table_name_81 WHERE country = "aut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
6137,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
189,
52,
686,
16,
1957,
17,
684,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
684,
3274,
96,
402,
17,
121,
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 Place of the Player with a +3 To par? | CREATE TABLE table_47799 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_47799 WHERE "To par" = '+3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4013,
3264,
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,
345,
11706,
121,
21680,
953,
834,
591,
4013,
3264,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
1220,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Bar graph to show minimal enr from different cname | 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)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | SELECT cName, MIN(enr) FROM College GROUP BY state | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
35,
52,
61,
21680,
1888,
350,
4630,
6880,
272,
476,
538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the three most frequent specimen test performed until 2103? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) | SELECT t1.culturesite FROM (SELECT microlab.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microlab WHERE STRFTIME('%y', microlab.culturetakentime) <= '2103' GROUP BY microlab.culturesite) AS t1 WHERE t1.c1 <= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
10547,
3585,
21680,
41,
23143,
14196,
2179,
9339,
5,
10547,
3585,
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,
... |
Which tournament had a 2010 result of A? | CREATE TABLE table_11631 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"Career Win\u2013Loss" text
) | SELECT "Tournament" FROM table_11631 WHERE "2010" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
3341,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
20159,
3341,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When did tavárez lose? | CREATE TABLE table_name_64 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_64 WHERE loss = "tavárez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
5522,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
3,
17,
9,
208,
2975,
2638,
2615,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1453,
3274,
96,
17,
9,
208,
2975,
2638,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997? | CREATE TABLE table_11827 (
"State" text,
"Preliminaries" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT "Preliminaries" FROM table_11827 WHERE "Swimsuit" < '8.948' AND "Interview" = '8.997' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
2555,
41,
96,
134,
4748,
121,
1499,
6,
96,
10572,
4941,
77,
5414,
121,
490,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10572,
4941,
77,
5414,
121,
21680,
953,
834,
20056,
2555,
549,
17444,
427,
96,
134,
210,
603,
7628,
121,
3,
2,
3,
31,
927,
5,
4240,
927,
31,
3430,
96,
17555,
4576,
121,
3274,
3,
31,
927,
14990,
940,
31,
1,
... |
What Branding does WRKO calls use? | CREATE TABLE table_10333757_1 (branding VARCHAR, calls VARCHAR) | SELECT branding FROM table_10333757_1 WHERE calls = "WRKO" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4201,
4118,
3436,
834,
536,
41,
12164,
53,
584,
4280,
28027,
6,
3088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4688,
53,
405,
3,
15472,
12725,
3088,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14282,
21680,
953,
834,
1714,
4201,
4118,
3436,
834,
536,
549,
17444,
427,
3088,
3274,
96,
15472,
12725,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who drove in races in 1949? | CREATE TABLE table_62339 (
"Year" real,
"Drivers" text,
"Team" text,
"Duration/Distance" text,
"Race Title" text,
"Championship" text
) | SELECT "Drivers" FROM table_62339 WHERE "Year" = '1949' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
519,
3288,
41,
96,
476,
2741,
121,
490,
6,
96,
20982,
52,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
12998,
2661,
87,
308,
23,
8389,
121,
1499,
6,
96,
448,
330... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
7,
121,
21680,
953,
834,
4056,
519,
3288,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3647,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who wrote episode number 28? | CREATE TABLE table_26561506_1 (
written_by VARCHAR,
no VARCHAR
) | SELECT written_by FROM table_26561506_1 WHERE no = 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4834,
1808,
5176,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
5640,
381,
2059,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2688,
4834,
1808,
5176,
834,
536,
549,
17444,
427,
150,
3274,
2059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the % (1960) of the county with a % (2040) of 3.4? | CREATE TABLE table_32672 (
"Rank" text,
"County" text,
"% (1960)" real,
"% (2000)" real,
"% (2040)" real
) | SELECT COUNT("% (1960)") FROM table_32672 WHERE "% (2040)" = '3.4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
3708,
357,
41,
96,
22557,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
1454,
2863,
3328,
61,
121,
490,
6,
96,
1454,
3,
31804,
121,
490,
6,
96,
1454,
17543,
2445,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1454,
2863,
3328,
61,
8512,
21680,
953,
834,
2668,
3708,
357,
549,
17444,
427,
96,
1454,
17543,
2445,
61,
121,
3274,
3,
31,
23204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the player from purcell, ok? | CREATE TABLE table_26916717_1 (
name VARCHAR,
home_town VARCHAR
) | SELECT name FROM table_26916717_1 WHERE home_town = "Purcell, OK" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4729,
3708,
2517,
834,
536,
41,
564,
584,
4280,
28027,
6,
234,
834,
3540,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1959,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
2688,
4729,
3708,
2517,
834,
536,
549,
17444,
427,
234,
834,
3540,
3274,
96,
345,
450,
8725,
6,
6902,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of class aa for bridgeport and 1999-2000 | CREATE TABLE table_14601528_2 (class_aA VARCHAR, class_aAA VARCHAR, Bridgeport VARCHAR, school_year VARCHAR) | SELECT COUNT(class_aA) FROM table_14601528_2 WHERE class_aAA = Bridgeport AND school_year = "1999-2000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3328,
1808,
2577,
834,
357,
41,
4057,
834,
9,
188,
584,
4280,
28027,
6,
853,
834,
9,
5498,
584,
4280,
28027,
6,
6132,
1493,
584,
4280,
28027,
6,
496,
834,
1201,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4057,
834,
9,
188,
61,
21680,
953,
834,
2534,
3328,
1808,
2577,
834,
357,
549,
17444,
427,
853,
834,
9,
5498,
3274,
6132,
1493,
3430,
496,
834,
1201,
3274,
96,
2294,
3264,
18,
13527,
121,
1,
-100,
... |
How many leaders are there in the intergiro classification in stage 20? | CREATE TABLE table_17562 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
) | SELECT COUNT("Intergiro classification") FROM table_17562 WHERE "Stage" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4834,
357,
41,
96,
134,
6505,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17555,
9427,
32,
13774,
8512,
21680,
953,
834,
2517,
4834,
357,
549,
17444,
427,
96,
134,
6505,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Outcome, when Championship is Australian Open, and when Year is before 1994? | CREATE TABLE table_name_78 (
outcome VARCHAR,
championship VARCHAR,
year VARCHAR
) | SELECT outcome FROM table_name_78 WHERE championship = "australian open" AND year < 1994 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
6138,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3387,
287,
15,
6,
116,
766... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6138,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
10183,
3274,
96,
402,
3109,
9928,
539,
121,
3430,
215,
3,
2,
7520,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Title Playoff, when League is greater than 3, and when Super Cup is less than 0? | CREATE TABLE table_name_42 (
title_playoff INTEGER,
league VARCHAR,
super_cup VARCHAR
) | SELECT MIN(title_playoff) FROM table_name_42 WHERE league > 3 AND super_cup < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2233,
834,
4895,
1647,
3,
21342,
17966,
6,
5533,
584,
4280,
28027,
6,
1355,
834,
4658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
21869,
834,
4895,
1647,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
5533,
2490,
220,
3430,
1355,
834,
4658,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the vacancy date of Dundee? | CREATE TABLE table_name_75 (
date_of_vacancy VARCHAR,
team VARCHAR
) | SELECT date_of_vacancy FROM table_name_75 WHERE team = "dundee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
833,
834,
858,
834,
29685,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
29685,
833,
13,
6393,
221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
834,
858,
834,
29685,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
372,
3274,
96,
26,
1106,
15,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In the game where they played the Pittsburgh Steelers, what was the attendance? | CREATE TABLE table_76063 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_76063 WHERE "Opponent" = 'pittsburgh steelers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
3891,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
28212,
3891,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5230,
17,
7289,
107,
2470,
277,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano? | CREATE TABLE table_62720 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Elector" FROM table_62720 WHERE "Cardinalatial title" = 'deacon of ss. cosma e damiano' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
18517,
41,
96,
21543,
127,
121,
1499,
6,
96,
345,
11706,
13,
3879,
121,
1499,
6,
96,
6936,
26,
10270,
9,
10646,
2233,
121,
1499,
6,
96,
427,
10912,
920,
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,
21543,
127,
121,
21680,
953,
834,
4056,
18517,
549,
17444,
427,
96,
6936,
26,
10270,
9,
10646,
2233,
121,
3274,
3,
31,
221,
9,
1018,
13,
3,
7,
7,
5,
3,
15790,
9,
3,
15,
10157,
20028,
31,
1,
-100,
-100,
-10... |
Which Points classification has a Trofeo Fast Team of metauro mobili-pinarello, and a Stage of 6? | CREATE TABLE table_name_85 (points_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR) | SELECT points_classification FROM table_name_85 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND stage = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
2700,
7,
834,
4057,
2420,
584,
4280,
28027,
6,
10968,
89,
15,
32,
834,
11584,
834,
11650,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
10968,
89,
15,
32,
834,
11584,
834,
11650,
3274,
96,
3493,
9,
450,
32,
11047,
23,
18,
3180,
291,
7126,
121,
3430,
1726,
3274,
96,
948,
121,
... |
Return the low and high estimates for all film markets. Show scatter chart. | CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID int,
Type text,
Market_ID int,
Year int
)
CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
)
CREATE TABLE market (
Market_ID int,
Country text,
Number_cities int
) | SELECT Low_Estimate, High_Estimate FROM film_market_estimation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
814,
834,
8809,
834,
3340,
51,
257,
41,
23621,
23,
106,
834,
4309,
16,
17,
6,
5586,
834,
14997,
23,
5058,
490,
6,
1592,
834,
14997,
23,
5058,
490,
6,
3417,
834,
4309,
16,
17,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5586,
834,
14997,
23,
5058,
6,
1592,
834,
14997,
23,
5058,
21680,
814,
834,
8809,
834,
3340,
51,
257,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the team for co-drivers of david brabham mario andretti | CREATE TABLE table_68667 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
) | SELECT "Team" FROM table_68667 WHERE "Co-Drivers" = 'david brabham mario andretti' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3539,
940,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3881,
18,
20982,
52,
7,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
3612,
102,
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,
96,
18699,
121,
21680,
953,
834,
3651,
3539,
940,
549,
17444,
427,
96,
3881,
18,
20982,
52,
7,
121,
3274,
3,
31,
26,
9,
6961,
3858,
115,
1483,
2774,
32,
11,
52,
10652,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis date of birth y axis height, and list by the bar in ascending. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
) | SELECT Date_of_Birth, Height FROM people ORDER BY Date_of_Birth | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
24231,
21680,
151,
4674,
11300,
272,
476,
7678,
834,
858,
834,
279,
23,
52,
189,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for how many days did darlene martin stay in the hospital and what was her drug route? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.days_stay, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Darlene Martin" | [
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,
14798,
5,
1135,
7,
834,
21545,
6,
7744,
7,
5,
20300,
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,
17444,
427,
14798,
5,... |
count the number of patients whose drug route is nu. | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "NU" | [
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... |
Partnering of franco ferreiro had what tournament? | CREATE TABLE table_name_20 (tournament VARCHAR, partnering VARCHAR) | SELECT tournament FROM table_name_20 WHERE partnering = "franco ferreiro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
3,
26361,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5793,
53,
13,
3,
6296,
509,
25007,
21810,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
3,
26361,
3274,
96,
6296,
509,
25007,
21810,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many apartment bookings in each year? Show me a bar chart binning booking start date by year, and I want to rank in desc by the Y. | CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
) | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings ORDER BY COUNT(booking_start_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
13355,
53,
7,
41,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3886,
834,
23,
26,
3,
21342,
17966,
6,
5038,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
4674,
11300,
272,
476,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
309,
25067,
1,
-1... |
What were the wins of 1983? | CREATE TABLE table_28451 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT "Wins" FROM table_28451 WHERE "Year" = '1983' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2128,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
121,
21680,
953,
834,
2577,
2128,
536,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Result, when Date is '2000-05-23'? | CREATE TABLE table_name_57 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_57 WHERE date = "2000-05-23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
20119,
6,
116,
7678,
19,
3,
31,
13527,
18,
3076,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
833,
3274,
96,
13527,
18,
3076,
18,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who replaced when position in table is pre-season? | CREATE TABLE table_10592536_8 (replaced_by VARCHAR, position_in_table VARCHAR) | SELECT replaced_by FROM table_10592536_8 WHERE position_in_table = "Pre-season" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
28456,
3420,
834,
927,
41,
60,
4687,
26,
834,
969,
584,
4280,
28027,
6,
1102,
834,
77,
834,
3869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
5821,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5821,
834,
969,
21680,
953,
834,
12869,
28456,
3420,
834,
927,
549,
17444,
427,
1102,
834,
77,
834,
3869,
3274,
96,
10572,
18,
9476,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Where did they play on their bye week? | CREATE TABLE table_33107 (
"Week" real,
"Kickoff" text,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"NFL.com Recap" text
) | SELECT "Game Site" FROM table_33107 WHERE "Record" = 'bye' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
18057,
41,
96,
518,
10266,
121,
490,
6,
96,
439,
3142,
1647,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
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,
23055,
3238,
121,
21680,
953,
834,
4201,
18057,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
969,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum capacity where airdrie united is? | CREATE TABLE table_11206787_5 (
capacity INTEGER,
team VARCHAR
) | SELECT MIN(capacity) FROM table_11206787_5 WHERE team = "Airdrie United" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1755,
3708,
4225,
834,
755,
41,
2614,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
2614,
213,
799,
26,
1753,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
4010,
9,
6726,
61,
21680,
953,
834,
2596,
1755,
3708,
4225,
834,
755,
549,
17444,
427,
372,
3274,
96,
20162,
26,
1753,
907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What result is found for the round that has f? | CREATE TABLE table_77386 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
) | SELECT "Result" FROM table_77386 WHERE "Round" = 'f' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
519,
3840,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
4013,
519,
3840,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When has a Tournament venue of richmond arena, and a Record of 12 1, and a Regular Season Champion(s) of virginia tech? | CREATE TABLE table_34743 (
"Year" text,
"Regular Season Champion(s)" text,
"Record" text,
"Tournament Champion" text,
"Tournament venue" text,
"Tournament city" text
) | SELECT "Year" FROM table_34743 WHERE "Tournament venue" = 'richmond arena' AND "Record" = '12–1' AND "Regular Season Champion(s)" = 'virginia tech' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
4581,
519,
41,
96,
476,
2741,
121,
1499,
6,
96,
17748,
4885,
7960,
16127,
599,
7,
61,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
382,
1211,
20205,
17,
16127,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
3710,
4581,
519,
549,
17444,
427,
96,
382,
1211,
20205,
17,
5669,
121,
3274,
3,
31,
3723,
6764,
15134,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
2122,
104,
536,
31,
3430,
96,... |
What is the gold medal count for the country with a total greater than 32 and more than 128 silvers? | CREATE TABLE table_name_53 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT AVG(gold) FROM table_name_53 WHERE total > 32 AND silver > 128 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
14910,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2045,
9365,
3476,
21,
8,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
14910,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
792,
2490,
3538,
3430,
4294,
2490,
209,
2577,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of laps when the driver is ron flockhart? | CREATE TABLE table_name_5 (
laps VARCHAR,
driver VARCHAR
) | SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
14941,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
381,
13,
14941,
7,
116,
8,
2535,
19,
3,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
2535,
3274,
96,
52,
106,
23228,
13626,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the opponent for 9 november 1991 | CREATE TABLE table_name_19 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_19 WHERE date = "9 november 1991" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
21,
668,
3,
5326,
18247,
9957,
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,
15264,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
833,
3274,
96,
1298,
3,
5326,
18247,
9957,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the Season that has the Score of 1-0? | CREATE TABLE table_name_34 (
season VARCHAR,
score VARCHAR
) | SELECT season FROM table_name_34 WHERE score = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
7960,
24,
65,
8,
17763,
13,
3,
18930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2604,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060 | CREATE TABLE table_11214212_1 (numer_of_jamaicans_granted_british_citizenship VARCHAR, naturalisation_by_marriage VARCHAR) | SELECT COUNT(numer_of_jamaicans_granted_british_citizenship) FROM table_11214212_1 WHERE naturalisation_by_marriage = 1060 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
27357,
24837,
834,
536,
41,
5525,
49,
834,
858,
834,
1191,
6840,
1608,
7,
834,
7662,
1054,
834,
2160,
17,
1273,
834,
75,
155,
23,
1847,
2009,
584,
4280,
28027,
6,
793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5525,
49,
834,
858,
834,
1191,
6840,
1608,
7,
834,
7662,
1054,
834,
2160,
17,
1273,
834,
75,
155,
23,
1847,
2009,
61,
21680,
953,
834,
2596,
27357,
24837,
834,
536,
549,
17444,
427,
793,
2121,
834,... |
What is the corresponding Akira when Milano Collection A.T is Milano (10:29)? | CREATE TABLE table_name_58 (akira VARCHAR, milano_collection_at VARCHAR) | SELECT akira FROM table_name_58 WHERE milano_collection_at = "milano (10:29)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
9,
18413,
9,
584,
4280,
28027,
6,
1337,
1618,
32,
834,
3297,
12252,
834,
144,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
9921,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
9,
18413,
9,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1337,
1618,
32,
834,
3297,
12252,
834,
144,
3274,
96,
26759,
29,
32,
11704,
10,
3166,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the branding for the station with a frequency of 93.1mhz and a callsign of DWRX? | CREATE TABLE table_name_23 (branding VARCHAR, frequency VARCHAR, callsign VARCHAR) | SELECT branding FROM table_name_23 WHERE frequency = "93.1mhz" AND callsign = "dwrx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
12164,
53,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14282,
21,
8,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14282,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
7321,
3274,
96,
1298,
18495,
51,
107,
172,
121,
3430,
580,
6732,
3274,
96,
26,
210,
52,
226,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the builder from 1930. | CREATE TABLE table_25028 (
"Date" text,
"Builder" text,
"Type" text,
"Operator" text,
"Number" text,
"Withdrawn" text,
"Status" text
) | SELECT "Builder" FROM table_25028 WHERE "Date" = '1930' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
2577,
41,
96,
308,
342,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
667,
883,
1016,
121,
1499,
6,
96,
567,
5937,
49,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24752,
49,
121,
21680,
953,
834,
11434,
2577,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2294,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What school did Conor Jackson attend? | CREATE TABLE table_name_75 (
school VARCHAR,
player VARCHAR
) | SELECT school FROM table_name_75 WHERE player = "conor jackson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
496,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
496,
410,
1193,
127,
7714,
2467,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3072,
549,
17444,
427,
1959,
3274,
96,
1018,
127,
3,
9325,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients of black/cape verdean ethnicity stayed in hospital for more than 9 days? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.days_stay > "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
16986,
427,
3,
16174,
308,
20152,
121,
3430,
14798,... |
How many month names are there for the tenth numbered month? | CREATE TABLE table_28985631_1 (
month_name VARCHAR,
numbered_month VARCHAR
) | SELECT COUNT(month_name) FROM table_28985631_1 WHERE numbered_month = "Tenth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3916,
4834,
3341,
834,
536,
41,
847,
834,
4350,
584,
4280,
28027,
6,
3,
22412,
834,
7393,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
847,
3056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7393,
834,
4350,
61,
21680,
953,
834,
2577,
3916,
4834,
3341,
834,
536,
549,
17444,
427,
3,
22412,
834,
7393,
3274,
96,
382,
35,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault? | CREATE TABLE table_name_62 (fuel_type VARCHAR, manufacturer VARCHAR, mpg_us_extra_urban VARCHAR, mpg_us_combined VARCHAR) | SELECT fuel_type FROM table_name_62 WHERE mpg_us_extra_urban > 53.5 AND mpg_us_combined > 50 AND manufacturer = "renault" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
21692,
834,
6137,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
6,
3,
1167,
122,
834,
302,
834,
25666,
834,
19413,
584,
4280,
28027,
6,
3,
1167,
122,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2914,
834,
6137,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
3,
1167,
122,
834,
302,
834,
25666,
834,
19413,
2490,
305,
9285,
3430,
3,
1167,
122,
834,
302,
834,
287,
12712,
26,
2490,
943,
3430,
4818,
3274,
96... |
What is the Apparent magnitude of a Declination (J2000) of °39′45″? | CREATE TABLE table_name_67 (apparent_magnitude INTEGER, declination___j2000__ VARCHAR) | SELECT MIN(apparent_magnitude) FROM table_name_67 WHERE declination___j2000__ = "°39′45″" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
10198,
295,
834,
7493,
29,
20341,
3,
21342,
17966,
6,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
10198,
295,
834,
7493,
29,
20341,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
3274,
96,
1956,
3288,
17774,
2128,
7079,
121,
1,
-100,
-10... |
Which team is located in Westland and was previously in the Western Lakes Activities Association? | CREATE TABLE table_52250 (
"Team" text,
"Location" text,
"Joined" real,
"Conference" text,
"Division" text,
"Previous Conference" text
) | SELECT "Team" FROM table_52250 WHERE "Previous Conference" = 'western lakes activities association' AND "Location" = 'westland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
11434,
41,
96,
18699,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
683,
32,
630,
26,
121,
490,
6,
96,
4302,
11788,
121,
1499,
6,
96,
308,
23,
6610,
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,
18699,
121,
21680,
953,
834,
5373,
11434,
549,
17444,
427,
96,
10572,
19117,
4379,
121,
3274,
3,
31,
24411,
17721,
1087,
6028,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
12425,
40,
232,
31,
1,
-100,
-10... |
Which result has sunderland as opponent? | CREATE TABLE table_name_38 (
result VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_name_38 WHERE opponent = "sunderland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
741,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
741,
65,
1997,
221,
7721,
38,
15264,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
15264,
3274,
96,
7,
7248,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the runner-up in 1901? | CREATE TABLE table_name_78 (
runner_up VARCHAR,
year VARCHAR
) | SELECT runner_up FROM table_name_78 WHERE year = "1901" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3,
10806,
834,
413,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
10806,
18,
413,
16,
29360,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
215,
3274,
96,
11776,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the home team score for the game played at Princes Park? | CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_3 WHERE venue = "princes park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
2604,
21,
8,
467,
1944,
44,
9027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
5669,
3274,
96,
12298,
2319,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of titles released by psikyo in 2004 ? | CREATE TABLE table_203_583 (
id number,
"title" text,
"release" number,
"6th gen" text,
"handheld" text,
"note" text
) | SELECT COUNT("title") FROM table_203_583 WHERE "release" = 2004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3449,
519,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
21019,
121,
381,
6,
96,
948,
189,
3,
729,
121,
1499,
6,
96,
2894,
14796,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21869,
8512,
21680,
953,
834,
23330,
834,
3449,
519,
549,
17444,
427,
96,
21019,
121,
3274,
4406,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the loss on September 2? | CREATE TABLE table_name_16 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_16 WHERE date = "september 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2298,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1453,
30,
1600,
204,
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,
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,
1453,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the Driver, when the Chassis was Bugatti T51, and when the Entrant was Automobiles Ettore Bugatti? | CREATE TABLE table_7680 (
"Driver" text,
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text
) | SELECT "Driver" FROM table_7680 WHERE "Chassis" = 'bugatti t51' AND "Entrant" = 'automobiles ettore bugatti' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
2079,
41,
96,
20982,
52,
121,
1499,
6,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
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,
20982,
52,
121,
21680,
953,
834,
3959,
2079,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
14588,
15817,
3,
17,
5553,
31,
3430,
96,
16924,
3569,
121,
3274,
3,
31,
8010,
14814,
7,
3,
15,
17,
235,
60,
... |
all mechanically ventilated patients who will be clinically suspected of having severe sepsis / septic shock | CREATE TABLE table_train_37 (
"id" int,
"severe_sepsis" bool,
"mechanical_ventilation" bool,
"surgery" bool,
"receiving_vasopressor" bool,
"sepsis" bool,
"organ_failure" bool,
"septic_shock" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_37 WHERE mechanical_ventilation = 1 AND (severe_sepsis = 1 OR septic_shock = 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4118,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
3258,
15,
834,
7,
15,
102,
7,
159,
121,
3,
12840,
40,
6,
96,
31564,
834,
2169,
173,
257,
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,
9719,
834,
4118,
549,
17444,
427,
8168,
834,
2169,
173,
257,
3274,
209,
3430,
41,
7,
3258,
15,
834,
7,
15,
102,
7,
159,
3274,
209,
4674,
3,
7,
14629,
834,
7,
19076,
3274,
8925,
1,
-100,
-1... |
What is the high checkout when Legs Won is smaller than 9, a 180s of 1, and a 3-dart Average larger than 88.36? | CREATE TABLE table_79617 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" real
) | SELECT SUM("High Checkout") FROM table_79617 WHERE "Legs Won" < '9' AND "180s" = '1' AND "3-dart Average" > '88.36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4314,
2517,
41,
96,
15800,
49,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
2796,
122,
7,
549,
106,
121,
490,
6,
96,
2796,
122,
7,
19576,
121,
490,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
21417,
1972,
670,
8512,
21680,
953,
834,
940,
4314,
2517,
549,
17444,
427,
96,
2796,
122,
7,
549,
106,
121,
3,
2,
3,
31,
1298,
31,
3430,
96,
20829,
7,
121,
3274,
3,
31,
536,
31,
3430,
96,
... |
What is every yellow jersey entry for the distance 125? | CREATE TABLE table_275506_1 (
yellow_jersey VARCHAR,
distance__km_ VARCHAR
) | SELECT yellow_jersey FROM table_275506_1 WHERE distance__km_ = "125" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3769,
5176,
834,
536,
41,
4459,
834,
12488,
7,
15,
63,
584,
4280,
28027,
6,
2357,
834,
834,
5848,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4459,
834,
12488,
7,
15,
63,
21680,
953,
834,
2555,
3769,
5176,
834,
536,
549,
17444,
427,
2357,
834,
834,
5848,
834,
3274,
96,
10124,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Tournament has a Runner(s)-up of bob charles? | CREATE TABLE table_name_49 (
tournament VARCHAR,
runner_s__up VARCHAR
) | SELECT tournament FROM table_name_49 WHERE runner_s__up = "bob charles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5892,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
65,
3,
9,
3,
23572,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
17396,
3,
4059,
965,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the notes for andre vonarburg? | CREATE TABLE table_name_24 (
notes VARCHAR,
athlete VARCHAR
) | SELECT notes FROM table_name_24 WHERE athlete = "andre vonarburg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
3358,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3358,
21,
11,
60,
193,
291,
4824,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3358,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
17893,
3274,
96,
232,
60,
193,
291,
4824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the margin in 2001 at the McDonald's LPGA Championship? | CREATE TABLE table_name_88 (
margin VARCHAR,
year VARCHAR,
championship VARCHAR
) | SELECT margin FROM table_name_88 WHERE year = 2001 AND championship = "mcdonald's lpga championship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
6346,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6346,
16,
4402,
44,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6346,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
215,
3274,
4402,
3430,
10183,
3274,
96,
51,
75,
26,
9533,
26,
31,
7,
3,
40,
102,
122,
9,
10183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which competition was held at Addis Ababa? | CREATE TABLE table_name_26 (competition VARCHAR, location VARCHAR) | SELECT competition FROM table_name_26 WHERE location = "addis ababa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2259,
47,
1213,
44,
2334,
159,
891,
8699,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1128,
3274,
96,
13039,
159,
703,
8699,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What school took 4th place in 2002? | CREATE TABLE table_11577996_1 (year VARCHAR) | SELECT 4 AS th_place FROM table_11577996_1 WHERE year = 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3436,
4440,
4314,
834,
536,
41,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
496,
808,
314,
189,
286,
16,
4407,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
314,
6157,
3,
189,
834,
4687,
21680,
953,
834,
2596,
3436,
4440,
4314,
834,
536,
549,
17444,
427,
215,
3274,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the number of locations. | CREATE TABLE Ref_locations (Id VARCHAR) | SELECT COUNT(*) FROM Ref_locations | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
14836,
7,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
381,
13,
3248,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
419,
89,
834,
14836,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Partner, when Surface is Hard, and when Score is 6 3, 7 6(0)? | CREATE TABLE table_name_94 (
partner VARCHAR,
surface VARCHAR,
score VARCHAR
) | SELECT partner FROM table_name_94 WHERE surface = "hard" AND score = "6–3, 7–6(0)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
2397,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5793,
6,
116,
18884,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
2604,
3274,
96,
948,
104,
6355,
489,
104,
948,
31862,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who scored 68-73-66=207 in South Africa? | CREATE TABLE table_45582 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_45582 WHERE "Country" = 'south africa' AND "Score" = '68-73-66=207' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3449,
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,
345,
11706,
121,
21680,
953,
834,
2128,
3449,
357,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
7,
670,
107,
24040,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
3651,
18,
4552,
18,
3539,
2423,
26426,
31,
... |
When did an away team score 32.16 (208)? | CREATE TABLE table_57784 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_57784 WHERE "Away team score" = '32.16 (208)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3940,
591,
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,
308,
342,
121,
21680,
953,
834,
3436,
3940,
591,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2668,
5,
2938,
17543,
13520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the country of Palmers Shipbuilding and Iron Company? | CREATE TABLE table_name_96 (country VARCHAR, builder VARCHAR) | SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
17529,
584,
4280,
28027,
6,
918,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
13,
23967,
7,
15508,
10905,
11,
9046,
1958,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
918,
49,
3274,
96,
6459,
5567,
4383,
10905,
11,
3575,
349,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the captain of the Gloucestershire Gladiators? | CREATE TABLE table_1869 (
"Team" text,
"Location" text,
"County" text,
"Division" text,
"Home ground" text,
"Coach" text,
"Captain" text
) | SELECT "Captain" FROM table_1869 WHERE "Team" = 'Gloucestershire Gladiators' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3951,
41,
96,
18699,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
19040,
1591,
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,
19566,
17,
9,
77,
121,
21680,
953,
834,
2606,
3951,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
517,
40,
1063,
565,
1370,
5718,
14240,
23,
6230,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778? | CREATE TABLE table_name_92 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR) | SELECT MAX(area_km_2) FROM table_name_92 WHERE status = "village" AND census_ranking = "1,442 of 5,008" AND population < 1 OFFSET 778 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
498,
834,
5848,
834,
357,
3,
21342,
17966,
6,
2074,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
23087,
834,
6254,
53,
584,
4280,
28027,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
498,
834,
5848,
834,
7318,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2637,
3274,
96,
208,
17614,
121,
3430,
23087,
834,
6254,
53,
3274,
96,
4347,
3628,
357,
13,
7836,
1206,
927,
121,
3430,
207... |
Which manufacturer has a grid of 6? | CREATE TABLE table_name_25 (manufacturer VARCHAR, grid VARCHAR) | SELECT manufacturer FROM table_name_25 WHERE grid = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
348,
76,
8717,
450,
49,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4818,
65,
3,
9,
8634,
13,
431,
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,
4818,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
8634,
3274,
96,
948,
121,
1,
-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 lowest draw number for the song ranked 6th with more than 43 points? | CREATE TABLE table_name_22 (draw INTEGER, points VARCHAR, rank VARCHAR) | SELECT MIN(draw) FROM table_name_22 WHERE points > 43 AND rank = "6th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
19489,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
3314,
381,
21,
8,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19489,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
979,
2490,
8838,
3430,
11003,
3274,
96,
948,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Stadium against Bye? | CREATE TABLE table_8904 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" text
) | SELECT "Stadium" FROM table_8904 WHERE "Opponent" = 'bye' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3914,
6348,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
9,
12925,
121,
21680,
953,
834,
3914,
6348,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
969,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Player, when Place is "T5", and when Score is "69-72=141"? | CREATE TABLE table_name_88 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_88 WHERE place = "t5" AND score = 69 - 72 = 141 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
20846,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
12387,
6,
116,
3399,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
286,
3274,
96,
17,
17395,
3430,
2604,
3274,
3,
3951,
3,
18,
9455,
3274,
3,
26059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the maximum 2010 value for China? | CREATE TABLE table_30133_3 (
economy VARCHAR
) | SELECT MAX(2010) FROM table_30133_3 WHERE economy = "China" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
22974,
834,
519,
41,
2717,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
2735,
701,
21,
1473,
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,
4800,
4,
599,
14926,
61,
21680,
953,
834,
1458,
22974,
834,
519,
549,
17444,
427,
2717,
3274,
96,
26154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which tournament was the champion nick saviano florin seg rceanu 6 3, 6 4? | CREATE TABLE table_31064 (
"Week of" text,
"Tournament" text,
"Champion" text,
"Runner-up" text,
"Semifinalists" text,
"Quarterfinalists" text
) | SELECT "Tournament" FROM table_31064 WHERE "Champion" = 'Nick Saviano Florin Segărceanu 6–3, 6–4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
4389,
41,
96,
518,
10266,
13,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
19947,
4389,
549,
17444,
427,
96,
254,
1483,
12364,
121,
3274,
3,
31,
567,
3142,
1138,
208,
20028,
24424,
15696,
98,
52,
75,
9725,
431,
104,
6355,
431,
104,
591,
31,
... |
What is the Spanish word for the French word filtrer? | CREATE TABLE table_15040_8 (spanish VARCHAR, french VARCHAR) | SELECT spanish FROM table_15040_8 WHERE french = "filtrer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
2445,
834,
927,
41,
7,
2837,
1273,
584,
4280,
28027,
6,
20609,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5093,
1448,
21,
8,
2379,
1448,
15775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8438,
1273,
21680,
953,
834,
12278,
2445,
834,
927,
549,
17444,
427,
20609,
3274,
96,
8027,
929,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who did not have any job in the past, show me about the distribution of job_id and the average of salary , and group by attribute job_id in a bar chart, and rank by the total number in ascending. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834... |
Which Points is the highest one that has a Drawn smaller than 2, and a Name of esc holzkirchen, and Played smaller than 14? | CREATE TABLE table_name_91 (points INTEGER, played VARCHAR, drawn VARCHAR, name VARCHAR) | SELECT MAX(points) FROM table_name_91 WHERE drawn < 2 AND name = "esc holzkirchen" AND played < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
2700,
7,
3,
21342,
17966,
6,
1944,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
6796,
3,
2,
204,
3430,
564,
3274,
96,
1579,
3,
13085,
16089,
29,
121,
3430,
1944,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the Non-Suited Match that has greater than 6 Number of Decks. | CREATE TABLE table_name_60 (non_suited_match VARCHAR, number_of_decks INTEGER) | SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
29,
106,
834,
10967,
834,
19515,
584,
4280,
28027,
6,
381,
834,
858,
834,
9622,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5388,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
529,
834,
10967,
834,
19515,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
381,
834,
858,
834,
9622,
7,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the booking status code and the corresponding number of bookings in a bar chart. | CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
) | SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
22360,
41,
3886,
834,
23,
26,
3,
21342,
17966,
6,
7285,
834,
4978,
3,
28027,
14296,
6,
3886,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
3886,
834,
5064,
834,
4350,
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,
5038,
834,
8547,
302,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
15970,
834,
13355,
53,
7,
350,
4630,
6880,
272,
476,
5038,
834,
8547,
302,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose admission type is urgent and insurance is government? | 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 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 WHERE demographic.admission_type = "URGENT" AND demographic.insurance = "Government" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
29441,
3274,
96,
27304,
... |
What is the average number of wins with less than 10 goals? | CREATE TABLE table_9108 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Wins") FROM table_9108 WHERE "Goals against" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4729,
4018,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
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,
71,
17217,
599,
121,
18455,
7,
8512,
21680,
953,
834,
4729,
4018,
549,
17444,
427,
96,
6221,
5405,
581,
121,
3,
2,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for how many stores are headquarted in each city?, and I want to rank by the Y in desc. | CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store_district (
Store_ID int,
District_ID int
)
CREATE TABLE product (
product_id int,
product text,
dimensions text,
dpi real,
pages_per_minute_color real,
max_page_size text,
interface text
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number_of_product_category real,
Ranking int
) | SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3939,
41,
3570,
834,
4309,
16,
17,
6,
3570,
834,
4350,
1499,
6,
3642,
19973,
15,
26,
834,
254,
485,
1499,
6,
896,
834,
27773,
7830,
490,
6,
896,
834,
188,
864,
490,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
15,
26,
834,
254,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
1078,
6157,
3,
17,
536,
3,
15355,
3162,
1078,
834,
26,
23,
20066,
6157,
3,
17,
357,
9191,
3,
17,
5411,
28719,
834,
4309,
3274,
3,
17,
441... |
What are the names of climbers and the corresponding heights of the mountains that they climb. Show bar chart. | CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
) | SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8147,
49,
41,
205,
9577,
49,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2900,
1499,
6,
4564,
7,
490,
6,
5617,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
4416,
3845,
2632,
21680,
8147,
49,
6157,
332,
536,
3,
15355,
3162,
4180,
6157,
332,
357,
9191,
332,
5411,
329,
32,
14016,
77,
834,
4309,
3274,
332,
4416,
329,
32,
14016,
77,
834,
4309,
1,
... |
Name the D 47 when it has a D 48 of d 49 and D 42 of r 42 | CREATE TABLE table_name_35 (
d_47 VARCHAR,
d_48 VARCHAR,
d_42 VARCHAR
) | SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
3,
26,
834,
4177,
584,
4280,
28027,
6,
3,
26,
834,
3707,
584,
4280,
28027,
6,
3,
26,
834,
4165,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
26,
834,
4177,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
26,
834,
3707,
3274,
96,
26,
9526,
121,
3430,
3,
26,
834,
4165,
3274,
96,
52,
6426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Departure time at Kanpur Central Station? | CREATE TABLE table_name_67 (departure VARCHAR, station_name VARCHAR) | SELECT departure FROM table_name_67 WHERE station_name = "kanpur central" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
221,
2274,
1462,
584,
4280,
28027,
6,
2478,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
374,
2274,
1462,
97,
44,
4540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12028,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2478,
834,
4350,
3274,
96,
3304,
3791,
2069,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Name has a Round smaller than 11, and a Pick of 13? | CREATE TABLE table_name_15 (
name VARCHAR,
round VARCHAR,
pick VARCHAR
) | SELECT name FROM table_name_15 WHERE round < 11 AND pick = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
564,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5570,
65,
3,
9,
9609,
2755,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1751,
3,
2,
850,
3430,
1432,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the maximum aircraft movements with airport being liverpool | CREATE TABLE table_13836704_9 (
aircraft_movements INTEGER,
airport VARCHAR
) | SELECT MAX(aircraft_movements) FROM table_13836704_9 WHERE airport = "Liverpool" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3420,
2518,
591,
834,
1298,
41,
6442,
834,
7168,
10420,
3,
21342,
17966,
6,
3761,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2411,
6442,
9780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2256,
6696,
834,
7168,
10420,
61,
21680,
953,
834,
22744,
3420,
2518,
591,
834,
1298,
549,
17444,
427,
3761,
3274,
96,
24179,
52,
13194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the away team score at princes park with a Crowd larger than 27,455? | CREATE TABLE table_11409 (
"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_11409 WHERE "Crowd" > '27,455' AND "Venue" = 'princes park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
4198,
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,
18959,
4198,
549,
17444,
427,
96,
254,
3623,
26,
121,
2490,
3,
31,
2555,
6,
2128,
755,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
12298,
2319,
2447,
31,
1,
... |
Which team has a location attendance of Air Canada Centre 19,800 with a record of 41 33? | CREATE TABLE table_5416 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_5416 WHERE "Location Attendance" = 'air canada centre 19,800' AND "Record" = '41–33' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
2938,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
5062,
2938,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
2256,
19343,
2050,
12370,
6192,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
4853,
104,
4201,
31,
1,... |
What is the least number of Gold for a Rank smaller than 5, and 1 silver medal for Poland with more than 1 medal in total? | CREATE TABLE table_name_31 (
gold INTEGER,
total VARCHAR,
nation VARCHAR,
rank VARCHAR,
silver VARCHAR
) | SELECT MIN(gold) FROM table_name_31 WHERE rank < 5 AND silver = 1 AND nation = "poland" AND total > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
2045,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
11003,
3,
2,
305,
3430,
4294,
3274,
209,
3430,
2982,
3274,
96,
3233,
232,
121,
3430,
792,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Bronze has a Gold of 2, and a Nation of slovakia, and a Total larger than 2? | CREATE TABLE table_name_53 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT MAX(bronze) FROM table_name_53 WHERE gold = 2 AND nation = "slovakia" AND total > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
13711,
776,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2045,
3274,
204,
3430,
2982,
3274,
96,
7,
5850,
11259,
9,
121,
3430,
792,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Position of the player with a Height off 188cm? | CREATE TABLE table_name_7 (position VARCHAR, height VARCHAR) | SELECT position FROM table_name_7 WHERE height = "188cm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
4718,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14258,
13,
8,
1959,
28,
3,
9,
24231,
326,
3,
25794,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3902,
3274,
96,
25794,
75,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.