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 rank # of the swimmer in Lane 5?
CREATE TABLE table_63506 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text )
SELECT COUNT("Rank") FROM table_63506 WHERE "Lane" = '5'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3891, 1752, 948, 41, 96, 22557, 121, 490, 6, 96, 434, 152, 15, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 13368, 121, 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, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 22557, 8512, 21680, 953, 834, 3891, 1752, 948, 549, 17444, 427, 96, 434, 152, 15, 121, 3274, 3, 31, 755, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which opening film has the opening date of august 23?
CREATE TABLE table_18220102_1 (opening_film VARCHAR, date__opening_ VARCHAR)
SELECT opening_film FROM table_18220102_1 WHERE date__opening_ = "August 23"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 357, 14926, 357, 834, 536, 41, 8751, 53, 834, 9988, 584, 4280, 28027, 6, 833, 834, 834, 8751, 53, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 2101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2101, 834, 9988, 21680, 953, 834, 2606, 357, 14926, 357, 834, 536, 549, 17444, 427, 833, 834, 834, 8751, 53, 834, 3274, 96, 26579, 1902, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose admission location is transfer from hosp/extram and item id is 51248?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND lab.itemid = "51248"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Show the minimum amount of transactions whose type code is 'PUR' and whose share count is bigger than 50.
CREATE TABLE transactions_lots ( transaction_id number, lot_id number ) CREATE TABLE investors ( investor_id number, investor_details text ) CREATE TABLE lots ( lot_id number, investor_id number, lot_details text ) CREATE TABLE purchases ( purchase_transaction_id number, purchase_details text ) CREATE TABLE ref_transaction_types ( transaction_type_code text, transaction_type_description text ) CREATE TABLE sales ( sales_transaction_id number, sales_details text ) CREATE TABLE transactions ( transaction_id number, investor_id number, transaction_type_code text, date_of_transaction time, amount_of_transaction number, share_count text, other_details text )
SELECT MIN(amount_of_transaction) FROM transactions WHERE transaction_type_code = "PUR" AND share_count > 50
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6413, 834, 3171, 7, 41, 5878, 834, 23, 26, 381, 6, 418, 834, 23, 26, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4367, 41, 12024, 834, 23, 26, 381, 6, 12024, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 9, 11231, 834, 858, 834, 7031, 4787, 61, 21680, 6413, 549, 17444, 427, 5878, 834, 6137, 834, 4978, 3274, 96, 345, 5905, 121, 3430, 698, 834, 13362, 2490, 943, 1, -100, -100, -100, -100, -100, -100, -1...
Average round for 22 pick that is overall smaller than 229?
CREATE TABLE table_name_94 ( round INTEGER, pick VARCHAR, overall VARCHAR )
SELECT AVG(round) FROM table_name_94 WHERE pick = 22 AND overall < 229
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 1751, 3, 21342, 17966, 6, 1432, 584, 4280, 28027, 6, 1879, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 23836, 1751, 21, 1630, 1432, 24, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 7775, 61, 21680, 953, 834, 4350, 834, 4240, 549, 17444, 427, 1432, 3274, 1630, 3430, 1879, 3, 2, 204, 3166, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which network serves the Guerrero region
CREATE TABLE table_30882 ( "Network" text, "Flagship" text, "Programming" text, "Region" text, "Origin" text, "Owner" text )
SELECT "Network" FROM table_30882 WHERE "Region" = 'Guerrero'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 4060, 357, 41, 96, 9688, 1981, 121, 1499, 6, 96, 371, 5430, 2009, 121, 1499, 6, 96, 3174, 16582, 53, 121, 1499, 6, 96, 17748, 23, 106, 121, 1499, 6, 96, 667, 3380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9688, 1981, 121, 21680, 953, 834, 1458, 4060, 357, 549, 17444, 427, 96, 17748, 23, 106, 121, 3274, 3, 31, 9105, 49, 52, 49, 32, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the average year of the montreal expos?
CREATE TABLE table_name_14 ( year INTEGER, team VARCHAR )
SELECT AVG(year) FROM table_name_14 WHERE team = "montreal expos"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 215, 3, 21342, 17966, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 215, 13, 8, 15826, 138, 3, 19300, 7, 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, 71, 17217, 599, 1201, 61, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 372, 3274, 96, 4662, 6644, 3, 19300, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the date for Game 41?
CREATE TABLE table_name_33 ( date VARCHAR, game VARCHAR )
SELECT date FROM table_name_33 WHERE game = "41"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 833, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 833, 21, 4435, 8798, 58, 1, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 467, 3274, 96, 4853, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the most first elected
CREATE TABLE table_74007 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT MAX("First elected") FROM table_74007
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 5548, 940, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25171, 8160, 8512, 21680, 953, 834, 940, 5548, 940, 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, ...
How many sitting Representatives are there in the New York 10 polling area?
CREATE TABLE table_1342256_32 ( incumbent VARCHAR, district VARCHAR )
SELECT COUNT(incumbent) FROM table_1342256_32 WHERE district = "New York 10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2368, 4165, 19337, 834, 2668, 41, 28406, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 3823, 13517, 7, 33, 132, 16, 8, 368, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 77, 75, 5937, 295, 61, 21680, 953, 834, 2368, 4165, 19337, 834, 2668, 549, 17444, 427, 3939, 3274, 96, 6861, 1060, 335, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the date of birth and drug code for the patient name jerry deberry?
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 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 )
SELECT demographic.dob, prescriptions.formulary_drug_cd FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Jerry Deberry"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 14798, 5, 26, 32, 115, 6, 7744, 7, 5, 20128, 63, 834, 26, 13534, 834, 75, 26, 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,...
What is the cons for lib dem of 8% and a lead of 27%
CREATE TABLE table_name_19 ( cons VARCHAR, lib_dem VARCHAR, lead VARCHAR )
SELECT cons FROM table_name_19 WHERE lib_dem = "8%" AND lead = "27%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2294, 41, 6900, 584, 4280, 28027, 6, 3, 6856, 834, 1778, 584, 4280, 28027, 6, 991, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 6900, 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, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6900, 21680, 953, 834, 4350, 834, 2294, 549, 17444, 427, 3, 6856, 834, 1778, 3274, 96, 5953, 121, 3430, 991, 3274, 96, 357, 6170, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
I want to see trend the number of season over season by Away_team, list by the x axis in ascending.
CREATE TABLE injury_accident ( game_id int, id int, Player text, Injury text, Number_of_matches text, Source text ) CREATE TABLE stadium ( id int, name text, Home_Games int, Average_Attendance real, Total_Attendance real, Capacity_Percentage real ) CREATE TABLE game ( stadium_id int, id int, Season int, Date text, Home_team text, Away_team text, Score text, Competition text )
SELECT Season, COUNT(Season) FROM game GROUP BY Away_team ORDER BY Season
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2871, 834, 6004, 4215, 41, 467, 834, 23, 26, 16, 17, 6, 3, 23, 26, 16, 17, 6, 12387, 1499, 6, 28905, 1499, 6, 7720, 834, 858, 834, 19515, 15, 7, 1499, 6, 9149, 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, 7960, 6, 2847, 17161, 599, 134, 15, 9, 739, 61, 21680, 467, 350, 4630, 6880, 272, 476, 71, 1343, 834, 11650, 4674, 11300, 272, 476, 7960, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the average medal total of the country who had 0 silver medals and participated in less than 15 games?
CREATE TABLE table_name_41 (total INTEGER, games VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_41 WHERE games < 15 AND silver < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 235, 1947, 3, 21342, 17966, 6, 1031, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 9365, 792, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 1031, 3, 2, 627, 3430, 4294, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Visualize a bar chart for how many students are in each department?, and could you sort y axis in descending order?
CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) )
SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4858, 41, 740, 3, 4331, 4059, 599, 1808, 201, 562, 834, 5525, 1152, 3, 4331, 4059, 24358, 6, 2614, 206, 17552, 599, 8525, 632, 61, 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, 20, 102, 17, 834, 4350, 6, 2847, 17161, 599, 1935, 61, 21680, 1236, 350, 4630, 6880, 272, 476, 20, 102, 17, 834, 4350, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 1, -100, -100, -100, -100, -100, ...
How many distinct incident type codes are there?
CREATE TABLE Behavior_Incident (incident_type_code VARCHAR)
SELECT COUNT(DISTINCT incident_type_code) FROM Behavior_Incident
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 29396, 834, 1570, 75, 4215, 41, 77, 75, 4215, 834, 6137, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 6746, 5415, 686, 5633, 33, 132, 58, 1, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 5415, 834, 6137, 834, 4978, 61, 21680, 29396, 834, 1570, 75, 4215, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?
CREATE TABLE table_name_60 (total INTEGER, name VARCHAR, other VARCHAR)
SELECT AVG(total) FROM table_name_60 WHERE name = "simon gillett category:articles with hcards" AND other > 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 235, 1947, 3, 21342, 17966, 6, 564, 584, 4280, 28027, 6, 119, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 9273, 6, 116, 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, 71, 17217, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 564, 3274, 96, 28348, 29, 3, 122, 22751, 17, 3295, 10, 8372, 7, 28, 3, 107, 6043, 7, 121, 3430, 119, 2490, 220, 1, -100, -100, -1...
What was the round of 16 result for felipe saucedo?
CREATE TABLE table_31179 ( "Athlete" text, "Event" text, "Elimination Poule" text, "Round of 16" text, "Quarterfinals" text, "Semifinals" text, "Final" text )
SELECT "Round of 16" FROM table_31179 WHERE "Athlete" = 'Felipe Saucedo'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3341, 26593, 41, 96, 188, 189, 1655, 15, 121, 1499, 6, 96, 427, 2169, 121, 1499, 6, 96, 10991, 23, 14484, 20313, 109, 121, 1499, 6, 96, 448, 32, 1106, 13, 898, 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, 448, 32, 1106, 13, 898, 121, 21680, 953, 834, 3341, 26593, 549, 17444, 427, 96, 188, 189, 1655, 15, 121, 3274, 3, 31, 17160, 23, 855, 25803, 26, 32, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which Power has a Name of 9 nc?
CREATE TABLE table_name_21 ( power VARCHAR, name VARCHAR )
SELECT power FROM table_name_21 WHERE name = "9 nc"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 579, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 2621, 65, 3, 9, 5570, 13, 668, 3, 29, 75, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 579, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 564, 3274, 96, 1298, 3, 29, 75, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the 1901 with 1851 of 1961
CREATE TABLE table_38874 ( "Year" text, "1801" text, "1811" text, "1821" text, "1841" text, "1851" text, "1861" text, "1871" text, "1881" text, "1891" text, "1901" text )
SELECT "1901" FROM table_38874 WHERE "1851" = '1961'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3747, 4225, 591, 41, 96, 476, 2741, 121, 1499, 6, 96, 2606, 4542, 121, 1499, 6, 96, 2606, 2596, 121, 1499, 6, 96, 2606, 2658, 121, 1499, 6, 96, 2606, 4853, 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, 11776, 536, 121, 21680, 953, 834, 3747, 4225, 591, 549, 17444, 427, 96, 2606, 5553, 121, 3274, 3, 31, 2294, 4241, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients whose admission location is transfer from hosp/extram and lab test fluid is joint fluid?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND lab.fluid = "Joint Fluid"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Name the No. 2 which has a No. 3 of jacob, and a No. 10 of wyatt, and a No. 6 of ethan?
CREATE TABLE table_43789 ( "Region (year)" text, "No. 1" text, "No. 2" text, "No. 3" text, "No. 4" text, "No. 5" text, "No. 6" text, "No. 7" text, "No. 8" text, "No. 9" text, "No. 10" text )
SELECT "No. 2" FROM table_43789 WHERE "No. 3" = 'jacob' AND "No. 10" = 'wyatt' AND "No. 6" = 'ethan'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4118, 3914, 41, 96, 17748, 23, 106, 41, 1201, 61, 121, 1499, 6, 96, 4168, 5, 209, 121, 1499, 6, 96, 4168, 5, 204, 121, 1499, 6, 96, 4168, 5, 220, 121, 1499, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4168, 5, 204, 121, 21680, 953, 834, 591, 4118, 3914, 549, 17444, 427, 96, 4168, 5, 220, 121, 3274, 3, 31, 1191, 509, 115, 31, 3430, 96, 4168, 5, 335, 121, 3274, 3, 31, 210, 63, 144, 17, 31, 3430, 96, 4168,...
What is the score of the game on December 22?
CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_81 WHERE date = "december 22"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4959, 41, 7, 9022, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2604, 13, 8, 467, 30, 1882, 1630, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 4959, 549, 17444, 427, 833, 3274, 96, 221, 75, 18247, 1630, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the record after the NJKF Magnam 16 event that lasted 2:06?
CREATE TABLE table_5579 ( "Result" text, "Record" text, "Opponent" text, "Event" text, "Method" text, "Round" text, "Time" text )
SELECT "Record" FROM table_5579 WHERE "Time" = '2:06' AND "Event" = 'njkf magnam 16'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 4440, 41, 96, 20119, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 427, 2169, 121, 1499, 6, 96, 23351, 107, 32, 26, 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, 1649, 7621, 121, 21680, 953, 834, 3769, 4440, 549, 17444, 427, 96, 13368, 121, 3274, 3, 31, 357, 10, 5176, 31, 3430, 96, 427, 2169, 121, 3274, 3, 31, 29, 354, 157, 89, 6396, 13363, 898, 31, 1, -100, -100, -1...
Which Home team score had a Home team of Fitzroy?
CREATE TABLE table_52905 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team score" FROM table_52905 WHERE "Home team" = 'fitzroy'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3166, 3076, 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, 19040, 372, 2604, 121, 21680, 953, 834, 755, 3166, 3076, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 89, 5615, 8170, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which allergy type is the least common?
CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE has_allergy ( stuid number, allergy text )
SELECT allergytype FROM allergy_type GROUP BY allergytype ORDER BY COUNT(*) LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 23886, 834, 6137, 41, 23886, 1499, 6, 23886, 6137, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 21341, 23, 26, 381, 6, 3, 40, 4350, 1499, 6, 3, 89, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 23886, 6137, 21680, 23886, 834, 6137, 350, 4630, 6880, 272, 476, 23886, 6137, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What week did the contestant finish in the bottom 2 with a Celine Dion song?
CREATE TABLE table_name_41 ( week VARCHAR, status VARCHAR, artist VARCHAR )
SELECT week FROM table_name_41 WHERE status = "bottom 2" AND artist = "celine dion"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 471, 584, 4280, 28027, 6, 2637, 584, 4280, 28027, 6, 2377, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 471, 410, 8, 4233, 288, 1992, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 471, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 2637, 3274, 96, 30142, 204, 121, 3430, 2377, 3274, 96, 565, 747, 1227, 106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which CFL team was pick #35?
CREATE TABLE table_30108930_6 ( cfl_team VARCHAR, pick__number VARCHAR )
SELECT cfl_team FROM table_30108930_6 WHERE pick__number = 35
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 1714, 3914, 1458, 834, 948, 41, 3, 75, 89, 40, 834, 11650, 584, 4280, 28027, 6, 1432, 834, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 75, 89, 40, 834, 11650, 21680, 953, 834, 1458, 1714, 3914, 1458, 834, 948, 549, 17444, 427, 1432, 834, 834, 5525, 1152, 3274, 3097, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many people boarded and de-boarded the Amtrak in Linthicum?
CREATE TABLE table_name_68 ( boardings_and_deboardings VARCHAR, city VARCHAR )
SELECT COUNT(boardings_and_deboardings) FROM table_name_68 WHERE city = "linthicum"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 3, 13993, 7, 834, 232, 834, 221, 13993, 7, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 151, 1476, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 13993, 7, 834, 232, 834, 221, 13993, 7, 61, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 690, 3274, 96, 40, 77, 7436, 6361, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are all the fault descriptions and the fault status of all the faults recoreded in the logs?
CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)
SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 377, 10335, 834, 22084, 41, 89, 10335, 834, 221, 11830, 584, 4280, 28027, 6, 7828, 834, 2152, 834, 295, 651, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 89, 10335, 834, 221, 11830, 6, 332, 4416, 89, 10335, 834, 8547, 302, 21680, 377, 10335, 834, 22084, 6157, 332, 536, 3, 15355, 3162, 377, 10335, 834, 22084, 834, 13725, 7, 6157, 332, 357, 9191, 332, 5411, ...
What years for the rockets did player ford, alton alton ford play?
CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Alton Alton Ford"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20275, 21129, 4853, 834, 948, 41, 1201, 7, 834, 1161, 834, 6133, 15, 17, 7, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 203, 21, 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, 0, 0, 0...
[ 3, 23143, 14196, 203, 834, 1161, 834, 6133, 15, 17, 7, 21680, 953, 834, 20275, 21129, 4853, 834, 948, 549, 17444, 427, 1959, 3274, 96, 3809, 26, 6, 4588, 106, 4588, 106, 5222, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the home team score for south melbourne home team
CREATE TABLE table_name_35 ( home_team VARCHAR )
SELECT home_team AS score FROM table_name_35 WHERE home_team = "south melbourne"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 234, 372, 2604, 21, 3414, 3, 2341, 26255, 234, 372, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 6157, 2604, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 234, 834, 11650, 3274, 96, 7, 670, 107, 3, 2341, 26255, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What location is nicknamed the 49ers?
CREATE TABLE table_255188_3 (location VARCHAR, nickname VARCHAR)
SELECT location FROM table_255188_3 WHERE nickname = "49ers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25502, 25794, 834, 519, 41, 14836, 584, 4280, 28027, 6, 24649, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1128, 19, 24649, 26, 8, 9526, 277, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 25502, 25794, 834, 519, 549, 17444, 427, 24649, 3274, 96, 3647, 277, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?
CREATE TABLE mill ( architect_id number, id number, location text, name text, type text, built_year number, notes text ) CREATE TABLE bridge ( architect_id number, id number, name text, location text, length_meters number, length_feet number ) CREATE TABLE architect ( id text, name text, nationality text, gender text )
SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3293, 41, 13188, 834, 23, 26, 381, 6, 3, 23, 26, 381, 6, 1128, 1499, 6, 564, 1499, 6, 686, 1499, 6, 1192, 834, 1201, 381, 6, 3358, 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, 3, 15438, 25424, 6227, 332, 5411, 4350, 21680, 3293, 6157, 332, 536, 3, 15355, 3162, 13188, 6157, 3, 17, 357, 9191, 332, 5411, 7064, 23, 5822, 17, 834, 23, 26, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 4716, 6157, ...
What position did he finish in 2012?
CREATE TABLE table_name_59 (position VARCHAR, year VARCHAR)
SELECT position FROM table_name_59 WHERE year = 2012
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 4718, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1102, 410, 3, 88, 1992, 16, 1673, 58, 1, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 215, 3274, 1673, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the least races for carlin
CREATE TABLE table_24587026_1 ( races INTEGER, team VARCHAR )
SELECT MIN(races) FROM table_24587026_1 WHERE team = "Carlin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 3449, 2518, 2688, 834, 536, 41, 10879, 3, 21342, 17966, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 709, 10879, 21, 443, 40, 77, 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, 3, 17684, 599, 12614, 7, 61, 21680, 953, 834, 2266, 3449, 2518, 2688, 834, 536, 549, 17444, 427, 372, 3274, 96, 6936, 40, 77, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Socket of without quickassist has what release price?
CREATE TABLE table_name_63 (release_price___usd__ VARCHAR, socket VARCHAR)
SELECT release_price___usd__ FROM table_name_63 WHERE socket = "without quickassist"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 21019, 834, 102, 4920, 834, 834, 834, 302, 26, 834, 834, 584, 4280, 28027, 6, 16197, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 264, 8849, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1576, 834, 102, 4920, 834, 834, 834, 302, 26, 834, 834, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 16197, 3274, 96, 23016, 1704, 6500, 7, 17, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Find the name and revenue of the company that earns the highest revenue in each city.
CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number ) CREATE TABLE products ( code number, name text, price number, manufacturer number )
SELECT name, MAX(revenue), headquarter FROM manufacturers GROUP BY headquarter
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5360, 41, 1081, 381, 6, 564, 1499, 6, 819, 19973, 1499, 6, 7174, 1499, 6, 3751, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 1081, 381, 6, 564, 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, 564, 6, 4800, 4, 599, 60, 15098, 201, 819, 19973, 21680, 5360, 350, 4630, 6880, 272, 476, 819, 19973, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Find the type and route of administration of Avapro?
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 ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Avapro"
[ 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, 7744, 7, 5, 26, 13534, 834, 6137, 6, 7744, 7, 5, 20300, 21680, 7744, 7, 549, 17444, 427, 7744, 7, 5, 26, 13534, 3274, 96, 188, 900, 1409, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
WHAT IS THE HOME TEAM WITH A TIE OF 14?
CREATE TABLE table_name_21 ( home_team VARCHAR, tie_no VARCHAR )
SELECT home_team FROM table_name_21 WHERE tie_no = "14"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 234, 834, 11650, 584, 4280, 28027, 6, 6177, 834, 29, 32, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 21665, 6827, 1853, 26496, 332, 22684, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 6177, 834, 29, 32, 3274, 96, 2534, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Find ACC_Regular_Season and School_ID , and visualize them by a bar chart.
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_Regular_Season, School_ID FROM basketball_match
[ 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, 17748, 4885, 834, 134, 15, 9, 739, 6, 1121, 834, 4309, 21680, 8498, 834, 19515, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the average wins that have great britain as the team?
CREATE TABLE table_name_80 (wins INTEGER, team VARCHAR)
SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 3757, 7, 3, 21342, 17966, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 1348, 9204, 24, 43, 248, 3, 115, 10694, 77, 38, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 3757, 7, 61, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 372, 3274, 96, 20288, 3, 115, 10694, 77, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What are the teams of the players, sorted in ascending alphabetical order?
CREATE TABLE player (Team VARCHAR)
SELECT Team FROM player ORDER BY Team
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1959, 41, 18699, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 2323, 13, 8, 1508, 6, 3, 14504, 16, 25200, 53, 20688, 1950, 455, 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, 2271, 21680, 1959, 4674, 11300, 272, 476, 2271, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
In season is 2008–09, how many wins did they have?
CREATE TABLE table_20833768_4 (w__ot_so_ VARCHAR, season VARCHAR)
SELECT w__ot_so_ FROM table_20833768_4 WHERE season = "2008–09"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1755, 4591, 4118, 3651, 834, 591, 41, 210, 834, 834, 32, 17, 834, 7, 32, 834, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 86, 774, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 210, 834, 834, 32, 17, 834, 7, 32, 834, 21680, 953, 834, 1755, 4591, 4118, 3651, 834, 591, 549, 17444, 427, 774, 3274, 96, 16128, 104, 4198, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What location hosted when Wells Motors, Greeley, Co was the 4th place team?
CREATE TABLE table_64332 ( "Year" real, "1st Place Team" text, "2nd Place Team" text, "3rd Place Team" text, "4th Place Team" text, "Host Location" text )
SELECT "Host Location" FROM table_64332 WHERE "4th Place Team" = 'wells motors, greeley, co'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4389, 519, 2668, 41, 96, 476, 2741, 121, 490, 6, 96, 536, 7, 17, 3399, 2271, 121, 1499, 6, 96, 357, 727, 3399, 2271, 121, 1499, 6, 96, 519, 52, 26, 3399, 2271, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 566, 3481, 10450, 121, 21680, 953, 834, 4389, 519, 2668, 549, 17444, 427, 96, 591, 189, 3399, 2271, 121, 3274, 3, 31, 2091, 7, 2340, 7, 6, 3, 3584, 15, 1306, 6, 576, 31, 1, -100, -100, -100, -100, -100, -100...
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of phone_number and employee_id .
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) )
SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 301, 5618, 8015, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3, 13733, 26418, 834, 24604, 12200, 134, 3, 4331, 4059, 599, 2445, 201, 3, 16034, 16359, 834, 5911, 5596, 3, 4331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 8023, 7894, 834, 567, 6122, 12920, 6, 262, 5244, 5017, 476, 5080, 834, 4309, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 10521, 549...
How many total gold are less than 4?
CREATE TABLE table_80446 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT COUNT("Gold") FROM table_80446 WHERE "Total" < '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2079, 591, 4448, 41, 96, 22557, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, 3696, 1947, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 23576, 8512, 21680, 953, 834, 2079, 591, 4448, 549, 17444, 427, 96, 3696, 1947, 121, 3, 2, 3, 31, 591, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Find the number of students who is older than 20 in each dorm Plot them as bar chart, display bar in desc order please.
CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) )
SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY dorm_name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3306, 7, 834, 77, 41, 21341, 23, 26, 3, 21342, 17966, 6, 103, 52, 6983, 3, 21342, 17966, 6, 562, 834, 5525, 1152, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 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, 103, 52, 51, 834, 4350, 6, 2847, 17161, 599, 1935, 61, 21680, 6341, 6157, 332, 536, 3, 15355, 3162, 3306, 7, 834, 77, 6157, 332, 357, 9191, 332, 5411, 7, 17, 76, 23, 26, 3274, 332, 4416, 7, 17, 76, 23, 26, 3, ...
Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed larger than 2004?
CREATE TABLE table_42778 ( "Name" text, "Appointed" real, "Term expiration" real, "Appointing Governor" text, "Law School Attended" text )
SELECT SUM("Term expiration") FROM table_42778 WHERE "Appointing Governor" = 'george pataki, republican' AND "Appointed" > '2004'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2555, 3940, 41, 96, 23954, 121, 1499, 6, 96, 9648, 32, 2429, 26, 121, 490, 6, 96, 11679, 8982, 257, 121, 490, 6, 96, 188, 102, 15989, 10510, 121, 1499, 6, 96, 3612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11679, 8982, 257, 8512, 21680, 953, 834, 591, 2555, 3940, 549, 17444, 427, 96, 188, 102, 15989, 10510, 121, 3274, 3, 31, 397, 1677, 15, 6234, 11259, 6, 20237, 152, 31, 3430, 96, 9648, 32, 2429, ...
What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?
CREATE TABLE table_name_79 (last_title VARCHAR, country VARCHAR, wins VARCHAR, first_title VARCHAR)
SELECT COUNT(last_title) FROM table_name_79 WHERE wins < 71 AND first_title > 1968 AND country = "fiji"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4440, 41, 5064, 834, 21869, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 6, 166, 834, 21869, 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, 2847, 17161, 599, 5064, 834, 21869, 61, 21680, 953, 834, 4350, 834, 4440, 549, 17444, 427, 9204, 3, 2, 3, 4450, 3430, 166, 834, 21869, 2490, 16506, 3430, 684, 3274, 96, 89, 17279, 121, 1, -100, -100, -100, -100, -10...
What player(s) appeared in 1969?
CREATE TABLE table_25820584_7 (player VARCHAR, year_s_ VARCHAR)
SELECT player FROM table_25820584_7 WHERE year_s_ = "1969"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 4613, 3076, 4608, 834, 940, 41, 20846, 584, 4280, 28027, 6, 215, 834, 7, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1959, 599, 7, 61, 4283, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 1828, 4613, 3076, 4608, 834, 940, 549, 17444, 427, 215, 834, 7, 834, 3274, 96, 2294, 3951, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the largest lap number when the time was +31.982?
CREATE TABLE table_name_5 (laps INTEGER, time VARCHAR)
SELECT MAX(laps) FROM table_name_5 WHERE time = "+31.982"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 8478, 7, 3, 21342, 17966, 6, 97, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2015, 14941, 381, 116, 8, 97, 47, 1768, 519, 22493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 8478, 7, 61, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 97, 3274, 96, 1220, 519, 22493, 4613, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
When 1180 am is the frequency how many call signs are there?
CREATE TABLE table_1949746_1 ( call_sign VARCHAR, frequency VARCHAR )
SELECT COUNT(call_sign) FROM table_1949746_1 WHERE frequency = "1180 AM"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 591, 4327, 4448, 834, 536, 41, 580, 834, 6732, 584, 4280, 28027, 6, 7321, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 850, 2079, 183, 19, 8, 7321, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 16482, 834, 6732, 61, 21680, 953, 834, 2294, 591, 4327, 4448, 834, 536, 549, 17444, 427, 7321, 3274, 96, 2596, 2079, 5422, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Please show the most common publication date.
CREATE TABLE publication ( Publication_Date VARCHAR )
SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5707, 41, 2575, 257, 834, 308, 342, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 863, 504, 8, 167, 1017, 5707, 833, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2575, 257, 834, 308, 342, 21680, 5707, 350, 4630, 6880, 272, 476, 2575, 257, 834, 308, 342, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100,...
What was the played with club tumble rfc?
CREATE TABLE table_12828723_5 ( played VARCHAR, club VARCHAR )
SELECT played FROM table_12828723_5 WHERE club = "Tumble RFC"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4613, 4225, 2773, 834, 755, 41, 1944, 584, 4280, 28027, 6, 1886, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1944, 28, 1886, 26565, 3, 52, 89,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1944, 21680, 953, 834, 2122, 4613, 4225, 2773, 834, 755, 549, 17444, 427, 1886, 3274, 96, 382, 13514, 391, 5390, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the tail number with 3/3 fatalities?
CREATE TABLE table_41233 ( "Location" text, "Aircraft" text, "Tail number" text, "Aircraft damage" text, "Fatalities" text )
SELECT "Tail number" FROM table_41233 WHERE "Fatalities" = '3/3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4853, 20879, 41, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 20162, 6696, 121, 1499, 6, 96, 382, 9, 173, 381, 121, 1499, 6, 96, 20162, 6696, 1783, 121, 1499, 6, 96, 371, 9,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 382, 9, 173, 381, 121, 21680, 953, 834, 4853, 20879, 549, 17444, 427, 96, 371, 9, 1947, 2197, 121, 3274, 3, 31, 519, 14207, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
On what surface did a score of 4 6 6 3 6 4 occur at the Tournament of Lahore?
CREATE TABLE table_name_78 ( surface VARCHAR, tournament VARCHAR, score VARCHAR )
SELECT surface FROM table_name_78 WHERE tournament = "lahore" AND score = "4–6 6–3 6–4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 1774, 584, 4280, 28027, 6, 5892, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 461, 125, 1774, 410, 3, 9, 2604, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 1774, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 5892, 3274, 96, 521, 107, 127, 15, 121, 3430, 2604, 3274, 96, 591, 104, 948, 431, 104, 519, 431, 104, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100...
What is the average number of ties for years with more than 19 wins?
CREATE TABLE table_name_33 (tied INTEGER, wins INTEGER)
SELECT AVG(tied) FROM table_name_33 WHERE wins > 19
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 17, 5973, 3, 21342, 17966, 6, 9204, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 381, 13, 3, 3010, 21, 203, 28, 72, 145, 957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 17217, 599, 17, 5973, 61, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 9204, 2490, 957, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
which was k. annamalai s party a?
CREATE TABLE table_22757733_4 ( party VARCHAR, runner_up_a VARCHAR )
SELECT party AS a FROM table_22757733_4 WHERE runner_up_a = "K. Annamalai"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 3072, 4013, 4201, 834, 591, 41, 1088, 584, 4280, 28027, 6, 3, 10806, 834, 413, 834, 9, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 84, 47, 3, 157, 5, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1088, 6157, 3, 9, 21680, 953, 834, 2884, 3072, 4013, 4201, 834, 591, 549, 17444, 427, 3, 10806, 834, 413, 834, 9, 3274, 96, 439, 5, 7588, 1982, 9, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the number of draws when the Elche CF club played 38 and had a goal difference of -16?
CREATE TABLE table_69343 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real )
SELECT MIN("Draws") FROM table_69343 WHERE "Goal Difference" > '-16' AND "Club" = 'elche cf' AND "Played" > '38'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3951, 3710, 519, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 22512, 7, 121, 1499, 6, 96, 18455, 7, 121, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 308, 10936, 7, 8512, 21680, 953, 834, 3951, 3710, 519, 549, 17444, 427, 96, 6221, 138, 27187, 121, 2490, 3, 31, 10892, 31, 3430, 96, 254, 11158, 121, 3274, 3, 31, 15, 40, 1033, 3, 75, 89, 31,...
What round has a pick less than 189, with arizona cardinals as the NFL club?
CREATE TABLE table_name_4 ( round VARCHAR, pick VARCHAR, nfl_club VARCHAR )
SELECT round FROM table_name_4 WHERE pick < 189 AND nfl_club = "arizona cardinals"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 591, 41, 1751, 584, 4280, 28027, 6, 1432, 584, 4280, 28027, 6, 3, 29, 89, 40, 834, 13442, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 1751, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1751, 21680, 953, 834, 4350, 834, 591, 549, 17444, 427, 1432, 3, 2, 3, 25312, 3430, 3, 29, 89, 40, 834, 13442, 3274, 96, 1665, 8892, 9, 895, 10270, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?
CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR)
SELECT SUM(design_flow__lpm_) FROM table_name_6 WHERE partner = "app" AND construction_start = "2008 january" AND population_served > 3500
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 9124, 834, 7631, 834, 834, 40, 2028, 834, 3, 21342, 17966, 6, 2074, 834, 3473, 15, 26, 584, 4280, 28027, 6, 2397, 584, 4280, 28027, 6, 1449, 834, 10208,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9124, 834, 7631, 834, 834, 40, 2028, 834, 61, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 2397, 3274, 96, 3096, 121, 3430, 1449, 834, 10208, 3274, 96, 16128, 3, 7066, 76, 1208, 121, 3430, 2074,...
What is the Opponent of the match played on a Clay Surface with a Score of 6 0, 6 2?
CREATE TABLE table_47755 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT "Opponent in the final" FROM table_47755 WHERE "Surface" = 'clay' AND "Score" = '6–0, 6–2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4013, 3769, 41, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 667, 102, 9977, 16, 8, 804, 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, 667, 102, 9977, 16, 8, 804, 121, 21680, 953, 834, 591, 4013, 3769, 549, 17444, 427, 96, 134, 450, 4861, 121, 3274, 3, 31, 4651, 63, 31, 3430, 96, 134, 9022, 121, 3274, 3, 31, 948, 104, 632, 6, 431, 104, 35...
How many years was the country Belgium?
CREATE TABLE table_29522 ( "Artist" text, "Country" text, "Number-one single(s)" text, "Year" real, "Weeks at #1" real, "Straight to #1 ?" text )
SELECT COUNT("Year") FROM table_29522 WHERE "Country" = 'Belgium'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3301, 2884, 41, 96, 7754, 343, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 567, 5937, 49, 18, 782, 712, 599, 7, 61, 121, 1499, 6, 96, 476, 2741, 121, 490, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 476, 2741, 8512, 21680, 953, 834, 357, 3301, 2884, 549, 17444, 427, 96, 10628, 651, 121, 3274, 3, 31, 2703, 40, 122, 2552, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
what is admission type and days of hospital stay of subject id 7273?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT demographic.admission_type, demographic.days_stay FROM demographic WHERE demographic.subject_id = "7273"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 14798, 5, 9, 26, 5451, 834, 6137, 6, 14798, 5, 1135, 7, 834, 21545, 21680, 14798, 549, 17444, 427, 14798, 5, 7304, 11827, 834, 23, 26, 3274, 96, 5865, 4552, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the second qualification time for Dale Coyne Racing with a best of 1:03.757?
CREATE TABLE table_name_39 ( qual_2 VARCHAR, team VARCHAR, best VARCHAR )
SELECT qual_2 FROM table_name_39 WHERE team = "dale coyne racing" AND best = "1:03.757"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3288, 41, 3, 11433, 834, 357, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 6, 200, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 511, 15513,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11433, 834, 357, 21680, 953, 834, 4350, 834, 3288, 549, 17444, 427, 372, 3274, 96, 5437, 576, 63, 29, 15, 8191, 121, 3430, 200, 3274, 96, 536, 10, 13267, 3072, 940, 121, 1, -100, -100, -100, -100, -100, -100, -...
Who was the home team when attendance was over 41,846?
CREATE TABLE table_name_16 ( home_team VARCHAR, crowd INTEGER )
SELECT home_team FROM table_name_16 WHERE crowd > 41 OFFSET 846
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 234, 834, 11650, 584, 4280, 28027, 6, 4374, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 234, 372, 116, 11364, 47, 147, 8798, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 4374, 2490, 8798, 3, 15316, 20788, 505, 4448, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients whose religion is protestant quaker and year of birth is less than 2023?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "PROTESTANT QUAKER" AND demographic.dob_year < "2023"
[ 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, 60, 2825, 23, 106, 3274, 96, 17618, 382, 6038, 9156, 3, 16892, 17253, 448, 121, 3430, 14798, 5, ...
Which of the participating clubs had 73 tries for?
CREATE TABLE table_name_73 ( club VARCHAR, tries_for VARCHAR )
SELECT club FROM table_name_73 WHERE tries_for = "73"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 1886, 584, 4280, 28027, 6, 3, 9000, 834, 1161, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 13, 8, 7448, 8122, 141, 3, 4552, 3, 9000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1886, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 3, 9000, 834, 1161, 3274, 96, 4552, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the average number of points when the ranking is 7th and the draw is less than 4?
CREATE TABLE table_75939 ( "Draw" real, "Song" text, "Performer" text, "Points" real, "Rank" text )
SELECT AVG("Points") FROM table_75939 WHERE "Rank" = '7th' AND "Draw" < '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3390, 3288, 41, 96, 308, 10936, 121, 490, 6, 96, 134, 2444, 121, 1499, 6, 96, 12988, 2032, 49, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 22557, 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, 71, 17217, 599, 121, 22512, 7, 8512, 21680, 953, 834, 940, 3390, 3288, 549, 17444, 427, 96, 22557, 121, 3274, 3, 31, 940, 189, 31, 3430, 96, 308, 10936, 121, 3, 2, 3, 31, 591, 31, 1, -100, -100, -100, -100, -100...
what is the 2008 when 2007 is A, 2011 is A and tournament is san jose?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT 2008 FROM table_name_5 WHERE 2007 = "a" AND 2011 = "a" AND tournament = "san jose"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 17, 1211, 20205, 17, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 2628, 116, 4101, 19, 71, 6, 2722, 19, 71, 11, 5892, 19, 3, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2628, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 4101, 3274, 96, 9, 121, 3430, 2722, 3274, 96, 9, 121, 3430, 5892, 3274, 96, 7, 152, 7406, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?
CREATE TABLE table_name_59 (year VARCHAR, definition VARCHAR, borough VARCHAR, rank VARCHAR)
SELECT year FROM table_name_59 WHERE borough = "harrogate" AND rank < 6 AND definition = "civil parish"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 1201, 584, 4280, 28027, 6, 4903, 584, 4280, 28027, 6, 3, 12823, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 215, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 3, 12823, 3274, 96, 3272, 3822, 342, 121, 3430, 11003, 3, 2, 431, 3430, 4903, 3274, 96, 27981, 173, 14961, 121, 1, -100, -100, -100, -100, -100, -100, -100, -1...
count the number of patients who have stayed in the hospital for more than 5 days and done the lab test iron.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "5" AND lab.label = "Iron"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What game site has a result of bye?
CREATE TABLE table_name_52 ( game_site VARCHAR, result VARCHAR )
SELECT game_site FROM table_name_52 WHERE result = "bye"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5373, 41, 467, 834, 3585, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 467, 353, 65, 3, 9, 741, 13, 57, 15, 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, 467, 834, 3585, 21680, 953, 834, 4350, 834, 5373, 549, 17444, 427, 741, 3274, 96, 969, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?
CREATE TABLE table_name_77 ( championship VARCHAR, drivers VARCHAR, year VARCHAR, race_title VARCHAR )
SELECT championship FROM table_name_77 WHERE year < 1952 AND race_title = "grand prix watkins glen" AND drivers = "miles collier"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4013, 41, 10183, 584, 4280, 28027, 6, 3863, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 1964, 834, 21869, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 10183, 21680, 953, 834, 4350, 834, 4013, 549, 17444, 427, 215, 3, 2, 23744, 3430, 1964, 834, 21869, 3274, 96, 15448, 3407, 8036, 17, 7815, 3, 3537, 29, 121, 3430, 3863, 3274, 96, 8770, 7, 8029, 972, 121, 1, -100, ...
How many votes did Wales cast when Northern England cast 6?
CREATE TABLE table_10128185_2 ( wales INTEGER, northern_england VARCHAR )
SELECT MIN(wales) FROM table_10128185_2 WHERE northern_england = 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19621, 2577, 21594, 834, 357, 41, 3, 210, 4529, 3, 21342, 17966, 6, 8390, 834, 4606, 40, 232, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 11839, 410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 210, 4529, 61, 21680, 953, 834, 19621, 2577, 21594, 834, 357, 549, 17444, 427, 8390, 834, 4606, 40, 232, 3274, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the game when batting 2nd is new zealand 6/133 (18)?
CREATE TABLE table_name_17 (game INTEGER, batting_2nd VARCHAR)
SELECT MIN(game) FROM table_name_17 WHERE batting_2nd = "new zealand 6/133 (18)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 7261, 3, 21342, 17966, 6, 3, 27759, 834, 357, 727, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 467, 116, 3, 27759, 204, 727, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 7261, 61, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 3, 27759, 834, 357, 727, 3274, 96, 5534, 3, 776, 138, 232, 431, 87, 22974, 9323, 61, 121, 1, -100, -100, -100, -100, -100, -100, -100, -1...
For those records from the products and each product's manufacturer, a bar chart shows the distribution of founder and the sum of manufacturer , and group by attribute founder, could you rank x axis from high to low order?
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 Founder, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15248, 7, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 3642, 19973, 584, 4280, 28027, 599, 25502, 201, 3, 19145, 584, 4280, 28027, 599, 25502, 201, 19764, 17833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 19145, 6, 180, 6122, 599, 7296, 76, 8717, 450, 49, 61, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 2...
What is the opponent with the outcome of runner-up with a date of 19 september 1994?
CREATE TABLE table_name_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_25 WHERE outcome = "runner-up" AND date = "19 september 1994"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 32, 102, 9977, 584, 4280, 28027, 6, 6138, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 15264, 28, 8, 6138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15264, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 6138, 3274, 96, 10806, 18, 413, 121, 3430, 833, 3274, 96, 2294, 16022, 18247, 7520, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many connection catagories are there for Tampa?
CREATE TABLE table_24013 ( "Stations" text, "Connections" text, "City/ Neighborhood" text, "Parking" text, "Date Opened" text )
SELECT COUNT("Connections") FROM table_24013 WHERE "Stations" = 'Tampa'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11944, 2368, 41, 96, 134, 17, 1628, 121, 1499, 6, 96, 25772, 2865, 121, 1499, 6, 96, 254, 485, 87, 29852, 121, 1499, 6, 96, 26163, 53, 121, 1499, 6, 96, 308, 342, 2384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25772, 2865, 8512, 21680, 953, 834, 11944, 2368, 549, 17444, 427, 96, 134, 17, 1628, 121, 3274, 3, 31, 382, 4624, 9, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the time associated with August 16, 2008?
CREATE TABLE table_name_12 ( time VARCHAR, date VARCHAR )
SELECT time FROM table_name_12 WHERE date = "august 16, 2008"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2122, 41, 97, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 97, 1968, 28, 1660, 11940, 2628, 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, 97, 21680, 953, 834, 4350, 834, 2122, 549, 17444, 427, 833, 3274, 96, 402, 17198, 11940, 2628, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the type when Rangers are the moving from?
CREATE TABLE table_name_40 ( type VARCHAR, moving_from VARCHAR )
SELECT type FROM table_name_40 WHERE moving_from = "rangers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2445, 41, 686, 584, 4280, 28027, 6, 1735, 834, 7152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 686, 116, 12612, 277, 33, 8, 1735, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 686, 21680, 953, 834, 4350, 834, 2445, 549, 17444, 427, 1735, 834, 7152, 3274, 96, 6287, 277, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
For the game ending with a score of 28-43, what is the listed as the final record?
CREATE TABLE table_49720 ( "Date" text, "Opponent" text, "Result" text, "Score" text, "Record" text, "Location" text, "Attendance" real )
SELECT "Record" FROM table_49720 WHERE "Score" = '28-43'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 18517, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 7621, 121, 21680, 953, 834, 3647, 18517, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 2577, 18, 4906, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the max torque of model 1.4 16v?
CREATE TABLE table_52266 ( "model" text, "cylinders/ valves" text, "displacement cc" real, "max. power kW (PS) at rpm" text, "max. torque (Nm) at rpm" text, "engine code" text, "top speed (km/h)" real, "production period" text )
SELECT "max. torque (Nm) at rpm" FROM table_52266 WHERE "model" = '1.4 16v'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5373, 357, 3539, 41, 96, 21770, 121, 1499, 6, 96, 12980, 7, 87, 9522, 7, 121, 1499, 6, 96, 10475, 11706, 297, 3, 75, 75, 121, 490, 6, 96, 9128, 5, 579, 3, 21729, 41, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 9128, 5, 19527, 41, 567, 51, 61, 44, 3, 52, 2028, 121, 21680, 953, 834, 5373, 357, 3539, 549, 17444, 427, 96, 21770, 121, 3274, 3, 31, 14912, 898, 208, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many episodes had New York, New York as the location?
CREATE TABLE table_24798489_1 (episode_number VARCHAR, location VARCHAR)
SELECT COUNT(episode_number) FROM table_24798489_1 WHERE location = "New York, New York"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 4440, 4608, 3914, 834, 536, 41, 15, 102, 159, 32, 221, 834, 5525, 1152, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 13562,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15, 102, 159, 32, 221, 834, 5525, 1152, 61, 21680, 953, 834, 2266, 4440, 4608, 3914, 834, 536, 549, 17444, 427, 1128, 3274, 96, 6861, 1060, 6, 368, 1060, 121, 1, -100, -100, -100, -100, -100, -100,...
Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell?
CREATE TABLE table_name_75 (independent_socialist_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT independent_socialist_ticket FROM table_name_75 WHERE liberal_ticket = "edward goodell"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3072, 41, 77, 17631, 834, 15745, 343, 834, 26639, 584, 4280, 28027, 6, 10215, 834, 26639, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 14092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2547, 834, 15745, 343, 834, 26639, 21680, 953, 834, 4350, 834, 3072, 549, 17444, 427, 10215, 834, 26639, 3274, 96, 15, 26, 2239, 207, 3820, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For those employees who was hired before 2002-06-21, give me the trend about department_id over hire_date , order x axis in ascending order.
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) )
SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1652, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 30085, 834, 567, 17683, 3, 4331, 4059, 599, 1755, 201, 301, 12510, 834, 567, 17683, 3, 4331, 4059, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 3396, 19846, 11810, 834, 4309, 21680, 1652, 549, 17444, 427, 454, 14132, 834, 308, 6048, 3, 2, 3, 31, 24898, 18, 5176, 16539, 31, 4674, 11300, 272, 476, 454, 14132, 834, 308, 6048, 1, ...
What is the average year joined of the 277 county?
CREATE TABLE table_name_43 (year_joined INTEGER, county VARCHAR)
SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 1201, 834, 1927, 630, 26, 3, 21342, 17966, 6, 5435, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 215, 3311, 13, 8, 204, 4013,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 17217, 599, 1201, 834, 1927, 630, 26, 61, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 5435, 3274, 204, 4013, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the save of the game where moran (1-2) lost?
CREATE TABLE table_name_79 ( save VARCHAR, loss VARCHAR )
SELECT save FROM table_name_79 WHERE loss = "moran (1-2)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4440, 41, 1097, 584, 4280, 28027, 6, 1453, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1097, 13, 8, 467, 213, 8030, 152, 41, 9596, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1097, 21680, 953, 834, 4350, 834, 4440, 549, 17444, 427, 1453, 3274, 96, 2528, 152, 41, 9596, 61, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What are all the teams with an average of 15.89?
CREATE TABLE table_2482547_5 ( team_s_ VARCHAR, average VARCHAR )
SELECT team_s_ FROM table_2482547_5 WHERE average = "15.89"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3707, 1828, 4177, 834, 755, 41, 372, 834, 7, 834, 584, 4280, 28027, 6, 1348, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 66, 8, 2323, 28, 46, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 372, 834, 7, 834, 21680, 953, 834, 357, 3707, 1828, 4177, 834, 755, 549, 17444, 427, 1348, 3274, 96, 1808, 5, 3914, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
If the public is 4, what is the total?
CREATE TABLE table_3545 ( "Rank" real, "Couple" text, "Judges" real, "Public" real, "Total" real, "Vote percentage" text, "Result" text )
SELECT "Total" FROM table_3545 WHERE "Public" = '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2469, 2128, 41, 96, 22557, 121, 490, 6, 96, 3881, 413, 109, 121, 1499, 6, 96, 683, 13164, 7, 121, 490, 6, 96, 30931, 121, 490, 6, 96, 3696, 1947, 121, 490, 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, 3696, 1947, 121, 21680, 953, 834, 2469, 2128, 549, 17444, 427, 96, 30931, 121, 3274, 3, 31, 591, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What competition did the maccabi haifa fc club play?
CREATE TABLE table_name_87 (competition VARCHAR, club VARCHAR)
SELECT competition FROM table_name_87 WHERE club = "maccabi haifa fc"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4225, 41, 287, 4995, 4749, 584, 4280, 28027, 6, 1886, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 2259, 410, 8, 11486, 10891, 23, 4244, 99, 9, 3, 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, 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, 4225, 549, 17444, 427, 1886, 3274, 96, 11101, 10891, 23, 4244, 99, 9, 3, 89, 75, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the IHSAA Football Class for county 67 putnam at Greencastle?
CREATE TABLE table_64092 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text )
SELECT "IHSAA Football Class" FROM table_64092 WHERE "County" = '67 putnam' AND "School" = 'greencastle'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23714, 4508, 41, 96, 29364, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 329, 9, 7, 4310, 121, 1499, 6, 96, 8532, 4046, 297, 121, 490, 6, 96, 196, 4950, 5498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 196, 4950, 5498, 10929, 4501, 121, 21680, 953, 834, 23714, 4508, 549, 17444, 427, 96, 10628, 63, 121, 3274, 3, 31, 3708, 474, 13363, 31, 3430, 96, 29364, 121, 3274, 3, 31, 9423, 5254, 109, 31, 1, -100, -100, -...
what is the maximum age of patients whose admission location is emergency room admit and primary disease is squamous cell carcinoma oral tongue/sda.
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 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 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 MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA"
[ 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, 4800, 4, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 9, 26, 5451, 834, 14836, 3274, 96, 427, 13098, 18464, 17063, 3, 30270, 8502, 12604, 121, 3430, 14798, 5, 25930, 4844, 159, 3274, 96, 13...
In what Games did Patrick Etolu compete?
CREATE TABLE table_name_60 ( games VARCHAR, name VARCHAR )
SELECT games FROM table_name_60 WHERE name = "patrick etolu"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 1031, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 86, 125, 5880, 410, 8643, 1754, 32, 40, 76, 5978, 58, 1, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1031, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 564, 3274, 96, 4665, 5206, 3, 15, 235, 40, 76, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the language for kunar
CREATE TABLE table_16278349_1 (language VARCHAR, province VARCHAR)
SELECT language FROM table_16278349_1 WHERE province = "Kunar"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2938, 2555, 4591, 3647, 834, 536, 41, 24925, 584, 4280, 28027, 6, 7985, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1612, 21, 3, 157, 202, 291, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1612, 21680, 953, 834, 2938, 2555, 4591, 3647, 834, 536, 549, 17444, 427, 7985, 3274, 96, 439, 202, 291, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
retrieve the patient ids that are diagnosed with hyperchloremia since 4 years ago.
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime 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 medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time )
SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'hyperchloremia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year'))
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8209, 41, 8209, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 8209, 4350, 1499, 6, 8209, 715, 97, 6, 3, 447, 26, 1298, 4978, 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, 1868, 5, 202, 1495, 12417, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 8209, 5, 10061, 15129, 21545, 23, 26, 21680, 8209, 549, 17444, 427, 8209, 5, 25930, 4844, 159, 435...
Name the point for 1974
CREATE TABLE table_name_24 (points VARCHAR, year VARCHAR)
SELECT points FROM table_name_24 WHERE year = 1974
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 2700, 7, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 500, 21, 17184, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 979, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 215, 3274, 17184, 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...
Which Competition was 1st Position with 57.03 in Notes?
CREATE TABLE table_name_57 ( competition VARCHAR, position VARCHAR, notes VARCHAR )
SELECT competition FROM table_name_57 WHERE position = "1st" AND notes = "57.03"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3436, 41, 2259, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 3358, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 15571, 47, 209, 7, 17, 14258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2259, 21680, 953, 834, 4350, 834, 3436, 549, 17444, 427, 1102, 3274, 96, 536, 7, 17, 121, 3430, 3358, 3274, 96, 3436, 5, 4928, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many people were from portland, or?
CREATE TABLE table_28678 ( "Alumni" text, "Original season" text, "Fresh Meat Partner" text, "Age" real, "Hometown" text, "Finish" text )
SELECT COUNT("Age") FROM table_28678 WHERE "Hometown" = 'Portland, OR'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3840, 3940, 41, 96, 188, 5171, 29, 23, 121, 1499, 6, 96, 667, 3380, 10270, 774, 121, 1499, 6, 96, 371, 60, 7, 107, 1212, 144, 5793, 121, 1499, 6, 96, 188, 397, 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, 188, 397, 8512, 21680, 953, 834, 357, 3840, 3940, 549, 17444, 427, 96, 19040, 3540, 121, 3274, 3, 31, 14714, 40, 232, 6, 4674, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...