NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Performer 2 has an Episode of 5? | CREATE TABLE table_name_26 (performer_2 VARCHAR, episode VARCHAR) | SELECT performer_2 FROM table_name_26 WHERE episode = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
883,
2032,
49,
834,
357,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
22871,
49,
204,
65,
46,
16112,
13,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1912,
49,
834,
357,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
5640,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose diagnosis icd9 code is 78659 and lab test category is blood gas. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "78659" AND lab."CATEGORY" = "Blood Gas" | [
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... |
tell me the total number of patients in the 498 wards until 1 year ago? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 498 AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
2239,
23,
26,
3274,
314,
3916,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
15129,
20466,
17,
715,
61,
3,
2,... |
I want to see trend of the number of creation by creation, could you list in descending by the X? | CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
) | SELECT Creation, COUNT(Creation) FROM department GROUP BY Creation ORDER BY Creation DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
819,
41,
819,
834,
4309,
16,
17,
6,
564,
1499,
6,
2170,
834,
5540,
1499,
6,
1246,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
1775,
834,
4309,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
24589,
6,
2847,
17161,
599,
254,
60,
257,
61,
21680,
3066,
350,
4630,
6880,
272,
476,
24589,
4674,
11300,
272,
476,
24589,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the result for Boston's road team in game 4? | CREATE TABLE table_name_73 (result VARCHAR, road_team VARCHAR, game VARCHAR) | SELECT result FROM table_name_73 WHERE road_team = "boston" AND game = "game 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
1373,
834,
11650,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1373,
834,
11650,
3274,
96,
115,
32,
4411,
121,
3430,
467,
3274,
96,
7261,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the original team that was Hired by Trump (5-19-2005)? | CREATE TABLE table_name_84 (
original_team VARCHAR,
result VARCHAR
) | SELECT original_team FROM table_name_84 WHERE result = "hired by trump (5-19-2005)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
926,
834,
11650,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
926,
372,
24,
47,
19377,
26,
57,
2523,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
11650,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
741,
3274,
96,
9288,
15,
26,
57,
3,
2666,
1167,
9209,
4481,
18,
22594,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the order number that has Aretha Franklin as the original artist? | CREATE TABLE table_75717 (
"Week #" text,
"Theme" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Order #" FROM table_75717 WHERE "Original artist" = 'aretha franklin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
940,
2517,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395,
588,
1713,
121,
1499,
6,
96,
2011... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7395,
588,
1713,
121,
21680,
953,
834,
3072,
940,
2517,
549,
17444,
427,
96,
667,
3380,
10270,
2377,
121,
3274,
3,
31,
355,
189,
9,
3,
6296,
20529,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the highest lowest number of capacity that ibrox stadium has when the average is larger than 49,143? | CREATE TABLE table_name_67 (lowest INTEGER, stadium VARCHAR, average VARCHAR) | SELECT MAX(lowest) FROM table_name_67 WHERE stadium = "ibrox stadium" AND average > 49 OFFSET 143 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
3216,
222,
3,
21342,
17966,
6,
14939,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
7402,
381,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3216,
222,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
14939,
3274,
96,
23,
5702,
226,
14939,
121,
3430,
1348,
2490,
9526,
3,
15316,
20788,
3,
25133,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize a bar chart for what are the names and account balances of customers with the letter 'a' in their names? | CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
) | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
123,
7,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
3,
6004,
834,
6137,
3,
4059,
14296,
6,
3,
6004,
834,
3849,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
123,
7,
17,
834,
4350,
6,
3,
6004,
834,
3849,
21680,
884,
549,
17444,
427,
123,
7,
17,
834,
4350,
8729,
9914,
3,
31,
1454,
9,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of divorced patients with 2182-12-31 17:20:00 as the lab test chart time. | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.charttime = "2182-12-31 17:20:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For opponent is sandra kristjánsdóttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team. | CREATE TABLE table_27877656_7 (opponent_team VARCHAR, opponent VARCHAR, edition VARCHAR, outcome VARCHAR) | SELECT opponent_team FROM table_27877656_7 WHERE edition = "2009 Europe/Africa Group IIIB" AND outcome = "Winner" AND opponent = "Sandra Kristjánsdóttir" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4225,
3959,
4834,
834,
940,
41,
32,
102,
9977,
834,
11650,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
4182,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
834,
11650,
21680,
953,
834,
2555,
4225,
3959,
4834,
834,
940,
549,
17444,
427,
4182,
3274,
96,
16660,
1740,
87,
29596,
1531,
6289,
279,
121,
3430,
6138,
3274,
96,
18455,
687,
121,
3430,
15264,
3274,
96,
134,
1... |
On what date were there 50,324 votes? | CREATE TABLE table_name_78 (
date VARCHAR,
votes VARCHAR
) | SELECT date FROM table_name_78 WHERE votes = "50,324" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
833,
584,
4280,
28027,
6,
11839,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
130,
132,
943,
6,
519,
2266,
11839,
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,
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,
3940,
549,
17444,
427,
11839,
3274,
96,
1752,
6,
2668,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the catalog number for the January 25, 1987 release? | CREATE TABLE table_69783 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Catalog" FROM table_69783 WHERE "Date" = 'january 25, 1987' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3940,
519,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
18610,
9,
2152,
121,
21680,
953,
834,
3951,
3940,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7066,
76,
1208,
14105,
12701,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the High points when date was February 11? | CREATE TABLE table_name_55 (high_points VARCHAR, date VARCHAR) | SELECT high_points FROM table_name_55 WHERE date = "february 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1592,
979,
116,
833,
47,
2083,
850,
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,
306,
834,
2700,
7,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
WHAT IS THE SCORE FOR GREG NORMAN? | CREATE TABLE table_name_29 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_29 WHERE player = "greg norman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
6508,
20888,
5652,
3,
8727,
8579,
3,
24833,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1959,
3274,
96,
18301,
7982,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
specific orbital energy of 29.8 mj/kg has what orbit? | CREATE TABLE table_37864 (
"orbit" text,
"center-to-center distance" text,
"altitude above the Earth's surface" text,
"Orbital period" text,
"specific orbital energy" text
) | SELECT "orbit" FROM table_37864 WHERE "specific orbital energy" = '−29.8 mj/kg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
4389,
41,
96,
127,
2360,
121,
1499,
6,
96,
13866,
18,
235,
18,
13866,
2357,
121,
1499,
6,
96,
138,
6592,
756,
8,
4030,
31,
7,
1774,
121,
1499,
6,
96,
7395,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
127,
2360,
121,
21680,
953,
834,
519,
3940,
4389,
549,
17444,
427,
96,
9500,
15607,
138,
827,
121,
3274,
3,
31,
2,
3166,
5,
927,
3,
51,
354,
87,
8711,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27? | CREATE TABLE table_29178 (
"Rank" real,
"Rider" text,
"Sat 21 Aug" text,
"Mon 23 Aug" text,
"Tues 24 Aug" text,
"Wed 25 Aug" text,
"Thurs 26 Aug" text,
"Fri 27 Aug" text,
"Sat 28 Aug" text
) | SELECT "Fri 27 Aug" FROM table_29178 WHERE "Tues 24 Aug" = '20'' 49.46 108.709mph' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
27640,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
134,
144,
1401,
6128,
121,
1499,
6,
96,
9168,
1902,
6128,
121,
1499,
6,
96,
382,
76,
15,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
52,
23,
2307,
6128,
121,
21680,
953,
834,
3166,
27640,
549,
17444,
427,
96,
382,
76,
15,
7,
997,
6128,
121,
3274,
3,
31,
1755,
31,
31,
9526,
5,
4448,
3,
16169,
5,
2518,
1298,
7656,
31,
1,
-100,
-100,
... |
Find the number of trains for each station, as well as the station network name and services. | CREATE TABLE route (
train_id number,
station_id number
)
CREATE TABLE station (
id number,
network_name text,
services text,
local_authority text
)
CREATE TABLE weekly_weather (
station_id number,
day_of_week text,
high_temperature number,
low_temperature number,
precipitation number,
wind_speed_mph number
)
CREATE TABLE train (
id number,
train_number number,
name text,
origin text,
destination text,
time text,
interval text
) | SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2981,
41,
2412,
834,
23,
26,
381,
6,
2478,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
381,
6,
1229,
834,
4350,
1499,
6,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
3,
17,
5411,
1582,
1981,
834,
4350,
6,
3,
17,
5411,
5114,
7,
21680,
2478,
6157,
3,
17,
536,
3,
15355,
3162,
2981,
6157,
3,
17,
357,
9191,
3,
17,
5411,
23,
26,
3274,
3,
17,
4416,
66... |
How many people attended the Away team of middlesbrough? | CREATE TABLE table_name_67 (attendance VARCHAR, away_team VARCHAR) | SELECT COUNT(attendance) FROM table_name_67 WHERE away_team = "middlesbrough" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
15116,
663,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
71,
1343,
372,
13,
2214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6983,
26,
965,
115,
13245,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many companies have Postermobile Limited as a parent company? | CREATE TABLE table_1756264_2 (company_name VARCHAR, parent__holding__company VARCHAR) | SELECT COUNT(company_name) FROM table_1756264_2 WHERE parent__holding__company = "POSTERMOBILE LIMITED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4834,
26755,
834,
357,
41,
29179,
834,
4350,
584,
4280,
28027,
6,
4208,
834,
834,
21647,
834,
834,
29179,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29179,
834,
4350,
61,
21680,
953,
834,
2517,
4834,
26755,
834,
357,
549,
17444,
427,
4208,
834,
834,
21647,
834,
834,
29179,
3274,
96,
16034,
5946,
5365,
279,
20129,
31351,
121,
1,
-100,
-100,
-100,
... |
how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs | CREATE TABLE table_11318462_5 (
crew VARCHAR,
open_1st_viii VARCHAR,
u15_3rd_iv VARCHAR,
u15_1st_iv VARCHAR
) | SELECT COUNT(crew) FROM table_11318462_5 WHERE u15_3rd_iv = "BGS" AND u15_1st_iv = "ACGS" AND open_1st_viii = "ACGS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
25987,
4056,
834,
755,
41,
4627,
584,
4280,
28027,
6,
539,
834,
536,
7,
17,
834,
14553,
23,
584,
4280,
28027,
6,
3,
76,
1808,
834,
519,
52,
26,
834,
23,
208,
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,
5045,
210,
61,
21680,
953,
834,
20522,
25987,
4056,
834,
755,
549,
17444,
427,
3,
76,
1808,
834,
519,
52,
26,
834,
23,
208,
3274,
96,
279,
8256,
121,
3430,
3,
76,
1808,
834,
536,
7,
17,
834,
23... |
What is the total number of teams founded that were left in 1976? | CREATE TABLE table_6785 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text,
"Left" text,
"Current Conference" text
) | SELECT SUM("Founded") FROM table_6785 WHERE "Left" = '1976' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4433,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
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,
180,
6122,
599,
121,
20100,
8512,
21680,
953,
834,
3708,
4433,
549,
17444,
427,
96,
2796,
89,
17,
121,
3274,
3,
31,
2294,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the score when watford was the away team? | CREATE TABLE table_name_59 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_59 WHERE away_team = "watford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
116,
8036,
17,
2590,
47,
8,
550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
550,
834,
11650,
3274,
96,
210,
144,
2590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
adult patients, > / = 18 years of age | CREATE TABLE table_dev_50 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"hba1c" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_dev_50 WHERE age >= 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
1752,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
3,
12660,
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,
1429,
21680,
953,
834,
9776,
834,
1752,
549,
17444,
427,
1246,
2490,
2423,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who had the pole position in the August 15, 1981 race? | CREATE TABLE table_22765887_1 (
pole_position VARCHAR,
date VARCHAR
) | SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3959,
3449,
4225,
834,
536,
41,
11148,
834,
4718,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
11148,
1102,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11148,
834,
4718,
21680,
953,
834,
2884,
3959,
3449,
4225,
834,
536,
549,
17444,
427,
833,
3274,
96,
26579,
10725,
15465,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the post position when the lengths behind is 0? | CREATE TABLE table_name_74 (
post_position INTEGER,
lengths_behind VARCHAR
) | SELECT AVG(post_position) FROM table_name_74 WHERE lengths_behind = "0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
442,
834,
4718,
3,
21342,
17966,
6,
2475,
7,
834,
346,
2907,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
442,
1102,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
5950,
834,
4718,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2475,
7,
834,
346,
2907,
26,
3274,
96,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the title of the episode with the director pamela fryman and the production code 2alh07? | CREATE TABLE table_26701861_1 (
title VARCHAR,
director VARCHAR,
production_code VARCHAR
) | SELECT title FROM table_26701861_1 WHERE director = "Pamela Fryman" AND production_code = "2ALH07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2518,
2606,
4241,
834,
536,
41,
2233,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2688,
2518,
2606,
4241,
834,
536,
549,
17444,
427,
2090,
3274,
96,
345,
9,
2341,
9,
377,
651,
348,
121,
3430,
999,
834,
4978,
3274,
96,
357,
4090,
566,
4560,
121,
1,
-100,
-100,
-100,
-100,
... |
Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against? | CREATE TABLE table_name_87 (lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR) | SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = "37" AND goals_against < 63 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
2298,
17,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
979,
834,
536,
584,
4280,
28027,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1102,
2490,
305,
3430,
979,
834,
536,
3274,
96,
4118,
121,
3430,
1766,
834,
9,
16720,
7,
17,
3,
2,
3,
3891,
1,
-100,
-100,
-100,
-... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the last_name , display in asc by the X-axis. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
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 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 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)
) | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
174... |
What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb of more than 1, and a 12-inch smaller than 8? | CREATE TABLE table_41095 (
"Ship" text,
"13.5-inch/1400lb" real,
"13.5-inch/1250lb" real,
"12-inch" real,
"Total" real
) | SELECT MIN("13.5-inch/1400lb") FROM table_41095 WHERE "13.5-inch/1250lb" > '1' AND "12-inch" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
3301,
41,
96,
134,
10462,
121,
1499,
6,
96,
536,
9285,
18,
4976,
14785,
5548,
40,
115,
121,
490,
6,
96,
536,
9285,
18,
4976,
18009,
1752,
40,
115,
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,
3,
17684,
599,
121,
536,
9285,
18,
4976,
14785,
5548,
40,
115,
8512,
21680,
953,
834,
24175,
3301,
549,
17444,
427,
96,
536,
9285,
18,
4976,
18009,
1752,
40,
115,
121,
2490,
3,
31,
536,
31,
3430,
96,
2122,
18,
497... |
Name the most win % for 13 drawn | CREATE TABLE table_name_91 (win__percentage INTEGER, drawn VARCHAR) | SELECT MAX(win__percentage) FROM table_name_91 WHERE drawn = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
3757,
834,
834,
883,
3728,
545,
3,
21342,
17966,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
1369,
3,
1454,
21,
1179,
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,
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,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
6796,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the party affiliation of New York 26? | CREATE TABLE table_1805191_33 (
party VARCHAR,
district VARCHAR
) | SELECT party FROM table_1805191_33 WHERE district = "New York 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
5553,
4729,
834,
4201,
41,
1088,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1088,
24405,
13,
368,
1060,
2208,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
20829,
5553,
4729,
834,
4201,
549,
17444,
427,
3939,
3274,
96,
6861,
1060,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where is the position of sG from? | CREATE TABLE table_47225 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
) | SELECT "From" FROM table_47225 WHERE "Position" = 'sg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
20489,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22674,
121,
21680,
953,
834,
4177,
20489,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
7,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year with a label-Nr of st-43? | CREATE TABLE table_66391 (
"Year" real,
"Title" text,
"Type" text,
"Label" text,
"Label-Nr" text
) | SELECT MIN("Year") FROM table_66391 WHERE "Label-Nr" = 'st-43' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3288,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
434,
10333,
18,
567,
52,
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,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3539,
3288,
536,
549,
17444,
427,
96,
434,
10333,
18,
567,
52,
121,
3274,
3,
31,
7,
17,
18,
4906,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In 1988, what Metro Champion had a Runner-up of Memphis State? | CREATE TABLE table_name_73 (metro_champion VARCHAR, runner_up VARCHAR, year VARCHAR) | SELECT metro_champion FROM table_name_73 WHERE runner_up = "memphis state" AND year = 1988 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
51,
15252,
834,
17788,
12364,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12810,
834,
17788,
12364,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
526,
7656,
159,
538,
121,
3430,
215,
3274,
10414,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which team scored the most points in 2008 ? | CREATE TABLE table_203_636 (
id number,
"#" number,
"date" text,
"winner" text,
"score" text,
"location" text,
"notes" text
) | SELECT "winner" FROM table_203_636 WHERE "date" = 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
948,
3420,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
3757,
687,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
14836,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3757,
687,
121,
21680,
953,
834,
23330,
834,
948,
3420,
549,
17444,
427,
96,
5522,
121,
3274,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the athens xi where dada xi b is strikers fc? | CREATE TABLE table_28759261_5 (
athens_xi VARCHAR,
dadar_xi_‘b’ VARCHAR
) | SELECT athens_xi FROM table_28759261_5 WHERE dadar_xi_‘b’ = "Strikers FC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3072,
4508,
4241,
834,
755,
41,
44,
3225,
7,
834,
226,
23,
584,
4280,
28027,
6,
7370,
291,
834,
226,
23,
834,
5174,
115,
22,
584,
4280,
28027,
3,
61,
3,
32102,
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,
44,
3225,
7,
834,
226,
23,
21680,
953,
834,
2577,
3072,
4508,
4241,
834,
755,
549,
17444,
427,
7370,
291,
834,
226,
23,
834,
5174,
115,
22,
3274,
96,
11500,
10109,
7,
7914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the team where winnings is $81,690? | CREATE TABLE table_1708014_2 (team_s_ VARCHAR, winnings VARCHAR) | SELECT team_s_ FROM table_1708014_2 WHERE winnings = "$81,690" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
2079,
2534,
834,
357,
41,
11650,
834,
7,
834,
584,
4280,
28027,
6,
3447,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
372,
213,
3447,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
7,
834,
21680,
953,
834,
536,
2518,
2079,
2534,
834,
357,
549,
17444,
427,
3447,
7,
3274,
96,
3229,
4959,
6,
948,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which country and state does staff with first name as Janessa and last name as Sawayn lived? | CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) | SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13246,
15,
7,
41,
17529,
584,
4280,
28027,
6,
538,
834,
1409,
2494,
565,
834,
13362,
63,
584,
4280,
28027,
6,
1115,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17529,
6,
332,
5411,
5540,
834,
1409,
2494,
565,
834,
13362,
63,
21680,
13246,
15,
7,
6157,
332,
536,
3,
15355,
3162,
10071,
6157,
332,
357,
9191,
332,
5411,
9,
26,
12039,
834,
23,
26,
3274,
332,
4416,
... |
What is the saturated fat with a total fat of 100g and 11g of polyunsaturated fat? | CREATE TABLE table_63510 (
"Total fat" text,
"Saturated fat" text,
"Monounsaturated fat" text,
"Polyunsaturated fat" text,
"Smoke point" text
) | SELECT "Saturated fat" FROM table_63510 WHERE "Total fat" = '100g' AND "Polyunsaturated fat" = '11g' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
25926,
41,
96,
3696,
1947,
2886,
121,
1499,
6,
96,
134,
6010,
920,
2886,
121,
1499,
6,
96,
9168,
32,
202,
7,
6010,
920,
2886,
121,
1499,
6,
96,
8931,
63,
202,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
6010,
920,
2886,
121,
21680,
953,
834,
3891,
25926,
549,
17444,
427,
96,
3696,
1947,
2886,
121,
3274,
3,
31,
2915,
122,
31,
3430,
96,
8931,
63,
202,
7,
6010,
920,
2886,
121,
3274,
3,
31,
2596,
122,
31,
... |
What amount of senior high school where junior high school is 114cm? | CREATE TABLE table_13555999_1 (
senior_high_school__15_18_yrs_ VARCHAR,
junior_high_school__12_15_yrs_ VARCHAR
) | SELECT senior_high_school__15_18_yrs_ FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = "114cm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
28803,
19446,
834,
536,
41,
2991,
834,
6739,
834,
6646,
834,
834,
1808,
834,
2606,
834,
63,
52,
7,
834,
584,
4280,
28027,
6,
9212,
834,
6739,
834,
6646,
834,
834,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2991,
834,
6739,
834,
6646,
834,
834,
1808,
834,
2606,
834,
63,
52,
7,
834,
21680,
953,
834,
2368,
28803,
19446,
834,
536,
549,
17444,
427,
9212,
834,
6739,
834,
6646,
834,
834,
2122,
834,
1808,
834,
63,
52,
7,
83... |
What is the score of the game on 8 Sep 1990? | CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_92 WHERE date = "8 sep 1990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
467,
30,
505,
12219,
5541,
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,
2604,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
833,
3274,
96,
927,
142,
102,
5541,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When the venue is victoria park, what's the largest Crowd that attended? | CREATE TABLE table_77871 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_77871 WHERE "Venue" = 'victoria park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4225,
536,
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,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
4013,
4225,
536,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
7287,
3600,
9,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose admission type is newborn and item id is 50964? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "NEWBORN" AND lab.itemid = "50964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the venue of Fracture of acrylic bone cement ? | CREATE TABLE field (
fieldid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
) | SELECT DISTINCT venueid FROM paper WHERE title = 'Fracture of acrylic bone cement' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1057,
41,
1057,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
1846,
41,
1057,
23,
26,
16,
17,
6,
1040,
23,
26,
16,
17,
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,
3,
15438,
25424,
6227,
5669,
23,
26,
21680,
1040,
549,
17444,
427,
2233,
3274,
3,
31,
371,
3738,
2693,
13,
16683,
6817,
12965,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Poll Source, when Democrat: Carl Levin is 61%? | CREATE TABLE table_44558 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Carl Levin" text,
"Republican: Jack Hoogendyk" text,
"Lead Margin" real
) | SELECT "Poll Source" FROM table_44558 WHERE "Democrat: Carl Levin" = '61%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
3449,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
19679,
10,
7291,
16755,
29,
121,
1499,
6,
96,
1649,
15727,
152,
10,
4496,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8931,
40,
9149,
121,
21680,
953,
834,
591,
2128,
3449,
549,
17444,
427,
96,
19679,
10,
7291,
16755,
29,
121,
3274,
3,
31,
948,
4704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name of the department with the most students enrolled? | CREATE TABLE course (
crs_code text,
dept_code text,
crs_description text,
crs_credit number
)
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class text,
stu_gpa number,
stu_transfer number,
dept_code text,
stu_phone text,
prof_num number
)
CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE professor (
emp_num number,
dept_code text,
prof_office text,
prof_extension text,
prof_high_degree text
)
CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcode text,
emp_hiredate time,
emp_dob time
)
CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
) | SELECT T4.dept_name FROM class AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
5764,
7,
834,
4978,
1499,
6,
20,
102,
17,
834,
4978,
1499,
6,
5764,
7,
834,
221,
11830,
1499,
6,
5764,
7,
834,
15547,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
7984,
26,
6707,
834,
4350,
21680,
853,
6157,
332,
536,
3,
15355,
3162,
17990,
6157,
332,
357,
9191,
332,
5411,
4057,
834,
4978,
3274,
332,
4416,
4057,
834,
4978,
3,
15355,
3162,
503,
6157,
332,
519,
9191,
332,
... |
Draw a scatter chart about the correlation between Team_ID and ACC_Percent , and group by attribute All_Road. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position. | CREATE TABLE table_name_46 (
college VARCHAR,
position VARCHAR,
overall VARCHAR,
round VARCHAR
) | SELECT college FROM table_name_46 WHERE overall > 187 AND round < 7 AND position = "defensive end" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
1900,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1879,
2490,
3,
25828,
3430,
1751,
3,
2,
489,
3430,
1102,
3274,
96,
221,
23039,
15,
414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the diagnostic cost in s/p maze procedure? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 's/p maze procedure') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
25930,
4844,
159,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
23,
... |
A bar chart shows the distribution of meter_400 and meter_100 . | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
) | SELECT meter_400, meter_100 FROM swimmer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
5548,
6,
3,
4401,
834,
2915,
21680,
27424,
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,
-... |
List the last name of the students who do not have any food type allergy and count them in a bart chart. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT LName, COUNT(LName) FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.AllergyType = "food") GROUP BY LName | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
23954,
6,
2847,
17161,
599,
434,
23954,
61,
21680,
6341,
549,
17444,
427,
4486,
3,
13076,
4309,
3388,
41,
23143,
14196,
332,
5411,
13076,
4309,
21680,
4498,
834,
6838,
49,
122,
63,
6157,
332,
536,
3,
15355,
3162,... |
Name the rdiers for jir team scot motogp | CREATE TABLE table_15327489_1 (
riders VARCHAR,
team_name VARCHAR
) | SELECT riders FROM table_15327489_1 WHERE team_name = "JiR Team Scot MotoGP" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2668,
4581,
3914,
834,
536,
41,
14149,
584,
4280,
28027,
6,
372,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
52,
26,
4518,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14149,
21680,
953,
834,
1808,
2668,
4581,
3914,
834,
536,
549,
17444,
427,
372,
834,
4350,
3274,
96,
683,
23,
448,
2271,
10711,
17,
18668,
8049,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of job_id and the sum of salary , and group by attribute job_id in a bar chart, list X in asc order. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE 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 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)
)
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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
3,
2... |
What is the name of the song that was released in the most recent year? | CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
) | SELECT song_name, releasedate FROM song ORDER BY releasedate DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
3,
89,
834,
23,
26,
381,
6,
2377,
834,
4350,
1499,
6,
1042,
834,
7991,
1499,
6,
8659,
1499,
6,
10874,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2324,
834,
4350,
6,
1883,
342,
21680,
2324,
4674,
11300,
272,
476,
1883,
342,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Campanius term for an Unami Delaware term of pal naxk? | CREATE TABLE table_52527 (
"Munsee Delaware" text,
"Unami Delaware" text,
"De Laet (1633)" text,
"Campanius (ca. 1645)" text,
"Interpreter (1684?)" text,
"Thomas (1698)" text
) | SELECT "Campanius (ca. 1645)" FROM table_52527 WHERE "Unami Delaware" = 'palé·naxk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
2555,
41,
96,
329,
202,
2338,
19722,
121,
1499,
6,
96,
5110,
3690,
19722,
121,
1499,
6,
96,
2962,
325,
15,
17,
19198,
4201,
61,
121,
1499,
6,
96,
24626,
9,
229... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24626,
9,
22901,
41,
658,
5,
898,
2128,
61,
121,
21680,
953,
834,
755,
1828,
2555,
549,
17444,
427,
96,
5110,
3690,
19722,
121,
3274,
3,
31,
6459,
154,
2,
29,
9,
226,
157,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is Year(s) Won, when Total is '145', and when Country is 'United States'? | CREATE TABLE table_60892 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT "Year(s) won" FROM table_60892 WHERE "Total" = '145' AND "Country" = 'united states' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3914,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
599,
7,
61,
751,
121,
21680,
953,
834,
3328,
3914,
357,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
20987,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
1,
-100,
-100... |
what is the winner name and team for the copa am rica de ciclismo race ? | CREATE TABLE table_204_48 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" text,
"winner" text,
"team" text
) | SELECT "winner", "team" FROM table_204_48 WHERE "race name" = 'copa america de ciclismo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3707,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
12614,
564,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
6809,
5773,
121,
1499,
6,
96,
3757,
687,
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,
3757,
687,
1686,
96,
11650,
121,
21680,
953,
834,
26363,
834,
3707,
549,
17444,
427,
96,
12614,
564,
121,
3274,
3,
31,
10845,
9,
3,
23064,
20,
25506,
159,
51,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Car Model has the Manufacturer of Saab, and Driver Dean Randle? | CREATE TABLE table_name_35 (
car_model VARCHAR,
manufacturer VARCHAR,
driver VARCHAR
) | SELECT car_model FROM table_name_35 WHERE manufacturer = "saab" AND driver = "dean randle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
443,
834,
21770,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1184,
5154,
65,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
443,
834,
21770,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
4818,
3274,
96,
7,
9,
9,
115,
121,
3430,
2535,
3274,
96,
221,
152,
4037,
26,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who published the most papers in 2007 at CVPR ? | CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
) | SELECT DISTINCT COUNT(paper.paperid), writes.authorid FROM paper, venue, writes WHERE paper.year = 2007 AND venue.venueid = paper.venueid AND venue.venuename = 'CVPR' AND writes.paperid = paper.paperid GROUP BY writes.authorid ORDER BY COUNT(paper.paperid) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5669,
41,
5669,
23,
26,
16,
17,
6,
5669,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
41,
2291,
23,
26,
16,
17,
6,
2291,
4350,
3,
4331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
19587,
5,
19587,
23,
26,
201,
11858,
5,
17415,
23,
26,
21680,
1040,
6,
5669,
6,
11858,
549,
17444,
427,
1040,
5,
1201,
3274,
4101,
3430,
5669,
5,
15098,
23,
26,
3274,
1040,
... |
calculate the average age of male patients who died before 2173. | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.dod_year < "2173.0" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
96,
2658,
4552,
5,
632,
121,
1,
-100,
-100,
-100,
-10... |
What was the attendance at the post-week 7 game against the San Diego Chargers? | CREATE TABLE table_12814 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Attendance" FROM table_12814 WHERE "Week" > '7' AND "Opponent" = 'san diego chargers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2577,
2534,
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,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
536,
2577,
2534,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
940,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
7,
152,
67,
839,
17020,
7,
31,
1,
-100,... |
What is the name of the Covered Song when the Album shows cover version iii? | CREATE TABLE table_name_7 (covered_song VARCHAR, album VARCHAR) | SELECT covered_song FROM table_name_7 WHERE album = "cover version iii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
28161,
834,
7,
2444,
584,
4280,
28027,
6,
2306,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
5620,
15,
26,
11263,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2303,
834,
7,
2444,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2306,
3274,
96,
9817,
988,
3,
23,
23,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the highest game for west (8) high assists | CREATE TABLE table_name_35 (
game INTEGER,
high_assists VARCHAR
) | SELECT MAX(game) FROM table_name_35 WHERE high_assists = "west (8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
467,
3,
21342,
17966,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2030,
467,
21,
4653,
3,
28007,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
12425,
3,
28007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the role in the chipmunk adventure? | CREATE TABLE table_42448 (
"Year" real,
"Title" text,
"Producer" text,
"Actor" text,
"Role" text
) | SELECT "Role" FROM table_42448 WHERE "Title" = 'the chipmunk adventure' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
3707,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3174,
4817,
49,
121,
1499,
6,
96,
188,
5317,
121,
1499,
6,
96,
448,
32,
109,
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,
448,
32,
109,
121,
21680,
953,
834,
591,
2266,
3707,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
532,
6591,
51,
6513,
4472,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
caculate the minimum age of those married patients for whom info regarding admission location is not available | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admission_location = "** INFO NOT AVAILABLE **" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
19844,
3,
29478,
4486... |
who was the first person of the race to break the nine minute mark ? | CREATE TABLE table_204_849 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text
) | SELECT "name" FROM table_204_849 WHERE "time" >= 9 ORDER BY "rank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3647,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
927,
3647,
549,
17444,
427,
96,
715,
121,
2490,
2423,
668,
4674,
11300,
272,
476,
96,
6254,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the second leg with an agg of 4-6? | CREATE TABLE table_name_50 (
agg VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_50 WHERE agg = "4-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
3,
9,
4102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
511,
4553,
28,
46,
3,
9,
4102,
13,
3,
20445,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
3,
9,
4102,
3274,
96,
20445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
the quartier menpenti has how many 40-59 year olds? | CREATE TABLE table_29615165_5 (_percentage_40_59_years VARCHAR, quartier VARCHAR) | SELECT _percentage_40_59_years FROM table_29615165_5 WHERE quartier = "Menpenti" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4314,
1808,
22823,
834,
755,
41,
834,
883,
3728,
545,
834,
2445,
834,
3390,
834,
1201,
7,
584,
4280,
28027,
6,
15492,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
834,
883,
3728,
545,
834,
2445,
834,
3390,
834,
1201,
7,
21680,
953,
834,
357,
4314,
1808,
22823,
834,
755,
549,
17444,
427,
15492,
3274,
96,
329,
35,
102,
295,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the municpality for 57 populaton | CREATE TABLE table_16278673_1 (municipality VARCHAR, population VARCHAR) | SELECT municipality FROM table_16278673_1 WHERE population = "57" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2555,
3840,
4552,
834,
536,
41,
11760,
3389,
10355,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
13844,
447,
102,
10355,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27597,
21680,
953,
834,
2938,
2555,
3840,
4552,
834,
536,
549,
17444,
427,
2074,
3274,
96,
3436,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number in attendance at Dowdy-Ficklen stadium • Greenville, NC, and the opponent was Ohio? | CREATE TABLE table_name_63 (attendance VARCHAR, site VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_63 WHERE site = "dowdy-ficklen stadium • greenville, nc" AND opponent = "ohio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
15116,
663,
584,
4280,
28027,
6,
353,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
16,
11364,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
353,
3274,
96,
15198,
26,
63,
18,
4638,
9434,
29,
14939,
1697,
1442,
1420,
6,
3,
29,
75,
121,
3430,
15264,
3274,
96,
32,
107,
23,
32,
121,
1,
-100,
-100,
... |
What was the Opponent in the game with a Result of L 24 14? | CREATE TABLE table_44431 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Kickoff Time" text,
"Attendance" text
) | SELECT "Opponent" FROM table_44431 WHERE "Result" = 'l 24–14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3628,
3341,
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,
1649,
7621,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
591,
3628,
3341,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
997,
104,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many goals are associated with over 97 caps and a Latest cap of april 24, 2013? | CREATE TABLE table_name_43 (goals INTEGER, latest_cap VARCHAR, caps VARCHAR) | SELECT AVG(goals) FROM table_name_43 WHERE latest_cap = "april 24, 2013" AND caps > 97 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
839,
5405,
3,
21342,
17966,
6,
1251,
834,
4010,
584,
4280,
28027,
6,
16753,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
33,
1968... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1251,
834,
4010,
3274,
96,
9,
2246,
40,
14320,
2038,
121,
3430,
16753,
2490,
3,
4327,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What away team score has hawthorn as the home team? | CREATE TABLE table_name_84 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team AS score FROM table_name_84 WHERE home_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
550,
372,
2604,
65,
4244,
210,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many documents for each document type description? Visualize by a bar chart, and rank by the Document_Type_Description from high to low. | CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
) | SELECT Document_Type_Description, COUNT(Document_Type_Description) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description ORDER BY Document_Type_Description DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
2786,
834,
4309,
3,
21342,
17966,
6,
11167,
834,
308,
342,
309,
6048,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11167,
834,
25160,
834,
2962,
11830,
6,
2847,
17161,
599,
4135,
1071,
297,
834,
25160,
834,
2962,
11830,
61,
21680,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
... |
What is the total round with an overall of 199 with sweden? | CREATE TABLE table_name_65 (
round INTEGER,
nationality VARCHAR,
overall VARCHAR
) | SELECT SUM(round) FROM table_name_65 WHERE nationality = "sweden" AND overall = 199 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1751,
3,
21342,
17966,
6,
1157,
485,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
1751,
28,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1157,
485,
3274,
96,
7,
1123,
537,
121,
3430,
1879,
3274,
3,
19479,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for patient id 2560, calculate the duration of hospital stay. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT demographic.days_stay FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the tie no when Oxford city was the away team? | CREATE TABLE table_name_39 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_39 WHERE away_team = "oxford city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
17,
23,
15,
834,
29,
32,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6177,
150,
116,
10274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
550,
834,
11650,
3274,
96,
32,
226,
2590,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many lessons were in cancelled state? | CREATE TABLE Lessons (
lesson_status_code VARCHAR
) | SELECT COUNT(*) FROM Lessons WHERE lesson_status_code = "Cancelled" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
622,
6577,
41,
6114,
834,
8547,
302,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5182,
130,
16,
18454,
538,
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,
2847,
17161,
599,
1935,
61,
21680,
622,
6577,
549,
17444,
427,
6114,
834,
8547,
302,
834,
4978,
3274,
96,
254,
663,
40,
1361,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide the number of patients whose procedure long title is creation of conduit between left ventricle and aorta and lab test fluid is pleural? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Creation of conduit between left ventricle and aorta" AND lab.fluid = "Pleural" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
What position does Boggs play? | CREATE TABLE table_3281 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT "Position" FROM table_3281 WHERE "Player" = 'Boggs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
4959,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
7681,
449,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
2668,
4959,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
279,
32,
4102,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who is the player that attended Notre Dame with a pick smaller than 304? | CREATE TABLE table_name_76 (
player VARCHAR,
pick__number VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_76 WHERE pick__number < 304 AND college = "notre dame" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
1959,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3,
2,
3,
23702,
3430,
1900,
3274,
96,
2264,
60,
10157,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'? | CREATE TABLE mountain (id VARCHAR, country VARCHAR); CREATE TABLE photos (camera_lens_id VARCHAR, mountain_id VARCHAR) | SELECT COUNT(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
23,
26,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1302,
41,
6527,
1498,
834,
40,
35,
7,
834,
23,
26,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
332,
4416,
6527,
1498,
834,
40,
35,
7,
834,
23,
26,
61,
21680,
4180,
6157,
332,
536,
3,
15355,
3162,
1302,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
11231,
9,
... |
Which Producer has a Role of rizzette? | CREATE TABLE table_name_74 (producer VARCHAR, role VARCHAR) | SELECT producer FROM table_name_74 WHERE role = "rizzette" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
1409,
4817,
49,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
25348,
65,
3,
9,
2158,
109,
13,
3,
13266,
172,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8211,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1075,
3274,
96,
13266,
172,
1954,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which state is University of Tennessee based in? | CREATE TABLE table_32546 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) | SELECT "State" FROM table_32546 WHERE "Host" = 'university of tennessee' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1828,
4448,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
519,
1828,
4448,
549,
17444,
427,
96,
566,
3481,
121,
3274,
3,
31,
7846,
485,
13,
3,
324,
655,
15,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of Nationality and the sum of ID , and group by attribute Nationality in a bar chart, order by the X from high to low. | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
) | SELECT Nationality, SUM(ID) FROM swimmer GROUP BY Nationality ORDER BY Nationality DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
868,
485,
6,
180,
6122,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was coach before porter grant ? | CREATE TABLE table_203_593 (
id number,
"tenure" text,
"coach" text,
"years" number,
"record" text,
"pct." number,
"ncaa tournament" number
) | SELECT "coach" FROM table_203_593 WHERE "tenure" < (SELECT "tenure" FROM table_203_593 WHERE "coach" = 'porter grant') ORDER BY "tenure" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3390,
519,
41,
3,
23,
26,
381,
6,
96,
324,
1462,
121,
1499,
6,
96,
509,
1836,
121,
1499,
6,
96,
1201,
7,
121,
381,
6,
96,
60,
7621,
121,
1499,
6,
96,
102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1836,
121,
21680,
953,
834,
23330,
834,
3390,
519,
549,
17444,
427,
96,
324,
1462,
121,
3,
2,
41,
23143,
14196,
96,
324,
1462,
121,
21680,
953,
834,
23330,
834,
3390,
519,
549,
17444,
427,
96,
509,
1836,
... |
Which Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0? | CREATE TABLE table_37068 (
"Season" real,
"Team" text,
"Games" real,
"Wins" real,
"Losses" real,
"Ties" real
) | SELECT "Losses" FROM table_37068 WHERE "Season" > '1941' AND "Team" = 'hamilton wildcats' AND "Ties" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22520,
3651,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
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,
434,
13526,
7,
121,
21680,
953,
834,
22520,
3651,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
2490,
3,
31,
2294,
4853,
31,
3430,
96,
18699,
121,
3274,
3,
31,
1483,
23,
7377,
3645,
2138,
7,
31,
3430,
96,
382,
... |
Who was the artist that issued the single on 19 January? | CREATE TABLE table_name_67 (artist VARCHAR, issue_date_s_ VARCHAR) | SELECT artist FROM table_name_67 WHERE issue_date_s_ = "19 january" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1408,
343,
584,
4280,
28027,
6,
962,
834,
5522,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2377,
24,
4683,
8,
712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2377,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
962,
834,
5522,
834,
7,
834,
3274,
96,
2294,
3,
7066,
76,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many data was given the total electricity in GW-h if % renewable is 92.3%? | CREATE TABLE table_25244412_2 (
total_electricity__gw VARCHAR,
_percentage_renewable VARCHAR
) | SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE _percentage_renewable = "92.3%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2266,
3628,
2122,
834,
357,
41,
792,
834,
17470,
485,
834,
834,
122,
210,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
60,
5534,
179,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
834,
17470,
485,
834,
834,
122,
210,
61,
6157,
3,
2,
107,
834,
21680,
953,
834,
1828,
2266,
3628,
2122,
834,
357,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
60,
5534,
179,
3274,
96,... |
On what date was the format of ed remaster cd? | CREATE TABLE table_name_97 (
date VARCHAR,
format VARCHAR
) | SELECT date FROM table_name_97 WHERE format = "ed remaster cd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
833,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
1910,
13,
3,
15,
26,
3,
60,
7429,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1910,
3274,
96,
15,
26,
3,
60,
7429,
3,
75,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who won the first one ? | CREATE TABLE table_204_585 (
id number,
"year" text,
"player" text,
"high school" text,
"college" text,
"nba/aba draft" text
) | SELECT "player" FROM table_204_585 ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3449,
755,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
6739,
496,
121,
1499,
6,
96,
3297,
7883,
121,
1499,
6,
96,
29,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20846,
121,
21680,
953,
834,
26363,
834,
3449,
755,
4674,
11300,
272,
476,
96,
1201,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the status of eliminated of anton dela paz | CREATE TABLE table_name_15 (status VARCHAR, eliminated VARCHAR) | SELECT status FROM table_name_15 WHERE eliminated = "anton dela paz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
8547,
302,
584,
4280,
28027,
6,
17809,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
2637,
13,
17809,
13,
3,
9,
6992,
20,
521,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
17809,
3274,
96,
9,
6992,
20,
521,
3,
20118,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the film title nominated from the Sweden? | CREATE TABLE table_name_16 (film_title_used_in_nomination VARCHAR, country VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_16 WHERE country = "sweden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
9988,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
684,
3274,
96,
7,
1123,
537,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total of played where lost equals 4 and drawn equals 1? | CREATE TABLE table_20760802_1 (
played VARCHAR,
lost VARCHAR,
drawn VARCHAR
) | SELECT played FROM table_20760802_1 WHERE lost = "4" AND drawn = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
28212,
2079,
357,
834,
536,
41,
1944,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1944,
21680,
953,
834,
1755,
28212,
2079,
357,
834,
536,
549,
17444,
427,
1513,
3274,
96,
20364,
3430,
6796,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Total has a Nation of japan, and a Silver larger than 2? | CREATE TABLE table_name_55 (total INTEGER, nation VARCHAR, silver VARCHAR) | SELECT MIN(total) FROM table_name_55 WHERE nation = "japan" AND silver > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
235,
1947,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9273,
65,
3,
9,
11046,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
2982,
3274,
96,
1191,
2837,
121,
3430,
4294,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the sum of drawn for 30 october 2006 and win % more than 43.2 | CREATE TABLE table_54845 (
"Team" text,
"Nation" text,
"From" text,
"Matches" real,
"Drawn" real,
"Lost" real,
"Win %" real
) | SELECT SUM("Drawn") FROM table_54845 WHERE "From" = '30 october 2006' AND "Win %" > '43.2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3707,
2128,
41,
96,
18699,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
22674,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
308,
10936,
29,
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,
180,
6122,
599,
121,
308,
10936,
29,
8512,
21680,
953,
834,
755,
3707,
2128,
549,
17444,
427,
96,
22674,
121,
3274,
3,
31,
1458,
3,
32,
75,
235,
1152,
3581,
31,
3430,
96,
18455,
3,
1454,
121,
2490,
3,
31,
591,
1... |
How many bronze medals did the nation have that had less than 3 silver, 5 gold and ranked better than 31? | CREATE TABLE table_name_97 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) | SELECT SUM(bronze) FROM table_name_97 WHERE silver < 3 AND rank < 31 AND gold = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
13711,
776,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
4294,
3,
2,
220,
3430,
11003,
3,
2,
2664,
3430,
2045,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What state had less than 8.874 for swimsuit, less than 9.257 for evening gown, and less than 9.121 for interview? | CREATE TABLE table_name_26 (
state VARCHAR,
interview VARCHAR,
swimsuit VARCHAR,
evening_gown VARCHAR
) | SELECT state FROM table_name_26 WHERE swimsuit < 8.874 AND evening_gown < 9.257 AND interview < 9.121 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
538,
584,
4280,
28027,
6,
2772,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
538,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
9728,
7628,
3,
2,
4848,
4225,
591,
3430,
2272,
834,
122,
9197,
3,
2,
5835,
357,
3436,
3430,
2772,
3,
2,
5835,
22011,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many different types of settlements does Nova Pazova fall into? | CREATE TABLE table_2562572_53 (type VARCHAR, settlement VARCHAR) | SELECT COUNT(type) FROM table_2562572_53 WHERE settlement = "Nova Pazova" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
4867,
41,
6137,
584,
4280,
28027,
6,
7025,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
1308,
13,
7025,
7,
405,
17259,
2709,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6137,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
4867,
549,
17444,
427,
7025,
3274,
96,
567,
6194,
2709,
172,
6194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.