NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Bar graph to show how many nationality from different nationality, and order Nationality in asc order.
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 Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY Nationality
[ 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, 868, 485, 6, 2847, 17161, 599, 24732, 485, 61, 21680, 4383, 350, 4630, 6880, 272, 476, 868, 485, 4674, 11300, 272, 476, 868, 485, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients whose language is span and religion is greek orthodox?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "SPAN" AND demographic.religion = "GREEK ORTHODOX"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 24925, 3274, 96, 21215, 567, 121, 3430, 14798, 5, 60, 2825, 23, 106, 3274, 96, 8727, 5080, 439, ...
What was Fuzzy Zoeller's score in the United States?
CREATE TABLE table_9624 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Score" FROM table_9624 WHERE "Country" = 'united states' AND "Player" = 'fuzzy zoeller'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4314, 2266, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 3, 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, 96, 134, 9022, 121, 21680, 953, 834, 4314, 2266, 549, 17444, 427, 96, 10628, 651, 121, 3274, 3, 31, 15129, 15, 26, 2315, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31, 22845, 4164, 3, 172, 32, 9670, 31, 1, -100, -10...
Tell me the pitcher on september 6, 2006
CREATE TABLE table_name_8 ( pitcher VARCHAR, date VARCHAR )
SELECT pitcher FROM table_name_8 WHERE date = "september 6, 2006"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 20034, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 8779, 140, 8, 20034, 30, 16022, 18247, 8580, 3581, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 20034, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 833, 3274, 96, 7, 6707, 18247, 8580, 3581, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many episodes are there for the three darts challenge with Sharon Osbourne?
CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR)
SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = "Sharon Osbourne"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 4552, 3341, 3166, 834, 536, 41, 15, 102, 159, 32, 221, 834, 5525, 1152, 3, 21342, 17966, 6, 386, 834, 26, 1408, 7, 834, 12654, 40, 35, 397, 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, 4800, 4, 599, 15, 102, 159, 32, 221, 834, 5525, 1152, 61, 21680, 953, 834, 2688, 4552, 3341, 3166, 834, 536, 549, 17444, 427, 386, 834, 26, 1408, 7, 834, 12654, 40, 35, 397, 3274, 96, 134, 3272, 106, 411, 7, 262...
Find the titles of items that received both a rating higher than 8 and a rating below 5.
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2118, 41, 21869, 584, 4280, 28027, 6, 3, 23, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1132, 41, 23, 834, 23, 26, 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, 332, 5411, 21869, 21680, 2118, 6157, 332, 536, 3, 15355, 3162, 1132, 6157, 332, 357, 9191, 332, 5411, 23, 834, 23, 26, 3274, 332, 4416, 23, 834, 23, 26, 549, 17444, 427, 332, 4416, 52, 1014, 2490, 505, 3, 21342, 5...
Display a pie chart for how many stores are headquarted in each city?
CREATE TABLE store_product ( Store_ID int, Product_ID int ) CREATE TABLE store ( Store_ID int, Store_Name text, Type text, Area_size real, Number_of_product_category real, Ranking int ) CREATE TABLE store_district ( Store_ID int, District_ID int ) CREATE TABLE product ( product_id int, product text, dimensions text, dpi real, pages_per_minute_color real, max_page_size text, interface text ) CREATE TABLE district ( District_ID int, District_name text, Headquartered_City text, City_Population real, City_Area real )
SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1078, 834, 15892, 41, 4493, 834, 4309, 16, 17, 6, 6246, 834, 4309, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1078, 41, 4493, 834, 4309, 16, 17, 6, 4493, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3642, 19973, 15, 26, 834, 254, 485, 6, 2847, 17161, 599, 1935, 61, 21680, 1078, 6157, 3, 17, 536, 3, 15355, 3162, 1078, 834, 26, 23, 20066, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28719, 834, 4309, 3274, 3, 17, 441...
List the year in which the driver was in 1st place.
CREATE TABLE table_25561038_1 ( season VARCHAR, position VARCHAR )
SELECT season FROM table_25561038_1 WHERE position = "1st"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25502, 27097, 3747, 834, 536, 41, 774, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 6792, 8, 215, 16, 84, 8, 2535, 47, 16, 209, 7, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 774, 21680, 953, 834, 25502, 27097, 3747, 834, 536, 549, 17444, 427, 1102, 3274, 96, 536, 7, 17, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which home team played against Stoke City?
CREATE TABLE table_name_91 ( home_team VARCHAR, away_team VARCHAR )
SELECT home_team FROM table_name_91 WHERE away_team = "stoke city"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4729, 41, 234, 834, 11650, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 234, 372, 1944, 581, 28089, 896, 58,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 4729, 549, 17444, 427, 550, 834, 11650, 3274, 96, 7, 235, 1050, 690, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
provide the number of unknown/not specified ethnic background patients who had calculated hematocrit lab test done.
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "UNKNOWN/NOT SPECIFIED" AND lab.label = "Hematocrit, Calculated"
[ 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 was the average finish in 2007?
CREATE TABLE table_2182573_2 ( avg_finish VARCHAR, year VARCHAR )
SELECT avg_finish FROM table_2182573_2 WHERE year = 2007
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2606, 1828, 4552, 834, 357, 41, 3, 9, 208, 122, 834, 25535, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1348, 1992, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 9, 208, 122, 834, 25535, 21680, 953, 834, 357, 2606, 1828, 4552, 834, 357, 549, 17444, 427, 215, 3274, 4101, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many players held the high point records for game 34?
CREATE TABLE table_27698941_8 ( high_points VARCHAR, game VARCHAR )
SELECT COUNT(high_points) FROM table_27698941_8 WHERE game = 34
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 3951, 3914, 4853, 834, 927, 41, 306, 834, 2700, 7, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1508, 1213, 8, 306, 500...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 6739, 834, 2700, 7, 61, 21680, 953, 834, 2555, 3951, 3914, 4853, 834, 927, 549, 17444, 427, 467, 3274, 6154, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
which nation came in first place ?
CREATE TABLE table_204_383 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT "nation" FROM table_204_383 WHERE "rank" = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 3747, 519, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 29, 257, 121, 1499, 6, 96, 14910, 121, 381, 6, 96, 7, 173, 624, 121, 381, 6, 96, 13711, 776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29, 257, 121, 21680, 953, 834, 26363, 834, 3747, 519, 549, 17444, 427, 96, 6254, 121, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the series number for Season #18?
CREATE TABLE table_12564633_1 (series__number INTEGER, season__number VARCHAR)
SELECT MIN(series__number) FROM table_12564633_1 WHERE season__number = 18
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 10124, 4389, 3891, 519, 834, 536, 41, 10833, 7, 834, 834, 5525, 1152, 3, 21342, 17966, 6, 774, 834, 834, 5525, 1152, 584, 4280, 28027, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 10833, 7, 834, 834, 5525, 1152, 61, 21680, 953, 834, 10124, 4389, 3891, 519, 834, 536, 549, 17444, 427, 774, 834, 834, 5525, 1152, 3274, 507, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Record of 21 29 10 had what total number of points?
CREATE TABLE table_name_2 ( points VARCHAR, record VARCHAR )
SELECT COUNT(points) FROM table_name_2 WHERE record = "21–29–10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 357, 41, 979, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 11392, 13, 1401, 2838, 335, 141, 125, 792, 381, 13, 979, 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, 2847, 17161, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 357, 549, 17444, 427, 1368, 3274, 96, 2658, 104, 3166, 104, 1714, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients are diagnosed with icd9 code 5770 and suggested with additive drug type?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "5770" AND prescriptions.drug_type = "ADDITIVE"
[ 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, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
Which accolade has USA as the country, with a year less than 2009?
CREATE TABLE table_name_61 ( accolade VARCHAR, country VARCHAR, year VARCHAR )
SELECT accolade FROM table_name_61 WHERE country = "usa" AND year < 2009
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 30022, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 30022, 65, 2312, 38, 8, 684, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 30022, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 684, 3274, 96, 302, 9, 121, 3430, 215, 3, 2, 2464, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who was the opponent that also has a save of Smith (26)?
CREATE TABLE table_name_53 (opponent VARCHAR, save VARCHAR)
SELECT opponent FROM table_name_53 WHERE save = "smith (26)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 32, 102, 9977, 584, 4280, 28027, 6, 1097, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 15264, 24, 92, 65, 3, 9, 1097, 13, 3931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15264, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 1097, 3274, 96, 16331, 4743, 10938, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
who had high points on march 27?
CREATE TABLE table_27722734_10 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_27722734_10 WHERE date = "March 27"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 5865, 2555, 3710, 834, 1714, 41, 6739, 834, 2700, 7, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 113, 141, 306, 979, 30, 10556, 2307,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 306, 834, 2700, 7, 21680, 953, 834, 2555, 5865, 2555, 3710, 834, 1714, 549, 17444, 427, 833, 3274, 96, 25019, 2307, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is Craig Whelihan's average when his yards are smaller than 0?
CREATE TABLE table_name_76 (avg INTEGER, player VARCHAR, yards VARCHAR)
SELECT SUM(avg) FROM table_name_76 WHERE player = "craig whelihan" AND yards < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3959, 41, 9, 208, 122, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 6, 6460, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 12870, 549, 17801, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 9, 208, 122, 61, 21680, 953, 834, 4350, 834, 3959, 549, 17444, 427, 1959, 3274, 96, 2935, 23, 122, 3, 210, 17801, 2618, 121, 3430, 6460, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, ...
Who sponsors Middlesbrough?
CREATE TABLE table_33131 ( "Team" text, "Manager" text, "Captain" text, "Kit maker" text, "Shirt sponsor" text )
SELECT "Shirt sponsor" FROM table_33131 WHERE "Team" = 'middlesbrough'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4201, 22048, 41, 96, 18699, 121, 1499, 6, 96, 27272, 121, 1499, 6, 96, 19566, 17, 9, 77, 121, 1499, 6, 96, 439, 155, 13762, 121, 1499, 6, 96, 16671, 9037, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 96, 16671, 9037, 121, 21680, 953, 834, 4201, 22048, 549, 17444, 427, 96, 18699, 121, 3274, 3, 31, 6983, 26, 965, 115, 13245, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Where did the team play and what was the attendance against new jersey?
CREATE TABLE table_13619135_7 ( location_attendance VARCHAR, team VARCHAR )
SELECT location_attendance FROM table_13619135_7 WHERE team = "New Jersey"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23459, 2294, 536, 2469, 834, 940, 41, 1128, 834, 15116, 663, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2840, 410, 8, 372, 577, 11, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 834, 15116, 663, 21680, 953, 834, 23459, 2294, 536, 2469, 834, 940, 549, 17444, 427, 372, 3274, 96, 6861, 5092, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the SlNo no of contact person SDE (P), Thiruppattur?
CREATE TABLE table_25383715_1 ( slno VARCHAR, contact_person VARCHAR )
SELECT slno FROM table_25383715_1 WHERE contact_person = "SDE (P), Thiruppattur"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 3747, 4118, 1808, 834, 536, 41, 3, 7, 40, 29, 32, 584, 4280, 28027, 6, 574, 834, 6075, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 180, 40, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 7, 40, 29, 32, 21680, 953, 834, 1828, 3747, 4118, 1808, 834, 536, 549, 17444, 427, 574, 834, 6075, 3274, 96, 134, 5596, 41, 345, 201, 21564, 413, 4665, 2905, 121, 1, -100, -100, -100, -100, -100, -100, -100, -1...
What place is associated with under 28 points, under 11 games lost, and under 18 games played?
CREATE TABLE table_name_71 (place INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)
SELECT SUM(place) FROM table_name_71 WHERE points < 28 AND lost < 11 AND played < 18
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4450, 41, 4687, 3, 21342, 17966, 6, 1944, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 6, 1513, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 286, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 4687, 61, 21680, 953, 834, 4350, 834, 4450, 549, 17444, 427, 979, 3, 2, 2059, 3430, 1513, 3, 2, 850, 3430, 1944, 3, 2, 507, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the percentage of the Labour Party on the Harris Poll
CREATE TABLE table_159614_2 ( harris VARCHAR, party VARCHAR )
SELECT harris FROM table_159614_2 WHERE party = "Labour"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1808, 4314, 2534, 834, 357, 41, 3, 107, 10269, 7, 584, 4280, 28027, 6, 1088, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 5294, 13, 8, 16117, 3450, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 107, 10269, 7, 21680, 953, 834, 1808, 4314, 2534, 834, 357, 549, 17444, 427, 1088, 3274, 96, 18506, 1211, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?
CREATE TABLE table_name_82 (races INTEGER, points VARCHAR, season VARCHAR, podiums VARCHAR, wins VARCHAR)
SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = "32"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4613, 41, 12614, 7, 3, 21342, 17966, 6, 979, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 6, 22828, 7, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 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, 180, 6122, 599, 12614, 7, 61, 21680, 953, 834, 4350, 834, 4613, 549, 17444, 427, 22828, 7, 3, 2, 220, 3430, 9204, 3274, 3, 632, 3430, 774, 2490, 4402, 3430, 979, 3274, 96, 2668, 121, 1, -100, -100, -100, -100, -10...
what is the record for years 2006-11?
CREATE TABLE table_name_92 (record VARCHAR, years VARCHAR)
SELECT record FROM table_name_92 WHERE years = "2006-11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4508, 41, 60, 7621, 584, 4280, 28027, 6, 203, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 1368, 21, 203, 3581, 9169, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1368, 21680, 953, 834, 4350, 834, 4508, 549, 17444, 427, 203, 3274, 96, 21196, 9169, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many wins happened with 8 draws?
CREATE TABLE table_38796 ( "Season" text, "Team" text, "Wins" text, "Losses" text, "Draws" text )
SELECT "Wins" FROM table_38796 WHERE "Draws" = '8'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 4225, 4314, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 18455, 7, 121, 1499, 6, 96, 434, 13526, 7, 121, 1499, 6, 96, 308, 10936, 7, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 96, 18455, 7, 121, 21680, 953, 834, 519, 4225, 4314, 549, 17444, 427, 96, 308, 10936, 7, 121, 3274, 3, 31, 927, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the To par for the player that won in 2003, with a total larger than 145?
CREATE TABLE table_name_65 ( to_par VARCHAR, year_s__won VARCHAR, total VARCHAR )
SELECT COUNT(to_par) FROM table_name_65 WHERE year_s__won = "2003" AND total > 145
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4122, 41, 12, 834, 1893, 584, 4280, 28027, 6, 215, 834, 7, 834, 834, 210, 106, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 235, 834, 1893, 61, 21680, 953, 834, 4350, 834, 4122, 549, 17444, 427, 215, 834, 7, 834, 834, 210, 106, 3274, 96, 23948, 121, 3430, 792, 2490, 3, 20987, 1, -100, -100, -100, -100, -100, -100, -100,...
Find the status of orders which belong to the customer named 'Jeramie', group by order status, and show the proportion of order status with a pie chart.
CREATE TABLE Shipment_Items ( shipment_id INTEGER, order_item_id INTEGER ) CREATE TABLE Products ( product_id INTEGER, product_name VARCHAR(80), product_details VARCHAR(255) ) CREATE TABLE Order_Items ( order_item_id INTEGER, product_id INTEGER, order_id INTEGER, order_item_status VARCHAR(10), order_item_details VARCHAR(255) ) CREATE TABLE Shipments ( shipment_id INTEGER, order_id INTEGER, invoice_number INTEGER, shipment_tracking_number VARCHAR(80), shipment_date DATETIME, other_shipment_details VARCHAR(255) ) CREATE TABLE Invoices ( invoice_number INTEGER, invoice_date DATETIME, invoice_details VARCHAR(255) ) CREATE TABLE Orders ( order_id INTEGER, customer_id INTEGER, order_status VARCHAR(10), date_order_placed DATETIME, order_details VARCHAR(255) ) CREATE TABLE Customers ( customer_id INTEGER, customer_name VARCHAR(80), customer_details VARCHAR(255) )
SELECT T2.order_status, COUNT(T2.order_status) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" GROUP BY order_status
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15508, 297, 834, 196, 3524, 7, 41, 19843, 834, 23, 26, 3, 21342, 17966, 6, 455, 834, 23, 3524, 834, 23, 26, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 9397, 834, 8547, 302, 6, 2847, 17161, 599, 382, 4416, 9397, 834, 8547, 302, 61, 21680, 16423, 6157, 332, 536, 3, 15355, 3162, 5197, 7, 6157, 332, 357, 9191, 332, 5411, 25697, 49, 834, 23, 26, 3274, 332, ...
What is the lowest Digital PSIP for channels over 29 with callsign CFTU-DT?
CREATE TABLE table_name_81 ( digital_psip INTEGER, call_sign VARCHAR, broadcast_channel VARCHAR )
SELECT MIN(digital_psip) FROM table_name_81 WHERE call_sign = "cftu-dt" AND broadcast_channel > 29
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4959, 41, 1125, 834, 102, 7, 23, 102, 3, 21342, 17966, 6, 580, 834, 6732, 584, 4280, 28027, 6, 6878, 834, 19778, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 9206, 138, 834, 102, 7, 23, 102, 61, 21680, 953, 834, 4350, 834, 4959, 549, 17444, 427, 580, 834, 6732, 3274, 96, 75, 89, 17, 76, 18, 26, 17, 121, 3430, 6878, 834, 19778, 2490, 2838, 1, -100, -100...
What is the total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School?
CREATE TABLE table_44082 ( "School" text, "Conference" text, "Games" real, "Wins" real, "Losses" real, "Winning Pct." real )
SELECT COUNT("Losses") FROM table_44082 WHERE "Games" < '14' AND "Wins" < '3' AND "Conference" = 'maac' AND "School" = 'fairfield'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22335, 4613, 41, 96, 29364, 121, 1499, 6, 96, 4302, 11788, 121, 1499, 6, 96, 23055, 7, 121, 490, 6, 96, 18455, 7, 121, 490, 6, 96, 434, 13526, 7, 121, 490, 6, 96, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 434, 13526, 7, 8512, 21680, 953, 834, 22335, 4613, 549, 17444, 427, 96, 23055, 7, 121, 3, 2, 3, 31, 2534, 31, 3430, 96, 18455, 7, 121, 3, 2, 3, 31, 519, 31, 3430, 96, 4302, 11788, 121, 3...
What is the name of the high schooler who has the greatest number of likes?
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2792, 7, 41, 8637, 295, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1592, 6646, 49, 41, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 4350, 21680, 2792, 7, 6157, 332, 536, 3, 15355, 3162, 1592, 6646, 49, 6157, 332, 357, 9191, 332, 5411, 8637, 295, 834, 23, 26, 3274, 332, 4416, 23, 26, 350, 4630, 6880, 272, 476, 332, 5411, 8637, 295, 8...
What week did September 29 fall in?
CREATE TABLE table_23601267_2 ( week VARCHAR, date VARCHAR )
SELECT COUNT(week) FROM table_23601267_2 WHERE date = "September 29"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 19208, 2122, 3708, 834, 357, 41, 471, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 471, 410, 1600, 2838, 1590, 16, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 8041, 61, 21680, 953, 834, 357, 19208, 2122, 3708, 834, 357, 549, 17444, 427, 833, 3274, 96, 27652, 2838, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what's the average grid that has a time/retired piston and laps smaller than 15?
CREATE TABLE table_56595 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT AVG("Grid") FROM table_56595 WHERE "Time/Retired" = 'piston' AND "Laps" < '15'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 4122, 3301, 41, 96, 20982, 52, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 1649, 11809, 26, 121, 1499, 6, 96, 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, 71, 17217, 599, 121, 13313, 26, 8512, 21680, 953, 834, 755, 4122, 3301, 549, 17444, 427, 96, 13368, 87, 1649, 11809, 26, 121, 3274, 3, 31, 102, 343, 106, 31, 3430, 96, 3612, 102, 7, 121, 3, 2, 3, 31, 1808, 31, ...
If the public is 4, what is the total?
CREATE TABLE table_26375386_17 ( total VARCHAR, public VARCHAR )
SELECT total FROM table_26375386_17 WHERE public = 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 22954, 519, 3840, 834, 2517, 41, 792, 584, 4280, 28027, 6, 452, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 156, 8, 452, 19, 6464, 125, 19, 8, 792, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 792, 21680, 953, 834, 2688, 22954, 519, 3840, 834, 2517, 549, 17444, 427, 452, 3274, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many weeks are shown for the champion of john mcenroe 6 2, 6 3?
CREATE TABLE table_24492 ( "Week of" text, "Tournament" text, "Champion" text, "Runner-up" text, "Semifinalists" text, "Quarterfinalists" text )
SELECT COUNT("Week of") FROM table_24492 WHERE "Champion" = 'John McEnroe 6–2, 6–3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 3647, 357, 41, 96, 518, 10266, 13, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 254, 1483, 12364, 121, 1499, 6, 96, 23572, 18, 413, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 518, 10266, 13, 8512, 21680, 953, 834, 2266, 3647, 357, 549, 17444, 427, 96, 254, 1483, 12364, 121, 3274, 3, 31, 18300, 3038, 8532, 52, 32, 15, 431, 104, 4482, 431, 104, 519, 31, 1, -100, -1...
What was the record in the game in which Jeff Green (14) did the most high rebounds?
CREATE TABLE table_23286112_6 (record VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_23286112_6 WHERE high_rebounds = "Jeff Green (14)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 2577, 4241, 2122, 834, 948, 41, 60, 7621, 584, 4280, 28027, 6, 306, 834, 23768, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1368, 16, 8, 467, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1368, 21680, 953, 834, 2773, 2577, 4241, 2122, 834, 948, 549, 17444, 427, 306, 834, 23768, 3274, 96, 7851, 89, 89, 1862, 4077, 7256, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What's the score at the October 30, 1996 1998 fifa world cup qualification with a result of win?
CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)
SELECT score FROM table_name_58 WHERE result = "win" AND competition = "1998 fifa world cup qualification" AND date = "october 30, 1996"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 7, 9022, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 2259, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 741, 3274, 96, 3757, 121, 3430, 2259, 3274, 96, 2294, 3916, 361, 89, 9, 296, 4119, 15513, 121, 3430, 833, 3274, 96, 32, 75, 235, 1152, 11558, 6911, 121, 1, ...
When was the first election in the district whose incumbent is Ron Kind?
CREATE TABLE table_18134 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT MIN("First elected") FROM table_18134 WHERE "Incumbent" = 'Ron Kind'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 23747, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 7, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 25171, 8160, 8512, 21680, 953, 834, 2606, 23747, 549, 17444, 427, 96, 1570, 75, 5937, 295, 121, 3274, 3, 31, 448, 106, 6557, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the type that ends in 2009?
CREATE TABLE table_name_32 ( type VARCHAR, ends VARCHAR )
SELECT type FROM table_name_32 WHERE ends = "2009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 686, 584, 4280, 28027, 6, 5542, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 686, 24, 5542, 16, 2464, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 686, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 5542, 3274, 96, 16660, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
platelets >= 100000 / mm3
CREATE TABLE table_dev_35 ( "id" int, "white_blood_cell_count_wbc" int, "platelets" int, "neutrophil_count" int, "serum_creatinine" float, "albumin" float, "NOUSE" float )
SELECT * FROM table_dev_35 WHERE platelets >= 100000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9776, 834, 2469, 41, 96, 23, 26, 121, 16, 17, 6, 96, 13698, 834, 27798, 834, 8725, 834, 13362, 834, 210, 115, 75, 121, 16, 17, 6, 96, 17628, 7677, 121, 16, 17, 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, 1429, 21680, 953, 834, 9776, 834, 2469, 549, 17444, 427, 3829, 7677, 2490, 2423, 910, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which Series 2 has a Series 3 of deborah meaden?
CREATE TABLE table_78694 ( "Seat Order (Right to Left)" real, "Series 1" text, "Series 2" text, "Series 3" text, "Series 5" text, "Series 9" text, "Series 11" text )
SELECT "Series 2" FROM table_78694 WHERE "Series 3" = 'deborah meaden'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 3951, 591, 41, 96, 134, 1544, 5197, 41, 448, 2632, 12, 14298, 61, 121, 490, 6, 96, 12106, 7, 209, 121, 1499, 6, 96, 12106, 7, 204, 121, 1499, 6, 96, 12106, 7, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 12106, 7, 204, 121, 21680, 953, 834, 3940, 3951, 591, 549, 17444, 427, 96, 12106, 7, 220, 121, 3274, 3, 31, 221, 6693, 9, 107, 140, 9, 537, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What driver went 59 laps on grid 11?
CREATE TABLE table_name_57 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_57 WHERE laps = 59 AND grid = 11
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3436, 41, 13739, 52, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 2535, 877, 3, 3390, 14941,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2535, 21680, 953, 834, 4350, 834, 3436, 549, 17444, 427, 14941, 7, 3274, 3, 3390, 3430, 8634, 3274, 850, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the name , and group by attribute name by a bar chart, and display in asc by the Y.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 332, 5411, 22737, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 332, 4416, 2...
What is the amount of trees, that require replacement when the district is motovilikhinsky?
CREATE TABLE table_10342194_3 (amount_of_trees VARCHAR, _that_require_replacement VARCHAR, district VARCHAR)
SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "Motovilikhinsky"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1714, 3710, 2658, 4240, 834, 519, 41, 9, 11231, 834, 858, 834, 929, 15, 7, 584, 4280, 28027, 6, 3, 834, 6279, 834, 60, 1169, 60, 834, 60, 4687, 297, 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, 866, 834, 858, 834, 929, 15, 7, 6, 3, 834, 6279, 834, 60, 1169, 60, 834, 60, 4687, 297, 21680, 953, 834, 1714, 3710, 2658, 4240, 834, 519, 549, 17444, 427, 3939, 3274, 96, 329, 32, 235, 6372, 19030, 77, 5352, 12...
give the number of patients whose diagnosis long title is other and unspecified coagulation defects.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Other and unspecified coagulation defects"
[ 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, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What was the site of the game against Buffalo Bills ?
CREATE TABLE table_14875671_1 ( game_site VARCHAR, opponent VARCHAR )
SELECT game_site FROM table_14875671_1 WHERE opponent = "Buffalo Bills"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2534, 4225, 4834, 4450, 834, 536, 41, 467, 834, 3585, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 353, 13, 8, 467, 581, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 834, 3585, 21680, 953, 834, 2534, 4225, 4834, 4450, 834, 536, 549, 17444, 427, 15264, 3274, 96, 279, 2999, 138, 32, 3259, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What type of surface did Thomaz Bellucci play against tommy robredo?
CREATE TABLE table_name_66 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_66 WHERE opponent = "tommy robredo"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3539, 41, 26899, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 686, 13, 1774, 410, 25230, 18983, 5377, 17431, 23, 577, 581, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1774, 21680, 953, 834, 4350, 834, 3539, 549, 17444, 427, 15264, 3274, 96, 235, 635, 63, 3, 5840, 1271, 32, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the probable future word for the simple present/future word high grade?
CREATE TABLE table_48152 ( "!Simple Present/Future" text, "Probable Future" text, "Simple Past" text, "Past Habitual" text, "Injunctive" text, "Imperative" text )
SELECT "Probable Future" FROM table_48152 WHERE "!Simple Present/Future" = 'high grade'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3707, 26320, 41, 96, 55, 134, 10296, 15, 18795, 87, 371, 76, 2693, 121, 1499, 6, 96, 3174, 115, 179, 9130, 121, 1499, 6, 96, 134, 10296, 15, 10180, 121, 1499, 6, 96, 345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 3174, 115, 179, 9130, 121, 21680, 953, 834, 3707, 26320, 549, 17444, 427, 96, 55, 134, 10296, 15, 18795, 87, 371, 76, 2693, 121, 3274, 3, 31, 6739, 2769, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
When the network mask is 255.255.255.252 what is the prefix size?
CREATE TABLE table_149426_4 ( prefix_size VARCHAR, network_mask VARCHAR )
SELECT prefix_size FROM table_149426_4 WHERE network_mask = "255.255.255.252"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2534, 4240, 2688, 834, 591, 41, 554, 12304, 834, 7991, 584, 4280, 28027, 6, 1229, 834, 2754, 157, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 8, 1229, 8181, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 554, 12304, 834, 7991, 21680, 953, 834, 2534, 4240, 2688, 834, 591, 549, 17444, 427, 1229, 834, 2754, 157, 3274, 96, 25502, 5, 25502, 5, 1828, 24342, 5373, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many seasons have the production code 7.01 for an episode?
CREATE TABLE table_24882 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
SELECT MAX("No. in season") FROM table_24882 WHERE "Production code" = '7.01'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 4060, 357, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 4168, 5, 16, 774, 8512, 21680, 953, 834, 2266, 4060, 357, 549, 17444, 427, 96, 3174, 8291, 1081, 121, 3274, 3, 31, 26346, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
after the championship in the hague , netherlands , where were the next championship held ?
CREATE TABLE table_204_445 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT "venue" FROM table_204_445 WHERE id = (SELECT id FROM table_204_445 WHERE "venue" = 'the hague, netherlands') + 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 591, 2128, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 381, 6, 96, 287, 4995, 4749, 121, 1499, 6, 96, 15098, 121, 1499, 6, 96, 4718, 121, 1499, 6, 96, 7977, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15098, 121, 21680, 953, 834, 26363, 834, 591, 2128, 549, 17444, 427, 3, 23, 26, 3274, 41, 23143, 14196, 3, 23, 26, 21680, 953, 834, 26363, 834, 591, 2128, 549, 17444, 427, 96, 15098, 121, 3274, 3, 31, 532, 424...
What CFL team got the player from york?
CREATE TABLE table_30263 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT "CFL Team" FROM table_30263 WHERE "College" = 'York'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 357, 3891, 41, 96, 345, 3142, 1713, 121, 490, 6, 96, 254, 10765, 2271, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 9939, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 254, 10765, 2271, 121, 21680, 953, 834, 1458, 357, 3891, 549, 17444, 427, 96, 9939, 7883, 121, 3274, 3, 31, 476, 127, 157, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the region for the date November 18, 2002?
CREATE TABLE table_name_76 ( region VARCHAR, date VARCHAR )
SELECT region FROM table_name_76 WHERE date = "november 18, 2002"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3959, 41, 1719, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1719, 21, 8, 833, 1671, 14985, 4407, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1719, 21680, 953, 834, 4350, 834, 3959, 549, 17444, 427, 833, 3274, 96, 5326, 18247, 14985, 4407, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the highest average for the contestant having an interview score of 8.46?
CREATE TABLE table_53906 ( "State" text, "Interview" real, "Swimsuit" real, "Evening gown" real, "Average" real )
SELECT MAX("Average") FROM table_53906 WHERE "Interview" = '8.46'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 2394, 948, 41, 96, 134, 4748, 121, 1499, 6, 96, 17555, 4576, 121, 490, 6, 96, 134, 210, 603, 7628, 121, 490, 6, 96, 427, 1926, 53, 19879, 121, 490, 6, 96, 188, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 188, 624, 545, 8512, 21680, 953, 834, 4867, 2394, 948, 549, 17444, 427, 96, 17555, 4576, 121, 3274, 3, 31, 927, 5, 4448, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What dates was the falken tasmania challenge race that had triple eight race engineering as the team?
CREATE TABLE table_20884163_2 (date VARCHAR, team VARCHAR, race_title VARCHAR)
SELECT date FROM table_20884163_2 WHERE team = "Triple Eight Race Engineering" AND race_title = "Falken Tasmania Challenge"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1755, 4060, 4853, 3891, 834, 357, 41, 5522, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 6, 1964, 834, 21869, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 5128, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 1755, 4060, 4853, 3891, 834, 357, 549, 17444, 427, 372, 3274, 96, 19310, 4788, 18516, 10949, 5623, 121, 3430, 1964, 834, 21869, 3274, 96, 371, 138, 2217, 28020, 7729, 121, 1, -100, -100, -100, -1...
How many episodes in the season had the title, 'first blood'?
CREATE TABLE table_31009 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text )
SELECT COUNT("No. in season") FROM table_31009 WHERE "Title" = 'First Blood'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19947, 4198, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4168, 5, 16, 774, 8512, 21680, 953, 834, 19947, 4198, 549, 17444, 427, 96, 382, 155, 109, 121, 3274, 3, 31, 25171, 12737, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the lowest number in the Labour Party for the Fianna Fail higher than 5?
CREATE TABLE table_name_16 (labour_party INTEGER, fianna_fáil INTEGER)
SELECT MIN(labour_party) FROM table_name_16 WHERE fianna_fáil > 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 9339, 1211, 834, 8071, 3, 21342, 17966, 6, 361, 10878, 834, 89, 2975, 173, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 381, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 9339, 1211, 834, 8071, 61, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 361, 10878, 834, 89, 2975, 173, 2490, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the languages for estonia
CREATE TABLE table_21133193_1 ( languages VARCHAR, member_countries VARCHAR )
SELECT languages FROM table_21133193_1 WHERE member_countries = "Estonia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 2368, 3341, 4271, 834, 536, 41, 8024, 584, 4280, 28027, 6, 1144, 834, 13362, 2593, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 8024, 21, 259, 8008,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8024, 21680, 953, 834, 2658, 2368, 3341, 4271, 834, 536, 549, 17444, 427, 1144, 834, 13362, 2593, 3274, 96, 14997, 8008, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the max points you when when you place 9th?
CREATE TABLE table_17289224_1 (points INTEGER, final_placing VARCHAR)
SELECT MAX(points) FROM table_17289224_1 WHERE final_placing = "9th"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27156, 3914, 24622, 834, 536, 41, 2700, 7, 3, 21342, 17966, 6, 804, 834, 6042, 75, 53, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 9858, 979, 25, 116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 2700, 7, 61, 21680, 953, 834, 27156, 3914, 24622, 834, 536, 549, 17444, 427, 804, 834, 6042, 75, 53, 3274, 96, 1298, 189, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the number of patients whose discharge location is snf and procedure icd9 code is 9961?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "SNF" AND procedures.icd9_code = "9961"
[ 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,...
get the marital status and ethnic background for the patient with patient id 76446.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT demographic.marital_status, demographic.ethnicity FROM demographic WHERE demographic.subject_id = "76446"
[ 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, 14798, 5, 1635, 9538, 834, 8547, 302, 6, 14798, 5, 15, 189, 2532, 485, 21680, 14798, 549, 17444, 427, 14798, 5, 7304, 11827, 834, 23, 26, 3274, 96, 3959, 591, 4448, 121, 1, -100, -100, -100, -100, -100, -100, -100, ...
calculate the maximum age of patients who had emergency type hospital admission and died before 2183.
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dod_year < "2183.0"
[ 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, 4800, 4, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 9, 26, 5451, 834, 6137, 3274, 96, 427, 13098, 18464, 17063, 121, 3430, 14798, 5, 26, 32, 26, 834, 1201, 3, 2, 96, 2658, 4591, 5, 63...
Who was the runner up when the won by 4 strokes?
CREATE TABLE table_21649285_2 ( runner_s__up VARCHAR, margin_of_victory VARCHAR )
SELECT runner_s__up FROM table_21649285_2 WHERE margin_of_victory = "4 strokes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 4389, 4508, 4433, 834, 357, 41, 3, 10806, 834, 7, 834, 834, 413, 584, 4280, 28027, 6, 6346, 834, 858, 834, 7287, 10972, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 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, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 10806, 834, 7, 834, 834, 413, 21680, 953, 834, 2658, 4389, 4508, 4433, 834, 357, 549, 17444, 427, 6346, 834, 858, 834, 7287, 10972, 3274, 96, 591, 9529, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which January has a Score of 7 4, and a Game smaller than 42?
CREATE TABLE table_75647 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT SUM("January") FROM table_75647 WHERE "Score" = '7–4' AND "Game" < '42'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3072, 948, 4177, 41, 96, 23055, 121, 490, 6, 96, 30404, 121, 490, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 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, 180, 6122, 599, 121, 30404, 8512, 21680, 953, 834, 3072, 948, 4177, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 940, 104, 591, 31, 3430, 96, 23055, 121, 3, 2, 3, 31, 4165, 31, 1, -100, -100, -100, -100, -1...
What is the second leg for Team 1 Servette?
CREATE TABLE table_name_54 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_54 WHERE team_1 = "servette"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 11650, 834, 536, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 511, 4553, 21, 2271, 209, 5631, 19828, 58, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 204, 6157, 3, 727, 834, 5772, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 372, 834, 536, 3274, 96, 3473, 1954, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many years was Jiyai Shin the champion?
CREATE TABLE table_72662 ( "Year" real, "Dates" text, "Champion" text, "Country" text, "Score" text, "To par" text, "Margin of victory" text, "Purse ( US$ )" real, "Winners share" real )
SELECT COUNT("Year") FROM table_72662 WHERE "Champion" = 'Jiyai Shin'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5865, 3539, 357, 41, 96, 476, 2741, 121, 490, 6, 96, 308, 6203, 121, 1499, 6, 96, 254, 1483, 12364, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 476, 2741, 8512, 21680, 953, 834, 5865, 3539, 357, 549, 17444, 427, 96, 254, 1483, 12364, 121, 3274, 3, 31, 683, 23, 63, 9, 23, 14215, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
which institutions can be categorized as private/united church of christ?
CREATE TABLE table_261895_1 ( institution VARCHAR, type VARCHAR )
SELECT institution FROM table_261895_1 WHERE type = "Private/United Church of Christ"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 2606, 3301, 834, 536, 41, 6568, 584, 4280, 28027, 6, 686, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 84, 4222, 54, 36, 3, 28295, 38, 1045, 87, 15129, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6568, 21680, 953, 834, 2688, 2606, 3301, 834, 536, 549, 17444, 427, 686, 3274, 96, 7855, 208, 342, 87, 5110, 23, 1054, 2345, 13, 2144, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the project id and detail for the project with at least two documents. Plot them as bar chart.
CREATE TABLE Documents_with_Expenses ( Document_ID INTEGER, Budget_Type_Code CHAR(15), Document_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) ) CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) ) CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Other_Details VARCHAR(255) )
SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 11167, 7, 834, 4065, 834, 12882, 5167, 7, 41, 11167, 834, 4309, 3, 21342, 17966, 6, 12532, 834, 25160, 834, 22737, 3, 28027, 599, 1808, 201, 11167, 834, 2962, 5756, 7, 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, 332, 5411, 3174, 11827, 834, 2962, 5756, 7, 6, 332, 5411, 3174, 11827, 834, 4309, 21680, 2786, 7, 6157, 332, 536, 3, 15355, 3162, 11167, 7, 6157, 332, 357, 9191, 332, 5411, 3174, 11827, 834, 4309, 3274, 332, 4416, 3...
How many games had red star as the runner up?
CREATE TABLE table_26455614_1 ( attendance VARCHAR, runner_up VARCHAR )
SELECT COUNT(attendance) FROM table_26455614_1 WHERE runner_up = "Red Star"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 2128, 4834, 2534, 834, 536, 41, 11364, 584, 4280, 28027, 6, 3, 10806, 834, 413, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1031, 141, 1131, 2213,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15116, 663, 61, 21680, 953, 834, 2688, 2128, 4834, 2534, 834, 536, 549, 17444, 427, 3, 10806, 834, 413, 3274, 96, 1649, 26, 2042, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the departure for Peterborough East whose arrival time is 12.40?
CREATE TABLE table_18332845_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)
SELECT departure FROM table_18332845_2 WHERE going_to = "Peterborough East" AND arrival = "12.40"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24361, 28070, 2128, 834, 357, 41, 221, 2274, 1462, 584, 4280, 28027, 6, 352, 834, 235, 584, 4280, 28027, 6, 6870, 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, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 12028, 21680, 953, 834, 24361, 28070, 2128, 834, 357, 549, 17444, 427, 352, 834, 235, 3274, 96, 345, 15, 449, 12823, 1932, 121, 3430, 6870, 3274, 96, 9368, 2445, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
Who was the visitor on April 2?
CREATE TABLE table_name_7 ( visitor VARCHAR, date VARCHAR )
SELECT visitor FROM table_name_7 WHERE date = "april 2"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 940, 41, 7019, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 7019, 30, 1186, 204, 58, 1, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7019, 21680, 953, 834, 4350, 834, 940, 549, 17444, 427, 833, 3274, 96, 9, 2246, 40, 204, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who directed Bunker Hill Bunny?
CREATE TABLE table_79470 ( "Title" text, "Series" text, "Director" text, "Release date" text, "reissue?" text )
SELECT "Director" FROM table_79470 WHERE "Title" = 'bunker hill bunny'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4440, 27760, 41, 96, 382, 155, 109, 121, 1499, 6, 96, 12106, 7, 121, 1499, 6, 96, 23620, 127, 121, 1499, 6, 96, 1649, 40, 14608, 833, 121, 1499, 6, 96, 60, 13159, 4609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23620, 127, 121, 21680, 953, 834, 4440, 27760, 549, 17444, 427, 96, 382, 155, 109, 121, 3274, 3, 31, 9617, 2304, 9956, 2293, 29, 63, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the winning party 2007 for result of labour hold and swing to gain less than 7.11 for wrexham
CREATE TABLE table_name_60 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR)
SELECT winning_party_2007 FROM table_name_60 WHERE result = "labour hold" AND swing_to_gain < 7.11 AND constituency = "wrexham"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 8163, 834, 8071, 834, 20615, 584, 4280, 28027, 6, 6439, 4392, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 7180, 834, 235, 834, 16720, 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, 3447, 834, 8071, 834, 20615, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 741, 3274, 96, 9339, 1211, 1520, 121, 3430, 7180, 834, 235, 834, 16720, 3, 2, 4306, 2596, 3430, 6439, 4392, 3274, 96, 210, 60, 226, 148...
WHich Places have a score smaller than 69?
CREATE TABLE table_name_12 ( place VARCHAR, score INTEGER )
SELECT place FROM table_name_12 WHERE score < 69
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2122, 41, 286, 584, 4280, 28027, 6, 2604, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 3, 15313, 362, 3399, 7, 43, 3, 9, 2604, 2755, 145, 3, 3951, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 286, 21680, 953, 834, 4350, 834, 2122, 549, 17444, 427, 2604, 3, 2, 3, 3951, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the population for kolut
CREATE TABLE table_2562572_22 (population__2011_ VARCHAR, settlement VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_22 WHERE settlement = "Kolut"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19337, 1828, 5865, 834, 2884, 41, 9791, 7830, 834, 834, 13907, 834, 584, 4280, 28027, 6, 7025, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 2074, 21, 3, 1129...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 9791, 7830, 834, 834, 13907, 834, 61, 21680, 953, 834, 19337, 1828, 5865, 834, 2884, 549, 17444, 427, 7025, 3274, 96, 439, 32, 40, 76, 17, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is Weight, when Length is 1168mm / 46 in?
CREATE TABLE table_77027 ( "Nation" text, "Model" text, "Length" text, "Barrel length" text, "Weight" text )
SELECT "Weight" FROM table_77027 WHERE "Length" = '1168mm / 46 in'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26920, 2555, 41, 96, 567, 257, 121, 1499, 6, 96, 24663, 121, 1499, 6, 96, 434, 4606, 189, 121, 1499, 6, 96, 14851, 60, 40, 2475, 121, 1499, 6, 96, 1326, 2632, 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, 1326, 2632, 121, 21680, 953, 834, 26920, 2555, 549, 17444, 427, 96, 434, 4606, 189, 121, 3274, 3, 31, 2596, 3651, 635, 3, 87, 9668, 16, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the final result when the Mountaineers scored less than 13 and their opponents scored 26?
CREATE TABLE table_name_32 (result VARCHAR, points_for VARCHAR, points_against VARCHAR)
SELECT result FROM table_name_32 WHERE points_for < 13 AND points_against = 26
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 979, 834, 1161, 584, 4280, 28027, 6, 979, 834, 9, 16720, 7, 17, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 741, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 979, 834, 1161, 3, 2, 1179, 3430, 979, 834, 9, 16720, 7, 17, 3274, 2208, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is diagnoses short title and diagnoses long title of subject id 18077?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "18077"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 18730, 7, 5, 7, 14184, 834, 21869, 6, 18730, 7, 5, 2961, 834, 21869, 21680, 18730, 7, 549, 17444, 427, 18730, 7, 5, 7304, 11827, 834, 23, 26, 3274, 96, 20829, 4013, 121, 1, -100, -100, -100, -100, -100, -100, -100...
What was the hometown of the player who attended Athens Drive High School?
CREATE TABLE table_11677100_5 ( hometown VARCHAR, school VARCHAR )
SELECT hometown FROM table_11677100_5 WHERE school = "Athens Drive High school"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20159, 4013, 2915, 834, 755, 41, 22295, 584, 4280, 28027, 6, 496, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 22295, 13, 8, 1959, 113, 5526, 486, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 22295, 21680, 953, 834, 20159, 4013, 2915, 834, 755, 549, 17444, 427, 496, 3274, 96, 188, 189, 35, 7, 5894, 1592, 496, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was on Jason's team for the 12 June 2009 episode?
CREATE TABLE table_23292220_8 ( jasons_team VARCHAR, first_broadcast VARCHAR )
SELECT jasons_team FROM table_23292220_8 WHERE first_broadcast = "12 June 2009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 3166, 2884, 1755, 834, 927, 41, 2662, 6577, 834, 11650, 584, 4280, 28027, 6, 166, 834, 115, 8635, 5254, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2662, 6577, 834, 11650, 21680, 953, 834, 2773, 3166, 2884, 1755, 834, 927, 549, 17444, 427, 166, 834, 115, 8635, 5254, 3274, 96, 2122, 1515, 2464, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the result for the Bafta Tv award?
CREATE TABLE table_44325 ( "Year" real, "Award" text, "Category" text, "Nominated work" text, "Result" text )
SELECT "Result" FROM table_44325 WHERE "Award" = 'bafta tv award'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3628, 519, 1828, 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, 1, 1...
[ 3, 23143, 14196, 96, 20119, 121, 21680, 953, 834, 3628, 519, 1828, 549, 17444, 427, 96, 188, 2239, 121, 3274, 3, 31, 115, 9, 89, 17, 9, 3, 17, 208, 2760, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430
CREATE TABLE table_71971 ( "Call sign" text, "Frequency" text, "City of license" text, "Facility ID" real, "ERP / Power W" real, "Height m ( ft )" text, "Class" text )
SELECT COUNT("ERP / Power W") FROM table_71971 WHERE "Frequency" = '89.3 fm' AND "Facility ID" < '40430'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2294, 4450, 41, 96, 254, 1748, 1320, 121, 1499, 6, 96, 371, 60, 835, 11298, 121, 1499, 6, 96, 254, 485, 13, 3344, 121, 1499, 6, 96, 371, 9, 75, 14277, 4699, 121, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 3316, 345, 3, 87, 2621, 549, 8512, 21680, 953, 834, 940, 2294, 4450, 549, 17444, 427, 96, 371, 60, 835, 11298, 121, 3274, 3, 31, 3914, 5, 519, 3, 89, 51, 31, 3430, 96, 371, 9, 75, 14277, ...
who is the the pole position with date being august 10
CREATE TABLE table_14638077_2 ( pole_position VARCHAR, date VARCHAR )
SELECT pole_position FROM table_14638077_2 WHERE date = "August 10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24300, 22671, 4013, 834, 357, 41, 11148, 834, 4718, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 113, 19, 8, 8, 11148, 1102, 28, 833, 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, 11148, 834, 4718, 21680, 953, 834, 24300, 22671, 4013, 834, 357, 549, 17444, 427, 833, 3274, 96, 26579, 335, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the most minimal Final year that has a Notes of replaced by i-75 and m-25, and a First year larger than 1926?
CREATE TABLE table_8473 ( "South or west terminus" text, "North or east terminus" text, "First year" real, "Final year" real, "Notes" text )
SELECT MIN("Final year") FROM table_8473 WHERE "Notes" = 'replaced by i-75 and m-25' AND "First year" > '1926'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4608, 4552, 41, 96, 22081, 42, 4653, 12089, 302, 121, 1499, 6, 96, 22969, 42, 5727, 12089, 302, 121, 1499, 6, 96, 25171, 215, 121, 490, 6, 96, 371, 10270, 215, 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, 371, 10270, 215, 8512, 21680, 953, 834, 4608, 4552, 549, 17444, 427, 96, 10358, 15, 7, 121, 3274, 3, 31, 60, 4687, 26, 57, 3, 23, 18, 3072, 11, 3, 51, 14855, 31, 3430, 96, 25171, 215, 121, ...
Name the most numbers dam and gnis query link for borough or census area for fairbanks north star
CREATE TABLE table_73050 ( "# s Dam and GNIS query Link" real, "# s Lake and GNIS query Link" real, "# s Reservoir and GNIS query Link" real, "Borough or Census area" text, "Comment" text )
SELECT MAX("# s Dam and GNIS query Link") FROM table_73050 WHERE "Borough or Census area" = 'Fairbanks North Star'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 1458, 1752, 41, 96, 4663, 3, 7, 10939, 11, 3, 13738, 4555, 11417, 7505, 121, 490, 6, 96, 4663, 3, 7, 2154, 11, 3, 13738, 4555, 11417, 7505, 121, 490, 6, 96, 4663, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 4663, 3, 7, 10939, 11, 3, 13738, 4555, 11417, 7505, 8512, 21680, 953, 834, 940, 1458, 1752, 549, 17444, 427, 96, 279, 32, 13245, 42, 23086, 616, 121, 3274, 3, 31, 371, 2256, 4739, 7, 1117, 2042,...
What is the largest season with a Third Driver of jimmy davies?
CREATE TABLE table_67504 ( "Season" real, "Cars Entered" real, "Winning Driver" text, "Second Driver" text, "Third Driver" text, "Race Report" text )
SELECT MAX("Season") FROM table_67504 WHERE "Third Driver" = 'jimmy davies'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 1752, 591, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 6936, 7, 695, 11196, 121, 490, 6, 96, 518, 10503, 10546, 121, 1499, 6, 96, 134, 15, 1018, 26, 10546, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 134, 15, 9, 739, 8512, 21680, 953, 834, 3708, 1752, 591, 549, 17444, 427, 96, 382, 9288, 26, 10546, 121, 3274, 3, 31, 354, 603, 2258, 836, 5914, 7, 31, 1, -100, -100, -100, -100, -100, -100, -...
When Butler one the regular season who was the conference player of the year?
CREATE TABLE table_3027 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text )
SELECT "Conference Player of the Year" FROM table_3027 WHERE "Regular Season Winner" = 'Butler'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 2555, 41, 96, 4302, 11788, 121, 1499, 6, 96, 17748, 4885, 7960, 18125, 121, 1499, 6, 96, 4302, 11788, 12387, 13, 8, 2929, 121, 1499, 6, 96, 4302, 11788, 20502, 121, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4302, 11788, 12387, 13, 8, 2929, 121, 21680, 953, 834, 1458, 2555, 549, 17444, 427, 96, 17748, 4885, 7960, 18125, 121, 3274, 3, 31, 11836, 1171, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the location in 2009?
CREATE TABLE table_name_50 ( location VARCHAR, year VARCHAR )
SELECT location FROM table_name_50 WHERE year = "2009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1752, 41, 1128, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1128, 16, 2464, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1128, 21680, 953, 834, 4350, 834, 1752, 549, 17444, 427, 215, 3274, 96, 16660, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is date of death of subject id 9271?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT demographic.dod FROM demographic WHERE demographic.subject_id = "9271"
[ 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, 26, 32, 26, 21680, 14798, 549, 17444, 427, 14798, 5, 7304, 11827, 834, 23, 26, 3274, 96, 4508, 4450, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Count the total number of available services.
CREATE TABLE services ( service_id number, service_name text ) CREATE TABLE settlements ( settlement_id number, claim_id number, effective_date time, settlement_amount number ) CREATE TABLE claims ( claim_id number, fnol_id number, effective_date time ) CREATE TABLE available_policies ( policy_id number, policy_type_code text, customer_phone text ) CREATE TABLE first_notification_of_loss ( fnol_id number, customer_id number, policy_id number, service_id number ) CREATE TABLE customers ( customer_id number, customer_name text ) CREATE TABLE customers_policies ( customer_id number, policy_id number, date_opened time, date_closed time )
SELECT COUNT(*) FROM services
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 364, 41, 313, 834, 23, 26, 381, 6, 313, 834, 4350, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 7025, 7, 41, 7025, 834, 23, 26, 381, 6, 1988, 834, 23, 26, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 364, 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...
Draw a bar chart of last name versus department_id
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT LAST_NAME, DEPARTMENT_ID FROM employees
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1440, 41, 2847, 17161, 11824, 834, 4309, 3, 4331, 4059, 16426, 6, 2847, 17161, 11824, 834, 567, 17683, 3, 4331, 4059, 599, 2445, 201, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 1714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 301, 12510, 834, 567, 17683, 6, 3396, 19846, 11810, 834, 4309, 21680, 1652, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, list from low to high by the names.
CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 613, 834, 10193, 10972, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 5097, 8241, 834, 308, 6048, 833, 6, 3, 14920, 834, 308, 6048, 833, 6, 446, 10539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 180, 6122, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 454, 14132, 834, 308, 6048, 3, 2, 3, 31, 24898, 18, 5176, 16539, 31, 350, 4630, 6880, 272, 476, 446, 10539, ...
Name the number of mens doubles for 2004/2005
CREATE TABLE table_17526 ( "Season" text, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text )
SELECT COUNT("Mens doubles") FROM table_17526 WHERE "Season" = '2004/2005'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 536, 3072, 2688, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 329, 35, 7, 712, 7, 121, 1499, 6, 96, 518, 32, 904, 7, 712, 7, 121, 1499, 6, 96, 329, 35, 7, 1486, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 329, 35, 7, 1486, 7, 8512, 21680, 953, 834, 536, 3072, 2688, 549, 17444, 427, 96, 134, 15, 9, 739, 121, 3274, 3, 31, 21653, 87, 22594, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the incumbent in district Texas 15?
CREATE TABLE table_1341707_45 ( incumbent VARCHAR, district VARCHAR )
SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 15"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2517, 4560, 834, 2128, 41, 28406, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 28406, 16, 3939, 2514, 627, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 28406, 21680, 953, 834, 23747, 2517, 4560, 834, 2128, 549, 17444, 427, 3939, 3274, 96, 13598, 9, 7, 627, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which series had a title of Boyhood Daze?
CREATE TABLE table_name_78 ( series VARCHAR, title VARCHAR )
SELECT series FROM table_name_78 WHERE title = "boyhood daze"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 939, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 939, 141, 3, 9, 2233, 13, 7508, 4500, 878, 776, 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, 939, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 2233, 3274, 96, 7531, 4500, 836, 776, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the fewest number of top-25s for events with more than 13 cuts made?
CREATE TABLE table_79680 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT MIN("Top-25") FROM table_79680 WHERE "Cuts made" > '13'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 4314, 2079, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 18455, 7, 121, 490, 6, 96, 22481, 18, 17395, 490, 6, 96, 22481, 14855, 121, 490, 6, 96, 427, 2169, 7, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 22481, 14855, 8512, 21680, 953, 834, 940, 4314, 2079, 549, 17444, 427, 96, 15784, 17, 7, 263, 121, 2490, 3, 31, 2368, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the total number of points for a total pld less than 38?
CREATE TABLE table_name_24 (total_pts VARCHAR, total_pld INTEGER)
SELECT COUNT(total_pts) FROM table_name_24 WHERE total_pld < 38
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 235, 1947, 834, 102, 17, 7, 584, 4280, 28027, 6, 792, 834, 102, 40, 26, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 235, 1947, 834, 102, 17, 7, 61, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 792, 834, 102, 40, 26, 3, 2, 6654, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How big is the Venue of Brunswick Street Oval?
CREATE TABLE table_name_47 ( crowd INTEGER, venue VARCHAR )
SELECT SUM(crowd) FROM table_name_47 WHERE venue = "brunswick street oval"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 4374, 3, 21342, 17966, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 600, 19, 8, 29940, 13, 29980, 1887, 411, 2165, 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, 180, 6122, 599, 75, 3623, 26, 61, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 5669, 3274, 96, 9052, 29, 7, 5981, 2815, 17986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...