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 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010? | CREATE TABLE table_67899 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2006" FROM table_67899 WHERE "2010" = 'a' AND "2009" = 'a' AND "Tournament" = 'canada masters' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
927,
3264,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21196,
121,
21680,
953,
834,
3708,
927,
3264,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
9,
31,
3430,
96,
16660,
121,
3274,
3,
31,
9,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
658,
18089,
2325... |
Show different type codes of products and the number of products with each type code. | CREATE TABLE Parties (
Party_ID INTEGER,
Party_Details VARCHAR(255)
)
CREATE TABLE Products (
Product_ID INTEGER,
Product_Type_Code CHAR(15),
Product_Name VARCHAR(255),
Product_Price DECIMAL(20,4)
)
CREATE TABLE Locations (
Location_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Agreements (
Document_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Products_in_Events (
Product_in_Event_ID INTEGER,
Event_ID INTEGER,
Product_ID INTEGER
)
CREATE TABLE Parties_in_Events (
Party_ID INTEGER,
Event_ID INTEGER,
Role_Code CHAR(15)
)
CREATE TABLE Assets_in_Events (
Asset_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Events (
Event_ID INTEGER,
Address_ID INTEGER,
Channel_ID INTEGER,
Event_Type_Code CHAR(15),
Finance_ID INTEGER,
Location_ID INTEGER
)
CREATE TABLE Channels (
Channel_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Finances (
Finance_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Assets (
Asset_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Addresses (
Address_ID INTEGER,
address_details VARCHAR(255)
) | SELECT Product_Type_Code, COUNT(*) FROM Products GROUP BY Product_Type_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17450,
7,
41,
3450,
834,
4309,
3,
21342,
17966,
6,
3450,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
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,
6246,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
6246,
834,
25160,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player is the centre for the Detroit Red Wings? | CREATE TABLE table_2897457_4 (player VARCHAR, position VARCHAR, nhl_team VARCHAR) | SELECT player FROM table_2897457_4 WHERE position = "Centre" AND nhl_team = "Detroit Red Wings" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3914,
4581,
3436,
834,
591,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
357,
3914,
4581,
3436,
834,
591,
549,
17444,
427,
1102,
3274,
96,
254,
9578,
121,
3430,
3,
29,
107,
40,
834,
11650,
3274,
96,
308,
15252,
155,
1624,
15753,
7,
121,
1,
-100,
-100,
-100,
-100,
... |
When hany abu-assad category:articles with hcards is the director what is the result? | CREATE TABLE table_26555737_1 (result VARCHAR, director VARCHAR) | SELECT result FROM table_26555737_1 WHERE director = "Hany Abu-Assad Category:Articles with hCards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
28803,
27931,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
2618,
63,
703,
76,
18,
9,
7,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
741,
21680,
953,
834,
2688,
28803,
27931,
834,
536,
549,
17444,
427,
2090,
3274,
96,
566,
6820,
15392,
18,
27409,
17459,
10,
7754,
447,
965,
28,
3,
107,
6936,
26,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
5 Hoops larger than 19.325, and a Total of 39.4, and a Place larger than 2 had what total number of 3 balls and 2 ribbons? | CREATE TABLE table_38206 (
"Place" real,
"Nation" text,
"5 Hoops" real,
"3 Balls, 2 Ribbons" real,
"Total" real
) | SELECT COUNT("3 Balls, 2 Ribbons") FROM table_38206 WHERE "5 Hoops" > '19.325' AND "Total" = '39.4' AND "Place" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
24643,
41,
96,
345,
11706,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
755,
1546,
9280,
121,
490,
6,
96,
519,
4155,
7,
6,
204,
30548,
7,
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,
2847,
17161,
599,
121,
519,
4155,
7,
6,
204,
30548,
7,
8512,
21680,
953,
834,
3747,
24643,
549,
17444,
427,
96,
755,
1546,
9280,
121,
2490,
3,
31,
2294,
5,
519,
1828,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
31,
... |
What is Left Office, when Took Office is 2006? | CREATE TABLE table_76834 (
"Name" text,
"Took Office" text,
"Left Office" text,
"President" text,
"Party" text
) | SELECT "Left Office" FROM table_76834 WHERE "Took Office" = '2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4591,
591,
41,
96,
23954,
121,
1499,
6,
96,
3696,
1825,
2126,
121,
1499,
6,
96,
2796,
89,
17,
2126,
121,
1499,
6,
96,
345,
15704,
121,
1499,
6,
96,
13725,
63,
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,
2796,
89,
17,
2126,
121,
21680,
953,
834,
3959,
4591,
591,
549,
17444,
427,
96,
3696,
1825,
2126,
121,
3274,
3,
31,
21196,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the highest amount of runs for more than 5 matches? | CREATE TABLE table_name_45 (
runs INTEGER,
matches INTEGER
) | SELECT MAX(runs) FROM table_name_45 WHERE matches > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
3154,
3,
21342,
17966,
6,
6407,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
866,
13,
3154,
21,
72,
145,
305,
6407,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4312,
7,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
6407,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score for the game that was played on 29-Jun-2009? | CREATE TABLE table_name_93 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_93 WHERE date = "29-jun-2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
467,
24,
47,
1944,
30,
2838,
18,
683... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
833,
3274,
96,
3166,
18,
6959,
18,
16660,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest amount of swedish championship titles for the team that was introduced before 2006? | CREATE TABLE table_54463 (
"Club" text,
"Swedish championship titles" real,
"Allsvenskan titles" real,
"Introduced" real,
"Stars symbolizes" text
) | SELECT MAX("Swedish championship titles") FROM table_54463 WHERE "Introduced" < '2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3628,
3891,
41,
96,
254,
11158,
121,
1499,
6,
96,
134,
1123,
26,
1273,
10183,
8342,
121,
490,
6,
96,
6838,
7,
1926,
7,
3304,
8342,
121,
490,
6,
96,
1570,
17,
52,
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,
121,
134,
1123,
26,
1273,
10183,
8342,
8512,
21680,
953,
834,
755,
3628,
3891,
549,
17444,
427,
96,
1570,
17,
52,
32,
12160,
26,
121,
3,
2,
3,
31,
21196,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Fuzzy Zoeller's To par? | CREATE TABLE table_name_29 (
to_par VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_29 WHERE player = "fuzzy zoeller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6343,
19974,
6226,
9670,
31,
7,
304,
260,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1959,
3274,
96,
22845,
4164,
3,
172,
32,
9670,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the 2013 club which has a Name of ana grbac category:articles with hcards? | CREATE TABLE table_name_62 (name VARCHAR) | SELECT 2013 AS _club FROM table_name_62 WHERE name = "ana grbac category:articles with hcards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2038,
1886,
84,
65,
3,
9,
5570,
13,
46,
9,
3542,
9305,
3295,
10,
8372,
7,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2038,
6157,
3,
834,
13442,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
564,
3274,
96,
152,
9,
3542,
9305,
3295,
10,
8372,
7,
28,
3,
107,
6043,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was the last nicotine patch procedure time of patient 033-32465 until 2102? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
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 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-32465')) AND treatment.treatmentname = 'nicotine patch' AND STRFTIME('%y', treatment.treatmenttime) <= '2102' ORDER BY treatment.treatmenttime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1058,
5,
26889,
715,
21680,
1058,
549,
17444,
427,
1058,
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,
21545,
... |
Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1? | CREATE TABLE table_66017 (
"Name" text,
"Nation" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"FLT Apps" text,
"FLT Goals" real,
"Total Apps" text,
"Total Goals" real
) | SELECT "FA Cup Apps" FROM table_66017 WHERE "Total Goals" > '6' AND "FA Cup Goals" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
2517,
41,
96,
23954,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
5398,
2276,
7,
121,
1499,
6,
96,
2796,
9,
5398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4795,
3802,
2276,
7,
121,
21680,
953,
834,
27720,
2517,
549,
17444,
427,
96,
3696,
1947,
17916,
7,
121,
2490,
3,
31,
948,
31,
3430,
96,
4795,
3802,
17916,
7,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
... |
Name the number of believers for patavur | CREATE TABLE table_27002 (
"Name of Village" text,
"Name in Syriac" text,
"Number of Believers" real,
"Number of Priests" real,
"Number of Churches" real
) | SELECT COUNT("Number of Believers") FROM table_27002 WHERE "Name of Village" = 'Patavur' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
4305,
41,
96,
23954,
13,
7305,
121,
1499,
6,
96,
23954,
16,
11380,
75,
121,
1499,
6,
96,
567,
5937,
49,
13,
22070,
52,
7,
121,
490,
6,
96,
567,
5937,
49,
13,
245... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
5937,
49,
13,
22070,
52,
7,
8512,
21680,
953,
834,
17485,
4305,
549,
17444,
427,
96,
23954,
13,
7305,
121,
3274,
3,
31,
345,
144,
9,
208,
450,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score in game 3? | CREATE TABLE table_23286158_11 (
score VARCHAR,
game VARCHAR
) | SELECT score FROM table_23286158_11 WHERE game = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
3840,
26556,
834,
2596,
41,
2604,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
16,
467,
220,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
23188,
3840,
26556,
834,
2596,
549,
17444,
427,
467,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the score of the event that Alianza Lima won in 1965? | CREATE TABLE table_76282 (
"Season" real,
"Date" text,
"Winner" text,
"Score [C ]" text,
"Venue" text,
"Competition round" text
) | SELECT "Score [C ]" FROM table_76282 WHERE "Winner" = 'alianza lima' AND "Season" = '1965' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
2577,
357,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
784,
254,
3,
908,
121,
1499,
6,
96,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
784,
254,
3,
908,
121,
21680,
953,
834,
3959,
2577,
357,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
9,
9928,
1629,
3,
4941,
9,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
2294,
4122... |
Which Heat has a Rank of 8? | CREATE TABLE table_name_16 (heat INTEGER, rank VARCHAR) | SELECT MAX(heat) FROM table_name_16 WHERE rank = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
88,
144,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7862,
65,
3,
9,
3,
22557,
13,
505,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
11003,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many times is the player scott deibert? | CREATE TABLE table_name_72 (pick__number VARCHAR, player VARCHAR) | SELECT COUNT(pick__number) FROM table_name_72 WHERE player = "scott deibert" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
19,
8,
1959,
3,
7,
10405,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1959,
3274,
96,
7,
10405,
20,
23,
7041,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many townships are there in the region with 376 village groups? | CREATE TABLE table_23011 (
"No." real,
"State/Region" text,
"Districts" real,
"Town ships" real,
"Cities/ Towns" real,
"Wards" real,
"Village groups" real,
"Villages" real
) | SELECT MAX("Town ships") FROM table_23011 WHERE "Village groups" = '376' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
2596,
41,
96,
4168,
535,
490,
6,
96,
134,
4748,
87,
17748,
23,
106,
121,
1499,
6,
96,
308,
23,
20066,
7,
121,
490,
6,
96,
382,
9197,
10911,
121,
490,
6,
96,
254,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
9197,
10911,
8512,
21680,
953,
834,
13427,
2596,
549,
17444,
427,
96,
553,
17614,
1637,
121,
3274,
3,
31,
519,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many actors are there? | CREATE TABLE actor (
Id VARCHAR
) | SELECT COUNT(*) FROM actor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10485,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7556,
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,
-... |
Which rank's country is the US when the accolade is 40 best albums of the year? | CREATE TABLE table_name_96 (
rank VARCHAR,
country VARCHAR,
accolade VARCHAR
) | SELECT rank FROM table_name_96 WHERE country = "us" AND accolade = "40 best albums of the year" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
11003,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
30022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11003,
31,
7,
684,
19,
8,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
684,
3274,
96,
302,
121,
3430,
30022,
3274,
96,
2445,
200,
14234,
13,
8,
215,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the constructor for b. bira | CREATE TABLE table_28190534_1 (
constructor VARCHAR,
driver VARCHAR
) | SELECT constructor FROM table_28190534_1 WHERE driver = "B. Bira" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2294,
3076,
3710,
834,
536,
41,
6774,
127,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6774,
127,
21,
3,
115,
5,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
2577,
2294,
3076,
3710,
834,
536,
549,
17444,
427,
2535,
3274,
96,
279,
5,
10158,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue hosted a home team with a score of 11.16 (82)? | CREATE TABLE table_33038 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33038 WHERE "Home team score" = '11.16 (82)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17225,
3747,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
17225,
3747,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
10032,
2938,
13642,
7318,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2? | CREATE TABLE table_name_33 (athlete VARCHAR, heat VARCHAR, country VARCHAR, rank VARCHAR, time VARCHAR) | SELECT athlete FROM table_name_33 WHERE rank < 13 AND time > 11.13 AND country = "bahamas" AND heat > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
26170,
15,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17893,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
11003,
3,
2,
1179,
3430,
97,
2490,
7806,
2368,
3430,
684,
3274,
96,
17670,
9,
2754,
121,
3430,
1678,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each movie that received more than 3 reviews, what is the average rating. Show scatter chart. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT mID, AVG(stars) FROM Rating GROUP BY mID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
51,
4309,
6,
71,
17217,
599,
3624,
7,
61,
21680,
21662,
350,
4630,
6880,
272,
476,
3,
51,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many U.S. viewers were there for the number 4 episode in season? | CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) | SELECT us_viewers__millions_ FROM table_25246990_5 WHERE no_in_season = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2266,
3951,
2394,
834,
755,
41,
302,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
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,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
21680,
953,
834,
1828,
2266,
3951,
2394,
834,
755,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Name, when Location is Tanzania, and when Novelty is Gen Nov? | CREATE TABLE table_40613 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Location" text
) | SELECT "Name" FROM table_40613 WHERE "Location" = 'tanzania' AND "Novelty" = 'gen nov' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4241,
519,
41,
96,
23954,
121,
1499,
6,
96,
4168,
4911,
17,
63,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23602,
127,
7,
121,
1499,
6,
96,
434,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2445,
4241,
519,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
14137,
11219,
31,
3430,
96,
4168,
4911,
17,
63,
121,
3274,
3,
31,
729,
3,
5326,
31,
1,
-100,
-100,
-100,... |
How many episode numbers were directed by Steven DePaul and titled 'Sudden Flight'? | CREATE TABLE table_28417 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Rank (week)" text,
"Original air date" text,
"Production code" text
) | SELECT COUNT("#") FROM table_28417 WHERE "Directed by" = 'Steven DePaul' AND "Title" = 'Sudden Flight' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2517,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
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,
4663,
8512,
21680,
953,
834,
357,
4608,
2517,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
14337,
1926,
374,
23183,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
134,
76,
26,
... |
What is Date, when Outcome is 'Winner', and when Opponents is 'Paul Haarhuis Sandon Stolle'? | CREATE TABLE table_48855 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Date" FROM table_48855 WHERE "Outcome" = 'winner' AND "Opponents" = 'paul haarhuis sandon stolle' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4060,
3769,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
591,
4060,
3769,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
3757,
687,
31,
3430,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
102,
9,
83,
4244,
291,
3464,
7,
3,
7,
... |
What is the away team when north melbourne is at home? | CREATE TABLE table_74654 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_74654 WHERE "Home team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4122,
591,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
4581,
4122,
591,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the lowest 2008 for guizhou when 2005 is less than 31 | CREATE TABLE table_name_45 (
year VARCHAR
) | SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7402,
2628,
21,
3,
7938,
25303,
116,
3105,
19,
705,
145,
2664,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
16128,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
215,
3274,
96,
7938,
25303,
121,
3430,
3105,
3,
2,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of goal difference when the position is more than 20 | CREATE TABLE table_55928 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT COUNT("Goal Difference") FROM table_55928 WHERE "Position" > '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3390,
2577,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
1499,
6,
96,
18455,
7,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
6221,
138,
27187,
8512,
21680,
953,
834,
755,
3390,
2577,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who has the title and rank 14, and a worldwide gross of $202,292,902? | CREATE TABLE table_name_83 (
title VARCHAR,
rank VARCHAR,
worldwide_gross VARCHAR
) | SELECT title FROM table_name_83 WHERE rank > 14 AND worldwide_gross = "$202,292,902" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
2233,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
4388,
834,
3844,
7,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
8,
2233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
11003,
2490,
968,
3430,
4388,
834,
3844,
7,
7,
3274,
96,
3229,
19818,
6,
3166,
4482,
2394,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose days of hospital stay is greater than 3? | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where is the service pattern sydenham then fast to norwood junction? | CREATE TABLE table_20262 (
"Platform" real,
"Frequency (per hour)" real,
"Destination" text,
"Service Pattern" text,
"Operator" text,
"Line" text
) | SELECT "Destination" FROM table_20262 WHERE "Service Pattern" = 'Sydenham then fast to Norwood Junction' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
4056,
41,
96,
10146,
2032,
121,
490,
6,
96,
371,
60,
835,
11298,
41,
883,
1781,
61,
121,
490,
6,
96,
308,
222,
77,
257,
121,
1499,
6,
96,
15260,
20918,
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,
222,
77,
257,
121,
21680,
953,
834,
19818,
4056,
549,
17444,
427,
96,
15260,
20918,
121,
3274,
3,
31,
134,
63,
537,
1483,
258,
1006,
12,
7005,
2037,
29092,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What opponent in the final has October 9, 2005 as the date? | CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR) | SELECT opponent_in_the_final FROM table_name_69 WHERE date = "october 9, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
32,
102,
9977,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
15264,
16,
8,
804,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
9902,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what amount has spain as second place and the language is russian? | CREATE TABLE table_822 (
"Year" real,
"Winner" text,
"Language" text,
"Artist" text,
"Song" text,
"Points" real,
"Margin" real,
"Second place" text,
"Date" text,
"Venue" text,
"Location" text,
"Participants" real
) | SELECT COUNT("Margin") FROM table_822 WHERE "Second place" = 'Spain' AND "Language" = 'Russian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7286,
122,
77,
8512,
21680,
953,
834,
4613,
357,
549,
17444,
427,
96,
134,
15,
1018,
26,
286,
121,
3274,
3,
31,
134,
13585,
29,
31,
3430,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
29613,
2... |
Name the D 48 O with D 41 of d 41 | CREATE TABLE table_name_47 (
d_48_o VARCHAR,
d_41_√ VARCHAR
) | SELECT d_48_o FROM table_name_47 WHERE d_41_√ = "d 41 √" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3,
26,
834,
3707,
834,
32,
584,
4280,
28027,
6,
3,
26,
834,
4853,
834,
2,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
309,
4678,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26,
834,
3707,
834,
32,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3,
26,
834,
4853,
834,
2,
3274,
96,
26,
8798,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
papers by emina torlak from 2010 | CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
) | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'emina torlak' AND paper.year = 2010 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331,
4059,
6,
5669,
23,
26,
16,
17,
6,
215,
16,
17,
6,
3,
5525,
17994,
16,
17,
6,
3,
5525,
11675,
969,
16,
17,
6,
6378,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
21680,
2291,
6,
1040,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
15,
1109,
9,
12,
52,
40,
1639,
31,
3430,
1040,
5,
1201,
3274,
2735,
3430,
11858,
... |
Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24 23? | CREATE TABLE table_name_27 (
attendance INTEGER,
week VARCHAR,
result VARCHAR
) | SELECT MAX(attendance) FROM table_name_27 WHERE week < 9 AND result = "l 24–23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
11364,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
22497,
663,
19,
8,
2030,
80,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
471,
3,
2,
668,
3430,
741,
3274,
96,
40,
997,
104,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who's the partner at Tamara, Hon? | CREATE TABLE table_18268930_1 (partner VARCHAR, location VARCHAR) | SELECT partner FROM table_18268930_1 WHERE location = "Tamara, HON" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2688,
3914,
1458,
834,
536,
41,
12300,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
2397,
44,
10903,
2551,
6,
11772,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2397,
21680,
953,
834,
2606,
2688,
3914,
1458,
834,
536,
549,
17444,
427,
1128,
3274,
96,
382,
9,
1635,
9,
6,
454,
4170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
does each congressman have a party listed ? | CREATE TABLE table_203_409 (
id number,
"rank" number,
"representative" text,
"party" text,
"district" text,
"seniority date" text,
"notes" text
) | SELECT COUNT(*) = 0 FROM table_203_409 WHERE "party" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
4198,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
60,
12640,
1528,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
26,
23,
20066,
121,
1499,
6,
96,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
3274,
3,
632,
21680,
953,
834,
23330,
834,
591,
4198,
549,
17444,
427,
96,
8071,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters? | CREATE TABLE table_25034 (
"Year" text,
"Network" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Ice level reporters" text,
"Studio host" text,
"Studio analysts" text
) | SELECT "Play-by-play" FROM table_25034 WHERE "Studio analysts" = 'Mike Milbury' AND "Ice level reporters" = 'Darren Pang' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3710,
41,
96,
476,
2741,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
3881,
322,
1670,
1016,
599,
7,
61,
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,
15800,
18,
969,
18,
4895,
121,
21680,
953,
834,
11434,
3710,
549,
17444,
427,
96,
13076,
26,
23,
32,
15639,
121,
3274,
3,
31,
329,
5208,
8573,
7165,
31,
3430,
96,
196,
565,
593,
19644,
121,
3274,
3,
31,
29367,... |
Which Casualties have a Location of kunduz, and Circumstances of suicide? | CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR) | SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
6769,
3471,
3010,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
4616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
30213,
3010,
43,
3,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6995,
3010,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1128,
3274,
96,
2729,
10170,
172,
121,
3430,
4616,
3274,
96,
7,
76,
9440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the label of the Year before 1979? | CREATE TABLE table_name_16 (label VARCHAR, year INTEGER) | SELECT label FROM table_name_16 WHERE year < 1979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
40,
10333,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3783,
13,
8,
2929,
274,
15393,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
215,
3,
2,
15393,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the average speed where lap four's time was 22.9049? | CREATE TABLE table_23018775_3 (avg_speed VARCHAR, lap_four VARCHAR) | SELECT avg_speed FROM table_23018775_3 WHERE lap_four = "22.9049" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
25828,
3072,
834,
519,
41,
9,
208,
122,
834,
9993,
584,
4280,
28027,
6,
14941,
834,
12521,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
1634,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
9,
208,
122,
834,
9993,
21680,
953,
834,
13427,
25828,
3072,
834,
519,
549,
17444,
427,
14941,
834,
12521,
3274,
96,
2884,
5,
2394,
3647,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of replaced by for 13 june 2009 | CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR) | SELECT COUNT(replaced_by) FROM table_22640051_3 WHERE date_of_appointment = "13 June 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
5548,
5553,
834,
519,
41,
60,
4687,
26,
834,
969,
584,
4280,
28027,
6,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
4687,
26,
834,
969,
61,
21680,
953,
834,
357,
2688,
5548,
5553,
834,
519,
549,
17444,
427,
833,
834,
858,
834,
9,
102,
2700,
297,
3274,
96,
2368,
1515,
2464,
121,
1,
-100,
-100,
-100,
-100,
-... |
Which club was originally named the newcastle falcons? | CREATE TABLE table_26218124_1 (
original_club VARCHAR,
name VARCHAR
) | SELECT original_club FROM table_26218124_1 WHERE name = "Newcastle Falcons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
357,
2606,
22504,
834,
536,
41,
926,
834,
13442,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1886,
47,
5330,
2650,
8,
126,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
13442,
21680,
953,
834,
2688,
357,
2606,
22504,
834,
536,
549,
17444,
427,
564,
3274,
96,
6861,
5254,
109,
22150,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When was Too Hop to Handle released? | CREATE TABLE table_name_68 (release_date VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_68 WHERE title = "too hop to handle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
9647,
15139,
12,
2263,
109,
1883,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2233,
3274,
96,
235,
32,
13652,
12,
2174,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What country is the contestant from Chihuahua from? | CREATE TABLE table_2312 (
"Country" text,
"Contestant" text,
"Age" real,
"Height (cm)" real,
"Height (ft)" text,
"Hometown" text
) | SELECT "Country" FROM table_2312 WHERE "Hometown" = 'Chihuahua' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2122,
41,
96,
10628,
651,
121,
1499,
6,
96,
4302,
4377,
288,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
3845,
2632,
41,
75,
51,
61,
121,
490,
6,
96,
3845,
2632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
2773,
2122,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
3541,
23,
107,
76,
9,
107,
76,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Release date of the Filmography directed by Robert McKimson in MM Series with Production Number 1665? | CREATE TABLE table_name_16 (release_date VARCHAR, production_number VARCHAR, director VARCHAR, series VARCHAR) | SELECT release_date FROM table_name_16 WHERE director = "robert mckimson" AND series = "mm" AND production_number = "1665" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
999,
834,
5525,
1152,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
2090,
3274,
96,
5840,
49,
17,
3,
51,
2406,
603,
739,
121,
3430,
939,
3274,
96,
635,
121,
3430,
999,
834,
5525,
1152,
3274,
96,
26811,
17395,
1,
-... |
On what date did the match at Lake Oval take place? | CREATE TABLE table_name_63 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_63 WHERE venue = "lake oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
8,
1588,
44,
2154,
411,
2165,
240,
286,
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,
833,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
5669,
3274,
96,
16948,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
I want the fewest Laps for Huub Rothengatter and grid less than 24 | CREATE TABLE table_name_88 (laps INTEGER, driver VARCHAR, grid VARCHAR) | SELECT MIN(laps) FROM table_name_88 WHERE driver = "huub rothengatter" AND grid < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
8478,
7,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
360,
222,
325,
102,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
2535,
3274,
96,
107,
76,
76,
115,
3,
2719,
88,
1725,
12828,
121,
3430,
8634,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
specify icd9 code for patient id 76446 | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT procedures.short_title FROM procedures WHERE procedures.subject_id = "76446" | [
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,
4293,
5,
7,
14184,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3959,
591,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least amount of silver for Italy with a total less than 5? | CREATE TABLE table_64659 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Silver") FROM table_64659 WHERE "Nation" = 'italy' AND "Total" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
948,
3390,
41,
96,
22557,
121,
1499,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
173,
624,
8512,
21680,
953,
834,
4389,
948,
3390,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
9538,
63,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-... |
Where is constituency number 16? | CREATE TABLE table_name_57 (name VARCHAR, constituency_number VARCHAR) | SELECT name FROM table_name_57 WHERE constituency_number = "16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
4350,
584,
4280,
28027,
6,
6439,
4392,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
6439,
4392,
381,
898,
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,
564,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
6439,
4392,
834,
5525,
1152,
3274,
96,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the price of taking oxycodone hcl 5 mg po tabs (range) prn? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'oxycodone hcl 5 mg po tabs (range) prn') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
526,
17530,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
7757,
5,
526,
17530,
23,
26,
21680,
... |
What was James Reed's draft round number? | CREATE TABLE table_name_90 (round VARCHAR, player VARCHAR) | SELECT COUNT(round) FROM table_name_90 WHERE player = "james reed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
7775,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
2549,
20142,
31,
7,
6488,
1751,
381,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1959,
3274,
96,
1191,
2687,
3,
60,
15,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the name of instructors who are advising more than one student. | CREATE TABLE advisor (
i_id VARCHAR
)
CREATE TABLE instructor (
name VARCHAR,
id VARCHAR
) | SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
23,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
564,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
4350,
21680,
10617,
6157,
332,
536,
3,
15355,
3162,
8815,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
23,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
4416,
23,
834,
23,
26,
454,
6968,
236... |
What is the fewest number of silvers for teams with more than 21 gold and more than 4 bronze? | CREATE TABLE table_6284 (
"Rank" text,
"Institution" text,
"Gold" real,
"Silver" real,
"Bronze" real
) | SELECT MIN("Silver") FROM table_6284 WHERE "Bronze" > '4' AND "Gold" > '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4608,
41,
96,
22557,
121,
1499,
6,
96,
1570,
17448,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
4056,
4608,
549,
17444,
427,
96,
22780,
29,
776,
121,
2490,
3,
31,
591,
31,
3430,
96,
23576,
121,
2490,
3,
31,
2658,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many rooms in each building have a capacity of over 50 Visualize by bar chart, list by the X in ascending. | CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
) | SELECT building, COUNT(*) FROM classroom WHERE capacity > 50 GROUP BY building ORDER BY building | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
97,
834,
7,
3171,
41,
97,
834,
7,
3171,
834,
23,
26,
3,
4331,
4059,
10820,
6,
239,
3,
4331,
4059,
14296,
6,
456,
834,
107,
52,
206,
17552,
16426,
6,
456,
834,
1109,
206,
17552,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
740,
6,
2847,
17161,
599,
1935,
61,
21680,
4858,
549,
17444,
427,
2614,
2490,
943,
350,
4630,
6880,
272,
476,
740,
4674,
11300,
272,
476,
740,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
With the given points of 667, what was the number of tries against? | CREATE TABLE table_17675675_2 (
tries_against VARCHAR,
points_for VARCHAR
) | SELECT tries_against FROM table_17675675_2 WHERE points_for = "667" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3708,
4834,
3072,
834,
357,
41,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
9,
16720,
7,
17,
21680,
953,
834,
2517,
3708,
4834,
3072,
834,
357,
549,
17444,
427,
979,
834,
1161,
3274,
96,
3539,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the written by for prod code being 206 | CREATE TABLE table_25748 (
"#" text,
"Original title" text,
"Directed by" text,
"Written by" text,
"Original air dates" text,
"Prod. code" real
) | SELECT "Written by" FROM table_25748 WHERE "Prod. code" = '206' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
3707,
41,
96,
4663,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
357,
3436,
3707,
549,
17444,
427,
96,
3174,
26,
5,
1081,
121,
3274,
3,
31,
24643,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the highest Capacity that has the Team of torpedo? | CREATE TABLE table_name_66 (
capacity INTEGER,
team VARCHAR
) | SELECT MAX(capacity) FROM table_name_66 WHERE team = "torpedo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
2614,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
2030,
4000,
9,
6726,
24,
65,
8,
2271,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
4010,
9,
6726,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
372,
3274,
96,
17,
127,
3138,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What won best amiga demo when alto knallo (free electric band) won best pc demo? | CREATE TABLE table_27178 (
"Year" text,
"Amiga demo" text,
"PC demo" text,
"C64 demo" text,
"Amiga intro" text,
"PC intro" text
) | SELECT "Amiga demo" FROM table_27178 WHERE "PC demo" = 'Alto Knallo (Free Electric Band)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
27640,
41,
96,
476,
2741,
121,
1499,
6,
96,
8123,
12581,
8698,
121,
1499,
6,
96,
4051,
8698,
121,
1499,
6,
96,
254,
4389,
8698,
121,
1499,
6,
96,
8123,
12581,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8123,
12581,
8698,
121,
21680,
953,
834,
2555,
27640,
549,
17444,
427,
96,
4051,
8698,
121,
3274,
3,
31,
188,
40,
235,
480,
29,
1748,
32,
41,
16393,
8666,
4483,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score of the match played on 18 January 1999? | CREATE TABLE table_name_48 (
outcome VARCHAR,
date VARCHAR
) | SELECT outcome FROM table_name_48 WHERE date = "18 january 1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
6138,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
1588,
1944,
30,
507,
1762,
5247,
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,
6138,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
833,
3274,
96,
2606,
3,
7066,
76,
1208,
5247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest First Year, when Model is "Quattroporte (2.8)"? | CREATE TABLE table_name_15 (first_year INTEGER, model VARCHAR) | SELECT MIN(first_year) FROM table_name_15 WHERE model = "quattroporte (2.8)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
14672,
834,
1201,
3,
21342,
17966,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1485,
2929,
6,
116,
5154,
19,
96,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
1201,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
825,
3274,
96,
4960,
17,
12395,
127,
17,
15,
41,
19419,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Order and Title with an Elevated with 1261, december 17, and a Faction with angevin? | CREATE TABLE table_56636 (
"Elector" text,
"Nationality" text,
"Faction" text,
"Order and Title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Order and Title" FROM table_56636 WHERE "Elevated" = '1261, december 17' AND "Faction" = 'angevin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3539,
3420,
41,
96,
21543,
127,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
371,
4787,
121,
1499,
6,
96,
7395,
588,
11,
11029,
121,
1499,
6,
96,
427,
10912,
920,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7395,
588,
11,
11029,
121,
21680,
953,
834,
755,
3539,
3420,
549,
17444,
427,
96,
427,
10912,
920,
121,
3274,
3,
31,
21976,
4347,
20,
75,
18247,
1003,
31,
3430,
96,
371,
4787,
121,
3274,
3,
31,
3280,
2494,
31,... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of code , and group by attribute name, I want to show by the x-axis in desc please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
For Model e12 what is the IFLs/uIFLs? | CREATE TABLE table_name_77 (ifls___uifls VARCHAR, model VARCHAR) | SELECT ifls___uifls FROM table_name_77 WHERE model = "e12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
99,
40,
7,
834,
834,
834,
76,
99,
40,
7,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
5154,
3,
15,
2122,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
99,
40,
7,
834,
834,
834,
76,
99,
40,
7,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
825,
3274,
96,
15,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for how many days did antonio mccarthy stay in the hospital and what was his primary disease? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.days_stay, demographic.diagnosis FROM demographic WHERE demographic.name = "Antonio Mccarthy" | [
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,
14798,
5,
1135,
7,
834,
21545,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
188,
6992,
23,
32,
3038,
1720,
189,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The Powerbook 100 model has what processor? | CREATE TABLE table_63437 (
"Processor" text,
"Model" text,
"Clock speed (MHz)" real,
"L1 cache (bytes)" text,
"Introduced" text,
"Discontinued" text
) | SELECT "Processor" FROM table_63437 WHERE "Model" = 'powerbook 100' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
591,
4118,
41,
96,
3174,
75,
24901,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
254,
4029,
1634,
41,
20210,
61,
121,
490,
6,
96,
434,
536,
11800,
41,
17770,
7,
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,
3174,
75,
24901,
121,
21680,
953,
834,
3891,
591,
4118,
549,
17444,
427,
96,
24663,
121,
3274,
3,
31,
6740,
2567,
910,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many race 3 winners were there when Mitch Evans won race 2? | CREATE TABLE table_25541 (
"Event" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Race 1 Winner" text,
"Race 2 Winner" text,
"Race 3 Winner" text
) | SELECT COUNT("Race 3 Winner") FROM table_25541 WHERE "Race 2 Winner" = 'Mitch Evans' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
4853,
41,
96,
427,
2169,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
448,
3302,
209,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
448,
3302,
220,
18125,
8512,
21680,
953,
834,
25502,
4853,
549,
17444,
427,
96,
448,
3302,
204,
18125,
121,
3274,
3,
31,
329,
7059,
18305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Richard Crump picked after the 114 pick was drafted in what round? | CREATE TABLE table_name_99 (round VARCHAR, pick__number VARCHAR, player VARCHAR) | SELECT round FROM table_name_99 WHERE pick__number > 114 AND player = "richard crump" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
7775,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4117,
12461,
1167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
2490,
3,
18959,
3430,
1959,
3274,
96,
3723,
986,
8396,
1167,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who had the highest assists in game 75? | CREATE TABLE table_27733909_10 (high_assists VARCHAR, game VARCHAR) | SELECT high_assists FROM table_27733909_10 WHERE game = 75 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
3288,
4198,
834,
1714,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
2030,
13041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2555,
4552,
3288,
4198,
834,
1714,
549,
17444,
427,
467,
3274,
6374,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose age is less than 41 and diagnoses icd9 code is 34291? | 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
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "41" AND diagnoses.icd9_code = "34291" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the venue for the dates 7,8,10,11 Feb 1908? | CREATE TABLE table_44921 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Venue" FROM table_44921 WHERE "Date" = '7,8,10,11 feb 1908' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3647,
2658,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
14268,
121,
1499,
6,
96,
188,
1343,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
591,
3647,
2658,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
940,
6,
11864,
1714,
6,
2596,
3,
89,
15,
115,
957,
4018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What catalog has the United Kingdom as the country? | CREATE TABLE table_42464 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Catalog" FROM table_42464 WHERE "Country" = 'united kingdom' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
4389,
41,
96,
10628,
651,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
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,
0,
0... | [
3,
23143,
14196,
96,
18610,
9,
2152,
121,
21680,
953,
834,
591,
2266,
4389,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
14740,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was Anand's score in game 8? | CREATE TABLE table_name_67 (
anand VARCHAR,
game VARCHAR
) | SELECT anand FROM table_name_67 WHERE game = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
46,
232,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
389,
232,
31,
7,
2604,
16,
467,
505,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
46,
232,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
467,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date was the opponent in the final Virginie Pichet? | CREATE TABLE table_name_46 (
date VARCHAR,
opponent_in_final VARCHAR
) | SELECT date FROM table_name_46 WHERE opponent_in_final = "virginie pichet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
833,
584,
4280,
28027,
6,
15264,
834,
77,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
15264,
16,
8,
804,
16823... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
15264,
834,
77,
834,
12406,
3274,
96,
5771,
122,
77,
23,
15,
6686,
88,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which event only lasted for 3 rounds against Fernando Terere? | CREATE TABLE table_name_50 (event VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_50 WHERE round = 3 AND opponent = "fernando terere" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
15,
2169,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
163,
3,
19054,
21,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1751,
3274,
220,
3430,
15264,
3274,
96,
8377,
232,
32,
3,
449,
49,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date has parlophone as the label, and lp as a format? | CREATE TABLE table_name_17 (
date VARCHAR,
label VARCHAR,
format VARCHAR
) | SELECT date FROM table_name_17 WHERE label = "parlophone" AND format = "lp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
833,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
260,
40,
32,
6399,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3783,
3274,
96,
1893,
40,
32,
6399,
121,
3430,
1910,
3274,
96,
40,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who wrote the episode with e4515 as the production code? | CREATE TABLE table_25750635_2 (written_by VARCHAR, production_code VARCHAR) | SELECT written_by FROM table_25750635_2 WHERE production_code = "E4515" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
9979,
948,
2469,
834,
357,
41,
14973,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
1828,
9979,
948,
2469,
834,
357,
549,
17444,
427,
999,
834,
4978,
3274,
96,
427,
2128,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What school is located in Michigan City? | CREATE TABLE table_37447 (
"School" text,
"Mascot" text,
"Location" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT "School" FROM table_37447 WHERE "Location" = 'michigan city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4581,
4177,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29364,
121,
21680,
953,
834,
519,
4581,
4177,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
51,
362,
12588,
690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the episode in which Jenn is eliminated? | CREATE TABLE table_72320 (
"Episode title" text,
"Air date" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
) | SELECT "Episode title" FROM table_72320 WHERE "Eliminated" = 'Jenn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
15003,
41,
96,
427,
102,
159,
32,
221,
2233,
121,
1499,
6,
96,
20162,
833,
121,
1499,
6,
96,
1649,
2239,
121,
1499,
6,
96,
196,
635,
202,
485,
121,
1499,
6,
96,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
102,
159,
32,
221,
2233,
121,
21680,
953,
834,
5865,
15003,
549,
17444,
427,
96,
427,
4941,
77,
920,
121,
3274,
3,
31,
683,
35,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What position does pick number 12 play? | CREATE TABLE table_name_87 (position VARCHAR, pick__number VARCHAR) | SELECT position FROM table_name_87 WHERE pick__number = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
4718,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
1432,
381,
586,
577,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of points earned by maris rupeiks during the 2007 season ? | CREATE TABLE table_203_295 (
id number,
"position" number,
"driver / passenger" text,
"equipment" text,
"points" number,
"wins" number,
"second" number,
"third" number
) | SELECT "points" FROM table_203_295 WHERE "driver / passenger" = 'maris rupeiks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
3301,
41,
3,
23,
26,
381,
6,
96,
4718,
121,
381,
6,
96,
13739,
52,
3,
87,
10837,
121,
1499,
6,
96,
15,
23067,
297,
121,
1499,
6,
96,
2700,
7,
121,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
121,
21680,
953,
834,
23330,
834,
357,
3301,
549,
17444,
427,
96,
13739,
52,
3,
87,
10837,
121,
3274,
3,
31,
17289,
7,
24617,
23,
157,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest PI GP when the Reg GP is 1, Murray Bannerman is the Player, and the Pick # is under 58? | CREATE TABLE table_name_53 (
pl_gp INTEGER,
pick__number VARCHAR,
reg_gp VARCHAR,
player VARCHAR
) | SELECT MIN(pl_gp) FROM table_name_53 WHERE reg_gp = 1 AND player = "murray bannerman" AND pick__number < 58 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
4752,
834,
122,
102,
3,
21342,
17966,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
5925,
834,
122,
102,
584,
4280,
28027,
6,
1959,
584,
4280,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
102,
40,
834,
122,
102,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
5925,
834,
122,
102,
3274,
209,
3430,
1959,
3274,
96,
11054,
2866,
11662,
348,
121,
3430,
1432,
834,
834,
5525,
1152,
3,
... |
What year was the player David Rose? | CREATE TABLE table_63128 (
"Player" text,
"Int'l Debut" text,
"Year" real,
"Cross Code Debut" text,
"Date" text,
"Position" text
) | SELECT SUM("Year") FROM table_63128 WHERE "Player" = 'david rose' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
536,
2577,
41,
96,
15800,
49,
121,
1499,
6,
96,
1570,
17,
31,
40,
374,
2780,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1859,
7,
3636,
374,
2780,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3891,
536,
2577,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
6961,
4659,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5? | CREATE TABLE table_name_48 (
against INTEGER,
played VARCHAR,
lost VARCHAR,
_percentage_won VARCHAR
) | SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
581,
3,
21342,
17966,
6,
1944,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1513,
2490,
3,
632,
3430,
3,
834,
883,
3728,
545,
834,
210,
106,
2490,
943,
3430,
1944,
3,
2,
305,
1,
-100,
-100,
-100,
-100... |
When did Hein Vergeer have a distance of 5,000m? | CREATE TABLE table_name_7 (
date VARCHAR,
distance VARCHAR
) | SELECT date FROM table_name_7 WHERE distance = "5,000m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
833,
584,
4280,
28027,
6,
2357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
216,
77,
781,
397,
49,
43,
3,
9,
2357,
13,
3,
5898,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
834,
940,
549,
17444,
427,
2357,
3274,
96,
5898,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the order number for the beatles and result is safe | CREATE TABLE table_15796054_3 (order__number VARCHAR, original_artist VARCHAR, result VARCHAR) | SELECT order__number FROM table_15796054_3 WHERE original_artist = "The Beatles" AND result = "Safe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
27699,
5062,
834,
519,
41,
9397,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
455,
834,
834,
5525,
1152,
21680,
953,
834,
27452,
27699,
5062,
834,
519,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
634,
27615,
121,
3430,
741,
3274,
96,
27437,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Score, when Team is 'Indiana'? | CREATE TABLE table_name_7 (
score VARCHAR,
team VARCHAR
) | SELECT score FROM table_name_7 WHERE team = "indiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
2604,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
2271,
19,
3,
31,
22126,
29,
9,
31,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
372,
3274,
96,
77,
8603,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
A bar chart about how many eliminations did each team have?, and could you show in ascending by the y-axis please? | CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
) | SELECT Team, COUNT(*) FROM Elimination GROUP BY Team ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
26033,
52,
41,
549,
6216,
1171,
834,
4309,
16,
17,
6,
5570,
1499,
6,
419,
3191,
1499,
6,
13992,
834,
14796,
1499,
6,
10450,
1499,
6,
8042,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
6,
2847,
17161,
599,
1935,
61,
21680,
7495,
14484,
350,
4630,
6880,
272,
476,
2271,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many clubs does 'Linda Smith' have membership for? | CREATE TABLE club (
clubid number,
clubname text,
clubdesc text,
clublocation text
)
CREATE TABLE member_of_club (
stuid number,
clubid number,
position text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Linda" AND t3.lname = "Smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1886,
23,
26,
381,
6,
1886,
4350,
1499,
6,
1886,
26,
1579,
1499,
6,
1886,
14836,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
858,
834,
1344... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
6157,
3,
17,
536,
3,
15355,
3162,
1144,
834,
858,
834,
13442,
6157,
3,
17,
357,
9191,
3,
17,
5411,
13442,
23,
26,
3274,
3,
17,
4416,
13442,
23,
26,
3,
15355,
3162,
1236,
... |
which school shows #/county of 29 hamilton? | CREATE TABLE table_name_49 (school VARCHAR, _number___county VARCHAR) | SELECT school FROM table_name_49 WHERE _number___county = "29 hamilton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
6646,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
496,
1267,
1713,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
496,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3,
834,
5525,
1152,
834,
834,
834,
13362,
63,
3274,
96,
3166,
3,
1483,
23,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients whose admission type is urgent and procedure long title is venous catheterization for renal dialysis? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.long_title = "Venous catheterization for renal dialysis" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers? | CREATE TABLE table_21830 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Colour commentator(s)" text,
"Sideline reporters" text,
"Pregame host" text,
"Pregame analysts" text
) | SELECT COUNT("Play-by-play") FROM table_21830 WHERE "Pregame analysts" = 'Darren Flutie, Eric Tillman and Greg Frers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
1458,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
9939,
1211,
1670,
1016,
599,
7,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
15800,
18,
969,
18,
4895,
8512,
21680,
953,
834,
357,
2606,
1458,
549,
17444,
427,
96,
10572,
7261,
15639,
121,
3274,
3,
31,
29367,
377,
16668,
15,
6,
6964,
22067,
348,
11,
11859,
6248,
277,
3... |
how many patients with procedure icd9 code 8960 have been prescribed additive drug type? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "8960" AND prescriptions.drug_type = "ADDITIVE" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
center-to-center distance of 6,900 to 46,300 km involves which orbital period? | CREATE TABLE table_name_69 (orbital_period VARCHAR, center_to_center_distance VARCHAR) | SELECT orbital_period FROM table_name_69 WHERE center_to_center_distance = "6,900 to 46,300 km" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
127,
2360,
138,
834,
4267,
32,
26,
584,
4280,
28027,
6,
1530,
834,
235,
834,
13866,
834,
26,
23,
8389,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15607,
138,
834,
4267,
32,
26,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1530,
834,
235,
834,
13866,
834,
26,
23,
8389,
3274,
96,
11071,
7015,
12,
9668,
6,
5426,
2280,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.