NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
What is the weight(lbs) when born is april 6, 1954 detroit, mi?
CREATE TABLE table_1198175_1 ( weight_lbs_ VARCHAR, born VARCHAR )
SELECT weight_lbs_ FROM table_1198175_1 WHERE born = "April 6, 1954 Detroit, MI"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19993, 4959, 3072, 834, 536, 41, 1293, 834, 9949, 834, 584, 4280, 28027, 6, 2170, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1293, 599, 9949, 61, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1293, 834, 9949, 834, 21680, 953, 834, 19993, 4959, 3072, 834, 536, 549, 17444, 427, 2170, 3274, 96, 23323, 8580, 24970, 11901, 6, 8161, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many patients with item id 50862 were admitted before 2162?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2162" AND lab.itemid = "50862"
[ 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 are the different names of the product characteristics?
CREATE TABLE products ( product_id number, color_code text, product_category_code text, product_name text, typical_buying_price text, typical_selling_price text, product_description text, other_product_details text ) CREATE TABLE ref_colors ( color_code text, color_description text ) CREATE TABLE characteristics ( characteristic_id number, characteristic_type_code text, characteristic_data_type text, characteristic_name text, other_characteristic_details text ) CREATE TABLE product_characteristics ( product_id number, characteristic_id number, product_characteristic_value text ) CREATE TABLE ref_characteristic_types ( characteristic_type_code text, characteristic_type_description text ) CREATE TABLE ref_product_categories ( product_category_code text, product_category_description text, unit_of_measure text )
SELECT DISTINCT characteristic_name FROM characteristics
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 556, 834, 23, 26, 381, 6, 945, 834, 4978, 1499, 6, 556, 834, 8367, 839, 651, 834, 4978, 1499, 6, 556, 834, 4350, 1499, 6, 4541, 834, 14584, 53, 834, 102, 4920, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 16115, 834, 4350, 21680, 6803, 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, ...
Which Home has a Series of series tied 3–3?
CREATE TABLE table_name_92 (home VARCHAR, series VARCHAR)
SELECT home FROM table_name_92 WHERE series = "series tied 3–3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4508, 41, 5515, 584, 4280, 28027, 6, 939, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1210, 65, 3, 9, 4531, 13, 939, 10422, 220, 104, 519, 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, 234, 21680, 953, 834, 4350, 834, 4508, 549, 17444, 427, 939, 3274, 96, 10833, 7, 10422, 220, 104, 519, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the score for set 3 when set 1 was 14 25?
CREATE TABLE table_name_1 ( set_3 VARCHAR, set_1 VARCHAR )
SELECT set_3 FROM table_name_1 WHERE set_1 = "14–25"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 536, 41, 356, 834, 519, 584, 4280, 28027, 6, 356, 834, 536, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 21, 356, 220, 116, 356, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 356, 834, 519, 21680, 953, 834, 4350, 834, 536, 549, 17444, 427, 356, 834, 536, 3274, 96, 2534, 104, 1828, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million?
CREATE TABLE table_name_26 (inhabitants_per_mep INTEGER, population_millions VARCHAR, meps VARCHAR, member_state VARCHAR)
SELECT MAX(inhabitants_per_mep) FROM table_name_26 WHERE meps > 50 AND member_state = "germany" AND population_millions < 82.43
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 77, 29884, 7, 834, 883, 834, 526, 102, 3, 21342, 17966, 6, 2074, 834, 17030, 7, 584, 4280, 28027, 6, 140, 102, 7, 584, 4280, 28027, 6, 1144, 834, 554...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 77, 29884, 7, 834, 883, 834, 526, 102, 61, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 140, 102, 7, 2490, 943, 3430, 1144, 834, 5540, 3274, 96, 1304, 348, 63, 121, 3430, 2074, 834, 17030, 7, ...
Count the number of local authorities by the local authority, and order Y-axis from low to high order.
CREATE TABLE train ( id int, train_number int, name text, origin text, destination text, time text, interval text ) CREATE TABLE weekly_weather ( station_id int, day_of_week text, high_temperature int, low_temperature int, precipitation real, wind_speed_mph int ) CREATE TABLE station ( id int, network_name text, services text, local_authority text ) CREATE TABLE route ( train_id int, station_id int )
SELECT local_authority, COUNT(local_authority) FROM station GROUP BY local_authority ORDER BY COUNT(local_authority)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2412, 41, 3, 23, 26, 16, 17, 6, 2412, 834, 5525, 1152, 16, 17, 6, 564, 1499, 6, 5233, 1499, 6, 3954, 1499, 6, 97, 1499, 6, 8572, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 415, 834, 17415, 485, 6, 2847, 17161, 599, 16882, 834, 17415, 485, 61, 21680, 2478, 350, 4630, 6880, 272, 476, 415, 834, 17415, 485, 4674, 11300, 272, 476, 2847, 17161, 599, 16882, 834, 17415, 485, 61, 1, -100, -100, ...
what is the racing club where copa libertadores 1997?
CREATE TABLE table_19233 ( "Team" text, "Intercontinental" text, "Recopa 1996" text, "Supercopa 1996" text, "CONMEBOL 1996" text, "Copa Libertadores 1997" text )
SELECT "Copa Libertadores 1997" FROM table_19233 WHERE "Team" = 'Racing Club'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 20879, 41, 96, 18699, 121, 1499, 6, 96, 17555, 27339, 138, 121, 1499, 6, 96, 1649, 10845, 9, 6911, 121, 1499, 6, 96, 23290, 10845, 9, 6911, 121, 1499, 6, 96, 17752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3881, 102, 9, 12774, 17, 10097, 7, 6622, 121, 21680, 953, 834, 2294, 20879, 549, 17444, 427, 96, 18699, 121, 3274, 3, 31, 448, 9, 75, 53, 1949, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the result of the 2007 gulf cup of nations?
CREATE TABLE table_5410 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Result" FROM table_5410 WHERE "Competition" = '2007 gulf cup of nations'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5062, 1714, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 5890, 4995, 4749, 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, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 20119, 121, 21680, 953, 834, 5062, 1714, 549, 17444, 427, 96, 5890, 4995, 4749, 121, 3274, 3, 31, 20615, 3, 6106, 89, 4119, 13, 9352, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which year had a toleman tg183 chassis?
CREATE TABLE table_57292 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT COUNT("Year") FROM table_57292 WHERE "Chassis" = 'toleman tg183'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3436, 3166, 357, 41, 96, 476, 2741, 121, 490, 6, 96, 16924, 3569, 121, 1499, 6, 96, 3541, 6500, 7, 121, 1499, 6, 96, 31477, 121, 1499, 6, 96, 22512, 7, 121, 490, 3, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 476, 2741, 8512, 21680, 953, 834, 3436, 3166, 357, 549, 17444, 427, 96, 3541, 6500, 7, 121, 3274, 3, 31, 235, 109, 348, 3, 17, 122, 24361, 31, 1, -100, -100, -100, -100, -100, -100, -100, -1...
What car had the fewest laps with a qual of 138.750?
CREATE TABLE table_name_16 ( laps INTEGER, qual VARCHAR )
SELECT MIN(laps) FROM table_name_16 WHERE qual = "138.750"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 14941, 7, 3, 21342, 17966, 6, 3, 11433, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 443, 141, 8, 360, 222, 14941, 7, 28, 3, 9, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 8478, 7, 61, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 3, 11433, 3274, 96, 22744, 5, 9979, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What are the names of products with price at most 200, and count them by a bar chart, and rank by the y axis in ascending.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT Name, COUNT(Name) FROM Products WHERE Price <= 200 GROUP BY Name ORDER BY COUNT(Name)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15248, 7, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 3642, 19973, 584, 4280, 28027, 599, 25502, 201, 3, 19145, 584, 4280, 28027, 599, 25502, 201, 19764, 17833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5570, 6, 2847, 17161, 599, 23954, 61, 21680, 7554, 549, 17444, 427, 5312, 3, 2, 2423, 2382, 350, 4630, 6880, 272, 476, 5570, 4674, 11300, 272, 476, 2847, 17161, 599, 23954, 61, 1, -100, -100, -100, -100, -100, -100, ...
which nation had as many silver medals as mexico and turkey combined ?
CREATE TABLE table_204_311 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT "nation" FROM table_204_311 WHERE "silver" = (SELECT SUM("silver") FROM table_204_311 WHERE "nation" IN ('mexico', 'turkey'))
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 519, 2596, 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, 519, 2596, 549, 17444, 427, 96, 7, 173, 624, 121, 3274, 41, 23143, 14196, 180, 6122, 599, 121, 7, 173, 624, 8512, 21680, 953, 834, 26363, 834, 519, 2596, 549, 17444, ...
Which 2013 has a 2010 of 1r?
CREATE TABLE table_33908 ( "Tournament" text, "2002" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text )
SELECT "2013" FROM table_33908 WHERE "2010" = '1r'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3288, 4018, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 24898, 121, 1499, 6, 96, 21653, 121, 1499, 6, 96, 22594, 121, 1499, 6, 96, 21196, 121, 1499, 6, 96, 20615...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11138, 121, 21680, 953, 834, 519, 3288, 4018, 549, 17444, 427, 96, 14926, 121, 3274, 3, 31, 536, 52, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the value of bronze with less than 2 in total?
CREATE TABLE table_name_91 ( bronze VARCHAR, total INTEGER )
SELECT bronze FROM table_name_91 WHERE total < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4729, 41, 13467, 584, 4280, 28027, 6, 792, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 701, 13, 13467, 28, 705, 145, 204, 16, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 13467, 21680, 953, 834, 4350, 834, 4729, 549, 17444, 427, 792, 3, 2, 204, 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...
How many where killed under Major-General Jean Victor de Constant Rebecque's command?
CREATE TABLE table_11793221_2 (killed VARCHAR, commander VARCHAR)
SELECT killed FROM table_11793221_2 WHERE commander = "Major-General Jean Victor de Constant Rebecque"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 4440, 2668, 2658, 834, 357, 41, 10824, 15, 26, 584, 4280, 28027, 6, 17604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 213, 4792, 365, 9236, 18, 2085...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4792, 21680, 953, 834, 2596, 4440, 2668, 2658, 834, 357, 549, 17444, 427, 17604, 3274, 96, 329, 9, 12775, 18, 20857, 3966, 8884, 20, 7762, 3672, 419, 346, 75, 835, 121, 1, -100, -100, -100, -100, -100, -100, -100, -...
During what years did the tallest building, located at 211 Union Street, have less than 31 floors?
CREATE TABLE table_name_95 ( years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR )
SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = "211 union street"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 203, 834, 9, 7, 834, 17, 1748, 222, 584, 4280, 28027, 6, 8242, 584, 4280, 28027, 6, 2815, 834, 9, 26, 12039, 584, 4280, 28027, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 203, 834, 9, 7, 834, 17, 1748, 222, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 8242, 3, 2, 2664, 3430, 2815, 834, 9, 26, 12039, 3274, 96, 27278, 7021, 2815, 121, 1, -100, -100, -100, -100, -100, -100, -100...
On what date was the attendance more than 17,652?
CREATE TABLE table_name_15 ( date VARCHAR, attendance INTEGER )
SELECT date FROM table_name_15 WHERE attendance > 17 OFFSET 652
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1808, 41, 833, 584, 4280, 28027, 6, 11364, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 461, 125, 833, 47, 8, 11364, 72, 145, 12864, 4122, 357, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 1808, 549, 17444, 427, 11364, 2490, 1003, 3, 15316, 20788, 431, 5373, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Steve Nash (24) got high points for how many teams?
CREATE TABLE table_17340355_10 (team VARCHAR, high_points VARCHAR)
SELECT COUNT(team) FROM table_17340355_10 WHERE high_points = "Steve Nash (24)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 21129, 2469, 755, 834, 1714, 41, 11650, 584, 4280, 28027, 6, 306, 834, 2700, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5659, 10571, 107, 4743, 7256, 530, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11650, 61, 21680, 953, 834, 2517, 21129, 2469, 755, 834, 1714, 549, 17444, 427, 306, 834, 2700, 7, 3274, 96, 14337, 162, 10571, 107, 4743, 7256, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100...
What is the total number of stations with a line that is u 6?
CREATE TABLE table_name_86 (stations INTEGER, line VARCHAR)
SELECT SUM(stations) FROM table_name_86 WHERE line = "u 6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 6682, 7, 3, 21342, 17966, 6, 689, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 381, 13, 6991, 28, 3, 9, 689, 24, 19, 3, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 6682, 7, 61, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 689, 3274, 96, 76, 431, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the position of the team with more than 16 losses and an against greater than 74?
CREATE TABLE table_name_43 ( position INTEGER, lost VARCHAR, against VARCHAR )
SELECT SUM(position) FROM table_name_43 WHERE lost > 16 AND against > 74
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 1102, 3, 21342, 17966, 6, 1513, 584, 4280, 28027, 6, 581, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1102, 13, 8, 372, 28, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 4718, 61, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 1513, 2490, 898, 3430, 581, 2490, 3, 4581, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
find the 9th position swara . what is its short name ?
CREATE TABLE table_203_352 ( id number, "position" number, "swara" text, "short name" text, "notation" text, "mnemonic" text )
SELECT "short name" FROM table_203_352 WHERE "position" = 9
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 2469, 357, 41, 3, 23, 26, 381, 6, 96, 4718, 121, 381, 6, 96, 7, 2910, 9, 121, 1499, 6, 96, 7, 14184, 564, 121, 1499, 6, 96, 2264, 257, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 7, 14184, 564, 121, 21680, 953, 834, 23330, 834, 2469, 357, 549, 17444, 427, 96, 4718, 121, 3274, 668, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
count the number of patients whose admission type is emergency and year of birth is less than 2065?
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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dob_year < "2065"
[ 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, 9, 26, 5451, 834, 6137, 3274, 96, 427, 13098, 18464, 17063, 121, 3430, 14798, 5, 26, 32, 115, 83...
What was the Blue Jays lowest attendance when their record was 52-48?
CREATE TABLE table_name_52 ( attendance INTEGER, record VARCHAR )
SELECT MIN(attendance) FROM table_name_52 WHERE record = "52-48"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5373, 41, 11364, 3, 21342, 17966, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2419, 9373, 7, 7402, 11364, 116, 70, 1368, 47, 906...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17684, 599, 15116, 663, 61, 21680, 953, 834, 4350, 834, 5373, 549, 17444, 427, 1368, 3274, 96, 5373, 18, 3707, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What team(s) played in the 1995-96 season?
CREATE TABLE table_name_46 (teams VARCHAR, season VARCHAR)
SELECT teams FROM table_name_46 WHERE season = "1995-96"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4448, 41, 11650, 7, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 372, 599, 7, 61, 1944, 16, 8, 7273, 18, 4314, 774, 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, 2323, 21680, 953, 834, 4350, 834, 4448, 549, 17444, 427, 774, 3274, 96, 2294, 3301, 18, 4314, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who won the Granada course?
CREATE TABLE table_6211 ( "Date" text, "Course" text, "Distance" text, "Type" text, "Winner" text )
SELECT "Winner" FROM table_6211 WHERE "Course" = 'granada'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4056, 2596, 41, 96, 308, 342, 121, 1499, 6, 96, 3881, 3589, 15, 121, 1499, 6, 96, 308, 23, 8389, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 18455, 687, 121, 1499, 3, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 96, 18455, 687, 121, 21680, 953, 834, 4056, 2596, 549, 17444, 427, 96, 3881, 3589, 15, 121, 3274, 3, 31, 3484, 18089, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of patients whose admission location is trsf within this facility and drug code is foli1?
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND prescriptions.formulary_drug_cd = "FOLI1"
[ 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, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
Tell me singles W-L that has years larger than 1 and highest singles ranking of 1346
CREATE TABLE table_name_7 ( singles_w_l VARCHAR, years_played VARCHAR, highest_singles_ranking VARCHAR )
SELECT singles_w_l FROM table_name_7 WHERE years_played > 1 AND highest_singles_ranking = "1346"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 940, 41, 712, 7, 834, 210, 834, 40, 584, 4280, 28027, 6, 203, 834, 4895, 15, 26, 584, 4280, 28027, 6, 2030, 834, 7, 53, 965, 834, 6254, 53, 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, 712, 7, 834, 210, 834, 40, 21680, 953, 834, 4350, 834, 940, 549, 17444, 427, 203, 834, 4895, 15, 26, 2490, 209, 3430, 2030, 834, 7, 53, 965, 834, 6254, 53, 3274, 96, 2368, 4448, 121, 1, -100, -100, -100, -100, -...
Who is the partner in the final with a score of 2 6, 7 6, 7 6?
CREATE TABLE table_name_10 ( partner VARCHAR, score_in_the_final VARCHAR )
SELECT partner FROM table_name_10 WHERE score_in_the_final = "2–6, 7–6, 7–6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1714, 41, 2397, 584, 4280, 28027, 6, 2604, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 2397, 16, 8, 804, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2397, 21680, 953, 834, 4350, 834, 1714, 549, 17444, 427, 2604, 834, 77, 834, 532, 834, 12406, 3274, 96, 357, 104, 11071, 489, 104, 11071, 489, 104, 948, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What Winning team has 22 July as a Date?
CREATE TABLE table_74899 ( "Round" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning team" text )
SELECT "Winning team" FROM table_74899 WHERE "Date" = '22 july'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3707, 3264, 41, 96, 448, 32, 1106, 121, 1499, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 518, 10503, 2535, 121, 1499, 6, 96, 518, 105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 518, 10503, 372, 121, 21680, 953, 834, 940, 3707, 3264, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 2884, 3, 2047, 120, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the names and location of the shops in ascending alphabetical order of name.
CREATE TABLE shop ( shop_id number, shop_name text, location text, open_date text, open_year number ) CREATE TABLE stock ( shop_id number, device_id number, quantity number ) CREATE TABLE device ( device_id number, device text, carrier text, package_version text, applications text, software_platform text )
SELECT shop_name, location FROM shop ORDER BY shop_name
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1814, 41, 1814, 834, 23, 26, 381, 6, 1814, 834, 4350, 1499, 6, 1128, 1499, 6, 539, 834, 5522, 1499, 6, 539, 834, 1201, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1814, 834, 4350, 6, 1128, 21680, 1814, 4674, 11300, 272, 476, 1814, 834, 4350, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the highest round a fight lasted against masutatsu yano?
CREATE TABLE table_45423 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text )
SELECT MAX("Round") FROM table_45423 WHERE "Opponent" = 'masutatsu yano'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2128, 591, 2773, 41, 96, 1649, 7, 535, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 23351, 107, 32, 26, 121, 1499, 6, 96, 427, 2169, 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, 4800, 4, 599, 121, 448, 32, 1106, 8512, 21680, 953, 834, 2128, 591, 2773, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 2754, 76, 17, 23766, 3, 63, 152, 32, 31, 1, -100, -100, -100, -100, -100, -100, -1...
What is the id and last name of the driver with the longest laptime?
CREATE TABLE qualifying ( qualifyid number, raceid number, driverid number, constructorid number, number number, position number, q1 text, q2 text, q3 text ) CREATE TABLE constructors ( constructorid number, constructorref text, name text, nationality text, url text ) CREATE TABLE constructorresults ( constructorresultsid number, raceid number, constructorid number, points number, status number ) CREATE TABLE status ( statusid number, status text ) CREATE TABLE results ( resultid number, raceid number, driverid number, constructorid number, number number, grid number, position number, positiontext text, positionorder number, points number, laps number, time text, milliseconds number, fastestlap number, rank number, fastestlaptime text, fastestlapspeed text, statusid number ) CREATE TABLE drivers ( driverid number, driverref text, number number, code text, forename text, surname text, dob text, nationality text, url text ) CREATE TABLE races ( raceid number, year number, round number, circuitid number, name text, date text, time text, url text ) CREATE TABLE constructorstandings ( constructorstandingsid number, raceid number, constructorid number, points number, position number, positiontext text, wins number ) CREATE TABLE circuits ( circuitid number, circuitref text, name text, location text, country text, lat number, lng number, alt number, url text ) CREATE TABLE laptimes ( raceid number, driverid number, lap number, position number, time text, milliseconds number ) CREATE TABLE driverstandings ( driverstandingsid number, raceid number, driverid number, points number, position number, positiontext text, wins number ) CREATE TABLE seasons ( year number, url text ) CREATE TABLE pitstops ( raceid number, driverid number, stop number, lap number, time text, duration text, milliseconds number )
SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18002, 41, 9448, 23, 26, 381, 6, 1964, 23, 26, 381, 6, 1262, 4055, 381, 6, 6774, 2057, 26, 381, 6, 381, 381, 6, 1102, 381, 6, 3, 1824, 536, 1499, 6, 3, 1824, 357, 1499, 6, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 13739, 4055, 6, 332, 5411, 3042, 4350, 21680, 3863, 6157, 332, 536, 3, 15355, 3162, 14941, 715, 7, 6157, 332, 357, 9191, 332, 5411, 13739, 4055, 3274, 332, 4416, 13739, 4055, 4674, 11300, 272, 476, 332, 441...
Find the total revenue for each manufacturer Plot them as bar chart, and display from low to high by the names please.
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 Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name
[ 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, 5570, 6, 180, 6122, 599, 1649, 15098, 61, 21680, 15248, 7, 350, 4630, 6880, 272, 476, 5570, 4674, 11300, 272, 476, 5570, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is in the last hospital encounter minimum protein - csf value of patient 022-47232?
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time )
SELECT MIN(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-47232' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) AND lab.labname = 'protein - csf'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 583, 41, 583, 23, 26, 381, 6, 775, 12417, 1499, 6, 1868, 15878, 3734, 21545, 23, 26, 381, 6, 605, 6137, 1499, 6, 605, 23, 26, 381, 6, 1567, 715, 97, 6, 583, 381, 3, 61, 3, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 9339, 5, 9339, 60, 7, 83, 17, 61, 21680, 7690, 549, 17444, 427, 7690, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, ...
What is the total lost that has points greater than 8 and a difference of - 8 and a position of greater than 5?
CREATE TABLE table_43183 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT SUM("Lost") FROM table_43183 WHERE "Points" > '8' AND "Difference" = '- 8' AND "Position" > '5'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4906, 24361, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 308, 10936, 29, 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, 180, 6122, 599, 121, 434, 3481, 8512, 21680, 953, 834, 4906, 24361, 549, 17444, 427, 96, 22512, 7, 121, 2490, 3, 31, 927, 31, 3430, 96, 308, 99, 11788, 121, 3274, 3, 31, 18, 505, 31, 3430, 96, 345, 32, 7, 4749, ...
What is the win percentage when there's more than 16 totals and less than 7 losses?
CREATE TABLE table_name_98 ( _percentage_win VARCHAR, total VARCHAR, losses VARCHAR )
SELECT _percentage_win FROM table_name_98 WHERE total > 16 AND losses < 7
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 3, 834, 883, 3728, 545, 834, 3757, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 8467, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 3, 834, 883, 3728, 545, 834, 3757, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 792, 2490, 898, 3430, 8467, 3, 2, 489, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which driver has 12 laps and a grid of less than 10?
CREATE TABLE table_57511 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Driver" FROM table_57511 WHERE "Laps" = '12' AND "Grid" < '10'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3072, 2596, 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, 96, 20982, 52, 121, 21680, 953, 834, 755, 3072, 2596, 549, 17444, 427, 96, 3612, 102, 7, 121, 3274, 3, 31, 2122, 31, 3430, 96, 13313, 26, 121, 3, 2, 3, 31, 1714, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
How much did jim colbert earned ranked above 2?
CREATE TABLE table_53561 ( "Rank" real, "Player" text, "Country" text, "Earnings( $ )" real, "Wins" real )
SELECT COUNT("Earnings( $ )") FROM table_53561 WHERE "Player" = 'jim colbert' AND "Rank" < '2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2469, 4241, 41, 96, 22557, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 427, 291, 29, 53, 7, 599, 1514, 3, 61, 121, 490, 6, 96, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 427, 291, 29, 53, 7, 599, 1514, 3, 61, 8512, 21680, 953, 834, 755, 2469, 4241, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 354, 603, 7632, 7041, 31, 3430, 96, 22557, 121, 3, 2, 3, ...
Who was the supporting actress in 1943?
CREATE TABLE table_24225238_1 ( supporting_actress VARCHAR, year VARCHAR )
SELECT supporting_actress FROM table_24225238_1 WHERE year = 1943
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 20489, 357, 3747, 834, 536, 41, 3956, 834, 2708, 9377, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 3956, 15676, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3956, 834, 2708, 9377, 21680, 953, 834, 2266, 20489, 357, 3747, 834, 536, 549, 17444, 427, 215, 3274, 26436, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who won the gold when Bertil Ahlin Sweden won the silver?
CREATE TABLE table_name_48 (gold VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_48 WHERE silver = "bertil ahlin sweden"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3707, 41, 14910, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 751, 8, 2045, 116, 20612, 173, 9710, 40, 77, 12207, 751, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2045, 21680, 953, 834, 4350, 834, 3707, 549, 17444, 427, 4294, 3274, 96, 7041, 173, 3, 9, 107, 40, 77, 3, 7, 1123, 537, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What year was the start 33?
CREATE TABLE table_name_97 ( year INTEGER, start VARCHAR )
SELECT SUM(year) FROM table_name_97 WHERE start = "33"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4327, 41, 215, 3, 21342, 17966, 6, 456, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 47, 8, 456, 5400, 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, 180, 6122, 599, 1201, 61, 21680, 953, 834, 4350, 834, 4327, 549, 17444, 427, 456, 3274, 96, 4201, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which race had Jacky Ickx as the winner and Clay Regazzoni with the fastest lap?
CREATE TABLE table_name_53 ( race VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR )
SELECT race FROM table_name_53 WHERE winning_driver = "jacky ickx" AND fastest_lap = "clay regazzoni"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 1964, 584, 4280, 28027, 6, 3447, 834, 13739, 52, 584, 4280, 28027, 6, 10391, 834, 8478, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1964, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 3447, 834, 13739, 52, 3274, 96, 9325, 63, 3, 3142, 226, 121, 3430, 10391, 834, 8478, 3274, 96, 4651, 63, 3, 60, 21805, 8892, 23, 121, 1, -100, -100, -100, -...
which king ruled the chinese vassal state chu after the year 329 bc ?
CREATE TABLE table_204_125 ( id number, "state" text, "type" text, "name" text, "title" text, "royal house" text, "from" text, "to" text )
SELECT "name" FROM table_204_125 WHERE "state" = 'chu'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 10124, 41, 3, 23, 26, 381, 6, 96, 5540, 121, 1499, 6, 96, 6137, 121, 1499, 6, 96, 4350, 121, 1499, 6, 96, 21869, 121, 1499, 6, 96, 8170, 138, 629, 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, 4350, 121, 21680, 953, 834, 26363, 834, 10124, 549, 17444, 427, 96, 5540, 121, 3274, 3, 31, 8019, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the titles of courses that are in the Statistics department but not the Psychology department?
CREATE TABLE student ( id text, name text, dept_name text, tot_cred number ) CREATE TABLE department ( dept_name text, building text, budget number ) CREATE TABLE advisor ( s_id text, i_id text ) CREATE TABLE course ( course_id text, title text, dept_name text, credits number ) CREATE TABLE classroom ( building text, room_number text, capacity number ) CREATE TABLE teaches ( id text, course_id text, sec_id text, semester text, year number ) CREATE TABLE instructor ( id text, name text, dept_name text, salary number ) CREATE TABLE takes ( id text, course_id text, sec_id text, semester text, year number, grade text ) CREATE TABLE section ( course_id text, sec_id text, semester text, year number, building text, room_number text, time_slot_id text ) CREATE TABLE time_slot ( time_slot_id text, day text, start_hr number, start_min number, end_hr number, end_min number ) CREATE TABLE prereq ( course_id text, prereq_id text )
SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 3, 23, 26, 1499, 6, 564, 1499, 6, 20, 102, 17, 834, 4350, 1499, 6, 12, 17, 834, 17216, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3066, 41, 20, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2233, 21680, 503, 549, 17444, 427, 20, 102, 17, 834, 4350, 3274, 3, 31, 134, 7810, 7, 7636, 31, 262, 4, 30416, 3, 23143, 14196, 2233, 21680, 503, 549, 17444, 427, 20, 102, 17, 834, 4350, 3274, 3, 31, 21513, 1863, ...
How many times is the position lb and the overall is less than 46?
CREATE TABLE table_name_25 (pick VARCHAR, position VARCHAR, overall VARCHAR)
SELECT COUNT(pick) FROM table_name_25 WHERE position = "lb" AND overall < 46
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 17967, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 1879, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 648, 19, 8, 1102, 3, 40, 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...
[ 3, 23143, 14196, 2847, 17161, 599, 17967, 61, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 1102, 3274, 96, 40, 115, 121, 3430, 1879, 3, 2, 9668, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When the ability to compromise is 13, what is background?
CREATE TABLE table_1855342_5 (background INTEGER, ability_to_compromise VARCHAR)
SELECT MAX(background) FROM table_1855342_5 WHERE ability_to_compromise = 13
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21594, 4867, 4165, 834, 755, 41, 1549, 9232, 3, 21342, 17966, 6, 1418, 834, 235, 834, 287, 1409, 11248, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 366, 8, 1418, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 1549, 9232, 61, 21680, 953, 834, 21594, 4867, 4165, 834, 755, 549, 17444, 427, 1418, 834, 235, 834, 287, 1409, 11248, 3274, 1179, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What team had a draw of 0?
CREATE TABLE table_name_29 ( team VARCHAR, draw VARCHAR )
SELECT team FROM table_name_29 WHERE draw = "0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 372, 584, 4280, 28027, 6, 3314, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 372, 141, 3, 9, 3314, 13, 3, 632, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 3314, 3274, 96, 632, 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 identifier has 90.3 as the frequency?
CREATE TABLE table_66478 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text )
SELECT "Identifier" FROM table_66478 WHERE "Frequency" = '90.3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3539, 591, 3940, 41, 96, 254, 485, 13, 3344, 121, 1499, 6, 96, 21153, 7903, 121, 1499, 6, 96, 371, 60, 835, 11298, 121, 1499, 6, 96, 23553, 121, 1499, 6, 96, 21486, 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, 21153, 7903, 121, 21680, 953, 834, 3539, 591, 3940, 549, 17444, 427, 96, 371, 60, 835, 11298, 121, 3274, 3, 31, 1298, 19997, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is Competition, when Round is '8 A'?
CREATE TABLE table_name_1 ( competition VARCHAR, round VARCHAR )
SELECT competition FROM table_name_1 WHERE round = "8 a"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 536, 41, 2259, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 15571, 6, 116, 9609, 19, 3, 31, 927, 71, 31, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2259, 21680, 953, 834, 4350, 834, 536, 549, 17444, 427, 1751, 3274, 96, 927, 3, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the H/A/N for the game that ended in a score of 108-102?
CREATE TABLE table_name_12 (h_a_n VARCHAR, score VARCHAR)
SELECT h_a_n FROM table_name_12 WHERE score = "108-102"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2122, 41, 107, 834, 9, 834, 29, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 454, 87, 188, 87, 567, 21, 8, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 107, 834, 9, 834, 29, 21680, 953, 834, 4350, 834, 2122, 549, 17444, 427, 2604, 3274, 96, 16169, 18, 14388, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the FCC info for frequency Mhz of 95.3 fm
CREATE TABLE table_name_34 ( fcc_info VARCHAR, frequency_mhz VARCHAR )
SELECT fcc_info FROM table_name_34 WHERE frequency_mhz = "95.3 fm"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 3, 89, 75, 75, 834, 9583, 584, 4280, 28027, 6, 7321, 834, 51, 107, 172, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 377, 2823, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 89, 75, 75, 834, 9583, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 7321, 834, 51, 107, 172, 3274, 96, 1298, 26627, 3, 89, 51, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is the last year steve grissom had at least one win ?
CREATE TABLE table_203_424 ( id number, "year" number, "starts" number, "wins" number, "top 5" number, "top 10" number, "poles" number, "avg. start" number, "avg. finish" number, "winnings" text, "position" text, "team(s)" text )
SELECT MAX("year") FROM table_203_424 WHERE "wins" >= 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 591, 2266, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 381, 6, 96, 10208, 7, 121, 381, 6, 96, 3757, 7, 121, 381, 6, 96, 2916, 3, 17395, 381, 6, 96, 2916, 335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1201, 8512, 21680, 953, 834, 23330, 834, 591, 2266, 549, 17444, 427, 96, 3757, 7, 121, 2490, 2423, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
provide the number of patients whose admission year is less than 2156 and diagnoses icd9 code is 70721?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2156" AND diagnoses.icd9_code = "70721"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What is the round for marcus howard?
CREATE TABLE table_name_32 ( round INTEGER, name VARCHAR )
SELECT SUM(round) FROM table_name_32 WHERE name = "marcus howard"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 1751, 3, 21342, 17966, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1751, 21, 14124, 302, 149, 986, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 7775, 61, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 564, 3274, 96, 1635, 1071, 7, 149, 986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how man c windmills have there been ?
CREATE TABLE table_204_929 ( id number, "location" text, "name of mill and\ngrid reference" text, "type" text, "maps" text, "first mention\nor built" text, "last mention\nor demise" number )
SELECT COUNT(*) FROM table_204_929
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 1298, 3166, 41, 3, 23, 26, 381, 6, 96, 14836, 121, 1499, 6, 96, 4350, 13, 3293, 11, 2, 1725, 4055, 2848, 121, 1499, 6, 96, 6137, 121, 1499, 6, 96, 11576, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 26363, 834, 1298, 3166, 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, -10...
What is the average Total for the United States with a To par more than 6 and 1996 was won?
CREATE TABLE table_name_96 (total INTEGER, year_s__won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT AVG(total) FROM table_name_96 WHERE country = "united states" AND to_par > 6 AND year_s__won = "1996"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4314, 41, 235, 1947, 3, 21342, 17966, 6, 215, 834, 7, 834, 834, 210, 106, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 12, 834, 1893, 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, 71, 17217, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 4314, 549, 17444, 427, 684, 3274, 96, 15129, 15, 26, 2315, 121, 3430, 12, 834, 1893, 2490, 431, 3430, 215, 834, 7, 834, 834, 210, 106, 3274, 96, 2294, 431...
What was the result for Barreto when his song choice was 'Olhar 43'?
CREATE TABLE table_29651 ( "Week #" text, "Theme" text, "Song Choice" text, "Original Artist" text, "Order #" text, "Result" text )
SELECT "Result" FROM table_29651 WHERE "Song Choice" = 'Olhar 43'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 4122, 536, 41, 96, 518, 10266, 1713, 121, 1499, 6, 96, 634, 526, 121, 1499, 6, 96, 134, 2444, 13745, 121, 1499, 6, 96, 667, 3380, 10270, 9152, 121, 1499, 6, 96, 739...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3166, 4122, 536, 549, 17444, 427, 96, 134, 2444, 13745, 121, 3274, 3, 31, 667, 40, 3272, 8838, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What chassis was used by roy salvadori?
CREATE TABLE table_11279 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyre" text, "Driver" text, "Rounds" text )
SELECT "Chassis" FROM table_11279 WHERE "Driver" = 'roy salvadori'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 357, 4440, 41, 96, 16924, 3569, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3541, 6500, 7, 121, 1499, 6, 96, 31477, 121, 1499, 6, 96, 382, 63, 60, 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, 3541, 6500, 7, 121, 21680, 953, 834, 2596, 357, 4440, 549, 17444, 427, 96, 20982, 52, 121, 3274, 3, 31, 8170, 18770, 26, 2057, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the number of films where the language was hindi ?
CREATE TABLE table_203_157 ( id number, "year" number, "film" text, "role" text, "language" text, "notes" text )
SELECT COUNT("film") FROM table_203_157 WHERE "language" = 'hindi'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 27452, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 381, 6, 96, 9988, 121, 1499, 6, 96, 3491, 15, 121, 1499, 6, 96, 24925, 121, 1499, 6, 96, 7977, 7, 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, 9988, 8512, 21680, 953, 834, 23330, 834, 27452, 549, 17444, 427, 96, 24925, 121, 3274, 3, 31, 107, 8482, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which 8.23 g (127 gr) is the highest one that has a Bullet weight gram (grain) of 8x64mm s, and a Case capacity (%) smaller than 110.3?
CREATE TABLE table_name_80 ( bullet_weight_gram__grain_ VARCHAR, case_capacity___percentage_ VARCHAR )
SELECT MAX(823 AS _g__127_gr_) FROM table_name_80 WHERE bullet_weight_gram__grain_ = "8x64mm s" AND case_capacity___percentage_ < 110.3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 11126, 834, 9378, 834, 5096, 834, 834, 3484, 77, 834, 584, 4280, 28027, 6, 495, 834, 4010, 9, 6726, 834, 834, 834, 883, 3728, 545, 834, 584, 4280, 2802...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4613, 519, 6157, 3, 834, 122, 834, 834, 22367, 834, 122, 52, 834, 61, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 11126, 834, 9378, 834, 5096, 834, 834, 3484, 77, 834, 3274, 96, 927, 226, 4389...
What is the lowest evening score of the contestant with an evening gown less than 8.938, from Texas, and with an average less than 8.846 has?
CREATE TABLE table_name_3 (interview INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR)
SELECT MIN(interview) FROM table_name_3 WHERE evening_gown < 8.938 AND state = "texas" AND average < 8.846
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 3870, 4576, 3, 21342, 17966, 6, 1348, 584, 4280, 28027, 6, 2272, 834, 122, 9197, 584, 4280, 28027, 6, 538, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 3870, 4576, 61, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 2272, 834, 122, 9197, 3, 2, 4848, 4271, 927, 3430, 538, 3274, 96, 10354, 9, 7, 121, 3430, 1348, 3, 2, 4848, 927, 4448, 1, -100, -1...
What is the title of the album that had a RIAA of gold?
CREATE TABLE table_name_56 ( title VARCHAR, riaa VARCHAR )
SELECT title FROM table_name_56 WHERE riaa = "gold"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4834, 41, 2233, 584, 4280, 28027, 6, 3, 52, 23, 9, 9, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2233, 13, 8, 2306, 24, 141, 3, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2233, 21680, 953, 834, 4350, 834, 4834, 549, 17444, 427, 3, 52, 23, 9, 9, 3274, 96, 14910, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What are the appelations for wines produced after 2008 but not in the Central Coast area?
CREATE TABLE grapes ( id number, grape text, color text ) CREATE TABLE appellations ( no number, appelation text, county text, state text, area text, isava text ) CREATE TABLE wine ( no number, grape text, winery text, appelation text, state text, name text, year number, price number, score number, cases number, drink text )
SELECT appelation FROM wine WHERE year > 2008 EXCEPT SELECT appelation FROM appellations WHERE area = "Central Coast"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 11457, 7, 41, 3, 23, 26, 381, 6, 11457, 1499, 6, 945, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 8319, 6105, 7, 41, 150, 381, 6, 8319, 257, 1499, 6, 5435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 8319, 257, 21680, 2013, 549, 17444, 427, 215, 2490, 2628, 262, 4, 30416, 3, 23143, 14196, 8319, 257, 21680, 8319, 6105, 7, 549, 17444, 427, 616, 3274, 96, 30497, 5458, 121, 1, -100, -100, -100, -100, -100, -100, -100,...
What is the Runners-up of the game with a Result of 4 1 and Champions of Wonju Dongbu Promy?
CREATE TABLE table_47213 ( "Year" text, "Champions" text, "Result" text, "Runners-up" text, "Playoffs MVP" text )
SELECT "Runners-up" FROM table_47213 WHERE "Result" = '4–1' AND "Champions" = 'wonju dongbu promy'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 357, 2368, 41, 96, 476, 2741, 121, 1499, 6, 96, 3541, 4624, 2865, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 23572, 7, 18, 413, 121, 1499, 6, 96, 15800, 1647, 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, 23572, 7, 18, 413, 121, 21680, 953, 834, 4177, 357, 2368, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 591, 104, 536, 31, 3430, 96, 3541, 4624, 2865, 121, 3274, 3, 31, 210, 106, 2047, 278, 122, 3007, 15207, ...
How many seasons have motopark team?
CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR)
SELECT COUNT(season) FROM table_23338693_1 WHERE team = "Motopark"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 4201, 3840, 4271, 834, 536, 41, 9476, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 9385, 43, 3, 11188, 6334, 372, 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, 9476, 61, 21680, 953, 834, 2773, 4201, 3840, 4271, 834, 536, 549, 17444, 427, 372, 3274, 96, 329, 32, 235, 6334, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total number of round values that had opponents named Paul Sutherland?
CREATE TABLE table_39778 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT COUNT("Round") FROM table_39778 WHERE "Opponent" = 'paul sutherland'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 4327, 3940, 41, 96, 1649, 7, 535, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 23351, 107, 32, 26, 121, 1499, 6, 96, 427, 2169, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 448, 32, 1106, 8512, 21680, 953, 834, 519, 4327, 3940, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 102, 9, 83, 2629, 532, 7721, 31, 1, -100, -100, -100, -100, -100, -100, -100, -1...
What is the time of the rider with a speed of 102.962mph?
CREATE TABLE table_53243 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text )
SELECT "Time" FROM table_53243 WHERE "Speed" = '102.962mph'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 27730, 41, 96, 22557, 121, 490, 6, 96, 448, 23, 588, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 28328, 121, 1499, 6, 96, 13368, 121, 1499, 3, 61, 3, 32102, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 13368, 121, 21680, 953, 834, 4867, 27730, 549, 17444, 427, 96, 28328, 121, 3274, 3, 31, 1714, 27297, 4056, 7656, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
give the number of patients who have died before or in year 2138 and whose drug code is neosyrsl.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2138.0" AND prescriptions.formulary_drug_cd = "NEOSYRSL"
[ 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, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What type of planet has a semimajor axis of 0.07 AU?
CREATE TABLE table_name_51 ( planet VARCHAR, semimajor_axis___au__ VARCHAR )
SELECT planet AS Type FROM table_name_51 WHERE semimajor_axis___au__ = 0.07
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 4345, 584, 4280, 28027, 6, 4772, 16547, 127, 834, 8606, 7, 834, 834, 834, 402, 834, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 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, 0, 0, 0...
[ 3, 23143, 14196, 4345, 6157, 6632, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 4772, 16547, 127, 834, 8606, 7, 834, 834, 834, 402, 834, 834, 3274, 4097, 4560, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which ICAO's IATA is ath?
CREATE TABLE table_name_63 ( icao VARCHAR, iata VARCHAR )
SELECT icao FROM table_name_63 WHERE iata = "ath"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 3, 2617, 32, 584, 4280, 28027, 6, 3, 17221, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 3, 15038, 667, 31, 7, 27, 19282, 19, 44, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 2617, 32, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 3, 17221, 3274, 96, 9, 189, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many forms have less than 18 pages?
CREATE TABLE table_32934 ( "Organization Name" text, "State" text, "Year" real, "Total Assets" text, "Form" real, "Pages" real )
SELECT COUNT("Form") FROM table_32934 WHERE "Pages" < '18'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3166, 3710, 41, 96, 14878, 257, 5570, 121, 1499, 6, 96, 134, 4748, 121, 1499, 6, 96, 476, 2741, 121, 490, 6, 96, 3696, 1947, 18202, 7, 121, 1499, 6, 96, 3809, 51, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3809, 51, 8512, 21680, 953, 834, 519, 3166, 3710, 549, 17444, 427, 96, 345, 2568, 121, 3, 2, 3, 31, 2606, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
in a year before patient 030-4181 has been admitted to the hospital?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text )
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '030-4181' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1058, 41, 1058, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1058, 4350, 1499, 6, 1058, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1868, 41, 775, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2490, 3, 632, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 4928, 9498, 4853, 4959, 31, 3430, 309, 6048, 382, 15382, 599, 10061, 5, 31386, 20466, 17, 715, 6, 3, ...
What is the league name that has a Games listing of 10?
CREATE TABLE table_name_47 ( league VARCHAR, games VARCHAR )
SELECT league FROM table_name_47 WHERE games = "10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 5533, 584, 4280, 28027, 6, 1031, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 5533, 564, 24, 65, 3, 9, 5880, 6437, 13, 335, 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, 5533, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 1031, 3274, 96, 1714, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many Grand Prix were the winning constructor Benetton - Ford and the pole position was Michael Schumacher?
CREATE TABLE table_197 ( "Round" real, "Grand Prix" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Constructor" text, "Report" text )
SELECT COUNT("Grand Prix") FROM table_197 WHERE "Winning Constructor" = 'Benetton - Ford' AND "Pole Position" = 'Michael Schumacher'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27181, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 4744, 727, 12942, 121, 1499, 6, 96, 8931, 15, 14258, 121, 1499, 6, 96, 371, 9, 7, 4377, 325, 102, 121, 1499, 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, 4744, 727, 12942, 8512, 21680, 953, 834, 27181, 549, 17444, 427, 96, 518, 10503, 1193, 7593, 127, 121, 3274, 3, 31, 2703, 10544, 106, 3, 18, 5222, 31, 3430, 96, 8931, 15, 14258, 121, 3274, 3, ...
Where were the 2008 championships with a time of 7:56.90 held?
CREATE TABLE table_74761 ( "Event" text, "Time" text, "Nationality" text, "Date" text, "Meet" text, "Location" text )
SELECT "Location" FROM table_74761 WHERE "Meet" = '2008 championships' AND "Time" = '7:56.90'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4581, 3959, 536, 41, 96, 427, 2169, 121, 1499, 6, 96, 13368, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 329, 15, 15, 17, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 32, 75, 257, 121, 21680, 953, 834, 4581, 3959, 536, 549, 17444, 427, 96, 329, 15, 15, 17, 121, 3274, 3, 31, 16128, 10183, 7, 31, 3430, 96, 13368, 121, 3274, 3, 31, 940, 10, 4834, 5, 2394, 31, 1, -100,...
What was the score from the game where Dallas played Home and Edmonton was visiting?
CREATE TABLE table_name_41 (score VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_41 WHERE home = "dallas" AND visitor = "edmonton"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 7, 9022, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 6, 7019, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 45, 8, 467, 213, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 234, 3274, 96, 26, 1748, 9, 7, 121, 3430, 7019, 3274, 96, 15, 26, 4662, 106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was the away team that played Fitzroy on May 13, 1950 at Brunswick Street Oval.
CREATE TABLE table_74599 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team" FROM table_74599 WHERE "Venue" = 'brunswick street oval'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2128, 3264, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 121, 21680, 953, 834, 940, 2128, 3264, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 9052, 29, 7, 5981, 2815, 17986, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
count the number of patients whose death status is 0 and procedure long title is endoscopic removal of stone(s) from biliary tract?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.long_title = "Endoscopic removal of stone(s) from biliary tract"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Bar graph to show the number of last name from different last name, list X-axis in desc order.
CREATE TABLE People ( person_id INTEGER, first_name VARCHAR(255), middle_name VARCHAR(255), last_name VARCHAR(255), cell_mobile_number VARCHAR(40), email_address VARCHAR(40), login_name VARCHAR(40), password VARCHAR(40) ) CREATE TABLE Students ( student_id INTEGER, student_details VARCHAR(255) ) CREATE TABLE Addresses ( address_id INTEGER, line_1 VARCHAR(80), line_2 VARCHAR(80), city VARCHAR(50), zip_postcode CHAR(20), state_province_county VARCHAR(50), country VARCHAR(50) ) CREATE TABLE Candidate_Assessments ( candidate_id INTEGER, qualification CHAR(15), assessment_date DATETIME, asessment_outcome_code CHAR(15) ) CREATE TABLE Courses ( course_id VARCHAR(100), course_name VARCHAR(120), course_description VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE People_Addresses ( person_address_id INTEGER, person_id INTEGER, address_id INTEGER, date_from DATETIME, date_to DATETIME ) CREATE TABLE Student_Course_Attendance ( student_id INTEGER, course_id INTEGER, date_of_attendance DATETIME ) CREATE TABLE Student_Course_Registrations ( student_id INTEGER, course_id INTEGER, registration_date DATETIME ) CREATE TABLE Candidates ( candidate_id INTEGER, candidate_details VARCHAR(255) )
SELECT last_name, COUNT(last_name) FROM People GROUP BY last_name ORDER BY last_name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2449, 41, 568, 834, 23, 26, 3, 21342, 17966, 6, 166, 834, 4350, 584, 4280, 28027, 599, 25502, 201, 2214, 834, 4350, 584, 4280, 28027, 599, 25502, 201, 336, 834, 4350, 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, 336, 834, 4350, 6, 2847, 17161, 599, 5064, 834, 4350, 61, 21680, 2449, 350, 4630, 6880, 272, 476, 336, 834, 4350, 4674, 11300, 272, 476, 336, 834, 4350, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show me a bar chart for what are the ids and trade names of the medicine that can interact with at least 3 enzymes?, rank by the id in asc.
CREATE TABLE enzyme ( id int, name text, Location text, Product text, Chromosome text, OMIM int, Porphyria text ) CREATE TABLE medicine ( id int, name text, Trade_Name text, FDA_approved text ) CREATE TABLE medicine_enzyme_interaction ( enzyme_id int, medicine_id int, interaction_type text )
SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15735, 41, 3, 23, 26, 16, 17, 6, 564, 1499, 6, 10450, 1499, 6, 6246, 1499, 6, 4004, 3522, 32, 5529, 1499, 6, 3, 8638, 5166, 16, 17, 6, 9731, 6941, 52, 23, 9, 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, 6550, 834, 23954, 6, 3, 23, 26, 21680, 4404, 6157, 332, 536, 3, 15355, 3162, 4404, 834, 35, 4164, 526, 834, 3870, 4787, 6157, 332, 357, 9191, 332, 4416, 29368, 834, 23, 26, 3274, 332, 5411, 23, 26, 4674, 11300, 27...
Find Name and Height , and visualize them by a bar chart, I want to display by the Y-axis in ascending.
CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real )
SELECT Name, Height FROM people ORDER BY Height
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4775, 41, 25833, 17, 15, 834, 4309, 16, 17, 6, 2449, 834, 4309, 16, 17, 6, 14457, 834, 23799, 1499, 6, 7678, 1499, 6, 4224, 834, 2206, 490, 6, 9151, 834, 2206, 490, 6, 4495, 2748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5570, 6, 24231, 21680, 151, 4674, 11300, 272, 476, 24231, 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, -1...
Which party is tobias a. plants the incumbent?
CREATE TABLE table_5537 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text )
SELECT "Party" FROM table_5537 WHERE "Incumbent" = 'tobias a. plants'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 4118, 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, 1499, 6, 96, 20119, 121, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 13725, 63, 121, 21680, 953, 834, 3769, 4118, 549, 17444, 427, 96, 1570, 75, 5937, 295, 121, 3274, 3, 31, 235, 15500, 7, 3, 9, 5, 2677, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the No in series when Rob wright & Debra j. Fisher & Erica Messer were the writers?
CREATE TABLE table_21313327_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT MIN(no_in_series) FROM table_21313327_1 WHERE written_by = "Rob Wright & Debra J. Fisher & Erica Messer"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2368, 22974, 2555, 834, 536, 41, 29, 32, 834, 77, 834, 10833, 7, 3, 21342, 17966, 6, 1545, 834, 969, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 29, 32, 834, 77, 834, 10833, 7, 61, 21680, 953, 834, 357, 2368, 22974, 2555, 834, 536, 549, 17444, 427, 1545, 834, 969, 3274, 96, 24372, 16634, 3, 184, 374, 1939, 446, 5, 14639, 3, 184, 6964, 9, 6...
Bar chart x axis type y axis total number of enrollment, and rank y axis in asc order please.
CREATE TABLE Institution ( Institution_id text, Institution text, Location text, Founded real, Type text, Enrollment int, Team text, Primary_Conference text, building_id text ) CREATE TABLE building ( building_id text, Name text, Street_address text, Years_as_tallest text, Height_feet int, Floors int ) CREATE TABLE protein ( common_name text, protein_name text, divergence_from_human_lineage real, accession_number text, sequence_length real, sequence_identity_to_human_protein text, Institution_id text )
SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type ORDER BY SUM(Enrollment)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14932, 41, 14932, 834, 23, 26, 1499, 6, 14932, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 6632, 1499, 6, 695, 4046, 297, 16, 17, 6, 2271, 1499, 6, 14542, 834, 4302, 11788, 1499, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 6632, 6, 180, 6122, 599, 8532, 4046, 297, 61, 21680, 14932, 350, 4630, 6880, 272, 476, 6632, 4674, 11300, 272, 476, 180, 6122, 599, 8532, 4046, 297, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is Builder, when Date is 1925?
CREATE TABLE table_name_21 ( builder VARCHAR, date VARCHAR )
SELECT builder FROM table_name_21 WHERE date = "1925"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 918, 49, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 16799, 6, 116, 7678, 19, 28484, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 918, 49, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 833, 3274, 96, 19978, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients stayed in hospital for more than 14 days and followed the procedure injection oxazolidinone?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) 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.days_stay > "14" AND procedures.short_title = "Injection oxazolidinone"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
For teams that won exactly 15, how many points were scored?
CREATE TABLE table_27293285_6 ( points VARCHAR, won VARCHAR )
SELECT points FROM table_27293285_6 WHERE won = "15"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 3166, 2668, 4433, 834, 948, 41, 979, 584, 4280, 28027, 6, 751, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 242, 2323, 24, 751, 1776, 10725, 149, 186, 979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 979, 21680, 953, 834, 2555, 3166, 2668, 4433, 834, 948, 549, 17444, 427, 751, 3274, 96, 1808, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What Site had an Attendance of 45,000?
CREATE TABLE table_46199 ( "Date" text, "Opponent" text, "Site" text, "Result" text, "Attendance" text )
SELECT "Site" FROM table_46199 WHERE "Attendance" = '45,000'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4448, 19479, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 26030, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 188, 17, 324, 26, 663, 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, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 96, 26030, 121, 21680, 953, 834, 4448, 19479, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 3274, 3, 31, 591, 5898, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the result for October 14, 1956?
CREATE TABLE table_14984039_1 ( result VARCHAR, date VARCHAR )
SELECT result FROM table_14984039_1 WHERE date = "October 14, 1956"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24816, 26311, 3288, 834, 536, 41, 741, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 741, 21, 1797, 11363, 22951, 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, 741, 21680, 953, 834, 24816, 26311, 3288, 834, 536, 549, 17444, 427, 833, 3274, 96, 28680, 11363, 22951, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
count the number of patients whose admission year is less than 2135 and diagnoses icd9 code is v1009?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2135" AND diagnoses.icd9_code = "V1009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Name the last match for argentina - estadio jos mar a minella
CREATE TABLE table_23819979_3 ( last_match VARCHAR, final_place VARCHAR )
SELECT last_match FROM table_23819979_3 WHERE final_place = "Argentina - Estadio José María Minella"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3747, 19479, 4440, 834, 519, 41, 336, 834, 19515, 584, 4280, 28027, 6, 804, 834, 4687, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 336, 1588, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 336, 834, 19515, 21680, 953, 834, 357, 3747, 19479, 4440, 834, 519, 549, 17444, 427, 804, 834, 4687, 3274, 96, 22808, 9, 3, 18, 7545, 9, 26, 23, 32, 26816, 1571, 2, 9, 4765, 5303, 121, 1, -100, -100, -100, -100, ...
Tell me the time/retired for Laps of 42 and Grids of 4
CREATE TABLE table_78530 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Time/Retired" FROM table_78530 WHERE "Laps" = '42' AND "Grid" = '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 26918, 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, 13313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13368, 87, 1649, 11809, 26, 121, 21680, 953, 834, 3940, 26918, 549, 17444, 427, 96, 3612, 102, 7, 121, 3274, 3, 31, 4165, 31, 3430, 96, 13313, 26, 121, 3274, 3, 31, 591, 31, 1, -100, -100, -100, -100, -100, ...
What date was Millwall the home team?
CREATE TABLE table_name_29 ( date VARCHAR, home_team VARCHAR )
SELECT date FROM table_name_29 WHERE home_team = "millwall"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 833, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 833, 47, 4185, 10279, 8, 234, 372, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 234, 834, 11650, 3274, 96, 12415, 10279, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the position of the player with a Height of 2.06 and club of Triumph Lyubertsy?
CREATE TABLE table_name_99 (position VARCHAR, height VARCHAR, current_club VARCHAR)
SELECT position FROM table_name_99 WHERE height = 2.06 AND current_club = "triumph lyubertsy"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 4718, 584, 4280, 28027, 6, 3902, 584, 4280, 28027, 6, 750, 834, 13442, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 1102, 13, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 3902, 3274, 6864, 948, 3430, 750, 834, 13442, 3274, 96, 1788, 76, 7656, 3, 120, 14659, 17, 7, 63, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which year had the minimum number of releases?
CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) CREATE TABLE tags ( index number, id number, tag text )
SELECT groupyear FROM torrents GROUP BY groupyear ORDER BY COUNT(groupname) LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 23326, 7, 41, 563, 4350, 1499, 6, 792, 7, 29, 144, 4513, 381, 6, 2377, 1499, 6, 563, 1201, 381, 6, 1576, 6137, 1499, 6, 563, 23, 26, 381, 6, 3, 23, 26, 381, 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, 563, 1201, 21680, 23326, 7, 350, 4630, 6880, 272, 476, 563, 1201, 4674, 11300, 272, 476, 2847, 17161, 599, 10739, 4350, 61, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the place of player jim thorpe?
CREATE TABLE table_50235 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Place" FROM table_50235 WHERE "Player" = 'jim thorpe'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 25174, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 11706, 121, 21680, 953, 834, 1752, 25174, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 354, 603, 3, 189, 127, 855, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Visualize a scatter chart about the correlation between ACC_Percent and All_Games_Percent , and group by attribute ACC_Road.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY ACC_Road
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14775, 834, 12988, 3728, 6, 432, 834, 23055, 7, 834, 12988, 3728, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 3, 14775, 834, 448, 32, 9, 26, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose age is less than 55 and drug code is warf1?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "55" AND prescriptions.formulary_drug_cd = "WARF1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
what is the name of the episode that comes after the return ?
CREATE TABLE table_204_449 ( id number, "no" number, "episode" text, "title" text, "original airdate" text, "viewers" number, "nightly\nrank" number )
SELECT "title" FROM table_204_449 WHERE id = (SELECT id FROM table_204_449 WHERE "title" = '"the return" (part 1)') + 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 591, 3647, 41, 3, 23, 26, 381, 6, 96, 29, 32, 121, 381, 6, 96, 15, 102, 159, 32, 221, 121, 1499, 6, 96, 21869, 121, 1499, 6, 96, 21878, 799, 5522, 121, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 21869, 121, 21680, 953, 834, 26363, 834, 591, 3647, 549, 17444, 427, 3, 23, 26, 3274, 41, 23143, 14196, 3, 23, 26, 21680, 953, 834, 26363, 834, 591, 3647, 549, 17444, 427, 96, 21869, 121, 3274, 3, 31, 121, 532...