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 average first round for Utah Jazz team, with a weight smaller than 229? | CREATE TABLE table_14578 (
"Pos." text,
"Player" text,
"Team" text,
"Height" text,
"Weight" real,
"First round" real,
"Final round" text
) | SELECT AVG("First round") FROM table_14578 WHERE "Weight" < '229' AND "Team" = 'utah jazz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
3940,
41,
96,
345,
32,
7,
535,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
96,
2517... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
25171,
1751,
8512,
21680,
953,
834,
20987,
3940,
549,
17444,
427,
96,
1326,
2632,
121,
3,
2,
3,
31,
357,
3166,
31,
3430,
96,
18699,
121,
3274,
3,
31,
76,
17,
9,
107,
9948,
31,
1,
-100,
-100,... |
history of chronic alcohol or drug abuse / dependence within the past 5 years. | CREATE TABLE table_train_140 (
"id" int,
"gender" string,
"mini_mental_state_examination_mmse" int,
"allergy_to_quinidine" bool,
"systolic_blood_pressure_sbp" int,
"postural_syncope" bool,
"hypotension" bool,
"unexplained_syncope" bool,
"allergy_to_dextromethorphan" bool,
"allerg... | SELECT * FROM table_train_140 WHERE alcohol_abuse = 1 OR drug_abuse = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
22012,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
22012,
549,
17444,
427,
4798,
834,
9,
3465,
15,
3274,
209,
4674,
2672,
834,
9,
3465,
15,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Creator has the Latest stable release of unknown, and a Name of myeclipse? | CREATE TABLE table_name_33 (creator VARCHAR, latest_stable_release VARCHAR, name VARCHAR) | SELECT creator FROM table_name_33 WHERE latest_stable_release = "unknown" AND name = "myeclipse" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5045,
1016,
584,
4280,
28027,
6,
1251,
834,
7,
3869,
834,
21019,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
195... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9931,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1251,
834,
7,
3869,
834,
21019,
3274,
96,
202,
5661,
121,
3430,
564,
3274,
96,
2258,
15,
16744,
7,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who did home team sunderland play on 23 january 1982? | CREATE TABLE table_name_33 (away_team VARCHAR, date VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_33 WHERE date = "23 january 1982" AND home_team = "sunderland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
234,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
2773,
3,
7066,
76,
1208,
14505,
121,
3430,
234,
834,
11650,
3274,
96,
7,
7248,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please compare the total enrollment for each type using a bar chart. | CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
)
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest... | SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14932,
41,
14932,
834,
23,
26,
1499,
6,
14932,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
6632,
1499,
6,
695,
4046,
297,
16,
17,
6,
2271,
1499,
6,
14542,
834,
4302,
11788,
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,
6632,
6,
180,
6122,
599,
8532,
4046,
297,
61,
21680,
14932,
350,
4630,
6880,
272,
476,
6632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
hemoglobin a1c ( hba1c ) levels at screening > / = 6.5 % and < / = 10.5 % | CREATE TABLE table_train_279 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"estimated_glomerular_filtration_rate_egfr" int,
"fasting_plasma_glucose" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_279 WHERE hemoglobin_a1c_hba1c >= 6.5 AND hemoglobin_a1c_hba1c <= 10.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
4440,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
357,
4440,
549,
17444,
427,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
2423,
3,
17255,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
7... |
Give me a histogram for what are the statuses and average populations of each city?, I want to sort by the the average of population in ascending. | CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Populat... | SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY AVG(Population) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
41,
4990,
834,
4309,
16,
17,
6,
2929,
16,
17,
6,
9273,
834,
566,
127,
2260,
490,
6,
7301,
834,
566,
127,
2260,
490,
6,
9273,
834,
254,
9,
8692,
490,
6,
20919,
35,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
19318,
6,
71,
17217,
599,
27773,
7830,
61,
21680,
690,
350,
4630,
6880,
272,
476,
19318,
4674,
11300,
272,
476,
71,
17217,
599,
27773,
7830,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27? | CREATE TABLE table_name_33 (score VARCHAR, attendance VARCHAR, date VARCHAR) | SELECT score FROM table_name_33 WHERE attendance = "gund arena 20,562" AND date = "january 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
7,
9022,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17763,
6,
116,
22497,
663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
11364,
3274,
96,
122,
1106,
15134,
16047,
4834,
357,
121,
3430,
833,
3274,
96,
7066,
76,
1208,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many elite eight teams came from the Atlantic 10? | CREATE TABLE table_31634 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
) | SELECT "Elite Eight" FROM table_31634 WHERE "Conference" = 'atlantic 10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25946,
3710,
41,
96,
4302,
11788,
121,
1499,
6,
96,
4663,
13,
2106,
26,
7,
121,
490,
6,
96,
1649,
7621,
121,
1499,
6,
96,
18455,
3,
1454,
121,
1499,
6,
96,
448,
32,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6311,
18516,
121,
21680,
953,
834,
25946,
3710,
549,
17444,
427,
96,
4302,
11788,
121,
3274,
3,
31,
31767,
335,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is admission type and diagnoses long title of subject id 3343? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT demographic.admission_type, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "3343" | [
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,
9,
26,
5451,
834,
6137,
6,
18730,
7,
5,
2961,
834,
21869,
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,
549,
1744... |
What is the l2 cache for the model with a release price of $669? | CREATE TABLE table_20780 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"FSB" text,
"Mult." text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "L2 cache" FROM table_20780 WHERE "Release price ( USD )" = '$669' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
2079,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
357,
11800,
121,
1499,
6,
96,
7674,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
357,
11800,
121,
21680,
953,
834,
26426,
2079,
549,
17444,
427,
96,
1649,
40,
14608,
594,
41,
9513,
3,
61,
121,
3274,
3,
31,
3229,
948,
3951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the area of the school with a decile of 2 and a roll number 222? | CREATE TABLE table_name_33 (
area VARCHAR,
decile VARCHAR,
roll VARCHAR
) | SELECT area FROM table_name_33 WHERE decile = "2" AND roll = "222" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
616,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
6,
3812,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
616,
13,
8,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
616,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
7908,
109,
3274,
96,
357,
121,
3430,
3812,
3274,
96,
26144,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the worst score for the worst dancer(s) john barnes, with a best score of 36? | CREATE TABLE table_name_95 (
worst_score VARCHAR,
best_score VARCHAR,
worst_dancer_s_ VARCHAR
) | SELECT worst_score FROM table_name_95 WHERE best_score = 36 AND worst_dancer_s_ = "john barnes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
6025,
834,
7,
9022,
584,
4280,
28027,
6,
200,
834,
7,
9022,
584,
4280,
28027,
6,
6025,
834,
3768,
2110,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6025,
834,
7,
9022,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
200,
834,
7,
9022,
3274,
4475,
3430,
6025,
834,
3768,
2110,
834,
7,
834,
3274,
96,
27341,
1207,
1496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Where in Buxton has 3 runs? | CREATE TABLE table_name_50 (
venue VARCHAR,
score VARCHAR,
city VARCHAR
) | SELECT venue FROM table_name_50 WHERE score = "3 runs" AND city = "buxton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
5669,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
16,
4708,
20706,
65,
220,
3154,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
2604,
3274,
96,
519,
3154,
121,
3430,
690,
3274,
96,
3007,
20706,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose age is less than 31 and lab test category is blood gas? | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "31" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the Korean dialect with a jeolla RR Romaja? | CREATE TABLE table_name_18 (
korean_dialect VARCHAR,
rr_romaja VARCHAR
) | SELECT korean_dialect FROM table_name_18 WHERE rr_romaja = "jeolla" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
3,
5543,
15,
152,
834,
26,
23,
9,
3437,
584,
4280,
28027,
6,
3,
52,
52,
834,
3522,
9,
1191,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
5543,
15,
152,
834,
26,
23,
9,
3437,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
3,
52,
52,
834,
3522,
9,
1191,
3274,
96,
1924,
32,
195,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Wheel Arrangement, when Manufacturer is 'Baldwin', and when Quantity Made is 12? | CREATE TABLE table_name_52 (
wheel_arrangement VARCHAR,
manufacturer VARCHAR,
quantity_made VARCHAR
) | SELECT wheel_arrangement FROM table_name_52 WHERE manufacturer = "baldwin" AND quantity_made = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
5094,
834,
291,
5517,
297,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
6,
8708,
834,
4725,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5094,
834,
291,
5517,
297,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
4818,
3274,
96,
8267,
3757,
121,
3430,
8708,
834,
4725,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
isbn 0-441-01400-3 is book number? | CREATE TABLE table_72832 (
"#" real,
"Title" text,
"Publisher" text,
"Release" text,
"Length" text,
"Hardcover" text,
"Paperback" text
) | SELECT "#" FROM table_72832 WHERE "Hardcover" = 'ISBN 0-441-01400-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2577,
2668,
41,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
31009,
49,
121,
1499,
6,
96,
1649,
40,
14608,
121,
1499,
6,
96,
434,
4606,
189,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4663,
121,
21680,
953,
834,
940,
2577,
2668,
549,
17444,
427,
96,
15537,
26,
9817,
121,
3274,
3,
31,
4555,
19174,
3,
632,
4278,
4853,
14772,
5548,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average latitude and longitude of stations located in San Jose city? | CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_stat... | SELECT AVG(lat), AVG(long) FROM station WHERE city = "San Jose" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
381,
6,
564,
1499,
6,
50,
17,
381,
6,
307,
381,
6,
12908,
834,
13362,
381,
6,
690,
1499,
6,
2545,
834,
5522,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
40,
144,
201,
71,
17217,
599,
2961,
61,
21680,
2478,
549,
17444,
427,
690,
3274,
96,
134,
152,
10854,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which category has 24 nominated work? | CREATE TABLE table_46362 (
"Year" real,
"Award" text,
"Category" text,
"Nominated work" text,
"Result" text
) | SELECT "Category" FROM table_46362 WHERE "Nominated work" = '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3420,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
4168,
1109,
920,
161,
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,
0,
0... | [
3,
23143,
14196,
96,
18610,
6066,
651,
121,
21680,
953,
834,
4448,
3420,
357,
549,
17444,
427,
96,
4168,
1109,
920,
161,
121,
3274,
3,
31,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What were the events in the 1976 Innsbruck Games? | CREATE TABLE table_6071 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Event" FROM table_6071 WHERE "Games" = '1976 innsbruck' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4450,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
3,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
3328,
4450,
549,
17444,
427,
96,
23055,
7,
121,
3274,
3,
31,
2294,
3959,
16,
29,
7,
9052,
2406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many players played running back where status is made 53-man roster at start of 2009 season | CREATE TABLE table_20898602_1 (
player VARCHAR,
status VARCHAR,
position VARCHAR
) | SELECT COUNT(player) FROM table_20898602_1 WHERE status = "Made 53-man roster at start of 2009 season" AND position = "Running back" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3914,
3840,
4305,
834,
536,
41,
1959,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
1508,
1944... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
1755,
3914,
3840,
4305,
834,
536,
549,
17444,
427,
2637,
3274,
96,
329,
9,
221,
12210,
18,
348,
17727,
44,
456,
13,
2464,
774,
121,
3430,
1102,
3274,
96,
17137,
9416,
22... |
Which 9:00 has an 8:00 behind the movies? | CREATE TABLE table_67975 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
) | SELECT "9:00" FROM table_67975 WHERE "8:00" = 'behind the movies' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4327,
755,
41,
96,
18735,
121,
1499,
6,
96,
18078,
121,
1499,
6,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1298,
10,
1206,
121,
21680,
953,
834,
3708,
4327,
755,
549,
17444,
427,
96,
15692,
121,
3274,
3,
31,
346,
2907,
26,
8,
4876,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is minimum age for different job title, and show in asc by the y-axis please. | CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY MIN(age) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
17701,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1565,
3,
4331,
4059,
599,
1755,
201,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
613,
6,
3,
17684,
599,
545,
61,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
3,
17684,
599,
545,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final? | CREATE TABLE table_name_89 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_89 WHERE opponent_in_the_final = "kyoko nagatsuka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
5522,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
5892,
213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3914,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
3781,
12948,
3,
15603,
23766,
1258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was in the original broadway cast while jake epstein was in the original 1st us tour cast? | CREATE TABLE table_24353141_1 (original_broadway_cast VARCHAR, original_1st_us_tour_cast VARCHAR) | SELECT original_broadway_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = "Jake Epstein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27730,
4867,
26059,
834,
536,
41,
21878,
834,
115,
8635,
1343,
834,
5254,
584,
4280,
28027,
6,
926,
834,
536,
7,
17,
834,
302,
834,
17,
1211,
834,
5254,
584,
4280,
28027,
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,
926,
834,
115,
8635,
1343,
834,
5254,
21680,
953,
834,
27730,
4867,
26059,
834,
536,
549,
17444,
427,
926,
834,
536,
7,
17,
834,
302,
834,
17,
1211,
834,
5254,
3274,
96,
683,
9,
1050,
10395,
4008,
121,
1,
-100,
-1... |
provide the number of patients whose diagnoses long title is unspecified septicemia and lab test category is blood gas? | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Unspecified septicemia" AND lab."CATEGORY" = "Blood Gas" | [
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,
3... |
What is the average value for Rd 8 in a position less than 2 for Audi Sport Australia? | CREATE TABLE table_name_68 (
rd_8 INTEGER,
team VARCHAR,
position VARCHAR
) | SELECT AVG(rd_8) FROM table_name_68 WHERE team = "audi sport australia" AND position < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
3,
52,
26,
834,
927,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
52,
26,
834,
13520,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
372,
3274,
96,
9,
5291,
2600,
23407,
121,
3430,
1102,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose age is less than 80 and drug name is finasteride? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "80" AND prescriptions.drug = "Finasteride" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the date of birth of the person who started their reign in 1986? | CREATE TABLE table_42193 (
"Name" text,
"Start of Reign" real,
"End of Reign" text,
"Birth Name" text,
"Title" text
) | SELECT "Birth Name" FROM table_42193 WHERE "Start of Reign" = '1986' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
2294,
519,
41,
96,
23954,
121,
1499,
6,
96,
7681,
17,
13,
419,
3191,
121,
490,
6,
96,
8532,
26,
13,
419,
3191,
121,
1499,
6,
96,
279,
23,
52,
189,
5570,
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,
279,
23,
52,
189,
5570,
121,
21680,
953,
834,
4165,
2294,
519,
549,
17444,
427,
96,
7681,
17,
13,
419,
3191,
121,
3274,
3,
31,
2294,
3840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
when did no. 32 play for grizzles | CREATE TABLE table_72792 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "Years for Grizzlies" FROM table_72792 WHERE "No." = '32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
4440,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
3,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
7,
21,
3,
13313,
5271,
4664,
121,
21680,
953,
834,
5865,
4440,
357,
549,
17444,
427,
96,
4168,
535,
3274,
3,
31,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000. | CREATE TABLE aircraft (
Aircraft VARCHAR,
Description VARCHAR,
Aircraft_ID VARCHAR
)
CREATE TABLE airport_aircraft (
Aircraft_ID VARCHAR,
Airport_ID VARCHAR
)
CREATE TABLE airport (
Airport_ID VARCHAR,
Total_Passengers INTEGER
) | SELECT T1.Aircraft, T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
1761,
6696,
584,
4280,
28027,
6,
7726,
584,
4280,
28027,
6,
1761,
6696,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
834,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20162,
6696,
6,
332,
5411,
2962,
11830,
21680,
6442,
6157,
332,
536,
3,
15355,
3162,
3761,
834,
2256,
6696,
6157,
332,
357,
9191,
332,
5411,
20162,
6696,
834,
4309,
3274,
332,
4416,
20162,
6696,
834,
4309,
... |
What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008? | CREATE TABLE table_59256 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Replaced by" FROM table_59256 WHERE "Manner of departure" = 'end of contract' AND "Date of appointment" = 'dec. 16, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
19337,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
4687,
26,
57,
121,
21680,
953,
834,
3390,
19337,
549,
17444,
427,
96,
7296,
687,
13,
12028,
121,
3274,
3,
31,
989,
13,
1696,
31,
3430,
96,
308,
342,
13,
4141,
121,
3274,
3,
31,
221,
75,
5,
11940,
2628,... |
What is Date From, when Moving To is 'Birmingham City'? | CREATE TABLE table_name_46 (
date_from VARCHAR,
moving_to VARCHAR
) | SELECT date_from FROM table_name_46 WHERE moving_to = "birmingham city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
833,
834,
7152,
584,
4280,
28027,
6,
1735,
834,
235,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
1029,
6,
116,
15510,
304,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
834,
7152,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1735,
834,
235,
3274,
96,
8781,
51,
14799,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the Bronze cumulative number for less than 0 gold? | CREATE TABLE table_name_27 (bronze INTEGER, gold INTEGER) | SELECT SUM(bronze) FROM table_name_27 WHERE gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
13711,
776,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
20841,
25965,
381,
21,
705,
145,
3,
632,
2045,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who wrote the episode titled 'The Morning After Job'? | CREATE TABLE table_23832 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
) | SELECT "Written by" FROM table_23832 WHERE "Title" = 'The Morning After Job' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
2668,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
357,
3747,
2668,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
16182,
621,
7575,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is bronze when the rank is 3 and the total is more than 2? | CREATE TABLE table_79609 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Bronze") FROM table_79609 WHERE "Rank" = '3' AND "Total" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4314,
4198,
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,
180,
6122,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
940,
4314,
4198,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
519,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
among patients who had open and other replacement of aortic valve with tissue graft, how many of them were unmarried? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.long_title = "Open and other replacement of aortic valve with tissue graft" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the result of the election held in 1914? | CREATE TABLE table_18652 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_18652 WHERE "First elected" = '1914' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
5373,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
25398,
5373,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the number of the names of catalog entries with level number 8?, rank from high to low by the X-axis. | CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
prev... | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
7,
41,
10173,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4350,
584,
4280,
28027,
599,
1752,
201,
10173,
834,
29337,
49,
584,
4280,
28027,
599,
2079,
201,
833,
834,
858,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
295,
651,
834,
4350,
6,
2847,
17161,
599,
2138,
9,
2152,
834,
295,
651,
834,
4350,
61,
21680,
22424,
834,
4302,
4669,
7,
6157,
3,
17,
536,
3,
15355,
3162,
22424,
834,
4302,
4669,
7,
834,
20773,
4749,
1... |
What player's hometown is Roebuck, South Carolina? | CREATE TABLE table_11677691_3 (player VARCHAR, hometown VARCHAR) | SELECT player FROM table_11677691_3 WHERE hometown = "Roebuck, South Carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3708,
3959,
4729,
834,
519,
41,
20846,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
31,
7,
22295,
19,
2158,
15,
13863,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2596,
3708,
3959,
4729,
834,
519,
549,
17444,
427,
22295,
3274,
96,
448,
32,
15,
13863,
6,
1013,
5089,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was the men's 100m breaststroke in heat 6? | CREATE TABLE table_64706 (
"Date" text,
"Event" text,
"Heat/Semifinal/Final" text,
"Nation" text,
"Time" text
) | SELECT "Date" FROM table_64706 WHERE "Event" = 'men''s 100m breaststroke' AND "Heat/Semifinal/Final" = 'heat 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
2518,
948,
41,
96,
308,
342,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
3845,
144,
87,
134,
15,
51,
23,
12406,
87,
371,
10270,
121,
1499,
6,
96,
567,
257,
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,
308,
342,
121,
21680,
953,
834,
4389,
2518,
948,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
904,
31,
31,
7,
910,
51,
6748,
24790,
31,
3430,
96,
3845,
144,
87,
134,
15,
51,
23,
12406,
87,
371,
10270,
... |
What was the standing in the series after game 1? | CREATE TABLE table_name_1 (series VARCHAR, game VARCHAR) | SELECT series FROM table_name_1 WHERE game = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
10833,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4125,
16,
8,
939,
227,
467,
209,
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,
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,
939,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
467,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of All_Home and the sum of School_ID , and group by attribute All_Home, and order All_Home from low to high order please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
180,
6122,
599,
29364,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
4674,
11300,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest term from the 2007 election with the position of chairperson? | CREATE TABLE table_name_94 (term INTEGER, elected VARCHAR, position VARCHAR) | SELECT MIN(term) FROM table_name_94 WHERE elected = 2007 AND position = "chairperson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1987,
3,
21342,
17966,
6,
8160,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1657,
45,
8,
4101,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1987,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
8160,
3274,
4101,
3430,
1102,
3274,
96,
15657,
6075,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average of seasons for 10th place finishes? | CREATE TABLE table_name_95 (
season INTEGER,
position VARCHAR
) | SELECT AVG(season) FROM table_name_95 WHERE position = "10th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
774,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
13,
9385,
21,
335,
189,
286,
13084,
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,
71,
17217,
599,
9476,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1102,
3274,
96,
1714,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
From what Country is Gary Evans? | CREATE TABLE table_name_81 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_81 WHERE player = "gary evans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1029,
125,
6993,
19,
13439,
18305,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1959,
3274,
96,
1478,
63,
3,
15,
2132,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What tournament was being played on August 11, 1984? | CREATE TABLE table_name_86 (
tournament VARCHAR,
date VARCHAR
) | SELECT tournament FROM table_name_86 WHERE date = "august 11, 1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
5892,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
47,
271,
1944,
30,
1660,
9694,
13480,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
833,
3274,
96,
402,
17198,
9694,
13480,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of patients who are widowed and have a lab test fluid of pleural. | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.fluid = "Pleural" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the sum of cuts made when the top-5 is 2, and there are 12 events? | CREATE TABLE table_name_45 (
cuts_made VARCHAR,
top_5 VARCHAR,
events VARCHAR
) | SELECT COUNT(cuts_made) FROM table_name_45 WHERE top_5 = 2 AND events = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
8620,
834,
4725,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
420,
834,
755,
3274,
204,
3430,
984,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the week number with Phil Collins as the original artist? | CREATE TABLE table_name_88 (
week__number VARCHAR,
original_artist VARCHAR
) | SELECT week__number FROM table_name_88 WHERE original_artist = "phil collins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
471,
381,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
18118,
8029,
77,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the driver/passenger for position 8 | CREATE TABLE table_16729457_16 (
driver___passenger VARCHAR,
position VARCHAR
) | SELECT driver___passenger FROM table_16729457_16 WHERE position = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
357,
4240,
3436,
834,
2938,
41,
2535,
834,
834,
834,
3968,
35,
1304,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2535,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
834,
834,
834,
3968,
35,
1304,
21680,
953,
834,
27650,
357,
4240,
3436,
834,
2938,
549,
17444,
427,
1102,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40? | CREATE TABLE table_name_50 (
body_width_mm VARCHAR,
body_length_mm VARCHAR,
pins VARCHAR
) | SELECT COUNT(body_width_mm) FROM table_name_50 WHERE body_length_mm = 18.4 AND pins = "40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
643,
834,
12018,
189,
834,
635,
584,
4280,
28027,
6,
643,
834,
19457,
834,
635,
584,
4280,
28027,
6,
4522,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
6965,
834,
12018,
189,
834,
635,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
643,
834,
19457,
834,
635,
3274,
12265,
591,
3430,
4522,
7,
3274,
96,
2445,
121,
1,
-100,
-100,
-100,
-100,
-... |
What is the highest position of the team with 24 lost and a drawn greater than 9? | CREATE TABLE table_name_62 (position INTEGER, lost VARCHAR, drawn VARCHAR) | SELECT MAX(position) FROM table_name_62 WHERE lost = 24 AND drawn > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
4718,
3,
21342,
17966,
6,
1513,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1102,
13,
8,
372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4718,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1513,
3274,
997,
3430,
6796,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is team 1 when team 2 is Manchester United? | CREATE TABLE table_61797 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 1" FROM table_61797 WHERE "Team 2" = 'manchester united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2517,
4327,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
209,
121,
21680,
953,
834,
948,
2517,
4327,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
348,
13263,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No? | CREATE TABLE table_name_30 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR, aam_accredited VARCHAR) | SELECT city FROM table_name_30 WHERE state = "california" AND aam_accredited = "no" AND astc_member = "yes" AND aam_member = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
6726,
584,
4280,
28027,
6,
3,
9,
265,
834,
12066,
584,
4280,
28027,
6,
38,
17,
75,
834,
12066,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
6,
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,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
538,
3274,
96,
15534,
1161,
29,
23,
9,
121,
3430,
3,
9,
265,
834,
9,
75,
16473,
3274,
96,
29,
32,
121,
3430,
38,
17,
75,
834,
12066,
3274,
96,
10070,
121,
... |
give me the number of patients whose admission location is trsf within this facility and procedure icd9 code is 3734? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND procedures.icd9_code = "3734" | [
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,
549,
17444,... |
Name the district for reason for change being died july 4, 1939 | CREATE TABLE table_24507 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT "District" FROM table_24507 WHERE "Reason for change" = 'Died July 4, 1939' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
4560,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
20066,
121,
21680,
953,
834,
357,
2128,
4560,
549,
17444,
427,
96,
1649,
9,
739,
21,
483,
121,
3274,
3,
31,
8639,
26,
1718,
6464,
957,
3288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the featured in Engine through rounds 10-13? | CREATE TABLE table_name_85 (
engine VARCHAR,
rounds VARCHAR
) | SELECT engine FROM table_name_85 WHERE rounds = "10-13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1948,
584,
4280,
28027,
6,
14419,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4510,
16,
10612,
190,
14419,
335,
13056,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
14419,
3274,
96,
1714,
13056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the 1st leg for team being budoni (Sardinia) | CREATE TABLE table_52455 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_52455 WHERE "Team 1" = 'budoni (sardinia)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2266,
3769,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
4553,
121,
21680,
953,
834,
755,
2266,
3769,
549,
17444,
427,
96,
18699,
209,
121,
3274,
3,
31,
11073,
106,
23,
41,
7,
986,
77,
23,
9,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of sheehan, tyler, and a Long larger than 11? | CREATE TABLE table_name_84 (
gain INTEGER,
long VARCHAR,
name VARCHAR,
loss VARCHAR,
avg_g VARCHAR
) | SELECT MIN(gain) FROM table_name_84 WHERE loss > 2 AND avg_g > -6 AND name = "sheehan, tyler" AND long > 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
2485,
3,
21342,
17966,
6,
307,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
122,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16720,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1453,
2490,
204,
3430,
3,
9,
208,
122,
834,
122,
2490,
3,
5783,
3430,
564,
3274,
96,
7,
88,
15,
2618,
6,
3,
17,
63,
1171,
121,
3430,
... |
What was the percentage in 2006 whose natives is Polish? | CREATE TABLE table_2328113_1 (
percentage__2006_ VARCHAR,
mother_tongue VARCHAR
) | SELECT percentage__2006_ FROM table_2328113_1 WHERE mother_tongue = "Polish" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
20522,
834,
536,
41,
5294,
834,
834,
21196,
834,
584,
4280,
28027,
6,
2039,
834,
17,
106,
5398,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5294,
834,
834,
21196,
834,
21680,
953,
834,
2773,
2577,
20522,
834,
536,
549,
17444,
427,
2039,
834,
17,
106,
5398,
3274,
96,
8931,
1273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest pick of the defensive tackle player dave haverdick? | CREATE TABLE table_79475 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Team" text
) | SELECT MIN("Pick") FROM table_79475 WHERE "Position" = 'defensive tackle' AND "Player" = 'dave haverdick' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
591,
3072,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
18699,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
3142,
8512,
21680,
953,
834,
4440,
591,
3072,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
221,
23039,
15,
8000,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
26,
9,
162,
43,
... |
What is listed as the Away team for the Home team of the Bristol Rovers? | CREATE TABLE table_name_8 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_8 WHERE home_team = "bristol rovers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2616,
38,
8,
71,
1343,
372,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
234,
834,
11650,
3274,
96,
115,
17149,
40,
3,
8843,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What athlete has less than 7 gold and 14 total medals? | CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR) | SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
26170,
15,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
17893,
65,
705,
145,
489,
2045,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17893,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2045,
3,
2,
489,
3430,
792,
3274,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the county name and population of all counties. | CREATE TABLE county (County_name VARCHAR, Population VARCHAR) | SELECT County_name, Population FROM county | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
10628,
63,
834,
4350,
584,
4280,
28027,
6,
29659,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
5435,
564,
11,
2074,
13,
66,
16227,
5,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1334,
834,
4350,
6,
29659,
21680,
5435,
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,
-1... |
Show the name of storms which don't have affected region in record. | CREATE TABLE affected_region (name VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) | SELECT name FROM storm WHERE NOT storm_id IN (SELECT storm_id FROM affected_region) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
4350,
584,
4280,
28027,
6,
5536,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
41,
4350,
584,
4280,
28027,
6,
5536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
5536,
549,
17444,
427,
4486,
5536,
834,
23,
26,
3388,
41,
23143,
14196,
5536,
834,
23,
26,
21680,
4161,
834,
18145,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which title was directed by chuck jones and released on 1958-04-12? | CREATE TABLE table_66408 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" real,
"Release date" text
) | SELECT "Title" FROM table_66408 WHERE "Director" = 'chuck jones' AND "Release date" = '1958-04-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
2445,
927,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
7720,
121,
490,
6,
96,
1649,
40,
14608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
3539,
2445,
927,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
24238,
3,
1927,
1496,
31,
3430,
96,
1649,
40,
14608,
833,
121,
3274,
3,
31,
2294,
3449,
18083,
5947,
31,... |
what is minimum age of patients whose gender is m and discharge location is long term care hospital? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "LONG TERM CARE HOSPITAL" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
434,
15628,
3,
5946,
329,
3,
22443,
454,
3638,
4... |
What name is associated with League 142? | CREATE TABLE table_14962287_2 (
name VARCHAR,
league VARCHAR
) | SELECT name FROM table_14962287_2 WHERE league = 142 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4314,
2884,
4225,
834,
357,
41,
564,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
564,
19,
1968,
28,
3815,
3,
24978,
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,
564,
21680,
953,
834,
2534,
4314,
2884,
4225,
834,
357,
549,
17444,
427,
5533,
3274,
3,
24978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the hebrew for *ti - | CREATE TABLE table_29135 (
"English" text,
"Proto-Semitic" text,
"IPA" text,
"Arabic" text,
"Hebrew" text,
"Tigrinya" text,
"Sabaean" text
) | SELECT "Hebrew" FROM table_29135 WHERE "Proto-Semitic" = '*tišʻ-' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4729,
2469,
41,
96,
26749,
121,
1499,
6,
96,
3174,
235,
18,
134,
15,
1538,
447,
121,
1499,
6,
96,
25981,
121,
1499,
6,
96,
188,
7093,
447,
121,
1499,
6,
96,
3845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
1999,
210,
121,
21680,
953,
834,
357,
4729,
2469,
549,
17444,
427,
96,
3174,
235,
18,
134,
15,
1538,
447,
121,
3274,
3,
31,
1935,
17,
23,
2,
18,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What june 21 22, 2011 polling has green smaller than 13? | CREATE TABLE table_name_89 (
polling_firm VARCHAR,
green VARCHAR,
date_of_polling VARCHAR
) | SELECT polling_firm FROM table_name_89 WHERE green < 13 AND date_of_polling = "june 21–22, 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
5492,
53,
834,
7001,
584,
4280,
28027,
6,
1442,
584,
4280,
28027,
6,
833,
834,
858,
834,
3233,
697,
584,
4280,
28027,
3,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5492,
53,
834,
7001,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1442,
3,
2,
1179,
3430,
833,
834,
858,
834,
3233,
697,
3274,
96,
6959,
15,
1401,
104,
2884,
6,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
how many marlboro tours did carlo guieb win ? | CREATE TABLE table_204_694 (
id number,
"year" text,
"name" text,
"date" text,
"stages" number,
"distance" text,
"winner" text,
"time" text
) | SELECT COUNT(*) FROM table_204_694 WHERE "winner" = 'carlo guieb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3951,
591,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
10705,
7,
121,
381,
6,
96,
26,
23,
8389,
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,
1935,
61,
21680,
953,
834,
26363,
834,
3951,
591,
549,
17444,
427,
96,
3757,
687,
121,
3274,
3,
31,
1720,
40,
32,
3,
7938,
15,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the circuit when Jochen Rindt won? | CREATE TABLE table_name_28 (circuit VARCHAR, winning_driver VARCHAR) | SELECT circuit FROM table_name_28 WHERE winning_driver = "jochen rindt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
15357,
21560,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4558,
116,
2194,
1559,
16602,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4558,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
1927,
1559,
3,
13119,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the listed when cerclis id is msd004006995 | CREATE TABLE table_name_17 (
listed VARCHAR,
cerclis_id VARCHAR
) | SELECT listed FROM table_name_17 WHERE cerclis_id = "msd004006995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
2616,
584,
4280,
28027,
6,
19259,
40,
159,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
2616,
116,
19259,
40,
159... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2616,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
19259,
40,
159,
834,
23,
26,
3274,
96,
51,
7,
26,
1206,
5548,
3951,
3301,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141? | CREATE TABLE table_name_1 (
to_par VARCHAR,
country VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_1 WHERE place = "t8" AND score = 73 - 68 = 141 AND country = "zimbabwe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
286,
3274,
96,
17,
927,
121,
3430,
2604,
3274,
3,
4552,
3,
18,
3,
3651,
3274,
3,
26059,
3430,
684,
3274,
96,
172,
17982,
115,
1123,
121,
1,
-100,
... |
Which championship had a final score of 6–4, 2–6, 6–4, 7–6(3)? | CREATE TABLE table_2362486_1 (championship VARCHAR, score_in_the_final VARCHAR) | SELECT championship FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
2266,
3840,
834,
536,
41,
17788,
12364,
2009,
584,
4280,
28027,
6,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
357,
3420,
2266,
3840,
834,
536,
549,
17444,
427,
2604,
834,
77,
834,
532,
834,
12406,
3274,
96,
948,
104,
8525,
204,
104,
11071,
431,
104,
8525,
489,
104,
948,
17867,
121,
1,
-100,
-100,
-10... |
What is the total number of each ship type? Give me a bar chart, sort by the y axis in desc. | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Type, COUNT(Type) FROM ship GROUP BY Type ORDER BY COUNT(Type) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
868,
485,
1499,
6,
8475,
9761,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
25160,
61,
21680,
4383,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
2847,
17161,
599,
25160,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which hometown is the played Dajuan Wagner from? | CREATE TABLE table_name_11 (
hometown VARCHAR,
player VARCHAR
) | SELECT hometown FROM table_name_11 WHERE player = "dajuan wagner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
22295,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
22295,
19,
8,
1944,
878,
2047,
152,
22338,
45,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22295,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1959,
3274,
96,
26,
9,
2047,
152,
3,
15238,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Games has a Team of cai zaragoza and a Rank smaller than 1? | CREATE TABLE table_7431 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
) | SELECT SUM("Games") FROM table_7431 WHERE "Team" = 'cai zaragoza' AND "Rank" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3341,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23055,
7,
8512,
21680,
953,
834,
4581,
3341,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
658,
23,
3,
1629,
6151,
13277,
31,
3430,
96,
22557,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,... |
What is the total number of Total with more than 16 rank for the nation of Romania with more than 0 for silver? | CREATE TABLE table_name_36 (total VARCHAR, silver VARCHAR, rank VARCHAR, nation VARCHAR) | SELECT COUNT(total) FROM table_name_36 WHERE rank > 16 AND nation = "romania" AND silver > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
235,
1947,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
11003,
2490,
898,
3430,
2982,
3274,
96,
3522,
11219,
121,
3430,
4294,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many Byes have Against of 1076 and Wins smaller than 13? | CREATE TABLE table_75702 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT AVG("Byes") FROM table_75702 WHERE "Against" = '1076' AND "Wins" < '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
2518,
357,
41,
96,
279,
1748,
9,
1795,
7212,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
279,
10070,
8512,
21680,
953,
834,
3072,
2518,
357,
549,
17444,
427,
96,
20749,
121,
3274,
3,
31,
1714,
3959,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-... |
What is the Airdate for the episode titled thirteen to centaurus Adapted by stanley miller? | CREATE TABLE table_7092 (
"Episode" real,
"Title" text,
"Story" text,
"Adapted by" text,
"Director" text,
"Airdate" text,
"Exists?" text
) | SELECT "Airdate" FROM table_7092 WHERE "Adapted by" = 'stanley miller' AND "Title" = '“thirteen to centaurus”' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4508,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
10972,
121,
1499,
6,
96,
14808,
15,
26,
57,
121,
1499,
6,
96,
23620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20162,
5522,
121,
21680,
953,
834,
2518,
4508,
549,
17444,
427,
96,
14808,
15,
26,
57,
121,
3274,
3,
31,
5627,
1306,
3293,
49,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
735,
17,
9288,
6808,
12,
3151,
40... |
WHich kind of Aprende has a Centennial of 1988? | CREATE TABLE table_name_35 (
aprende VARCHAR,
centennial VARCHAR
) | SELECT aprende FROM table_name_35 WHERE centennial = "1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
3,
9,
2026,
29,
221,
584,
4280,
28027,
6,
3151,
35,
7419,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
773,
13,
10299,
3406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
2026,
29,
221,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3151,
35,
7419,
3274,
96,
2294,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the railway number of a D(rebuild) class? | CREATE TABLE table_name_28 (
railway_number_s_ VARCHAR,
class VARCHAR
) | SELECT railway_number_s_ FROM table_name_28 WHERE class = "d(rebuild)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
14421,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
14421,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14421,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
853,
3274,
96,
26,
599,
60,
16422,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Return a bar chart on what is the average age for a male in each job?, I want to rank by the X from high to low please. | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY job DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1246,
3,
21342,
17966,
6,
690,
3,
3463,
4,
382,
6,
7285,
3,
3463,
4,
382,
6,
613,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
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,
613,
6,
71,
17217,
599,
545,
61,
21680,
5780,
549,
17444,
427,
7285,
3274,
3,
31,
13513,
31,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
613,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the population with 41,511 households? | CREATE TABLE table_12600 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | SELECT COUNT("Population") FROM table_12600 WHERE "Number of households" = '41,511' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
6007,
41,
96,
10628,
63,
121,
1499,
6,
96,
12988,
23219,
2055,
121,
1499,
6,
96,
24607,
29,
5699,
2055,
121,
1499,
6,
96,
24607,
29,
384,
2055,
121,
1499,
6,
96,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27773,
7830,
8512,
21680,
953,
834,
2122,
6007,
549,
17444,
427,
96,
567,
5937,
49,
13,
15802,
121,
3274,
3,
31,
4853,
6,
755,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Chassis model Scania K360ua has what minimum number in fleet? | CREATE TABLE table_19199 (
"Chassis Manufacturer" text,
"Chassis Model" text,
"Body Model" text,
"Number in Fleet" real,
"Fleet Numbers" text
) | SELECT MIN("Number in Fleet") FROM table_19199 WHERE "Chassis Model" = 'Scania K360UA' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
19479,
41,
96,
3541,
6500,
7,
15248,
121,
1499,
6,
96,
3541,
6500,
7,
5154,
121,
1499,
6,
96,
279,
9666,
5154,
121,
1499,
6,
96,
567,
5937,
49,
16,
23705,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
567,
5937,
49,
16,
23705,
8512,
21680,
953,
834,
2294,
19479,
549,
17444,
427,
96,
3541,
6500,
7,
5154,
121,
3274,
3,
31,
134,
75,
11219,
480,
19208,
16597,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of trains starting from each origin. | CREATE TABLE train (
origin VARCHAR
) | SELECT origin, COUNT(*) FROM train GROUP BY origin | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
5233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
381,
13,
14053,
1684,
45,
284,
5233,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5233,
6,
2847,
17161,
599,
1935,
61,
21680,
2412,
350,
4630,
6880,
272,
476,
5233,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Player has a To par of 2, and a Country of wales? | CREATE TABLE table_name_7 (
player VARCHAR,
to_par VARCHAR,
country VARCHAR
) | SELECT player FROM table_name_7 WHERE to_par = "–2" AND country = "wales" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1959,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
12387,
65,
3,
9,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
357,
121,
3430,
684,
3274,
96,
210,
4529,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where was the GTE Suncoast Classic tournament held? | CREATE TABLE table_11622562_1 (
location VARCHAR,
tournament VARCHAR
) | SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
20489,
4056,
834,
536,
41,
1128,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
350,
3463,
3068,
25500,
6744,
5892,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
20159,
20489,
4056,
834,
536,
549,
17444,
427,
5892,
3274,
96,
517,
3463,
3068,
25500,
6744,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is days of hospital stay and discharge location of subject id 23602? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT demographic.days_stay, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "23602" | [
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,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
357,
19208,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest half-life with a yield, neutrons per fission bigger than 0.0031000000000000003 and a decay constant less than 0.030500000000000003? | CREATE TABLE table_71218 (
"Group" real,
"Half-Life (s)" real,
"Decay Constant (s \u22121 )" real,
"Yield, Neutrons per Fission" real,
"Fraction" real
) | SELECT MIN("Half-Life (s)") FROM table_71218 WHERE "Yield, Neutrons per Fission" > '0.0031000000000000003' AND "Decay Constant (s \u22121 )" < '0.030500000000000003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
357,
2606,
41,
96,
27247,
121,
490,
6,
96,
566,
138,
89,
18,
16427,
41,
7,
61,
121,
490,
6,
96,
2962,
658,
63,
7762,
3672,
41,
7,
3,
2,
76,
2884,
22011,
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,
3,
17684,
599,
121,
566,
138,
89,
18,
16427,
41,
7,
61,
8512,
21680,
953,
834,
4450,
357,
2606,
549,
17444,
427,
96,
476,
23,
8804,
6,
3617,
6255,
7,
399,
3188,
7,
1938,
121,
2490,
3,
31,
10667,
19947,
19568,
19... |
For the race held at the Cleveland Burke Lakefront Airport circuit, with winning driver Emerson Fittipaldi and pole position Michael Andretti, what was the winning team? | CREATE TABLE table_name_15 (winning_team VARCHAR, circuit VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) | SELECT winning_team FROM table_name_15 WHERE winning_driver = "emerson fittipaldi" AND pole_position = "michael andretti" AND circuit = "cleveland burke lakefront airport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
8163,
834,
11650,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
11650,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
15,
5567,
106,
1400,
11537,
138,
26,
23,
121,
3430,
11148,
834,
4718,
3274,
96,
51,
362,
9,
15,
40,
11,
52,
1065... |
What Russian has a Ratio of 40? | CREATE TABLE table_38004 (
"Unit" text,
"Russian" text,
"Ratio" text,
"Metric value" text,
"Avoirdupois value" text
) | SELECT "Russian" FROM table_38004 WHERE "Ratio" = '40' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
6348,
41,
96,
5110,
155,
121,
1499,
6,
96,
29613,
29,
121,
1499,
6,
96,
448,
144,
23,
32,
121,
1499,
6,
96,
23351,
2234,
701,
121,
1499,
6,
96,
188,
8239,
26,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29613,
29,
121,
21680,
953,
834,
22671,
6348,
549,
17444,
427,
96,
448,
144,
23,
32,
121,
3274,
3,
31,
2445,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who did not have any job in the past, give me the comparison about the average of department_id over the job_id , and group by attribute job_id, display from high to low by the JOB_ID. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21... |
provide the number of patients whose death status is 0 and lab test name is ck-mb index. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.expire_flag = "0" AND lab.label = "CK-MB Index" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Game has a November of 22? | CREATE TABLE table_37534 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT SUM("Game") FROM table_37534 WHERE "November" = '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
3710,
41,
96,
23055,
121,
490,
6,
96,
28635,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
23055,
8512,
21680,
953,
834,
22954,
3710,
549,
17444,
427,
96,
28635,
121,
3274,
3,
31,
2884,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Score has a To par of –4, and a Player of duffy waldorf? | CREATE TABLE table_name_30 (score VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT score FROM table_name_30 WHERE to_par = "–4" AND player = "duffy waldorf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
7,
9022,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
304... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
20364,
3430,
1959,
3274,
96,
1259,
20334,
3,
5380,
8716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What day had a time of 29.816? | CREATE TABLE table_name_45 (
date VARCHAR,
time VARCHAR
) | SELECT date FROM table_name_45 WHERE time = "29.816" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
833,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
141,
3,
9,
97,
13,
2838,
5,
927,
2938,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2128,
549,
17444,
427,
97,
3274,
96,
3166,
5,
927,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.