NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the number of wounded figures associated with a complement of 22 off 637 men? | CREATE TABLE table_2596811_12 (wounded VARCHAR, complement VARCHAR) | SELECT COUNT(wounded) FROM table_2596811_12 WHERE complement = "22 off 637 men" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
3651,
2596,
834,
2122,
41,
210,
14471,
584,
4280,
28027,
6,
10090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
21372,
5638,
1968,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
210,
14471,
61,
21680,
953,
834,
357,
3390,
3651,
2596,
834,
2122,
549,
17444,
427,
10090,
3274,
96,
2884,
326,
431,
4118,
1076,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the sum of Height (cm), when the Weight (kg) is 90? | CREATE TABLE table_name_13 (
height__cm_ INTEGER,
weight__kg_ VARCHAR
) | SELECT SUM(height__cm_) FROM table_name_13 WHERE weight__kg_ = 90 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
3902,
834,
834,
75,
51,
834,
3,
21342,
17966,
6,
1293,
834,
834,
8711,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
88,
2632,
834,
834,
75,
51,
834,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1293,
834,
834,
8711,
834,
3274,
2777,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose diagnoses long title is systemic inflammatory response syndrome due to noninfectious process without acute organ dysfunction and lab test category is blood gas? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Systemic inflammatory response syndrome due to noninfectious process without acute organ dysfunction" AND lab."CATEGORY" = "Blood Gas" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Name the high rebounds for game 11 | CREATE TABLE table_17102076_5 (high_rebounds VARCHAR, game VARCHAR) | SELECT high_rebounds FROM table_17102076_5 WHERE game = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1714,
1755,
3959,
834,
755,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
306,
3,
23768,
21,
467,
850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
2517,
1714,
1755,
3959,
834,
755,
549,
17444,
427,
467,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which rural settlement has the most males in their population ? | CREATE TABLE table_204_6 (
id number,
"category" text,
"urban settlements" text,
"population" number,
"male" text,
"female" text,
"inhabited localities in jurisdiction" text
) | SELECT "urban settlements" FROM table_204_6 WHERE "category" = 'rural' ORDER BY "male" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
41,
3,
23,
26,
381,
6,
96,
8367,
839,
651,
121,
1499,
6,
96,
19413,
7025,
7,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
13513,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19413,
7025,
7,
121,
21680,
953,
834,
26363,
834,
948,
549,
17444,
427,
96,
8367,
839,
651,
121,
3274,
3,
31,
52,
9709,
31,
4674,
11300,
272,
476,
96,
13513,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-... |
calculate the number of times patient 006-17553 has been tested in the hgb laboratory in 2105. | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-17553')) AND lab.labname = 'hgb' AND STRFTIME('%y', lab.labresulttime) = '2105' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
Visualize a bar chart about the distribution of All_Home and the average of Team_ID , and group by attribute All_Home, and rank from low to high by the y-axis please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT All_Home, AVG(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY AVG(Team_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
71,
17217,
599,
18699,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
4674,
11300,
272,
476,
71,
17217,
599,
18699,
834,
4309,
61,
1,
-100,
-100,
-100,
-100,
... |
What is the highest rank that has 5 silvers, less than 5 golds, and less than 7 total medals? | CREATE TABLE table_9618 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Rank") FROM table_9618 WHERE "Silver" = '5' AND "Gold" < '5' AND "Total" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
2606,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
4314,
2606,
549,
17444,
427,
96,
134,
173,
624,
121,
3274,
3,
31,
755,
31,
3430,
96,
23576,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
... |
Who was the guest at Stadion Prljanije? | CREATE TABLE table_5524 (
"Venue" text,
"Home" text,
"Guest" text,
"Score" text,
"Attendance" real
) | SELECT "Guest" FROM table_5524 WHERE "Venue" = 'stadion prljanije' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
2266,
41,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
9105,
222,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
9105,
222,
121,
21680,
953,
834,
3769,
2266,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
2427,
26,
23,
106,
4880,
40,
7066,
23,
1924,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names of members and the location of the performances they attended. | CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR) | SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
434,
32,
75,
257,
584,
4280,
28027,
6,
8233,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
23954,
584,
4280,
28027,
6,
8541,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4416,
23954,
6,
332,
5787,
434,
32,
75,
257,
21680,
1144,
834,
15116,
663,
6157,
332,
536,
3,
15355,
3162,
1144,
6157,
332,
357,
9191,
332,
5411,
329,
18247,
834,
4309,
3274,
332,
4416,
329,
18247,
834,
4309,
3... |
what is the last region listed on the table ? | CREATE TABLE table_203_447 (
id number,
"constituency" number,
"region" text,
"name" text,
"party" text,
"last elected" number
) | SELECT "region" FROM table_203_447 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
4177,
41,
3,
23,
26,
381,
6,
96,
8056,
17,
155,
76,
4392,
121,
381,
6,
96,
18145,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
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,
96,
18145,
121,
21680,
953,
834,
23330,
834,
591,
4177,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the procedure icd9 code and drug type of subject id 18480. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT procedures.icd9_code, prescriptions.drug_type FROM procedures INNER JOIN prescriptions ON procedures.hadm_id = prescriptions.hadm_id WHERE procedures.subject_id = "18480" | [
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,
4293,
5,
447,
26,
1298,
834,
4978,
6,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
4293,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
4293,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
17... |
Who were the panelists on episode number 4? | CREATE TABLE table_41166 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? panelists" text
) | SELECT "Who knows the most about the guest host? panelists" FROM table_41166 WHERE "Episode Number" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
26811,
41,
96,
427,
102,
159,
32,
221,
7720,
121,
490,
6,
96,
20162,
7678,
121,
1499,
6,
96,
9105,
222,
1546,
7,
17,
121,
1499,
6,
96,
29035,
138,
14252,
41,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20754,
4054,
8,
167,
81,
8,
3886,
2290,
58,
2952,
343,
7,
121,
21680,
953,
834,
4853,
26811,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
7720,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
tell me the number of patients born before 2123 who had abnormal lab test status. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2123" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the name of companies whose revenue is between 100 and 150. | CREATE TABLE manufacturers (
name VARCHAR,
revenue INTEGER
) | SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
564,
584,
4280,
28027,
6,
3751,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
13,
688,
3,
2544,
3751,
19,
344,
910,
11,
4261,
5,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
5360,
549,
17444,
427,
3751,
272,
7969,
518,
23394,
910,
3430,
4261,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of caps for players with less than 9 goals ranked below 8? | CREATE TABLE table_name_83 (
caps INTEGER,
goals VARCHAR,
rank VARCHAR
) | SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
16753,
3,
21342,
17966,
6,
1766,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
16753,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4010,
7,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
1766,
3,
2,
668,
3430,
11003,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many combined performances have the top three longest running broadway shows had ? | CREATE TABLE table_204_592 (
id number,
"#" number,
"title" text,
"type" text,
"opening\ndate" text,
"closing\ndate" text,
"performances" number,
"comment" text
) | SELECT SUM("performances") FROM table_204_592 WHERE "#" <= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3390,
357,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
8751,
53,
2,
29,
5522,
121,
1499,
6,
96,
390... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18558,
7,
8512,
21680,
953,
834,
26363,
834,
3390,
357,
549,
17444,
427,
96,
4663,
121,
3,
2,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
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, a bar chart shows the distribution of job_id and the average of manager_id , and group by attribute job_id, and could you display by the Y-axis in descending? | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_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 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
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,
... |
For every award, who is the youngest winner? | CREATE TABLE player_award_vote (
award_id text,
year number,
league_id text,
player_id text,
points_won number,
points_max number,
votes_first text
)
CREATE TABLE player_award (
player_id text,
award_id text,
year number,
league_id text,
tie text,
notes text
)
CREATE TABLE hall_of_fame (
player_id text,
yearid number,
votedby text,
ballots text,
needed text,
votes text,
inducted text,
category text,
needed_note text
)
CREATE TABLE salary (
year number,
team_id text,
league_id text,
player_id text,
salary number
)
CREATE TABLE player (
player_id text,
birth_year text,
birth_month text,
birth_day text,
birth_country text,
birth_state text,
birth_city text,
death_year text,
death_month text,
death_day text,
death_country text,
death_state text,
death_city text,
name_first text,
name_last text,
name_given text,
weight text
) | SELECT T1.player_id, T1.award_id, MIN(T1.year - T2.birth_year) FROM player_award AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id GROUP BY T1.award_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
834,
9,
2239,
834,
1621,
17,
15,
41,
2760,
834,
23,
26,
1499,
6,
215,
381,
6,
5533,
834,
23,
26,
1499,
6,
1959,
834,
23,
26,
1499,
6,
979,
834,
210,
106,
381,
6,
979,
834... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
20846,
834,
23,
26,
6,
332,
5411,
9,
2239,
834,
23,
26,
6,
3,
17684,
599,
382,
5411,
1201,
3,
18,
332,
4416,
20663,
834,
1201,
61,
21680,
1959,
834,
9,
2239,
6157,
332,
536,
3,
15355,
3162,
1959,
6157... |
How many metres tall is the building that is larger than 850 feet tall? | CREATE TABLE table_name_21 (
metres VARCHAR,
feet INTEGER
) | SELECT metres FROM table_name_21 WHERE feet > 850 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
14604,
584,
4280,
28027,
6,
1922,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14604,
5065,
19,
8,
740,
24,
19,
2186,
145,
3,
17246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14604,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1922,
2490,
3,
17246,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no | CREATE TABLE table_name_13 (copaxone VARCHAR, mitoxantrone VARCHAR, betaseron__beta_1b_ VARCHAR) | SELECT copaxone FROM table_name_13 WHERE mitoxantrone = "no" AND betaseron__beta_1b_ = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
10845,
9,
226,
782,
584,
4280,
28027,
6,
181,
32,
226,
152,
6255,
15,
584,
4280,
28027,
6,
12637,
7,
49,
106,
834,
834,
346,
17,
9,
834,
536,
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,
7326,
9,
226,
782,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
181,
32,
226,
152,
6255,
15,
3274,
96,
29,
32,
121,
3430,
12637,
7,
49,
106,
834,
834,
346,
17,
9,
834,
536,
115,
834,
3274,
96,
29,
32,
12... |
What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is the nation? | CREATE TABLE table_name_46 (
total INTEGER,
bronze VARCHAR,
nation VARCHAR
) | SELECT MIN(total) FROM table_name_46 WHERE bronze = 1 AND nation = "czech republic (cze)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
792,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
792,
381,
13,
9365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
13467,
3274,
209,
3430,
2982,
3274,
96,
75,
776,
524,
20237,
41,
75,
776,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the hometown of the player who went to lsu? | CREATE TABLE table_name_32 (
hometown VARCHAR,
college VARCHAR
) | SELECT hometown FROM table_name_32 WHERE college = "lsu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
22295,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
22295,
13,
8,
1959,
113,
877,
12,
3,
40,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22295,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1900,
3274,
96,
40,
7,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the best album in 1965? | CREATE TABLE table_name_13 (
us VARCHAR,
album VARCHAR,
year VARCHAR
) | SELECT us AS AC FROM table_name_13 WHERE album = "the best" AND year = 1965 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
178,
584,
4280,
28027,
6,
2306,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
200,
2306,
16,
19201,
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,
178,
6157,
5686,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
2306,
3274,
96,
532,
200,
121,
3430,
215,
3274,
19201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sign of the Burmese taninganwe ? | CREATE TABLE table_name_94 (
sign VARCHAR,
burmese VARCHAR
) | SELECT sign FROM table_name_94 WHERE burmese = "taninganwe တနင်္ဂနွေ" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1320,
584,
4280,
28027,
6,
7018,
2687,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1320,
13,
8,
4152,
2687,
15,
3,
17,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1320,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
7018,
2687,
15,
3274,
96,
17,
152,
53,
152,
1123,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many field goals were there, where the points where less than 45 and there were less than 15 touchdowns? | CREATE TABLE table_5013 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT AVG("Field goals") FROM table_5013 WHERE "Touchdowns" < '15' AND "Points" < '45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
2368,
41,
96,
15800,
49,
121,
1499,
6,
96,
3696,
2295,
3035,
7,
121,
490,
6,
96,
5420,
1313,
979,
121,
490,
6,
96,
3183,
8804,
1766,
121,
490,
6,
96,
22512,
7,
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,
71,
17217,
599,
121,
3183,
8804,
1766,
8512,
21680,
953,
834,
1752,
2368,
549,
17444,
427,
96,
3696,
2295,
3035,
7,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
2128,
31,
1,
-100,
-100,
-1... |
If there are 11 lifts, what is the base elevation? | CREATE TABLE table_25762852_1 (
base_elevation__feet_ INTEGER,
lifts VARCHAR
) | SELECT MAX(base_elevation__feet_) FROM table_25762852_1 WHERE lifts = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3959,
2577,
5373,
834,
536,
41,
1247,
834,
15,
10912,
257,
834,
834,
89,
15,
15,
17,
834,
3,
21342,
17966,
6,
5656,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10925,
834,
15,
10912,
257,
834,
834,
89,
15,
15,
17,
834,
61,
21680,
953,
834,
1828,
3959,
2577,
5373,
834,
536,
549,
17444,
427,
5656,
7,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Round of first had what opponent? | CREATE TABLE table_name_75 (opponent VARCHAR, round VARCHAR) | SELECT opponent FROM table_name_75 WHERE round = "first" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
9609,
13,
166,
141,
125,
15264,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1751,
3274,
96,
14672,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What date has a set 4 of 25-19? | CREATE TABLE table_42037 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
) | SELECT "Date" FROM table_42037 WHERE "Set 4" = '25-19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21899,
4118,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
220,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
21899,
4118,
549,
17444,
427,
96,
17175,
3,
20364,
3274,
3,
31,
1828,
4481,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mean number of events where the rank is 1 and there are more than 3 wins? | CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR) | SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
15,
2169,
7,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1243,
381,
13,
984,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15,
2169,
7,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
11003,
3274,
209,
3430,
9204,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the earliest week that the Storm played the San Jose Sabercats? | CREATE TABLE table_name_63 (week INTEGER, opponent VARCHAR) | SELECT MIN(week) FROM table_name_63 WHERE opponent = "san jose sabercats" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
16454,
471,
24,
8,
16133,
1944,
8,
1051,
10854,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
15264,
3274,
96,
7,
152,
7406,
15,
3,
7,
9,
1152,
2138,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which venue had a losing team of south sydney rabbitohs? | CREATE TABLE table_44424 (
"Total" real,
"Score" text,
"Winning Team" text,
"Losing Team" text,
"Venue" text,
"Date" text
) | SELECT "Venue" FROM table_44424 WHERE "Losing Team" = 'south sydney rabbitohs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3628,
2266,
41,
96,
3696,
1947,
121,
490,
6,
96,
134,
9022,
121,
1499,
6,
96,
518,
10503,
2271,
121,
1499,
6,
96,
434,
32,
7,
53,
2271,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
591,
3628,
2266,
549,
17444,
427,
96,
434,
32,
7,
53,
2271,
121,
3274,
3,
31,
7,
670,
107,
3,
7,
63,
26,
3186,
18383,
32,
107,
7,
31,
1,
-100,
-100,
-100,
-100,
-10... |
Which team was the home team when Colorado was the visitor and the record became 26 15 9? | CREATE TABLE table_name_45 (
home VARCHAR,
visitor VARCHAR,
record VARCHAR
) | SELECT home FROM table_name_45 WHERE visitor = "colorado" AND record = "26–15–9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
47,
8,
234,
372,
116,
614... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
7019,
3274,
96,
8135,
19042,
121,
3430,
1368,
3274,
96,
2688,
104,
1808,
104,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the publisher for resident evil 4 | CREATE TABLE table_14325653_2 (
publisher_s_ VARCHAR,
video_game VARCHAR
) | SELECT publisher_s_ FROM table_14325653_2 WHERE video_game = "Resident Evil 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
19337,
4867,
834,
357,
41,
14859,
834,
7,
834,
584,
4280,
28027,
6,
671,
834,
7261,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
14859,
21,
8141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14859,
834,
7,
834,
21680,
953,
834,
25133,
19337,
4867,
834,
357,
549,
17444,
427,
671,
834,
7261,
3274,
96,
1649,
7,
4215,
26567,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Score has a Visitor of ny rangers, and a Record of 19–28–15? | CREATE TABLE table_name_19 (score VARCHAR, visitor VARCHAR, record VARCHAR) | SELECT score FROM table_name_19 WHERE visitor = "ny rangers" AND record = "19–28–15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
7,
9022,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
4957,
127,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
7019,
3274,
96,
29,
63,
620,
52,
7,
121,
3430,
1368,
3274,
96,
2294,
104,
2577,
104,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are all ages for Maghreb is Maarifiense? | CREATE TABLE table_22860_1 (
age__before_ VARCHAR,
maghreb VARCHAR
) | SELECT age__before_ FROM table_22860_1 WHERE maghreb = "Maarifiense" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
3328,
834,
536,
41,
1246,
834,
834,
26116,
834,
584,
4280,
28027,
6,
6396,
107,
60,
115,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1246,
834,
834,
26116,
834,
21680,
953,
834,
357,
2577,
3328,
834,
536,
549,
17444,
427,
6396,
107,
60,
115,
3274,
96,
329,
9,
291,
99,
8065,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 10:00 feature with 1 vs. 100 at 8:30? | CREATE TABLE table_69428 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | SELECT "10:00" FROM table_69428 WHERE "8:30" = '1 vs. 100' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
591,
2577,
41,
96,
18735,
121,
1499,
6,
96,
18078,
121,
1499,
6,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
25713,
121,
21680,
953,
834,
3951,
591,
2577,
549,
17444,
427,
96,
927,
10,
1458,
121,
3274,
3,
31,
536,
3,
208,
7,
5,
910,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position is drafted from Grambling? | CREATE TABLE table_name_47 (position VARCHAR, college VARCHAR) | SELECT position FROM table_name_47 WHERE college = "grambling" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
4718,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
19,
3,
23505,
45,
20278,
7428,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1900,
3274,
96,
5096,
7428,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bring the number of patients younger than 48 years who were admitted before 2138. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "48" AND demographic.admityear < "2138" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
3,
2,
96,
3707,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,
2658,
3747,
121,
1,
-100,... |
What Tournament had a Winning score of –6 (73-68-72-69=282)? | CREATE TABLE table_name_49 (tournament VARCHAR, winning_score VARCHAR) | SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
20502,
141,
3,
9,
549,
10503,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
104,
948,
599,
4552,
3,
18,
3,
3651,
3,
18,
9455,
3,
18,
3,
3951,
3274,
2059,
7318,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What conference has 2009 as the season, with super leg final as the format? | CREATE TABLE table_name_8 (conference VARCHAR, season VARCHAR, format VARCHAR) | SELECT conference FROM table_name_8 WHERE season = 2009 AND format = "super leg final" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
28496,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2542,
65,
2464,
38,
8,
774,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2542,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
774,
3274,
2464,
3430,
1910,
3274,
96,
21771,
4553,
804,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3? | CREATE TABLE table_name_13 (
total_cargo__metric_tonnes_ INTEGER,
code__iata_icao_ VARCHAR,
rank VARCHAR
) | SELECT SUM(total_cargo__metric_tonnes_) FROM table_name_13 WHERE code__iata_icao_ = "pvg/zspd" AND rank < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
792,
834,
1720,
839,
834,
834,
7959,
834,
17,
5993,
7,
834,
3,
21342,
17966,
6,
1081,
834,
834,
17221,
834,
2617,
32,
834,
584,
4280,
28027,
6,
11003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
235,
1947,
834,
1720,
839,
834,
834,
7959,
834,
17,
5993,
7,
834,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1081,
834,
834,
17221,
834,
2617,
32,
834,
3274,
96,
102,
208,
122,
87,
172,... |
What did the home team score in the game that the away team scored 10.17 (77)? | CREATE TABLE table_52080 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_52080 WHERE "Away team score" = '10.17 (77)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25356,
2079,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
25356,
2079,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
10415,
2517,
41,
4013,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the number of drawn games for the club with a tries for count of 76? | CREATE TABLE table_17860 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Drawn" FROM table_17860 WHERE "Tries for" = '76' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
3328,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
10936,
29,
121,
21680,
953,
834,
27640,
3328,
549,
17444,
427,
96,
382,
2593,
21,
121,
3274,
3,
31,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Position of the player with a Height off 188cm? | CREATE TABLE table_5405 (
"Number" real,
"Name" text,
"Position" text,
"Date of birth" text,
"Height" text
) | SELECT "Position" FROM table_5405 WHERE "Height" = '188cm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3076,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
308,
342,
13,
3879,
121,
1499,
6,
96,
3845,
2632,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
5062,
3076,
549,
17444,
427,
96,
3845,
2632,
121,
3274,
3,
31,
25794,
75,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the high rebounds at the delta center? | CREATE TABLE table_13762472_5 (
high_rebounds VARCHAR,
location_attendance VARCHAR
) | SELECT high_rebounds FROM table_13762472_5 WHERE location_attendance = "Delta Center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3959,
2266,
5865,
834,
755,
41,
306,
834,
23768,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
2368,
3959,
2266,
5865,
834,
755,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
2962,
40,
17,
9,
1166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the operator of the ensemble from Yorkshire? | CREATE TABLE table_4490 (
"Region" text,
"Operator" text,
"Licence award date" text,
"On air date" text,
"Closure date" text
) | SELECT "Operator" FROM table_4490 WHERE "Region" = 'yorkshire' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2394,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
667,
883,
1016,
121,
1499,
6,
96,
434,
447,
1433,
2760,
833,
121,
1499,
6,
96,
7638,
799,
833,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
883,
1016,
121,
21680,
953,
834,
3628,
2394,
549,
17444,
427,
96,
17748,
23,
106,
121,
3274,
3,
31,
63,
127,
157,
5718,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which state is Tehachapi Pass Wind Farm located in? | CREATE TABLE table_name_72 (
state_province VARCHAR,
wind_farm VARCHAR
) | SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
538,
834,
1409,
2494,
565,
584,
4280,
28027,
6,
2943,
834,
5544,
51,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
538,
19,
2255,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
834,
1409,
2494,
565,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
2943,
834,
5544,
51,
3274,
96,
17,
15,
107,
1836,
13306,
1903,
2943,
3797,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What grand prixs did Daijiro Hiura win? | CREATE TABLE table_73000 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text
) | SELECT "Grand Prix" FROM table_73000 WHERE "Race Winner" = 'Daijiro Hiura' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
2313,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
8931,
15,
1425... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4744,
727,
12942,
121,
21680,
953,
834,
4552,
2313,
549,
17444,
427,
96,
448,
3302,
18125,
121,
3274,
3,
31,
308,
9,
17279,
52,
32,
2018,
2414,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2009 entry for the row that has a 2007 entry of A and a tournament entry of US Open? | CREATE TABLE table_name_94 (tournament VARCHAR) | SELECT 2009 FROM table_name_94 WHERE 2007 = "a" AND tournament = "us open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2464,
1764,
21,
8,
7358,
24,
65,
3,
9,
4101,
1764,
13,
71,
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,
2464,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
4101,
3274,
96,
9,
121,
3430,
5892,
3274,
96,
302,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the ISSN number of a publication range of 1984-? | CREATE TABLE table_name_36 (issn VARCHAR, publication_range VARCHAR) | SELECT issn FROM table_name_36 WHERE publication_range = "1984-" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
159,
7,
29,
584,
4280,
28027,
6,
5707,
834,
5517,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6827,
8544,
381,
13,
3,
9,
5707,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
19,
7,
29,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
5707,
834,
5517,
3274,
96,
2294,
4608,
18,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For what class is the laps 66? | CREATE TABLE table_65441 (
"Position" text,
"Drivers" text,
"Entrant" text,
"Class" text,
"Laps" real
) | SELECT "Class" FROM table_65441 WHERE "Laps" = '66' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3628,
536,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
20982,
52,
7,
121,
1499,
6,
96,
16924,
3569,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
3612,
102,
7,
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,
21486,
121,
21680,
953,
834,
4122,
3628,
536,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
3539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the constructor for driver alan jones using a chassis of fw06 fw07? | CREATE TABLE table_57350 (
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Driver" text,
"Rounds" text
) | SELECT "Constructor" FROM table_57350 WHERE "Chassis" = 'fw06 fw07' AND "Driver" = 'alan jones' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
16975,
41,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
7,
121,
1499,
6,
96,
20982,
52,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
7593,
127,
121,
21680,
953,
834,
3436,
16975,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
89,
210,
5176,
3,
89,
210,
4560,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
9,
1618,
3,
1927,
1496,
... |
How many faculty members do we have for each rank? Show bar chart, order from low to high by the y axis please. | CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
) | SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank ORDER BY COUNT(Rank) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
6203,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
41,
1699,
75,
4309,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
22557,
6,
2847,
17161,
599,
22557,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
3,
22557,
4674,
11300,
272,
476,
2847,
17161,
599,
22557,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games? | CREATE TABLE table_name_71 (
goals_for INTEGER,
played VARCHAR,
position VARCHAR,
losses VARCHAR
) | SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1766,
834,
1161,
3,
21342,
17966,
6,
1944,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1102,
2490,
505,
3430,
8467,
3274,
586,
3430,
1944,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What date did an Away team score 14.16 (100)? | CREATE TABLE table_57868 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_57868 WHERE "Away team score" = '14.16 (100)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3940,
3651,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
755,
3940,
3651,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2534,
5,
2938,
41,
2915,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the address of the location "UK Gallery"? | CREATE TABLE LOCATIONS (Address VARCHAR, Location_Name VARCHAR) | SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
5017,
18911,
22164,
41,
20773,
9377,
584,
4280,
28027,
6,
10450,
834,
23954,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1115,
13,
8,
1128,
96,
15787,
7557,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13246,
21680,
3,
5017,
18911,
22164,
549,
17444,
427,
10450,
834,
23954,
3274,
96,
15787,
7557,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the incumbent of Florida 9? | CREATE TABLE table_18140 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "Incumbent" FROM table_18140 WHERE "District" = 'Florida 9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
22012,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
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,
1570,
75,
5937,
295,
121,
21680,
953,
834,
2606,
22012,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
11251,
4055,
9,
668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location for tournament on Jul 8-11? | CREATE TABLE table_26144632_1 (location VARCHAR, dates VARCHAR) | SELECT location FROM table_26144632_1 WHERE dates = "Jul 8-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2534,
4448,
2668,
834,
536,
41,
14836,
584,
4280,
28027,
6,
5128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
21,
5892,
30,
17829,
505,
9169,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
2688,
2534,
4448,
2668,
834,
536,
549,
17444,
427,
5128,
3274,
96,
683,
83,
505,
9169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the name and location for all tracks. | CREATE TABLE track (
name VARCHAR,
LOCATION VARCHAR
) | SELECT name, LOCATION FROM track | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
41,
564,
584,
4280,
28027,
6,
301,
5618,
8015,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
564,
11,
1128,
21,
66,
6542,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
6,
301,
5618,
8015,
21680,
1463,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who were the candidates in district Pennsylvania 3? | CREATE TABLE table_1341423_38 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1341423_38 WHERE district = "Pennsylvania 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
2773,
834,
3747,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
16,
3939,
8913,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
23747,
2534,
2773,
834,
3747,
549,
17444,
427,
3939,
3274,
96,
345,
35,
29,
7,
63,
40,
16658,
9,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What town is Brighton High School in? | CREATE TABLE table_11677100_4 (hometown VARCHAR, school VARCHAR) | SELECT hometown FROM table_11677100_4 WHERE school = "Brighton High school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
4013,
2915,
834,
591,
41,
5515,
3540,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1511,
19,
25080,
1592,
1121,
16,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22295,
21680,
953,
834,
20159,
4013,
2915,
834,
591,
549,
17444,
427,
496,
3274,
96,
279,
3535,
106,
1592,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the size difference for exa? | CREATE TABLE table_60437 (
"Symbol" text,
"Prefix" text,
"SI Meaning" text,
"Binary meaning" text,
"Size difference" text
) | SELECT "Size difference" FROM table_60437 WHERE "Prefix" = 'exa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
591,
4118,
41,
96,
18650,
121,
1499,
6,
96,
10572,
12304,
121,
1499,
6,
96,
134,
196,
25148,
121,
1499,
6,
96,
279,
77,
1208,
2530,
121,
1499,
6,
96,
134,
1737,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
134,
1737,
1750,
121,
21680,
953,
834,
3328,
591,
4118,
549,
17444,
427,
96,
10572,
12304,
121,
3274,
3,
31,
994,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What party does Bill McCollum belong to? | CREATE TABLE table_18142 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "Party" FROM table_18142 WHERE "Incumbent" = 'Bill McCollum' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
24978,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
7,
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,
13725,
63,
121,
21680,
953,
834,
2606,
24978,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
279,
1092,
3038,
9939,
5171,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many world performance cars were entered in 2009 ? | CREATE TABLE table_203_838 (
id number,
"year" number,
"world car of the year" text,
"world performance car" text,
"world green car" text,
"world car design of the year" text
) | SELECT "world performance car" FROM table_203_838 WHERE "year" = 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
3747,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
7276,
443,
13,
8,
215,
121,
1499,
6,
96,
7276,
821,
443,
121,
1499,
6,
96,
7276,
1442,
443,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7276,
821,
443,
121,
21680,
953,
834,
23330,
834,
927,
3747,
549,
17444,
427,
96,
1201,
121,
3274,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose gender is m and procedure icd9 code is 9703? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "9703" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is Pick, when Round is '6', when Nationality is 'Canada', when Draft is greater than 1983, and when Player is 'Ed Ward Category:Articles with hCards'? | CREATE TABLE table_12157 (
"Draft" real,
"Round" text,
"Pick" real,
"Player" text,
"Nationality" text
) | SELECT "Pick" FROM table_12157 WHERE "Round" = '6' AND "Nationality" = 'canada' AND "Draft" > '1983' AND "Player" = 'ed ward category:articles with hcards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
27452,
41,
96,
308,
10913,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
3142,
121,
21680,
953,
834,
2122,
27452,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
948,
31,
3430,
96,
24732,
485,
121,
3274,
3,
31,
658,
18089,
31,
3430,
96,
308,
10913,
121,
2490,
3,
31,
22... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of price , and group by attribute name, display total number in descending order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
541... |
among patients admitted in the year less than 2156, how many had item id 51383? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2156" AND lab.itemid = "51383" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the release date of production number 1327? | CREATE TABLE table_name_60 (release_date VARCHAR, production_number VARCHAR) | SELECT release_date FROM table_name_60 WHERE production_number = 1327 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
999,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1576,
833,
13,
999,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
999,
834,
5525,
1152,
3274,
1179,
2555,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 1522 is the tonnes of co2 saved what is the year? | CREATE TABLE table_29538735_1 (
year VARCHAR,
tonnes_of_co2_saved VARCHAR
) | SELECT year FROM table_29538735_1 WHERE tonnes_of_co2_saved = 1522 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4867,
4225,
2469,
834,
536,
41,
215,
584,
4280,
28027,
6,
19637,
834,
858,
834,
509,
357,
834,
7,
9,
162,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
3166,
4867,
4225,
2469,
834,
536,
549,
17444,
427,
19637,
834,
858,
834,
509,
357,
834,
7,
9,
162,
26,
3274,
627,
2884,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What nationality is Bill Robinzine? | CREATE TABLE table_name_69 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_69 WHERE player = "bill robinzine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
19,
3259,
14059,
7196,
15,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1959,
3274,
96,
3727,
40,
3,
5840,
77,
7196,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose procedure icd9 code is 4041? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "4041" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099? | CREATE TABLE table_65194 (
"Country or territory" text,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
) | SELECT MIN("2007") FROM table_65194 WHERE "Country or territory" = 'china' AND "2002" < '670,099' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2294,
591,
41,
96,
10628,
651,
42,
9964,
121,
1499,
6,
96,
13527,
121,
490,
6,
96,
23658,
121,
490,
6,
96,
24898,
121,
490,
6,
96,
23948,
121,
490,
6,
96,
21653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20615,
8512,
21680,
953,
834,
4122,
2294,
591,
549,
17444,
427,
96,
10628,
651,
42,
9964,
121,
3274,
3,
31,
5675,
9,
31,
3430,
96,
24898,
121,
3,
2,
3,
31,
3708,
632,
6,
632,
3264,
31,
1,
-... |
I need the FCC info on the radio Frequency MHz 107.5? | CREATE TABLE table_71999 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT "FCC info" FROM table_71999 WHERE "Frequency MHz" = '107.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
19446,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
2823,
2845,
121,
21680,
953,
834,
4450,
19446,
549,
17444,
427,
96,
371,
60,
835,
11298,
3,
20210,
121,
3274,
3,
31,
1714,
15731,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What day did they play the phoenix suns? | CREATE TABLE table_27902171_4 (
date VARCHAR,
team VARCHAR
) | SELECT date FROM table_27902171_4 WHERE team = "Phoenix Suns" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2394,
2658,
4450,
834,
591,
41,
833,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
410,
79,
577,
8,
3,
9553,
35,
2407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2555,
2394,
2658,
4450,
834,
591,
549,
17444,
427,
372,
3274,
96,
345,
107,
32,
35,
2407,
3068,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Pos have a Driver of todd bodine, and a Car # larger than 30? | CREATE TABLE table_38901 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
) | SELECT COUNT("Pos.") FROM table_38901 WHERE "Driver" = 'todd bodine' AND "Car #" > '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2394,
536,
41,
96,
345,
32,
7,
535,
490,
6,
96,
6936,
1713,
121,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
22638,
121,
1499,
6,
96,
18699,
121,
1499,
3,
61,
3,
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,
2847,
17161,
599,
121,
345,
32,
7,
5,
8512,
21680,
953,
834,
3747,
2394,
536,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
235,
26,
26,
23322,
29,
15,
31,
3430,
96,
6936,
1713,
121,
2490,
3,
31,
1458,
31,
... |
What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox? | CREATE TABLE table_name_53 (internet_explorer VARCHAR, firefox VARCHAR) | SELECT internet_explorer FROM table_name_53 WHERE firefox = "20.01%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
3870,
1582,
834,
20901,
584,
4280,
28027,
6,
1472,
20400,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
1105,
130,
338,
1284,
15762,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1396,
834,
20901,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1472,
20400,
3274,
96,
357,
11739,
4704,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show names of cities and names of counties they are in. | CREATE TABLE city (
city_id number,
county_id number,
name text,
white number,
black number,
amerindian number,
asian number,
multiracial number,
hispanic number
)
CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers number,
residents_per_officer number,
case_burden number,
crime_rate number,
police_force text,
location text
) | SELECT T1.name, T2.name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.county_id = T2.county_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
690,
834,
23,
26,
381,
6,
5435,
834,
23,
26,
381,
6,
564,
1499,
6,
872,
381,
6,
1001,
381,
6,
183,
6655,
8603,
381,
6,
3,
9,
10488,
381,
6,
1249,
52,
9,
4703,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
6,
332,
4416,
4350,
21680,
690,
6157,
332,
536,
3,
15355,
3162,
5435,
834,
15727,
834,
15233,
17,
63,
6157,
332,
357,
9191,
332,
5411,
13362,
63,
834,
23,
26,
3274,
332,
4416,
13362,
63,
834,
23,
... |
For each director, return the director's name together with the highest rating among all of their movies and ignore movies whose director is NULL Could you plot the result with a bar chart?, list by the x-axis in descending please. | CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | SELECT director, MAX(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" GROUP BY director ORDER BY director DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2090,
6,
4800,
4,
599,
382,
5411,
3624,
7,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
549,
17444,
427,
2090,
3,
2,
3155,
96,
29,
... |
What is the Head Coach of Novy Urengoy? | CREATE TABLE table_35376 (
"Previous season" text,
"Team" text,
"Town" text,
"Arena (capacity)" text,
"Website" text,
"Head Coach" text,
"Foreign Players (max. 2)" text
) | SELECT "Head Coach" FROM table_35376 WHERE "Town" = 'novy urengoy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
519,
3959,
41,
96,
10572,
19117,
774,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
382,
9197,
121,
1499,
6,
96,
188,
1536,
9,
41,
4010,
9,
6726,
61,
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,
3845,
9,
26,
9493,
121,
21680,
953,
834,
2469,
519,
3959,
549,
17444,
427,
96,
382,
9197,
121,
3274,
3,
31,
5326,
63,
3,
450,
35,
839,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What position was pick 32? | CREATE TABLE table_name_86 (
position VARCHAR,
pick VARCHAR
) | SELECT position FROM table_name_86 WHERE pick = 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
47,
1432,
3538,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1432,
3274,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the maximum training hours for the students whose training hours is greater than 1000 in different positions? | CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR) | SELECT MAX(T1.HS), pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
4950,
3,
21342,
17966,
6,
3,
102,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
102,
345,
32,
7,
584,
4280,
28027,
6,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
382,
5411,
4950,
201,
3,
102,
345,
32,
7,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
102,
4309,
3274,
332,
4416,
102,
4309,
549,
17444,
427,
332,
5411,
49... |
Goldfields Obuasi Team 1 has what Agg. totals ? | CREATE TABLE table_name_95 (agg VARCHAR, team_1 VARCHAR) | SELECT agg FROM table_name_95 WHERE team_1 = "goldfields obuasi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
9,
4102,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2540,
1846,
7,
4249,
76,
9,
7,
23,
2271,
209,
65,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
4102,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
372,
834,
536,
3274,
96,
14910,
1846,
7,
3,
32,
3007,
9,
7,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who drafted the player from Michigan after 2010? | CREATE TABLE table_32387 (
"Player" text,
"Home Town" text,
"College/Prior" text,
"Drafting Team" text,
"Graduated" real
) | SELECT "Drafting Team" FROM table_32387 WHERE "Graduated" > '2010' AND "College/Prior" = 'michigan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
4225,
41,
96,
15800,
49,
121,
1499,
6,
96,
19040,
4463,
121,
1499,
6,
96,
9939,
7883,
87,
7855,
127,
121,
1499,
6,
96,
308,
10913,
53,
2271,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
10913,
53,
2271,
121,
21680,
953,
834,
2668,
519,
4225,
549,
17444,
427,
96,
4744,
1259,
920,
121,
2490,
3,
31,
14926,
31,
3430,
96,
9939,
7883,
87,
7855,
127,
121,
3274,
3,
31,
51,
362,
12588,
31,
1,
-... |
What is the highest Apps of kairat after 2008 and a Level smaller than 1? | CREATE TABLE table_name_35 (
apps INTEGER,
level VARCHAR,
season VARCHAR,
team VARCHAR
) | SELECT MAX(apps) FROM table_name_35 WHERE season > 2008 AND team = "kairat" AND level < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
4050,
3,
21342,
17966,
6,
593,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3096,
7,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
774,
2490,
2628,
3430,
372,
3274,
96,
1258,
23,
1795,
121,
3430,
593,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When did series number 65 originally air? | CREATE TABLE table_24247 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Survivor count" real
) | SELECT "Original air date" FROM table_24247 WHERE "No. in series" = '65' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
357,
4177,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3380,
10270,
799,
833,
121,
21680,
953,
834,
2266,
357,
4177,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
4122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the date with attendance being 40657 | CREATE TABLE table_14951643_1 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_14951643_1 WHERE attendance = 40657 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3301,
2938,
4906,
834,
536,
41,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
833,
28,
11364,
271,
1283,
948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2534,
3301,
2938,
4906,
834,
536,
549,
17444,
427,
11364,
3274,
1283,
948,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
At the venue of panama city, on 11 Febrero 2006, how many goals were scored? | CREATE TABLE table_name_10 (
goal VARCHAR,
venue VARCHAR,
date VARCHAR
) | SELECT COUNT(goal) FROM table_name_10 WHERE venue = "panama city" AND date = "11 febrero 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
1288,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
8,
5669,
13,
3418,
51,
9,
690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
839,
138,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
5669,
3274,
96,
2837,
265,
9,
690,
121,
3430,
833,
3274,
96,
2596,
29976,
49,
32,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What type has 5 as the quantity? | CREATE TABLE table_name_26 (type VARCHAR, quantity VARCHAR) | SELECT type FROM table_name_26 WHERE quantity = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
6137,
584,
4280,
28027,
6,
8708,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
65,
305,
38,
8,
8708,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
8708,
3274,
305,
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,... |
Name the sum of time for lane of 1 and rank less than 8 | CREATE TABLE table_name_17 (time INTEGER, lane VARCHAR, rank VARCHAR) | SELECT SUM(time) FROM table_name_17 WHERE lane = 1 AND rank < 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
715,
3,
21342,
17966,
6,
3,
8102,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
97,
21,
3,
8102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
715,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3,
8102,
3274,
209,
3430,
11003,
3,
2,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many votes Khuzestan were there when the percentage was 34.50? | CREATE TABLE table_22236 (
"Candidates" text,
"Votes Khuzestan" real,
"% of votes Khuzestan" text,
"Votes Nationally" real,
"% of votes nationally" text
) | SELECT MIN("Votes Khuzestan") FROM table_22236 WHERE "% of votes Khuzestan" = '34.50' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
3420,
41,
96,
14050,
12416,
6203,
121,
1499,
6,
96,
553,
32,
1422,
13495,
10953,
5627,
121,
490,
6,
96,
1454,
13,
11839,
13495,
10953,
5627,
121,
1499,
6,
96,
553,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
553,
32,
1422,
13495,
10953,
5627,
8512,
21680,
953,
834,
26144,
3420,
549,
17444,
427,
96,
1454,
13,
11839,
13495,
10953,
5627,
121,
3274,
3,
31,
3710,
5,
1752,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is the highest effic with an avg/g of 91.9? | CREATE TABLE table_35440 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp-Int" text,
"Avg/G" real
) | SELECT MAX("Effic") FROM table_35440 WHERE "Avg/G" = '91.9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
22335,
41,
96,
23954,
121,
1499,
6,
96,
8049,
18,
8256,
121,
1499,
6,
96,
29421,
447,
121,
490,
6,
96,
188,
17,
17,
18,
254,
1167,
18,
1570,
17,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
29421,
447,
8512,
21680,
953,
834,
2469,
22335,
549,
17444,
427,
96,
188,
208,
122,
87,
517,
121,
3274,
3,
31,
1298,
22493,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score of the match with a save postponed rescheduled for June 24? | CREATE TABLE table_name_97 (
score VARCHAR,
save VARCHAR
) | SELECT score FROM table_name_97 WHERE save = "postponed rescheduled for june 24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
2604,
584,
4280,
28027,
6,
1097,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
1588,
28,
3,
9,
1097,
442,
5041,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1097,
3274,
96,
5950,
5041,
15,
26,
3,
60,
3992,
1259,
1361,
21,
3,
6959,
15,
997,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients admitted before the year 2166 who had mesentric ischemia. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 WHERE demographic.diagnosis = "MESENTERIC ISCHEMIA" AND demographic.admityear < "2166" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
22759,
6431,
427,
23503,
27,
20557,
25284,
188,
121,
3430,
14798,
5,
2... |
what is the total amount of names listed ? | CREATE TABLE table_204_769 (
id number,
"full name" text,
"nickname" text,
"gender" text,
"weight at birth" text,
"meaning" text
) | SELECT COUNT("full name") FROM table_204_769 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3951,
41,
3,
23,
26,
381,
6,
96,
1329,
40,
564,
121,
1499,
6,
96,
11191,
4350,
121,
1499,
6,
96,
122,
3868,
121,
1499,
6,
96,
9378,
44,
3879,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1329,
40,
564,
8512,
21680,
953,
834,
26363,
834,
940,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which stadium is the week 5 game played? | CREATE TABLE table_10647401_1 (
stadium VARCHAR,
week VARCHAR
) | SELECT stadium FROM table_10647401_1 WHERE week = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
4177,
20016,
834,
536,
41,
14939,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
14939,
19,
8,
471,
305,
467,
1944,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
16431,
4177,
20016,
834,
536,
549,
17444,
427,
471,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What regulations have hudson as the winning constructor? | CREATE TABLE table_41552 (
"Year" real,
"Circuit" text,
"Winning drivers" text,
"Winning constructor" text,
"Regulations" text,
"Report" text
) | SELECT "Regulations" FROM table_41552 WHERE "Winning constructor" = 'hudson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
20896,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
518,
10503,
3863,
121,
1499,
6,
96,
518,
10503,
6774,
127,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17748,
7830,
7,
121,
21680,
953,
834,
591,
20896,
357,
549,
17444,
427,
96,
518,
10503,
6774,
127,
121,
3274,
3,
31,
107,
76,
26,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When don inglis and ralph smart are the writers how many episode numbers are there? | CREATE TABLE table_25046766_1 (
episode_no VARCHAR,
written_by VARCHAR
) | SELECT COUNT(episode_no) FROM table_25046766_1 WHERE written_by = "Don Inglis and Ralph Smart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
591,
3708,
3539,
834,
536,
41,
5640,
834,
29,
32,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
278,
16,
4707,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15,
102,
159,
32,
221,
834,
29,
32,
61,
21680,
953,
834,
11434,
591,
3708,
3539,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
13843,
86,
4707,
7,
11,
21171,
5363,
121,
1,
-100,
-100,
-100... |
What is the English title of the film directed by Fernando Meirelles? | CREATE TABLE table_name_53 (english_title VARCHAR, director_s_ VARCHAR) | SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
4606,
40,
1273,
834,
21869,
584,
4280,
28027,
6,
2090,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1566,
2233,
13,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22269,
834,
21869,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2090,
834,
7,
834,
3274,
96,
8377,
232,
32,
140,
23,
52,
3167,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.