NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Who was the nominee having a Tony award?
CREATE TABLE table_10585 ( "Year" real, "Award" text, "Category" text, "Nominee" text, "Result" text )
SELECT "Nominee" FROM table_10585 WHERE "Award" = 'tony award'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12869, 4433, 41, 96, 476, 2741, 121, 490, 6, 96, 188, 2239, 121, 1499, 6, 96, 18610, 6066, 651, 121, 1499, 6, 96, 4168, 8695, 15, 121, 1499, 6, 96, 20119, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 4168, 8695, 15, 121, 21680, 953, 834, 12869, 4433, 549, 17444, 427, 96, 188, 2239, 121, 3274, 3, 31, 17, 106, 63, 2760, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the year when cable was 4.6%?
CREATE TABLE table_name_99 ( year VARCHAR, cable VARCHAR )
SELECT year FROM table_name_99 WHERE cable = "4.6%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 215, 584, 4280, 28027, 6, 4807, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 215, 116, 4807, 47, 2853, 6370, 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, 215, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 4807, 3274, 96, 7984, 6370, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Week has an Air Date of august 2, 2008?
CREATE TABLE table_name_62 (week VARCHAR, air_date VARCHAR)
SELECT week FROM table_name_62 WHERE air_date = "august 2, 2008"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 8041, 584, 4280, 28027, 6, 799, 834, 5522, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 6551, 65, 46, 1761, 7678, 13, 14663, 3547, 2628, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 471, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 799, 834, 5522, 3274, 96, 402, 17198, 3547, 2628, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Tournament has a Score of 3 6 6 4 4 6?
CREATE TABLE table_36033 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT "Tournament" FROM table_36033 WHERE "Score" = '3–6 6–4 4–6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19208, 4201, 41, 96, 15767, 287, 15, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 667, 102, 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, 1211, 20205, 17, 121, 21680, 953, 834, 19208, 4201, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 519, 104, 948, 431, 104, 591, 314, 104, 948, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the surface for the opponent Marcos Baghdatis?
CREATE TABLE table_name_3 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_3 WHERE opponent = "marcos baghdatis"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 26899, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1774, 21, 8, 15264, 16902, 7, 8055, 107, 26, 144, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1774, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 15264, 3274, 96, 1635, 509, 7, 2182, 107, 26, 144, 159, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
provide the number of patients whose gender is m and year of birth is less than 2101?
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 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.gender = "M" AND demographic.dob_year < "2101"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 122, 3868, 3274, 96, 329, 121, 3430, 14798, 5, 26, 32, 115, 834, 1201, 3, 2, 96, 357, 19621, 1...
How many stumpings has Paul Nixon in his career?
CREATE TABLE table_11303072_9 ( stumpings VARCHAR, player VARCHAR )
SELECT stumpings FROM table_11303072_9 WHERE player = "Paul Nixon"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 1458, 1458, 5865, 834, 1298, 41, 27879, 53, 7, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 27879, 53, 7, 65, 1838, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27879, 53, 7, 21680, 953, 834, 2596, 1458, 1458, 5865, 834, 1298, 549, 17444, 427, 1959, 3274, 96, 23183, 30506, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
If the headquarters is Bharatpur, what is the maximum area?
CREATE TABLE table_24548 ( "District" text, "Headquarters" text, "Area (km\u00b2)" real, "Population (2011)" real, "Division" text )
SELECT MAX("Area (km\u00b2)") FROM table_24548 WHERE "Headquarters" = 'Bharatpur'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2128, 3707, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 3845, 9, 26, 19973, 7, 121, 1499, 6, 96, 188, 864, 41, 5848, 2, 76, 1206, 115, 7318, 121, 490, 6, 96, 27773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 188, 864, 41, 5848, 2, 76, 1206, 115, 7318, 8512, 21680, 953, 834, 357, 2128, 3707, 549, 17444, 427, 96, 3845, 9, 26, 19973, 7, 121, 3274, 3, 31, 279, 14888, 17, 3791, 31, 1, -100, -100, -100,...
What is the average rec that is greater than 10 and has 40 yards?
CREATE TABLE table_55375 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "Long" real )
SELECT AVG("Rec.") FROM table_55375 WHERE "Yards" = '40' AND "Avg." > '10'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 22954, 41, 96, 15800, 49, 121, 1499, 6, 96, 1649, 75, 535, 490, 6, 96, 476, 986, 7, 121, 490, 6, 96, 188, 208, 122, 535, 490, 6, 96, 434, 2444, 121, 490, 3, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 1649, 75, 5, 8512, 21680, 953, 834, 3769, 22954, 549, 17444, 427, 96, 476, 986, 7, 121, 3274, 3, 31, 2445, 31, 3430, 96, 188, 208, 122, 535, 2490, 3, 31, 1714, 31, 1, -100, -100, -100, -100,...
If a variant without niqqud is as final letter: or , what is the phonetic realisation?
CREATE TABLE table_56984 ( "Variant (with Niqqud )" text, "without Niqqud" text, "Phonemic Value" text, "Phonetic Realisation" text, "English example" text )
SELECT "Phonetic Realisation" FROM table_56984 WHERE "without Niqqud" = 'as final letter: ו or יו'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 3916, 591, 41, 96, 553, 6855, 17, 41, 4065, 2504, 1824, 2436, 26, 3, 61, 121, 1499, 6, 96, 23016, 2504, 1824, 2436, 26, 121, 1499, 6, 96, 345, 107, 782, 3113, 12419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 107, 106, 7578, 2977, 2121, 121, 21680, 953, 834, 4834, 3916, 591, 549, 17444, 427, 96, 23016, 2504, 1824, 2436, 26, 121, 3274, 3, 31, 9, 7, 804, 2068, 10, 3, 2, 42, 3, 2, 31, 1, -100, -100, -100, -10...
What is the average number of employees of the departments whose rank is between 10 and 15?
CREATE TABLE department (num_employees INTEGER, ranking INTEGER)
SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3066, 41, 5525, 834, 15, 51, 7379, 63, 15, 15, 7, 3, 21342, 17966, 6, 11592, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 381, 13, 1652, 13, 8, 10521, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 5525, 834, 15, 51, 7379, 63, 15, 15, 7, 61, 21680, 3066, 549, 17444, 427, 11592, 272, 7969, 518, 23394, 335, 3430, 627, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the administrative division for 95391
CREATE TABLE table_19779 ( "Administrative division" text, "Area (km\u00b2)" text, "Population 2000 Census" real, "Population (2010 Census)" real, "Population density 2010 (/km\u00b2)" real )
SELECT "Administrative division" FROM table_19779 WHERE "Population (2010 Census)" = '95391'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27181, 4440, 41, 96, 16313, 343, 52, 1528, 4889, 121, 1499, 6, 96, 188, 864, 41, 5848, 2, 76, 1206, 115, 7318, 121, 1499, 6, 96, 27773, 7830, 2766, 23086, 121, 490, 6, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 16313, 343, 52, 1528, 4889, 121, 21680, 953, 834, 27181, 4440, 549, 17444, 427, 96, 27773, 7830, 41, 14926, 23086, 61, 121, 3274, 3, 31, 3301, 3288, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What are the names listed in the family il-1f2?
CREATE TABLE table_29871617_1 (name VARCHAR, family_name VARCHAR)
SELECT name FROM table_29871617_1 WHERE family_name = "IL-1F2"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 4225, 2938, 2517, 834, 536, 41, 4350, 584, 4280, 28027, 6, 384, 834, 4350, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 3056, 2616, 16, 8, 384, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 3166, 4225, 2938, 2517, 834, 536, 549, 17444, 427, 384, 834, 4350, 3274, 96, 3502, 2292, 371, 357, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
The winner Arnfinn Bergmann has what under country?
CREATE TABLE table_name_45 ( country VARCHAR, winner VARCHAR )
SELECT country FROM table_name_45 WHERE winner = "arnfinn bergmann"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2128, 41, 684, 584, 4280, 28027, 6, 4668, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 37, 4668, 1533, 29, 89, 77, 29, 5581, 2434, 65, 125, 365, 684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 684, 21680, 953, 834, 4350, 834, 2128, 549, 17444, 427, 4668, 3274, 96, 291, 29, 89, 77, 29, 3, 2235, 2434, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which team was played on April 20?
CREATE TABLE table_17322 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text )
SELECT "Team" FROM table_17322 WHERE "Date" = 'April 20'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 2668, 357, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 18699, 121, 21680, 953, 834, 2517, 2668, 357, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 23323, 460, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the D 46 which has D 42 of r 14
CREATE TABLE table_15364 ( "D 48" text, "D 47" text, "D 46" text, "D 45" text, "D 44" text, "D 43" text, "D 42" text, "D 41" text )
SELECT "D 46" FROM table_15364 WHERE "D 42" = 'r 14'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27025, 4389, 41, 96, 308, 4678, 121, 1499, 6, 96, 308, 10635, 121, 1499, 6, 96, 308, 9668, 121, 1499, 6, 96, 308, 3479, 121, 1499, 6, 96, 308, 8537, 121, 1499, 6, 96, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 9668, 121, 21680, 953, 834, 27025, 4389, 549, 17444, 427, 96, 308, 6426, 121, 3274, 3, 31, 52, 968, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How much does the champion get for stadthalle dinslaken, dinslaken?
CREATE TABLE table_22629 ( "Year" real, "Champion (average in final)" text, "Legs" text, "Runner-up (average in final)" text, "Sponsor" text, "Prize Fund" text, "Champion" text, "Runner-up" text, "Venue" text )
SELECT "Champion" FROM table_22629 WHERE "Venue" = 'Stadthalle Dinslaken, Dinslaken'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2688, 3166, 41, 96, 476, 2741, 121, 490, 6, 96, 254, 1483, 12364, 41, 28951, 16, 804, 61, 121, 1499, 6, 96, 2796, 122, 7, 121, 1499, 6, 96, 23572, 18, 413, 41, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 1483, 12364, 121, 21680, 953, 834, 357, 2688, 3166, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 134, 17, 9, 26, 17, 18369, 3181, 7, 16948, 29, 6, 3181, 7, 16948, 29, 31, 1, -100, -100, -10...
how many widowed patients had the procedure extracorporeal circulation auxiliary to open heart surgery?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.long_title = "Extracorporeal circulation auxiliary to open heart surgery"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
When the number is 2 what is the lowest amount of al-wedhat wins?
CREATE TABLE table_2985714_2 ( al_wehdat_wins INTEGER, _number VARCHAR )
SELECT MIN(al_wehdat_wins) FROM table_2985714_2 WHERE _number = 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3916, 3436, 2534, 834, 357, 41, 491, 834, 1123, 107, 26, 144, 834, 3757, 7, 3, 21342, 17966, 6, 3, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 3, 17684, 599, 138, 834, 1123, 107, 26, 144, 834, 3757, 7, 61, 21680, 953, 834, 357, 3916, 3436, 2534, 834, 357, 549, 17444, 427, 3, 834, 5525, 1152, 3274, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
Count the number of patients born before 2071 who had an emergency room hospital admission.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "2071"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 9, 26, 5451, 834, 14836, 3274, 96, 427, 13098, 18464, 17063, 3, 30270, 8502, 12604, 121, 3430, 147...
What is the average rank for 57.05 time?
CREATE TABLE table_name_61 ( rank INTEGER, time INTEGER )
SELECT AVG(rank) FROM table_name_61 WHERE time < 57.05
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 11003, 3, 21342, 17966, 6, 97, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 11003, 21, 3, 3436, 5, 3076, 97, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 6254, 61, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 97, 3, 2, 3, 3436, 5, 3076, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is Postition, when Nationality is United States, when Jersey Number(s) is 12, and when Player is Tom Black Category:Articles With hCards?
CREATE TABLE table_name_50 ( position VARCHAR, player VARCHAR, nationality VARCHAR, jersey_number_s_ VARCHAR )
SELECT position FROM table_name_50 WHERE nationality = "united states" AND jersey_number_s_ = "12" AND player = "tom black category:articles with hcards"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1752, 41, 1102, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 6, 1157, 485, 584, 4280, 28027, 6, 13426, 834, 5525, 1152, 834, 7, 834, 584, 4280, 28027, 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, 1102, 21680, 953, 834, 4350, 834, 1752, 549, 17444, 427, 1157, 485, 3274, 96, 15129, 15, 26, 2315, 121, 3430, 13426, 834, 5525, 1152, 834, 7, 834, 3274, 96, 2122, 121, 3430, 1959, 3274, 96, 235, 51, 1001, 3295, 10, ...
Who was the winning driver in the FR2.0 11 series?
CREATE TABLE table_3307 ( "Circuit" text, "Location" text, "Date" text, "Series" text, "Winning driver" text, "Winning team" text )
SELECT "Winning driver" FROM table_3307 WHERE "Series" = 'FR2.0 11'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4201, 4560, 41, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 12106, 7, 121, 1499, 6, 96, 518, 10503, 2535, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 518, 10503, 2535, 121, 21680, 953, 834, 4201, 4560, 549, 17444, 427, 96, 12106, 7, 121, 3274, 3, 31, 7422, 24273, 850, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which side has Vischer as the inscription?
CREATE TABLE table_name_25 ( side VARCHAR, inscription VARCHAR )
SELECT side FROM table_name_25 WHERE inscription = "vischer"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 596, 584, 4280, 28027, 6, 3, 14593, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 596, 65, 584, 8421, 38, 8, 3, 14593, 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, 596, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 3, 14593, 3274, 96, 208, 8421, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?
CREATE TABLE table_name_90 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_90 WHERE bronze < 7 AND silver = 1 AND rank > 9
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2394, 41, 235, 1947, 3, 21342, 17966, 6, 11003, 584, 4280, 28027, 6, 13467, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 2394, 549, 17444, 427, 13467, 3, 2, 489, 3430, 4294, 3274, 209, 3430, 11003, 2490, 668, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the position for 23.7 avg start
CREATE TABLE table_2181798_1 ( position VARCHAR, avg_start VARCHAR )
SELECT COUNT(position) FROM table_2181798_1 WHERE avg_start = "23.7"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2606, 2517, 3916, 834, 536, 41, 1102, 584, 4280, 28027, 6, 3, 9, 208, 122, 834, 10208, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1102, 21, 204, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4718, 61, 21680, 953, 834, 357, 2606, 2517, 3916, 834, 536, 549, 17444, 427, 3, 9, 208, 122, 834, 10208, 3274, 96, 357, 25168, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
When roy richardson 476cc aermacchi is the rider what is the time for saturday august 9th?
CREATE TABLE table_23465864_3 ( sat_29_aug VARCHAR, rider VARCHAR )
SELECT sat_29_aug FROM table_23465864_3 WHERE rider = "Roy Richardson 476cc Aermacchi"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 4448, 3449, 4389, 834, 519, 41, 3, 7, 144, 834, 3166, 834, 402, 122, 584, 4280, 28027, 6, 2564, 52, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 7, 144, 834, 3166, 834, 402, 122, 21680, 953, 834, 2773, 4448, 3449, 4389, 834, 519, 549, 17444, 427, 2564, 52, 3274, 96, 448, 32, 63, 4117, 739, 314, 3959, 75, 75, 71, 49, 11101, 1436, 121, 1, -100, -100, -1...
how many current patients are of age 40s?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age BETWEEN 40 AND 49
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2179, 9339, 41, 2179, 521, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1543, 3585, 1499, 6, 9329, 1499, 6, 1543, 4914, 29, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 1868, 5, 202, 1495, 12417, 61, 21680, 1868, 549, 17444, 427, 1868, 5, 31386, 26, 159, 7993, 715, 6827, 13046, 10376, 3430, 1868, 5, 545, 272, 7969, 518, 23394, 1283, 3430, 9526, 1...
How many discs for the complete 4th series?
CREATE TABLE table_17798548_4 (_number_of_discs INTEGER, season VARCHAR)
SELECT MAX(_number_of_discs) FROM table_17798548_4 WHERE season = "The Complete 4th Series"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 4440, 4433, 3707, 834, 591, 41, 834, 5525, 1152, 834, 858, 834, 19315, 7, 3, 21342, 17966, 6, 774, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 5025, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 834, 5525, 1152, 834, 858, 834, 19315, 7, 61, 21680, 953, 834, 2517, 4440, 4433, 3707, 834, 591, 549, 17444, 427, 774, 3274, 96, 634, 9480, 314, 189, 4531, 121, 1, -100, -100, -100, -100, -100, -100, ...
Display a pie chart for how old is the average person for each job?
CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT )
SELECT job, AVG(age) FROM Person GROUP BY job
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 564, 3, 4331, 4059, 599, 1755, 201, 1565, 3, 4331, 4059, 599, 1755, 201, 215, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 613, 6, 71, 17217, 599, 545, 61, 21680, 5780, 350, 4630, 6880, 272, 476, 613, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which Programming language used has a First public release of 1997?
CREATE TABLE table_38278 ( "Name" text, "Creator" text, "Platform / OS" text, "First public release" text, "Latest stable release" text, "Open source" text, "Programming language used" text )
SELECT "Programming language used" FROM table_38278 WHERE "First public release" = '1997'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3747, 357, 3940, 41, 96, 23954, 121, 1499, 6, 96, 254, 60, 1016, 121, 1499, 6, 96, 10146, 2032, 3, 87, 6328, 121, 1499, 6, 96, 25171, 452, 1576, 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, 96, 3174, 16582, 53, 1612, 261, 121, 21680, 953, 834, 3747, 357, 3940, 549, 17444, 427, 96, 25171, 452, 1576, 121, 3274, 3, 31, 2294, 4327, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who was the home team for the game played at Junction Oval?
CREATE TABLE table_name_98 ( home_team VARCHAR, venue VARCHAR )
SELECT home_team FROM table_name_98 WHERE venue = "junction oval"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 234, 834, 11650, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 234, 372, 21, 8, 467, 1944, 44, 29092,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3916, 549, 17444, 427, 5669, 3274, 96, 6959, 4985, 17986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose admission type is emergency and ethnicity is black/african american?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.ethnicity = "BLACK/AFRICAN AMERICAN"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 9, 26, 5451, 834, 6137, 3274, 96, 427, 13098, 18464, 17063, 121, 3430, 14798, 5, 15, 189, 2532, ...
What is the total number of FA Cup Goals, when FLT Goals is greater than 0?
CREATE TABLE table_name_47 (fa_cup_goals VARCHAR, flt_goals INTEGER)
SELECT COUNT(fa_cup_goals) FROM table_name_47 WHERE flt_goals > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 89, 9, 834, 4658, 834, 839, 5405, 584, 4280, 28027, 6, 3, 89, 40, 17, 834, 839, 5405, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 89, 9, 834, 4658, 834, 839, 5405, 61, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 3, 89, 40, 17, 834, 839, 5405, 2490, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is Driver Brendan Gaughan's Pos?
CREATE TABLE table_name_29 (pos VARCHAR, driver VARCHAR)
SELECT pos FROM table_name_29 WHERE driver = "brendan gaughan"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 2748, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 10546, 23506, 29, 12520, 22637, 31, 7, 13995, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 2748, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 2535, 3274, 96, 1999, 29, 3768, 3, 20038, 22637, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the time for georgia
CREATE TABLE table_26842217_10 (time VARCHAR, visiting_team VARCHAR)
SELECT time FROM table_26842217_10 WHERE visiting_team = "Georgia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 4608, 2884, 2517, 834, 1714, 41, 715, 584, 4280, 28027, 6, 3644, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 97, 21, 873, 1677, 23, 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, 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, 2688, 4608, 2884, 2517, 834, 1714, 549, 17444, 427, 3644, 834, 11650, 3274, 96, 517, 15, 1677, 23, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the name of the away team that played Geelong?
CREATE TABLE table_56280 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team" FROM table_56280 WHERE "Home team" = 'geelong'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 17518, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 121, 21680, 953, 834, 4834, 17518, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 397, 15, 2961, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which Constructor has a Grid of 17?
CREATE TABLE table_34662 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Constructor" FROM table_34662 WHERE "Grid" = '17'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3710, 3539, 357, 41, 96, 20982, 52, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 1649, 11809, 26, 121, 1499, 6, 96, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4302, 7593, 127, 121, 21680, 953, 834, 3710, 3539, 357, 549, 17444, 427, 96, 13313, 26, 121, 3274, 3, 31, 2517, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
how many patients less than 80 years have had intravenous infusion of clofarabine procedure?
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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "80" AND procedures.long_title = "Intravenous infusion of clofarabine"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
For those records from the products and each product's manufacturer, show me about the distribution of name and revenue , and group by attribute name in a bar chart.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15248, 7, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 3642, 19973, 584, 4280, 28027, 599, 25502, 201, 3, 19145, 584, 4280, 28027, 599, 25502, 201, 19764, 17833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23954, 6, 332, 4416, 1649, 15098, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 332, 5...
What is the state Yi?
CREATE TABLE table_42716 ( "State" text, "Type" text, "Name" text, "Title" text, "Royal house" text, "From" text )
SELECT "State" FROM table_42716 WHERE "Name" = 'yi'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2555, 2938, 41, 96, 134, 4748, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 23954, 121, 1499, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 448, 32, 63, 138, 629, 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, 134, 4748, 121, 21680, 953, 834, 591, 2555, 2938, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 63, 23, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the points where Toronto was the home team and the game number was larger than 63?
CREATE TABLE table_name_59 (points INTEGER, home VARCHAR, game__number VARCHAR)
SELECT MAX(points) FROM table_name_59 WHERE home = "toronto" AND game__number > 63
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 2700, 7, 3, 21342, 17966, 6, 234, 584, 4280, 28027, 6, 467, 834, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 979,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 234, 3274, 96, 235, 4438, 32, 121, 3430, 467, 834, 834, 5525, 1152, 2490, 3, 3891, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many GICS sectors have a free float of 0.2391?
CREATE TABLE table_23807 ( "BSE Code" text, "Company" text, "City" text, "GICS Sector" text, "Free float" text, "Index weighting (%" text )
SELECT COUNT("GICS Sector") FROM table_23807 WHERE "Free float" = '0.2391'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 2079, 940, 41, 96, 279, 4132, 3636, 121, 1499, 6, 96, 5890, 2837, 63, 121, 1499, 6, 96, 254, 485, 121, 1499, 6, 96, 517, 21202, 17832, 121, 1499, 6, 96, 16393, 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, 2847, 17161, 599, 121, 517, 21202, 17832, 8512, 21680, 953, 834, 2773, 2079, 940, 549, 17444, 427, 96, 16393, 3, 12660, 121, 3274, 3, 31, 18189, 3288, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was the runner-up when the year was 2008?
CREATE TABLE table_name_58 (runner_s__up VARCHAR, year VARCHAR)
SELECT runner_s__up FROM table_name_58 WHERE year = "2008"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 10806, 834, 7, 834, 834, 413, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 3, 10806, 18, 413, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 10806, 834, 7, 834, 834, 413, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 215, 3274, 96, 16128, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What day was the total smaller than 19 at Venue of anz stadium?
CREATE TABLE table_44425 ( "Total" real, "Score" text, "Winning Team" text, "Losing Team" text, "Venue" text, "Date" text )
SELECT "Date" FROM table_44425 WHERE "Total" < '19' AND "Venue" = 'anz stadium'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 3628, 1828, 41, 96, 3696, 1947, 121, 490, 6, 96, 134, 9022, 121, 1499, 6, 96, 518, 10503, 2271, 121, 1499, 6, 96, 434, 32, 7, 53, 2271, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 591, 3628, 1828, 549, 17444, 427, 96, 3696, 1947, 121, 3, 2, 3, 31, 2294, 31, 3430, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 4557, 14939, 31, 1, -100, -100, -100, -100, -100, ...
What is the lowest Polish Cup, when Position is 'Midfielder', when Player is 'Miroslav Radovi ', and when Ekstraklasa is less than 1?
CREATE TABLE table_name_47 ( polish_cup INTEGER, ekstraklasa VARCHAR, position VARCHAR, player VARCHAR )
SELECT MIN(polish_cup) FROM table_name_47 WHERE position = "midfielder" AND player = "miroslav radović" AND ekstraklasa < 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 12535, 834, 4658, 3, 21342, 17966, 6, 3, 16789, 1313, 8142, 7, 9, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 15621, 107, 834, 4658, 61, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 1102, 3274, 96, 6983, 1846, 49, 121, 3430, 1959, 3274, 96, 5884, 32, 17457, 3, 19042, 2099, 2, 121, 3430, 3, 16789, 1313, ...
What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?
CREATE TABLE table_45141 ( "Episode number Production number" text, "Title" text, "Sydney" real, "Melbourne" real, "Brisbane" real, "Adelaide" real, "Perth" real, "TOTAL" real, "WEEKLY RANK" real, "NIGHTLY RANK" real )
SELECT MIN("Sydney") FROM table_45141 WHERE "WEEKLY RANK" < '8' AND "Brisbane" > '252,000'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2128, 26059, 41, 96, 427, 102, 159, 32, 221, 381, 11114, 381, 121, 1499, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 134, 63, 26, 3186, 121, 490, 6, 96, 329, 15, 40, 26255,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 134, 63, 26, 3186, 8512, 21680, 953, 834, 2128, 26059, 549, 17444, 427, 96, 518, 5080, 439, 5121, 3, 16375, 439, 121, 3, 2, 3, 31, 927, 31, 3430, 96, 279, 52, 159, 3478, 15, 121, 2490, 3, 3...
what date did the m3 motorsport team compete at winton motor raceway?
CREATE TABLE table_name_38 ( date VARCHAR, team VARCHAR, circuit VARCHAR )
SELECT date FROM table_name_38 WHERE team = "m3 motorsport" AND circuit = "winton motor raceway"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3747, 41, 833, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 6, 4558, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 833, 410, 8, 3, 51, 519, 2340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 21680, 953, 834, 4350, 834, 3747, 549, 17444, 427, 372, 3274, 96, 51, 519, 2340, 6661, 121, 3430, 4558, 3274, 96, 3757, 17, 106, 2340, 1964, 1343, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Show all advisors and corresponding number of students.
CREATE TABLE Student (advisor VARCHAR)
SELECT advisor, COUNT(*) FROM Student GROUP BY advisor
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6341, 41, 9, 26, 24680, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 3111, 66, 8815, 7, 11, 3, 9921, 381, 13, 481, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8815, 6, 2847, 17161, 599, 1935, 61, 21680, 6341, 350, 4630, 6880, 272, 476, 8815, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?
CREATE TABLE table_55514 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Constructor" FROM table_55514 WHERE "Grid" > '23' AND "Driver" = 'piercarlo ghinzani'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 28803, 2534, 41, 96, 20982, 52, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 1649, 11809, 26, 121, 1499, 6, 96, 13313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4302, 7593, 127, 121, 21680, 953, 834, 28803, 2534, 549, 17444, 427, 96, 13313, 26, 121, 2490, 3, 31, 2773, 31, 3430, 96, 20982, 52, 121, 3274, 3, 31, 8343, 1720, 40, 32, 3, 5649, 29, 10241, 23, 31, 1, -100,...
Give me the comparison about the average of meter_100 over the Nationality , and group by attribute Nationality by a bar chart, and sort by the names from high to low.
CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text )
SELECT Nationality, AVG(meter_100) FROM swimmer GROUP BY Nationality ORDER BY Nationality DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14939, 41, 4699, 16, 17, 6, 564, 1499, 6, 4000, 9, 6726, 16, 17, 6, 896, 1499, 6, 6993, 1499, 6, 20360, 834, 1201, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 868, 485, 6, 71, 17217, 599, 4401, 834, 2915, 61, 21680, 27424, 350, 4630, 6880, 272, 476, 868, 485, 4674, 11300, 272, 476, 868, 485, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total number of interview scores that have an evening gown score of 9.543 and an average that is bigger than 9.521?
CREATE TABLE table_name_59 ( interview INTEGER, evening_gown VARCHAR, average VARCHAR )
SELECT SUM(interview) FROM table_name_59 WHERE evening_gown = 9.543 AND average > 9.521
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 2772, 3, 21342, 17966, 6, 2272, 834, 122, 9197, 584, 4280, 28027, 6, 1348, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 381...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 3870, 4576, 61, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 2272, 834, 122, 9197, 3274, 3, 22321, 4906, 3430, 1348, 2490, 3, 22321, 2658, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the total number of opponent of record 9-2
CREATE TABLE table_17186229_4 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(opponent) FROM table_17186229_4 WHERE record = "9-2"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 2606, 4056, 3166, 834, 591, 41, 32, 102, 9977, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 792, 381, 13, 15264, 13, 1368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 32, 102, 9977, 61, 21680, 953, 834, 2517, 2606, 4056, 3166, 834, 591, 549, 17444, 427, 1368, 3274, 96, 1298, 4949, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the game number when the opposing team was the Buffalo Sabres?
CREATE TABLE table_26104 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real )
SELECT MIN("Game") FROM table_26104 WHERE "Opponent" = 'Buffalo Sabres'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 15442, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 75, 257, 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, 3, 17684, 599, 121, 23055, 8512, 21680, 953, 834, 2688, 15442, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 279, 2999, 138, 32, 11315, 60, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What surface was the April 24, 2003 match played on?
CREATE TABLE table_name_88 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_88 WHERE date = "april 24, 2003"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 26899, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1774, 47, 8, 1186, 14320, 3888, 1588, 1944, 30, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1774, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 833, 3274, 96, 9, 2246, 40, 14320, 3888, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the average of manufacturer , and group by attribute name, I want to show by the X in desc.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23954, 6, 332, 5411, 7296, 76, 8717, 450, 49, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272,...
What car number had 24 points?
CREATE TABLE table_46059 ( "Fin. Pos" text, "Car No." text, "Driver" text, "Team" text, "Laps" text, "Time/Retired" text, "Grid" text, "Laps Led" text, "Points" text )
SELECT "Car No." FROM table_46059 WHERE "Points" = '24'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25991, 3390, 41, 96, 371, 77, 5, 13995, 121, 1499, 6, 96, 6936, 465, 535, 1499, 6, 96, 20982, 52, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 3612, 102, 7, 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, 6936, 465, 535, 21680, 953, 834, 25991, 3390, 549, 17444, 427, 96, 22512, 7, 121, 3274, 3, 31, 2266, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many rounds were won with James Hunt as pole position and John Watson as fastest lap?
CREATE TABLE table_16738 ( "Rnd" real, "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text )
SELECT COUNT("Rnd") FROM table_16738 WHERE "Pole Position" = 'James Hunt' AND "Fastest Lap" = 'John Watson'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27650, 3747, 41, 96, 448, 727, 121, 490, 6, 96, 448, 3302, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 8931, 15, 14258, 121, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 448, 727, 8512, 21680, 953, 834, 27650, 3747, 549, 17444, 427, 96, 8931, 15, 14258, 121, 3274, 3, 31, 683, 9, 2687, 9550, 31, 3430, 96, 371, 9, 7, 4377, 325, 102, 121, 3274, 3, 31, 18300, ...
What is the average Podiums, when Wins is greater than 1, when Races is 2, and when Points is greater than 150?
CREATE TABLE table_name_47 ( podiums INTEGER, points VARCHAR, wins VARCHAR, races VARCHAR )
SELECT AVG(podiums) FROM table_name_47 WHERE wins > 1 AND races = 2 AND points > 150
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 22828, 7, 3, 21342, 17966, 6, 979, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 6, 10879, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 11410, 2552, 7, 61, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 9204, 2490, 209, 3430, 10879, 3274, 204, 3430, 979, 2490, 4261, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is the final score when the opponent is platense?
CREATE TABLE table_name_58 ( final_score VARCHAR, opponent VARCHAR )
SELECT final_score FROM table_name_58 WHERE opponent = "platense"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 804, 834, 7, 9022, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 804, 2604, 116, 8, 15264, 19, 5350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 804, 834, 7, 9022, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 15264, 3274, 96, 17628, 29, 7, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest gold when bronze is 1, and rank is 5?
CREATE TABLE table_name_93 ( gold INTEGER, bronze VARCHAR, rank VARCHAR )
SELECT MAX(gold) FROM table_name_93 WHERE bronze = 1 AND rank = 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 2045, 3, 21342, 17966, 6, 13467, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 2045, 116, 13467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 14910, 61, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 13467, 3274, 209, 3430, 11003, 3274, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model?
CREATE TABLE table_name_50 ( engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR )
SELECT COUNT(engine_capacity) FROM table_name_50 WHERE transmission = "a4" AND mpg_us_urban > 19 AND mpg_us_extra_urban > 38.6 AND model = "aveo"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1752, 41, 1948, 834, 4010, 9, 6726, 584, 4280, 28027, 6, 825, 584, 4280, 28027, 6, 3, 1167, 122, 834, 302, 834, 25666, 834, 19413, 584, 4280, 28027, 6, 5790, 584...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20165, 834, 4010, 9, 6726, 61, 21680, 953, 834, 4350, 834, 1752, 549, 17444, 427, 5790, 3274, 96, 9, 20364, 3430, 3, 1167, 122, 834, 302, 834, 19413, 2490, 957, 3430, 3, 1167, 122, 834, 302, 834, ...
What is number of the train that originated in Secunderabad Junction?
CREATE TABLE table_name_87 (train_no VARCHAR, origin VARCHAR)
SELECT train_no FROM table_name_87 WHERE origin = "secunderabad junction"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4225, 41, 9719, 834, 29, 32, 584, 4280, 28027, 6, 5233, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 381, 13, 8, 2412, 24, 23809, 16, 14969, 724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2412, 834, 29, 32, 21680, 953, 834, 4350, 834, 4225, 549, 17444, 427, 5233, 3274, 96, 7549, 7248, 9, 5514, 23704, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What home team played against south Melbourne?
CREATE TABLE table_name_54 ( home_team VARCHAR, away_team VARCHAR )
SELECT home_team FROM table_name_54 WHERE away_team = "south melbourne"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 234, 834, 11650, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 234, 372, 1944, 581, 3414, 9396, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 550, 834, 11650, 3274, 96, 7, 670, 107, 3, 2341, 26255, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the sum of pick# for Don Majkowski?3
CREATE TABLE table_name_26 (pick__number INTEGER, player VARCHAR)
SELECT SUM(pick__number) FROM table_name_26 WHERE player = "don majkowski"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 17967, 834, 834, 5525, 1152, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4505, 13, 1432, 4663, 21, 1008, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 17967, 834, 834, 5525, 1152, 61, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 1959, 3274, 96, 2029, 3, 16547, 27077, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR)
SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 354, 23, 152, 14279, 3, 21342, 17966, 6, 11003, 584, 4280, 28027, 6, 3, 1824, 23, 1468, 14279, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 354, 23, 152, 14279, 61, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 11003, 3, 2, 204, 3430, 3, 1824, 23, 1468, 14279, 3, 2, 5835, 4433, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket?
CREATE TABLE table_name_73 ( prohibition_ticket VARCHAR, greenback_ticket VARCHAR )
SELECT prohibition_ticket FROM table_name_73 WHERE greenback_ticket = "thomas armstrong"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 30693, 834, 26639, 584, 4280, 28027, 6, 1442, 1549, 834, 26639, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 30, 8, 749, 13506, 1575...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30693, 834, 26639, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 1442, 1549, 834, 26639, 3274, 96, 189, 32, 2754, 2939, 25866, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the city of license with resolution of sd 480i and official website of telemundo.com
CREATE TABLE table_name_34 ( city_of_license VARCHAR, resolution VARCHAR, official_website VARCHAR )
SELECT city_of_license FROM table_name_34 WHERE resolution = "sd 480i" AND official_website = "telemundo.com"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 690, 834, 858, 834, 28062, 584, 4280, 28027, 6, 3161, 584, 4280, 28027, 6, 2314, 834, 8398, 3585, 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, 690, 834, 858, 834, 28062, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 3161, 3274, 96, 7, 26, 3, 20579, 23, 121, 3430, 2314, 834, 8398, 3585, 3274, 96, 1931, 51, 1106, 32, 5, 287, 121, 1, -100, -100, -100, ...
Farr Yacht Design designed boats for how many country/flags?
CREATE TABLE table_23388 ( "Team & Boat name" text, "Sail no." text, "Flag" text, "Design Firm" text, "Builder" text, "Skipper" text )
SELECT COUNT("Flag") FROM table_23388 WHERE "Design Firm" = 'Farr Yacht Design'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20879, 4060, 41, 96, 18699, 3, 184, 17733, 564, 121, 1499, 6, 96, 134, 9, 173, 150, 535, 1499, 6, 96, 371, 5430, 121, 1499, 6, 96, 19103, 13530, 121, 1499, 6, 96, 24752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 371, 5430, 8512, 21680, 953, 834, 20879, 4060, 549, 17444, 427, 96, 19103, 13530, 121, 3274, 3, 31, 371, 291, 52, 26397, 1642, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose insurance is private and admission year is less than 2165?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admityear < "2165"
[ 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, 29441, 3274, 96, 7855, 208, 342, 121, 3430, 14798, 5, 20466, 17, 1201, 3, 2, 96, 27184, 17395, 1...
What is the poor law union when the townland is bohonagh?
CREATE TABLE table_30121075_1 (poor_law_union VARCHAR, townland VARCHAR)
SELECT poor_law_union FROM table_30121075_1 WHERE townland = "Bohonagh"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25626, 15239, 3072, 834, 536, 41, 18450, 52, 834, 4207, 834, 16598, 584, 4280, 28027, 6, 1511, 40, 232, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2714,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2714, 834, 4207, 834, 16598, 21680, 953, 834, 25626, 15239, 3072, 834, 536, 549, 17444, 427, 1511, 40, 232, 3274, 96, 279, 32, 107, 106, 18583, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What grand prix was held at Granollers?
CREATE TABLE table_name_32 (designated_grand_prix VARCHAR, track VARCHAR)
SELECT designated_grand_prix FROM table_name_32 WHERE track = "granollers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 9124, 920, 834, 15448, 834, 2246, 226, 584, 4280, 28027, 6, 1463, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1907, 3407, 47, 1213, 44, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 9943, 834, 15448, 834, 2246, 226, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 1463, 3274, 96, 7662, 32, 195, 277, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Who was the opponent in the final of the Senegal f2 tournament>
CREATE TABLE table_65798 ( "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponent in the final" text, "Score in the final" text )
SELECT "Opponent in the final" FROM table_65798 WHERE "Tournament" = 'senegal f2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 3436, 3916, 41, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 13725, 687, 121, 1499, 6, 96, 667, 102, 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, 667, 102, 9977, 16, 8, 804, 121, 21680, 953, 834, 948, 3436, 3916, 549, 17444, 427, 96, 382, 1211, 20205, 17, 121, 3274, 3, 31, 7, 35, 15, 6191, 3, 89, 357, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
Tell me the bullet tip color of headstamp id of h1z
CREATE TABLE table_31617 ( "Headstamp ID" text, "Primer Annulus Color" text, "Bullet Tip Color" text, "Other Features" text, "Functional Type" text )
SELECT "Bullet Tip Color" FROM table_31617 WHERE "Headstamp ID" = 'h1z'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25946, 2517, 41, 96, 3845, 9, 26, 7, 17, 4624, 4699, 121, 1499, 6, 96, 7855, 935, 6206, 83, 302, 6088, 121, 1499, 6, 96, 279, 83, 1655, 2262, 102, 6088, 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, 279, 83, 1655, 2262, 102, 6088, 121, 21680, 953, 834, 25946, 2517, 549, 17444, 427, 96, 3845, 9, 26, 7, 17, 4624, 4699, 121, 3274, 3, 31, 107, 536, 172, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of patients whose admission year is less than 2166 and drug name is glipizide?
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 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2166" AND prescriptions.drug = "Glipizide"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What was the score for the away team when they played at lake oval?
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2518, 41, 8006, 834, 11650, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 21, 8, 550, 372, 116, 79, 1944, 44,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 550, 834, 11650, 6157, 2604, 21680, 953, 834, 4350, 834, 2518, 549, 17444, 427, 5669, 3274, 96, 16948, 17986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the time/retired for grid 8?
CREATE TABLE table_32883 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Time/Retired" FROM table_32883 WHERE "Grid" = '8'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 28070, 4591, 41, 96, 20982, 52, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 1649, 11809, 26, 121, 1499, 6, 96, 13313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 13368, 87, 1649, 11809, 26, 121, 21680, 953, 834, 28070, 4591, 549, 17444, 427, 96, 13313, 26, 121, 3274, 3, 31, 927, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many games played for the team with 48 points?
CREATE TABLE table_21048 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Points" text )
SELECT "Played" FROM table_21048 WHERE "Points" = '48'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15239, 3707, 41, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 1499, 6, 96, 518, 106, 121, 1499, 6, 96, 308, 10936, 29, 121, 1499, 6, 96, 434, 3481, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15800, 15, 26, 121, 21680, 953, 834, 15239, 3707, 549, 17444, 427, 96, 22512, 7, 121, 3274, 3, 31, 3707, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the sum of the stand with a qual more than 589?
CREATE TABLE table_name_31 ( stand INTEGER, qual INTEGER )
SELECT SUM(stand) FROM table_name_31 WHERE qual > 589
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 1518, 3, 21342, 17966, 6, 3, 11433, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4505, 13, 8, 1518, 28, 3, 9, 3, 11433, 72, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 2976, 61, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 3, 11433, 2490, 305, 3914, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
have a history of cyanotic heart disease or congestive heart failure
CREATE TABLE table_train_11 ( "id" int, "pregnancy_or_lactation" bool, "severe_sepsis" bool, "active_infection" bool, "heart_disease" bool, "body_weight" float, "septic_shock" bool, "serum_aminotransferase_level_alt_ast" int, "NOUSE" float )
SELECT * FROM table_train_11 WHERE heart_disease = 1 OR heart_disease = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9719, 834, 2596, 41, 96, 23, 26, 121, 16, 17, 6, 96, 2026, 11260, 11298, 834, 127, 834, 9700, 6821, 121, 3, 12840, 40, 6, 96, 7, 3258, 15, 834, 7, 15, 102, 7, 159, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1429, 21680, 953, 834, 9719, 834, 2596, 549, 17444, 427, 842, 834, 26, 159, 14608, 3274, 209, 4674, 842, 834, 26, 159, 14608, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What Competition had a game on October 31, 1979?
CREATE TABLE table_5369 ( "Date" text, "Result" text, "Score" text, "Brazil scorers" text, "Competition" text )
SELECT "Competition" FROM table_5369 WHERE "Date" = 'october 31, 1979'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 3951, 41, 96, 308, 342, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 279, 7275, 173, 14056, 277, 121, 1499, 6, 96, 5890, 4995, 4749, 121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 5890, 4995, 4749, 121, 21680, 953, 834, 4867, 3951, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 32, 75, 235, 1152, 12074, 15393, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
did the wycombe wanderers have more or less points than the plymouth argyle ?
CREATE TABLE table_203_620 ( id number, "tie no" number, "home team" text, "score" text, "away team" text, "attendance" number )
SELECT (SELECT "score" FROM table_203_620 WHERE "home team" = 'wycombe wanderers') > (SELECT "score" FROM table_203_620 WHERE "home team" = 'plymouth argyle')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 26898, 41, 3, 23, 26, 381, 6, 96, 17, 23, 15, 150, 121, 381, 6, 96, 5515, 372, 121, 1499, 6, 96, 7, 9022, 121, 1499, 6, 96, 8006, 372, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 41, 23143, 14196, 96, 7, 9022, 121, 21680, 953, 834, 23330, 834, 26898, 549, 17444, 427, 96, 5515, 372, 121, 3274, 3, 31, 210, 63, 9763, 15, 10735, 277, 31, 61, 2490, 41, 23143, 14196, 96, 7, 9022, 121, 21680, 953...
What is W/m , when (%) is greater than 16.5, and when Technology is MJ?
CREATE TABLE table_name_60 ( w_m² VARCHAR, η___percentage_ VARCHAR, technology VARCHAR )
SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = "mj"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 3, 210, 834, 51, 357, 584, 4280, 28027, 6, 3, 2, 834, 834, 834, 883, 3728, 545, 834, 584, 4280, 28027, 6, 748, 584, 4280, 28027, 3, 61, 3, 32102, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 210, 834, 51, 357, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 3, 2, 834, 834, 834, 883, 3728, 545, 834, 2490, 209, 17255, 3430, 748, 3274, 96, 51, 354, 121, 1, -100, -100, -100, -100, -100, -100, -100, ...
how many schools left the genesee county b league before ainsworth ?
CREATE TABLE table_203_591 ( id number, "high school" text, "join\nyear" text, "from" text, "left" text, "league left to" text )
SELECT COUNT("high school") FROM table_203_591 WHERE "left" < (SELECT "left" FROM table_203_591 WHERE "high school" = 'ainsworth')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 3390, 536, 41, 3, 23, 26, 381, 6, 96, 6739, 496, 121, 1499, 6, 96, 1927, 77, 2, 29, 1201, 121, 1499, 6, 96, 7152, 121, 1499, 6, 96, 17068, 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, 2847, 17161, 599, 121, 6739, 496, 8512, 21680, 953, 834, 23330, 834, 3390, 536, 549, 17444, 427, 96, 17068, 121, 3, 2, 41, 23143, 14196, 96, 17068, 121, 21680, 953, 834, 23330, 834, 3390, 536, 549, 17444, 427, 96, 6...
Find meter_300 and ID , and visualize them by a bar chart.
CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text )
SELECT meter_300, ID FROM swimmer
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14939, 41, 4699, 16, 17, 6, 564, 1499, 6, 4000, 9, 6726, 16, 17, 6, 896, 1499, 6, 6993, 1499, 6, 20360, 834, 1201, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 4401, 834, 5426, 6, 4699, 21680, 27424, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is procedure short title of procedure icd9 code 92?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT procedures.short_title FROM procedures WHERE procedures.icd9_code = "92"
[ 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, 4293, 5, 7, 14184, 834, 21869, 21680, 4293, 549, 17444, 427, 4293, 5, 447, 26, 1298, 834, 4978, 3274, 96, 4508, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What were the home team scores when carlton was the home team?
CREATE TABLE table_16388478_2 ( home_team VARCHAR )
SELECT home_team AS score FROM table_16388478_2 WHERE home_team = "Carlton"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2938, 3747, 4608, 3940, 834, 357, 41, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 130, 8, 234, 372, 7586, 116, 443, 7377, 47, 8, 234, 372,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 234, 834, 11650, 6157, 2604, 21680, 953, 834, 2938, 3747, 4608, 3940, 834, 357, 549, 17444, 427, 234, 834, 11650, 3274, 96, 30339, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Region, when the Catalog is 25AP 301?
CREATE TABLE table_48239 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT "Region" FROM table_48239 WHERE "Catalog" = '25ap 301'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3707, 357, 3288, 41, 96, 17748, 23, 106, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 434, 10333, 121, 1499, 6, 96, 3809, 3357, 121, 1499, 6, 96, 18610, 9, 2152, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17748, 23, 106, 121, 21680, 953, 834, 3707, 357, 3288, 549, 17444, 427, 96, 18610, 9, 2152, 121, 3274, 3, 31, 1828, 9, 102, 3, 25626, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What venue had a competition of World Junior Championships before 2011?
CREATE TABLE table_name_29 ( venue VARCHAR, year VARCHAR, competition VARCHAR )
SELECT venue FROM table_name_29 WHERE year < 2011 AND competition = "world junior championships"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 5669, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 2259, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 5669, 141, 3, 9, 2259, 13, 1150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5669, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 215, 3, 2, 2722, 3430, 2259, 3274, 96, 7276, 9212, 10183, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many members were in the group that sold 65 million albums and singles?
CREATE TABLE table_19439814_1 ( members VARCHAR, sold__albums_and_singles_ VARCHAR )
SELECT members FROM table_19439814_1 WHERE sold__albums_and_singles_ = "65 million"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 4906, 3916, 2534, 834, 536, 41, 724, 584, 4280, 28027, 6, 1916, 834, 834, 23703, 7, 834, 232, 834, 7, 53, 965, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 724, 21680, 953, 834, 2294, 4906, 3916, 2534, 834, 536, 549, 17444, 427, 1916, 834, 834, 23703, 7, 834, 232, 834, 7, 53, 965, 834, 3274, 96, 4122, 770, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are all the employee ids and the names of the countries in which they work. Visualize by bar chart.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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 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 countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 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, 2847, 17161, 11824, 834, 567, 17683, 6, 180, 6122, 599, 6037, 345, 5017, 476, 5080, 834, 4309, 61, 21680, 1652, 6157, 332, 536, 3, 15355, 3162, 10521, 6157, 332, 357, 9191, 332, 5411, 5596, 19846, 11810, 834, 4309, 32...
What is the fate of the ship on 26 April 1942?
CREATE TABLE table_12240 ( "Date" text, "Ship" text, "Nationality" text, "Tonnage" real, "Fate" text )
SELECT "Fate" FROM table_12240 WHERE "Date" = '26 april 1942'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 11944, 41, 96, 308, 342, 121, 1499, 6, 96, 134, 10462, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 382, 106, 9761, 121, 490, 6, 96, 371, 342, 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, 0...
[ 3, 23143, 14196, 96, 371, 342, 121, 21680, 953, 834, 2122, 11944, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 2688, 3, 9, 2246, 40, 24466, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5?
CREATE TABLE table_38956 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real )
SELECT SUM("Extra points") FROM table_38956 WHERE "Touchdowns" = '1' AND "Player" = 'ross kidston' AND "Points" < '5'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3914, 4834, 41, 96, 15800, 49, 121, 1499, 6, 96, 3696, 2295, 3035, 7, 121, 490, 6, 96, 5420, 1313, 979, 121, 490, 6, 96, 3183, 8804, 1766, 121, 490, 6, 96, 22512, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5420, 1313, 979, 8512, 21680, 953, 834, 519, 3914, 4834, 549, 17444, 427, 96, 3696, 2295, 3035, 7, 121, 3274, 3, 31, 536, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31, 1859, 7, 4984, 4411, 31, ...
Namw the minimum production code for 16.04 million viewers
CREATE TABLE table_14845640_1 ( production_code INTEGER, us_viewers__millions_ VARCHAR )
SELECT MIN(production_code) FROM table_14845640_1 WHERE us_viewers__millions_ = "16.04"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24748, 2128, 23714, 834, 536, 41, 999, 834, 4978, 3, 21342, 17966, 6, 178, 834, 4576, 277, 834, 834, 17030, 7, 834, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 20762, 834, 4978, 61, 21680, 953, 834, 24748, 2128, 23714, 834, 536, 549, 17444, 427, 178, 834, 4576, 277, 834, 834, 17030, 7, 834, 3274, 96, 2938, 5, 6348, 121, 1, -100, -100, -100, -100, -100, -100,...
What is the NBA Draft status of the person who went to college at LSU?
CREATE TABLE table_54860 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text )
SELECT "NBA Draft" FROM table_54860 WHERE "College" = 'lsu'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3707, 3328, 41, 96, 15800, 49, 121, 1499, 6, 96, 3845, 2632, 121, 1499, 6, 96, 29364, 121, 1499, 6, 96, 19040, 3540, 121, 1499, 6, 96, 9939, 7883, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 567, 4882, 21409, 121, 21680, 953, 834, 755, 3707, 3328, 549, 17444, 427, 96, 9939, 7883, 121, 3274, 3, 31, 40, 7, 76, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Can you tell me the sum of Podiums that has the Season of 2006, and the Races larger than 16?
CREATE TABLE table_38802 ( "Season" text, "Races" real, "Podiums" real, "Pole" real, "FLap" real )
SELECT SUM("Podiums") FROM table_38802 WHERE "Season" = '2006' AND "Races" > '16'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3747, 2079, 357, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 448, 9, 2319, 121, 490, 6, 96, 16665, 2552, 7, 121, 490, 6, 96, 8931, 15, 121, 490, 6, 96, 10765, 9, 102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16665, 2552, 7, 8512, 21680, 953, 834, 3747, 2079, 357, 549, 17444, 427, 96, 134, 15, 9, 739, 121, 3274, 3, 31, 21196, 31, 3430, 96, 448, 9, 2319, 121, 2490, 3, 31, 2938, 31, 1, -100, -100, ...
How many heats did Runners from Guinea-Bissau run, with rank higher than 33?
CREATE TABLE table_name_78 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT SUM(heat) FROM table_name_78 WHERE nationality = "guinea-bissau" AND rank < 33
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 88, 144, 3, 21342, 17966, 6, 1157, 485, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1678, 7, 410, 3, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 88, 144, 61, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 1157, 485, 3274, 96, 17996, 15, 9, 18, 11514, 7348, 121, 3430, 11003, 3, 2, 5400, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
When did the Texans play BYE?
CREATE TABLE table_name_8 ( date VARCHAR, opponent VARCHAR )
SELECT date FROM table_name_8 WHERE opponent = "bye"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 833, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 410, 8, 3, 13598, 3247, 577, 272, 476, 427, 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, 833, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 15264, 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, -100, -1...
Name the total number for number in series that got 3.62 viewers
CREATE TABLE table_18569389_1 ( no_in_series VARCHAR, us_viewers__million_ VARCHAR )
SELECT COUNT(no_in_series) FROM table_18569389_1 WHERE us_viewers__million_ = "3.62"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 4834, 4271, 3914, 834, 536, 41, 150, 834, 77, 834, 10833, 7, 584, 4280, 28027, 6, 178, 834, 4576, 277, 834, 834, 17030, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 29, 32, 834, 77, 834, 10833, 7, 61, 21680, 953, 834, 2606, 4834, 4271, 3914, 834, 536, 549, 17444, 427, 178, 834, 4576, 277, 834, 834, 17030, 834, 3274, 96, 23074, 357, 121, 1, -100, -100, -100, ...
What's the 2012 during Wimbledon and had a Q3 in 2008?
CREATE TABLE table_62842 ( "Tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2012" FROM table_62842 WHERE "2008" = 'q3' AND "Tournament" = 'wimbledon'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4056, 4608, 357, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 16128, 121, 1499, 6, 96, 16660, 121, 1499, 6, 96, 14926, 121, 1499, 6, 96, 13907, 121, 1499, 6, 96, 12172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12172, 121, 21680, 953, 834, 4056, 4608, 357, 549, 17444, 427, 96, 16128, 121, 3274, 3, 31, 1824, 519, 31, 3430, 96, 382, 1211, 20205, 17, 121, 3274, 3, 31, 210, 603, 2296, 2029, 31, 1, -100, -100, -100, -100,...