NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
what is minimum age of patients whose primary disease is bladder cancer/sda and admission year is greater than or equal to 2107?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA" AND demographic.admityear >= "2107"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 8775, 6762, 11300, 205, 15083, 448, 87, 134, 4296, 121, 3430, 14798, 5, 20466, 17, 1201, 2490, 2423, 96, 3...
How many asian rank have 1 as a mideast rank?
CREATE TABLE table_2248784_4 (rank_asia VARCHAR, rank_mideast VARCHAR)
SELECT COUNT(rank_asia) FROM table_2248784_4 WHERE rank_mideast = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24622, 4225, 4608, 834, 591, 41, 6254, 834, 15974, 584, 4280, 28027, 6, 11003, 834, 6983, 11535, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 3, 9, 10488, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 6254, 834, 15974, 61, 21680, 953, 834, 24622, 4225, 4608, 834, 591, 549, 17444, 427, 11003, 834, 6983, 11535, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the pick of player don waddell from round 7?
CREATE TABLE table_name_96 ( pick VARCHAR, round VARCHAR, player VARCHAR )
SELECT pick FROM table_name_96 WHERE round = "7" AND player = "don waddell"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4314, 41, 1432, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1432, 13, 1959, 278, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1432, 21680, 953, 834, 4350, 834, 4314, 549, 17444, 427, 1751, 3274, 96, 940, 121, 3430, 1959, 3274, 96, 2029, 3, 210, 13039, 3820, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who is the player with more than $6,570,797 in earnings and less than 27 wins?
CREATE TABLE table_52668 ( "Rank" real, "Player" text, "Country" text, "Earnings( $ )" real, "Wins" real )
SELECT "Player" FROM table_52668 WHERE "Earnings( $ )" > '6,570,797' AND "Wins" < '27'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2688, 3651, 41, 96, 22557, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 427, 291, 29, 53, 7, 599, 1514, 3, 61, 121, 490, 6, 96, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15800, 49, 121, 21680, 953, 834, 755, 2688, 3651, 549, 17444, 427, 96, 427, 291, 29, 53, 7, 599, 1514, 3, 61, 121, 2490, 3, 31, 11071, 28363, 6, 940, 4327, 31, 3430, 96, 18455, 7, 121, 3, 2, 3, 31, 2555, ...
did patient 027-165214 actually undergo any test labs since 2105?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time )
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-165214')) AND STRFTIME('%y', lab.labresulttime) >= '2105'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1058, 41, 1058, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1058, 4350, 1499, 6, 1058, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 583, 41, 583, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 2490, 3, 632, 21680, 7690, 549, 17444, 427, 7690, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 10061,...
let me know the number of male patients with upper gi bleed primary disease.
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.diagnosis = "UPPER GI BLEED"
[ 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, 25930, 4844, 159, 3274, 96, 6880, 8742, 3, 7214, ...
What is the tie number in the game on 5 January 1986 where Exeter City is the away team?
CREATE TABLE table_name_26 ( tie_no VARCHAR, date VARCHAR, away_team VARCHAR )
SELECT tie_no FROM table_name_26 WHERE date = "5 january 1986" AND away_team = "exeter city"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 6177, 834, 29, 32, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 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, 0, 0, 0...
[ 3, 23143, 14196, 6177, 834, 29, 32, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 833, 3274, 96, 755, 3, 7066, 76, 1208, 12698, 121, 3430, 550, 834, 11650, 3274, 96, 6667, 449, 690, 121, 1, -100, -100, -100, -100, -100, -100, ...
What away is there for the q3 round?
CREATE TABLE table_name_68 ( away VARCHAR, round VARCHAR )
SELECT away FROM table_name_68 WHERE round = "q3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 550, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 550, 19, 132, 21, 8, 3, 1824, 519, 1751, 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, 550, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 1751, 3274, 96, 1824, 519, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which player attended Hoover High School?
CREATE TABLE table_55874 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text )
SELECT "Player" FROM table_55874 WHERE "School" = 'hoover high school'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 4225, 591, 41, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 29364, 121, 1499, 6, 96, 19040, 3540, 121, 1499, 6, 96, 9939, 7883, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 96, 15800, 49, 121, 21680, 953, 834, 3769, 4225, 591, 549, 17444, 427, 96, 29364, 121, 3274, 3, 31, 107, 32, 1890, 306, 496, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is Season, when Races is less than 16?
CREATE TABLE table_44452 ( "Season" text, "Races" real, "Wins" real, "Podiums" real, "Poles" real )
SELECT "Season" FROM table_44452 WHERE "Races" < '16'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3628, 2128, 357, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 448, 9, 2319, 121, 490, 6, 96, 18455, 7, 121, 490, 6, 96, 16665, 2552, 7, 121, 490, 6, 96, 8931, 15, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 15, 9, 739, 121, 21680, 953, 834, 3628, 2128, 357, 549, 17444, 427, 96, 448, 9, 2319, 121, 3, 2, 3, 31, 2938, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List all payment methods and number of payments using each payment methods with a pie chart.
CREATE TABLE Lessons ( lesson_id INTEGER, customer_id INTEGER, lesson_status_code VARCHAR(15), staff_id INTEGER, vehicle_id INTEGER, lesson_date DATETIME, lesson_time VARCHAR(10), price DOUBLE ) CREATE TABLE Customer_Payments ( customer_id INTEGER, datetime_payment DATETIME, payment_method_code VARCHAR(10), amount_payment DOUBLE ) CREATE TABLE Customers ( customer_id INTEGER, customer_address_id INTEGER, customer_status_code VARCHAR(15), date_became_customer DATETIME, date_of_birth DATETIME, first_name VARCHAR(80), last_name VARCHAR(80), amount_outstanding DOUBLE, email_address VARCHAR(250), phone_number VARCHAR(255), cell_mobile_phone_number VARCHAR(255) ) CREATE TABLE Addresses ( address_id INTEGER, line_1_number_building VARCHAR(80), city VARCHAR(50), zip_postcode VARCHAR(20), state_province_county VARCHAR(50), country VARCHAR(50) ) CREATE TABLE Vehicles ( vehicle_id INTEGER, vehicle_details VARCHAR(255) ) CREATE TABLE Staff ( staff_id INTEGER, staff_address_id INTEGER, nickname VARCHAR(80), first_name VARCHAR(80), middle_name VARCHAR(80), last_name VARCHAR(80), date_of_birth DATETIME, date_joined_staff DATETIME, date_left_staff DATETIME )
SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 622, 6577, 41, 6114, 834, 23, 26, 3, 21342, 17966, 6, 884, 834, 23, 26, 3, 21342, 17966, 6, 6114, 834, 8547, 302, 834, 4978, 584, 4280, 28027, 599, 1808, 201, 871, 834, 23, 26, 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, 1942, 834, 23152, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 7327, 834, 19702, 4128, 350, 4630, 6880, 272, 476, 1942, 834, 23152, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Seasons have Entries larger than 52, and Poles of 33?
CREATE TABLE table_name_28 (seasons VARCHAR, entries VARCHAR, poles VARCHAR)
SELECT seasons FROM table_name_28 WHERE entries > 52 AND poles = 33
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 9476, 7, 584, 4280, 28027, 6, 10066, 584, 4280, 28027, 6, 11148, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 7960, 7, 43, 695, 9000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 9385, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 10066, 2490, 9065, 3430, 11148, 7, 3274, 5400, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
how many days did the attendance not reach 10,000 ?
CREATE TABLE table_203_336 ( id number, "#" number, "date" text, "opponent" text, "score" text, "win" text, "loss" text, "save" text, "attendance" number, "record" text )
SELECT COUNT("date") FROM table_203_336 WHERE "attendance" < 10000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 519, 3420, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 5522, 121, 1499, 6, 96, 32, 102, 9977, 121, 1499, 6, 96, 7, 9022, 121, 1499, 6, 96, 3757, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 5522, 8512, 21680, 953, 834, 23330, 834, 519, 3420, 549, 17444, 427, 96, 15116, 663, 121, 3, 2, 335, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
In the Open Championship with more than 3 cuts made, what is the average wins?
CREATE TABLE table_63120 ( "Tournament" text, "Wins" real, "Top-5" real, "Events" real, "Cuts made" real )
SELECT AVG("Wins") FROM table_63120 WHERE "Tournament" = 'the open championship' AND "Cuts made" > '3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3891, 15518, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 18455, 7, 121, 490, 6, 96, 22481, 18, 17395, 490, 6, 96, 427, 2169, 7, 121, 490, 6, 96, 15784, 17, 7, 263, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18455, 7, 8512, 21680, 953, 834, 3891, 15518, 549, 17444, 427, 96, 382, 1211, 20205, 17, 121, 3274, 3, 31, 532, 539, 10183, 31, 3430, 96, 15784, 17, 7, 263, 121, 2490, 3, 31, 519, 31, 1, -10...
what is the right ascension (j2000) when the apparent magnitude is 13?
CREATE TABLE table_55922 ( "NGC number" real, "Object type" text, "Constellation" text, "Right ascension ( J2000 )" text, "Declination ( J2000 )" text, "Apparent magnitude" real )
SELECT "Right ascension ( J2000 )" FROM table_55922 WHERE "Apparent magnitude" = '13'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 4508, 357, 41, 96, 12531, 254, 381, 121, 490, 6, 96, 17057, 686, 121, 1499, 6, 96, 4302, 7, 6714, 257, 121, 1499, 6, 96, 448, 2632, 38, 75, 35, 1938, 41, 446, 135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 448, 2632, 38, 75, 35, 1938, 41, 446, 13527, 3, 61, 121, 21680, 953, 834, 3769, 4508, 357, 549, 17444, 427, 96, 9648, 9, 5320, 20722, 121, 3274, 3, 31, 2368, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
What was the production code of the episode no. 55 in the series?
CREATE TABLE table_27776266_1 ( production_code VARCHAR, no_in_series VARCHAR )
SELECT production_code FROM table_27776266_1 WHERE no_in_series = 55
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4013, 4056, 3539, 834, 536, 41, 999, 834, 4978, 584, 4280, 28027, 6, 150, 834, 77, 834, 10833, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 999, 834, 4978, 21680, 953, 834, 2555, 4013, 4056, 3539, 834, 536, 549, 17444, 427, 150, 834, 77, 834, 10833, 7, 3274, 6897, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many millions of people in the US watched the episode with season number 8?
CREATE TABLE table_19925114_1 ( us_viewers__millions_ VARCHAR, no_in_season VARCHAR )
SELECT us_viewers__millions_ FROM table_19925114_1 WHERE no_in_season = 8
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19479, 1828, 18959, 834, 536, 41, 178, 834, 4576, 277, 834, 834, 17030, 7, 834, 584, 4280, 28027, 6, 150, 834, 77, 834, 9476, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 178, 834, 4576, 277, 834, 834, 17030, 7, 834, 21680, 953, 834, 19479, 1828, 18959, 834, 536, 549, 17444, 427, 150, 834, 77, 834, 9476, 3274, 505, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the minimum enrollment for montana tech of the university of montana
CREATE TABLE table_15851155_1 ( enrollment INTEGER, school VARCHAR )
SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = "Montana Tech of the University of Montana"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26556, 5553, 20896, 834, 536, 41, 17938, 3, 21342, 17966, 6, 496, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 2559, 17938, 21, 6278, 152, 9, 5256, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 35, 4046, 297, 61, 21680, 953, 834, 26556, 5553, 20896, 834, 536, 549, 17444, 427, 496, 3274, 96, 9168, 17, 152, 9, 7130, 13, 8, 636, 13, 16751, 121, 1, -100, -100, -100, -100, -100, -100, -100, -10...
what's the position where player is williams, bernie bernie williams
CREATE TABLE table_11734041_20 (position VARCHAR, player VARCHAR)
SELECT position FROM table_11734041_20 WHERE player = "Williams, Bernie Bernie Williams"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20275, 21129, 4853, 834, 1755, 41, 4718, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 31, 7, 8, 1102, 213, 1959, 19, 56, 23, 265, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 20275, 21129, 4853, 834, 1755, 549, 17444, 427, 1959, 3274, 96, 518, 1092, 23, 265, 7, 6, 29017, 29017, 6060, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?
CREATE TABLE table_name_45 (general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)
SELECT general_classification FROM table_name_45 WHERE mountains_classification = "david de la fuente" AND points_classification = "thor hushovd"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2128, 41, 27369, 834, 4057, 2420, 584, 4280, 28027, 6, 8022, 834, 4057, 2420, 584, 4280, 28027, 6, 979, 834, 4057, 2420, 584, 4280, 28027, 61, 3, 32102, 32103, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 879, 834, 4057, 2420, 21680, 953, 834, 4350, 834, 2128, 549, 17444, 427, 8022, 834, 4057, 2420, 3274, 96, 26, 9, 6961, 20, 50, 7683, 4617, 121, 3430, 979, 834, 4057, 2420, 3274, 96, 189, 127, 3, 11823, 23304, 26, ...
What day did Collingwood play as the home team?
CREATE TABLE table_53282 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Date" FROM table_53282 WHERE "Home team" = 'collingwood'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 2577, 357, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 4867, 2577, 357, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 3297, 697, 2037, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the date of Gavril Radomir's Bulgarian Victory?
CREATE TABLE table_name_15 ( date VARCHAR, result VARCHAR, bulgarian_commander VARCHAR )
SELECT date FROM table_name_15 WHERE result = "bulgarian victory" AND bulgarian_commander = "gavril radomir"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1808, 41, 833, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 25876, 6855, 834, 13695, 49, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 1808, 549, 17444, 427, 741, 3274, 96, 6724, 122, 6855, 6224, 121, 3430, 25876, 6855, 834, 13695, 49, 3274, 96, 122, 31371, 3, 19042, 5884, 121, 1, -100, -100, -100, -100, -100, -100, ...
Which player went to college at Tennessee-Chattanooga?
CREATE TABLE table_name_7 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_7 WHERE college = "tennessee-chattanooga"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 940, 41, 20846, 584, 4280, 28027, 6, 1900, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1959, 877, 12, 1900, 44, 12976, 18, 3541, 14748, 29, 32, 1991...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 4350, 834, 940, 549, 17444, 427, 1900, 3274, 96, 324, 655, 15, 15, 18, 16842, 17, 152, 32, 19914, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What vehicle has an epa highway fuel economy of 109 mpg-e?
CREATE TABLE table_20549371_3 (vehicle VARCHAR, epa_rated_highway_fuel_economy VARCHAR)
SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = "109 mpg-e"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1755, 5062, 4271, 4450, 834, 519, 41, 162, 107, 23, 2482, 584, 4280, 28027, 6, 3, 15, 102, 9, 834, 4094, 834, 6739, 1343, 834, 21692, 834, 15, 12036, 63, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1689, 21680, 953, 834, 1755, 5062, 4271, 4450, 834, 519, 549, 17444, 427, 3, 15, 102, 9, 834, 4094, 834, 6739, 1343, 834, 21692, 834, 15, 12036, 63, 3274, 96, 17304, 3, 1167, 122, 18, 15, 121, 1, -100, -100, -100,...
Which Surface has an Opponent of kerry melville reid, and a Score of 6 3, 2 6, 3 6?
CREATE TABLE table_36784 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT "Surface" FROM table_36784 WHERE "Opponent" = 'kerry melville reid' AND "Score" = '6–3, 2–6, 3–6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3420, 3940, 591, 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, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 450, 4861, 121, 21680, 953, 834, 3420, 3940, 591, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 2304, 651, 3, 2341, 1420, 3, 60, 23, 26, 31, 3430, 96, 134, 9022, 121, 3274, 3, 31, 948, 104, 6...
how many swimmers from china participated in the race ?
CREATE TABLE table_204_422 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" text, "notes" text )
SELECT COUNT("name") FROM table_204_422 WHERE "nationality" = 'china'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 4165, 357, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 8102, 121, 381, 6, 96, 4350, 121, 1499, 6, 96, 16557, 485, 121, 1499, 6, 96, 715, 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, 4350, 8512, 21680, 953, 834, 26363, 834, 4165, 357, 549, 17444, 427, 96, 16557, 485, 121, 3274, 3, 31, 5675, 9, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the score of the game on October 20 when the home team is the NY Islanders?
CREATE TABLE table_name_57 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_57 WHERE home = "ny islanders" AND date = "october 20"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3436, 41, 7, 9022, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 13, 8, 467, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 3436, 549, 17444, 427, 234, 3274, 96, 29, 63, 3368, 277, 121, 3430, 833, 3274, 96, 32, 75, 235, 1152, 460, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which team has the points category of test driver?
CREATE TABLE table_67181 ( "Season" text, "Series" text, "Team" text, "Races" text, "wins" text, "Fast laps" text, "Points" text, "Pos." text )
SELECT "Team" FROM table_67181 WHERE "Points" = 'test driver'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 2606, 536, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 12106, 7, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 448, 9, 2319, 121, 1499, 6, 96, 3757, 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, 18699, 121, 21680, 953, 834, 3708, 2606, 536, 549, 17444, 427, 96, 22512, 7, 121, 3274, 3, 31, 4377, 2535, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what builder comes before ss & iw ?
CREATE TABLE table_204_77 ( id number, "number" text, "builder" text, "type" text, "date" text, "works number" number, "notes" text )
SELECT "builder" FROM table_204_77 WHERE id = (SELECT id FROM table_204_77 WHERE "builder" = 'ss&iw') - 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 4013, 41, 3, 23, 26, 381, 6, 96, 5525, 1152, 121, 1499, 6, 96, 16422, 49, 121, 1499, 6, 96, 6137, 121, 1499, 6, 96, 5522, 121, 1499, 6, 96, 13631, 381, 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, 16422, 49, 121, 21680, 953, 834, 26363, 834, 4013, 549, 17444, 427, 3, 23, 26, 3274, 41, 23143, 14196, 3, 23, 26, 21680, 953, 834, 26363, 834, 4013, 549, 17444, 427, 96, 16422, 49, 121, 3274, 3, 31, 7, 7, 18...
how many patients whose admission year is less than 2174 and diagnoses long title is ventricular septal defect?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2174" AND diagnoses.long_title = "Ventricular septal defect"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?
CREATE TABLE table_name_23 (points VARCHAR, rank VARCHAR, draw VARCHAR)
SELECT COUNT(points) FROM table_name_23 WHERE rank = "6th" AND draw < 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 2700, 7, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 6, 3314, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 381, 13, 979, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 11003, 3274, 96, 948, 189, 121, 3430, 3314, 3, 2, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which Builder has a Date smaller than 1913, and a Length of feet (m), and a Number of 15?
CREATE TABLE table_name_15 (builder VARCHAR, number VARCHAR, date VARCHAR, length VARCHAR)
SELECT builder FROM table_name_15 WHERE date < 1913 AND length = "feet (m)" AND number = "15"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1808, 41, 16422, 49, 584, 4280, 28027, 6, 381, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 2475, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 918, 49, 21680, 953, 834, 4350, 834, 1808, 549, 17444, 427, 833, 3, 2, 957, 2368, 3430, 2475, 3274, 96, 89, 15, 15, 17, 41, 51, 61, 121, 3430, 381, 3274, 96, 1808, 121, 1, -100, -100, -100, -100, -100, -100, -10...
Find the average age of male students (with sex M) from each city, show in descending by the x axis.
CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) )
SELECT city_code, AVG(Age) FROM Student WHERE Sex = 'M' GROUP BY city_code ORDER BY city_code DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6200, 51, 41, 103, 52, 6983, 3, 21342, 17966, 6, 103, 52, 51, 834, 4350, 584, 4280, 28027, 599, 1755, 201, 1236, 834, 4010, 9, 6726, 3, 21342, 17966, 6, 7285, 584, 4280, 28027, 14296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4978, 6, 71, 17217, 599, 188, 397, 61, 21680, 6341, 549, 17444, 427, 679, 226, 3274, 3, 31, 329, 31, 350, 4630, 6880, 272, 476, 690, 834, 4978, 4674, 11300, 272, 476, 690, 834, 4978, 309, 25067, 1, -100,...
Which team was the opponent that had a location of Madison Square Garden with a score of 87-83?
CREATE TABLE table_name_10 (team VARCHAR, location_attendance VARCHAR, score VARCHAR)
SELECT team FROM table_name_10 WHERE location_attendance = "madison square garden" AND score = "87-83"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1714, 41, 11650, 584, 4280, 28027, 6, 1128, 834, 15116, 663, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 372, 47, 8, 1526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 1714, 549, 17444, 427, 1128, 834, 15116, 663, 3274, 96, 11374, 23, 739, 2812, 2004, 121, 3430, 2604, 3274, 96, 4225, 18, 4591, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the date for princess royal class locomotive trust?
CREATE TABLE table_53916 ( "Number & Name" text, "Description" text, "Livery" text, "Owner(s)" text, "Date" real )
SELECT "Date" FROM table_53916 WHERE "Owner(s)" = 'princess royal class locomotive trust'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3288, 2938, 41, 96, 567, 5937, 49, 3, 184, 5570, 121, 1499, 6, 96, 2962, 11830, 121, 1499, 6, 96, 24179, 651, 121, 1499, 6, 96, 667, 210, 687, 599, 7, 61, 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, 308, 342, 121, 21680, 953, 834, 755, 3288, 2938, 549, 17444, 427, 96, 667, 210, 687, 599, 7, 61, 121, 3274, 3, 31, 12298, 2319, 7, 11268, 853, 31301, 2019, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100...
What candidates were in the election when a republican was re-elected?
CREATE TABLE table_1341884_19 (candidates VARCHAR, result VARCHAR, party VARCHAR)
SELECT candidates FROM table_1341884_19 WHERE result = "Re-elected" AND party = "Republican"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2606, 4608, 834, 2294, 41, 1608, 12416, 6203, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 1088, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 4341, 130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4341, 21680, 953, 834, 23747, 2606, 4608, 834, 2294, 549, 17444, 427, 741, 3274, 96, 1649, 18, 19971, 121, 3430, 1088, 3274, 96, 1649, 15727, 152, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
For High Assists of Raymond Felton (12), who were the High rebounds?
CREATE TABLE table_21194 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "High rebounds" FROM table_21194 WHERE "High assists" = 'Raymond Felton (12)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27278, 4240, 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, 3, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 21417, 3, 23768, 121, 21680, 953, 834, 27278, 4240, 549, 17444, 427, 96, 21417, 13041, 121, 3274, 3, 31, 25619, 6764, 4163, 7377, 16465, 61, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
which ranked higher in place , israel or the united kingdom ?
CREATE TABLE table_203_803 ( id number, "draw" number, "country" text, "language" text, "artist" text, "song" text, "english translation" text, "place" number, "points" number )
SELECT "country" FROM table_203_803 WHERE "country" IN ('israel', 'united kingdom') ORDER BY "place" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 2079, 519, 41, 3, 23, 26, 381, 6, 96, 19489, 121, 381, 6, 96, 17529, 121, 1499, 6, 96, 24925, 121, 1499, 6, 96, 1408, 343, 121, 1499, 6, 96, 7, 2444, 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, 17529, 121, 21680, 953, 834, 23330, 834, 2079, 519, 549, 17444, 427, 96, 17529, 121, 3388, 41, 31, 30178, 31, 6, 3, 31, 15129, 15, 26, 14740, 31, 61, 4674, 11300, 272, 476, 96, 4687, 121, 8729, 12604, 209, 1, ...
What is the mission that has ambassador of local position, and a resident country of democratic republic of congo?
CREATE TABLE table_name_35 ( mission VARCHAR, local_position VARCHAR, resident_country VARCHAR )
SELECT mission FROM table_name_35 WHERE local_position = "ambassador" AND resident_country = "democratic republic of congo"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 2253, 584, 4280, 28027, 6, 415, 834, 4718, 584, 4280, 28027, 6, 8141, 834, 17529, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 2253, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 415, 834, 4718, 3274, 96, 14303, 7, 7, 7923, 121, 3430, 8141, 834, 17529, 3274, 96, 23319, 447, 20237, 13, 975, 839, 121, 1, -100, -100, -100, -100, -100, -10...
who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?
CREATE TABLE table_56493 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Driver" FROM table_56493 WHERE "Constructor" = 'ferrari' AND "Time/Retired" = '+1:06.683'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 3647, 519, 41, 96, 20982, 52, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 1649, 11809, 26, 121, 1499, 6, 96, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 20982, 52, 121, 21680, 953, 834, 4834, 3647, 519, 549, 17444, 427, 96, 4302, 7593, 127, 121, 3274, 3, 31, 1010, 52, 1665, 31, 3430, 96, 13368, 87, 1649, 11809, 26, 121, 3274, 3, 31, 18446, 10, 13821, 3651, 519...
What is the lowest FA cup with 1 league cup, less than 12 total and 1 premier league?
CREATE TABLE table_name_17 (fa_cup INTEGER, premier_league VARCHAR, league_cup VARCHAR, total VARCHAR)
SELECT MIN(fa_cup) FROM table_name_17 WHERE league_cup = 1 AND total < 12 AND premier_league = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 89, 9, 834, 4658, 3, 21342, 17966, 6, 2761, 834, 29512, 584, 4280, 28027, 6, 5533, 834, 4658, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 61, 3, 32102,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 89, 9, 834, 4658, 61, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 5533, 834, 4658, 3274, 209, 3430, 792, 3, 2, 586, 3430, 2761, 834, 29512, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -...
What is the medal total of Denmark?
CREATE TABLE table_name_52 (total VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_52 WHERE nation = "denmark"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5373, 41, 235, 1947, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 9365, 792, 13, 18001, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 5373, 549, 17444, 427, 2982, 3274, 96, 537, 3920, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the average speed (mph) for the racer who finished in 1:45:00?
CREATE TABLE table_17802778_1 ( average_speed__mph_ VARCHAR, race_time VARCHAR )
SELECT average_speed__mph_ FROM table_17802778_1 WHERE race_time = "1:45:00"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 2079, 2555, 3940, 834, 536, 41, 1348, 834, 9993, 834, 834, 7656, 834, 584, 4280, 28027, 6, 1964, 834, 715, 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, 0, 0...
[ 3, 23143, 14196, 1348, 834, 9993, 834, 834, 7656, 834, 21680, 953, 834, 2517, 2079, 2555, 3940, 834, 536, 549, 17444, 427, 1964, 834, 715, 3274, 96, 536, 10, 591, 19870, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the record for bobcats
CREATE TABLE table_name_65 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_65 WHERE home = "bobcats"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4122, 41, 60, 7621, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1368, 21, 3, 17396, 2138, 7, 1, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1368, 21680, 953, 834, 4350, 834, 4122, 549, 17444, 427, 234, 3274, 96, 17396, 2138, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Return a bar chart on what are the names of all the documents, as well as the access counts of each, ordered alphabetically?
CREATE TABLE Users ( user_id INTEGER, role_code VARCHAR(15), user_name VARCHAR(40), user_login VARCHAR(40), password VARCHAR(40) ) CREATE TABLE Roles ( role_code VARCHAR(15), role_description VARCHAR(80) ) CREATE TABLE Document_Sections_Images ( section_id INTEGER, image_id INTEGER ) CREATE TABLE Documents ( document_code VARCHAR(15), document_structure_code VARCHAR(15), document_type_code VARCHAR(15), access_count INTEGER, document_name VARCHAR(80) ) CREATE TABLE Images ( image_id INTEGER, image_alt_text VARCHAR(80), image_name VARCHAR(40), image_url VARCHAR(255) ) CREATE TABLE Document_Structures ( document_structure_code VARCHAR(15), parent_document_structure_code VARCHAR(15), document_structure_description VARCHAR(80) ) CREATE TABLE Functional_Areas ( functional_area_code VARCHAR(15), parent_functional_area_code VARCHAR(15), functional_area_description VARCHAR(80) ) CREATE TABLE Document_Sections ( section_id INTEGER, document_code VARCHAR(15), section_sequence INTEGER, section_code VARCHAR(20), section_title VARCHAR(80) ) CREATE TABLE Document_Functional_Areas ( document_code VARCHAR(15), functional_area_code VARCHAR(15) )
SELECT document_name, access_count FROM Documents ORDER BY document_name
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 13504, 41, 1139, 834, 23, 26, 3, 21342, 17966, 6, 1075, 834, 4978, 584, 4280, 28027, 599, 1808, 201, 1139, 834, 4350, 584, 4280, 28027, 599, 2445, 201, 1139, 834, 2152, 77, 584, 4280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1708, 834, 4350, 6, 592, 834, 13362, 21680, 11167, 7, 4674, 11300, 272, 476, 1708, 834, 4350, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?
CREATE TABLE table_name_32 (Id VARCHAR)
SELECT 2004 FROM table_name_32 WHERE 2005 = "a" AND 2009 = "q1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 741, 21, 4406, 116, 71, 19, 8, 741, 21, 3105, 6, 11, 8, 741, 13, 3, 1824,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4406, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 3105, 3274, 96, 9, 121, 3430, 2464, 3274, 96, 1824, 536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For the attribute ACC_Road and the sum of School_ID, show their proportion by a pie chart.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14775, 834, 448, 32, 9, 26, 6, 180, 6122, 599, 29364, 834, 4309, 61, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 3, 14775, 834, 448, 32, 9, 26, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What country had a total less than 291 and a 4 Finish?
CREATE TABLE table_name_24 (country VARCHAR, total VARCHAR, finish VARCHAR)
SELECT country FROM table_name_24 WHERE total < 291 AND finish = "4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 17529, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 1992, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 684, 141, 3, 9, 792, 705, 145, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 684, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 792, 3, 2, 204, 4729, 3430, 1992, 3274, 96, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
how many arabic scottish is afghan
CREATE TABLE table_27111 ( "Afghan" text, "Albanian" text, "Arabic" text, "Bangladeshi" text, "Bosnian" text, "Chinese" text, "Colombian" text, "Cook Islands" text )
SELECT "Afghan" FROM table_27111 WHERE "Arabic" = 'Scottish'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 15866, 41, 96, 188, 89, 22637, 121, 1499, 6, 96, 25691, 9, 15710, 121, 1499, 6, 96, 188, 7093, 447, 121, 1499, 6, 96, 279, 1468, 14712, 5605, 121, 1499, 6, 96, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 89, 22637, 121, 21680, 953, 834, 2555, 15866, 549, 17444, 427, 96, 188, 7093, 447, 121, 3274, 3, 31, 134, 10405, 1273, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who held the same position in 2014 that Garion Weller held in 2014?
CREATE TABLE table_name_82 ( Id VARCHAR )
SELECT 2014 FROM table_name_82 WHERE 2012 = "garion weller"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4613, 41, 27, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 1213, 8, 337, 1102, 16, 1412, 24, 2776, 16310, 1548, 49, 1213, 16, 1412, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1412, 21680, 953, 834, 4350, 834, 4613, 549, 17444, 427, 1673, 3274, 96, 1478, 23, 106, 168, 49, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?
CREATE TABLE table_25790 ( "Rank" real, "City/Town" text, "County" text, "Region/Province" text, "Population" real, "Country" text )
SELECT COUNT("Rank") FROM table_25790 WHERE "Country" = 'England' AND "County" = 'Merseyside' AND "City/Town" = 'Birkenhead'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3436, 2394, 41, 96, 22557, 121, 490, 6, 96, 254, 485, 87, 382, 9197, 121, 1499, 6, 96, 10628, 63, 121, 1499, 6, 96, 17748, 23, 106, 87, 3174, 2494, 565, 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, 22557, 8512, 21680, 953, 834, 357, 3436, 2394, 549, 17444, 427, 96, 10628, 651, 121, 3274, 3, 31, 8532, 7002, 727, 31, 3430, 96, 10628, 63, 121, 3274, 3, 31, 329, 277, 15, 63, 1583, 31, 3430...
Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869?
CREATE TABLE table_75419 ( "Rank" text, "City" text, "Population" real, "Area (km 2 )" real, "Density (inhabitants/km 2 )" real, "Altitude (mslm)" real )
SELECT MAX("Altitude (mslm)") FROM table_75419 WHERE "Area (km 2 )" < '13.01' AND "Population" = '74536' AND "Density (inhabitants/km 2 )" > '5869'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3072, 591, 2294, 41, 96, 22557, 121, 1499, 6, 96, 254, 485, 121, 1499, 6, 96, 27773, 7830, 121, 490, 6, 96, 188, 864, 41, 5848, 204, 3, 61, 121, 490, 6, 96, 308, 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, 4800, 4, 599, 121, 188, 40, 6592, 41, 51, 7, 40, 51, 61, 8512, 21680, 953, 834, 3072, 591, 2294, 549, 17444, 427, 96, 188, 864, 41, 5848, 204, 3, 61, 121, 3, 2, 3, 31, 2368, 5, 4542, 31, 3430, 96, 27773, 783...
What is the sum of the people in attendance when there was a Loss of clement (5 7)?
CREATE TABLE table_69033 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT SUM("Attendance") FROM table_69033 WHERE "Loss" = 'clement (5–7)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 2394, 4201, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 188, 17, 324, 26,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 188, 17, 324, 26, 663, 8512, 21680, 953, 834, 948, 2394, 4201, 549, 17444, 427, 96, 434, 32, 7, 7, 121, 3274, 3, 31, 75, 3335, 9209, 104, 12703, 31, 1, -100, -100, -100, -100, -100, -100, -1...
Who are the opponents in Massachusetts5 district?
CREATE TABLE table_1341522_24 (opponent VARCHAR, district VARCHAR)
SELECT opponent FROM table_1341522_24 WHERE district = "Massachusetts5"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 1808, 2884, 834, 2266, 41, 32, 102, 9977, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 33, 8, 16383, 16, 9777, 755, 3939, 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, 15264, 21680, 953, 834, 23747, 1808, 2884, 834, 2266, 549, 17444, 427, 3939, 3274, 96, 27189, 1836, 1074, 17, 17, 7, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Bar graph to show maximal age from different sex, could you order by the Y in asc?
CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER )
SELECT Sex, MAX(Age) FROM Student GROUP BY Sex ORDER BY MAX(Age)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4498, 834, 9, 904, 485, 41, 103, 52, 6983, 3, 21342, 17966, 6, 183, 35, 23, 26, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 6200, 51, 834, 9, 904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 679, 226, 6, 4800, 4, 599, 188, 397, 61, 21680, 6341, 350, 4630, 6880, 272, 476, 679, 226, 4674, 11300, 272, 476, 4800, 4, 599, 188, 397, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the winning score of the Vernal Ladies tournament?
CREATE TABLE table_24223 ( "No." real, "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner(s)-up" text )
SELECT "Winning score" FROM table_24223 WHERE "Tournament" = 'Vernal Ladies'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 357, 2773, 41, 96, 4168, 535, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 518, 10503, 2604, 121, 1499, 6, 96, 3696, 260, 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, 518, 10503, 2604, 121, 21680, 953, 834, 2266, 357, 2773, 549, 17444, 427, 96, 382, 1211, 20205, 17, 121, 3274, 3, 31, 5000, 29, 138, 23479, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
For each product, return its id and the number of times it was ordered. Show the correlation.
CREATE TABLE Shipment_Items ( shipment_id INTEGER, order_item_id INTEGER ) CREATE TABLE Products ( product_id INTEGER, product_name VARCHAR(80), product_details VARCHAR(255) ) CREATE TABLE Order_Items ( order_item_id INTEGER, product_id INTEGER, order_id INTEGER, order_item_status VARCHAR(10), order_item_details VARCHAR(255) ) CREATE TABLE Orders ( order_id INTEGER, customer_id INTEGER, order_status VARCHAR(10), date_order_placed DATETIME, order_details VARCHAR(255) ) CREATE TABLE Shipments ( shipment_id INTEGER, order_id INTEGER, invoice_number INTEGER, shipment_tracking_number VARCHAR(80), shipment_date DATETIME, other_shipment_details VARCHAR(255) ) CREATE TABLE Customers ( customer_id INTEGER, customer_name VARCHAR(80), customer_details VARCHAR(255) ) CREATE TABLE Invoices ( invoice_number INTEGER, invoice_date DATETIME, invoice_details VARCHAR(255) )
SELECT COUNT(*), T2.product_id FROM Orders AS T1 JOIN Order_Items AS T2 JOIN Products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15508, 297, 834, 196, 3524, 7, 41, 19843, 834, 23, 26, 3, 21342, 17966, 6, 455, 834, 23, 3524, 834, 23, 26, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 332, 4416, 15892, 834, 23, 26, 21680, 5197, 7, 6157, 332, 536, 3, 15355, 3162, 5197, 834, 196, 3524, 7, 6157, 332, 357, 3, 15355, 3162, 7554, 6157, 332, 519, 9191, 332, 5411, 9397, 834, ...
give me the number of patients whose primary disease is pneumonia and days of hospital stay is greater than 0?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "PNEUMONIA" AND demographic.days_stay > "0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 15420, 12062, 5365, 26077, 121, 3430, 14798, 5, 1135, 7, 834, 21545, 2...
Who is the director when the writter is Andrea Newman?
CREATE TABLE table_24910733_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_24910733_1 WHERE written_by = "Andrea Newman"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3647, 18057, 4201, 834, 536, 41, 22955, 834, 969, 584, 4280, 28027, 6, 1545, 834, 969, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 2090, 116, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6640, 834, 969, 21680, 953, 834, 357, 3647, 18057, 4201, 834, 536, 549, 17444, 427, 1545, 834, 969, 3274, 96, 7175, 864, 368, 348, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the entry for highest when average is 10295?
CREATE TABLE table_237757_10 (highest VARCHAR, average VARCHAR)
SELECT highest FROM table_237757_10 WHERE average = 10295
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 4013, 3436, 834, 1714, 41, 6739, 222, 584, 4280, 28027, 6, 1348, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1764, 21, 2030, 116, 1348, 19, 3, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2030, 21680, 953, 834, 2773, 4013, 3436, 834, 1714, 549, 17444, 427, 1348, 3274, 3, 14388, 3301, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?
CREATE TABLE table_41568 ( "Year" real, "January" real, "February" real, "March" real, "April" real, "June" real, "July" real, "August" real, "September" real, "October" real, "November" real, "December" real, "Annual Additions(in millions)" real, "Average Monthly Additions(in millions)" real )
SELECT SUM("December") FROM table_41568 WHERE "July" = '0.36' AND "February" > '0.35000000000000003'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 1808, 3651, 41, 96, 476, 2741, 121, 490, 6, 96, 30404, 121, 490, 6, 96, 31122, 121, 490, 6, 96, 25019, 121, 490, 6, 96, 23323, 121, 490, 6, 96, 683, 444, 121, 490,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 29835, 8512, 21680, 953, 834, 591, 1808, 3651, 549, 17444, 427, 96, 683, 83, 63, 121, 3274, 3, 31, 19997, 948, 31, 3430, 96, 31122, 121, 2490, 3, 31, 19997, 12814, 2313, 2313, 19568, 4928, 31, ...
What is 2001, when 1999 is '2R', and when 1992 is '3R'?
CREATE TABLE table_name_12 ( Id VARCHAR )
SELECT 2001 FROM table_name_12 WHERE 1999 = "2r" AND 1992 = "3r"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2122, 41, 27, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 4402, 6, 116, 5247, 19, 3, 31, 357, 448, 31, 6, 11, 116, 9047, 19, 3, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4402, 21680, 953, 834, 4350, 834, 2122, 549, 17444, 427, 5247, 3274, 96, 357, 52, 121, 3430, 9047, 3274, 96, 519, 52, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Where was the Hawthorn game played?
CREATE TABLE table_32724 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_32724 WHERE "Away team" = 'hawthorn'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 2555, 2266, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 519, 2555, 2266, 549, 17444, 427, 96, 188, 1343, 372, 121, 3274, 3, 31, 1024, 210, 17, 6293, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the date of the game when their record was 84-69?
CREATE TABLE table_name_56 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_56 WHERE record = "84-69"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4834, 41, 5522, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 833, 13, 8, 467, 116, 70, 1368, 47, 3, 4608, 18, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 21680, 953, 834, 4350, 834, 4834, 549, 17444, 427, 1368, 3274, 96, 4608, 18, 3951, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the qual with 200 laps and a rank of 27?
CREATE TABLE table_name_86 ( qual VARCHAR, laps VARCHAR, rank VARCHAR )
SELECT qual FROM table_name_86 WHERE laps = 200 AND rank = "27"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 3, 11433, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3, 11433, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 11433, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 14941, 7, 3274, 2382, 3430, 11003, 3274, 96, 2555, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is Points Against, when Drawn is '2', and when Points Of is '32'?
CREATE TABLE table_name_80 ( points_against VARCHAR, drawn VARCHAR, points VARCHAR )
SELECT points_against FROM table_name_80 WHERE drawn = "2" AND points = "32"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 979, 834, 9, 16720, 7, 17, 584, 4280, 28027, 6, 6796, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 4564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 979, 834, 9, 16720, 7, 17, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 6796, 3274, 96, 357, 121, 3430, 979, 3274, 96, 2668, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which date has china as the venue?
CREATE TABLE table_name_25 ( date VARCHAR, venue VARCHAR )
SELECT date FROM table_name_25 WHERE venue = "china"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 833, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 833, 65, 20576, 38, 8, 5669, 58, 1, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 5669, 3274, 96, 5675, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many tackles for the player with over 0 fumble recovries and 0 forced fumbles?
CREATE TABLE table_72057 ( "Player" text, "Solo" real, "Total" real, "Sacks" text, "Fumble force" real, "Fumble rec" real )
SELECT COUNT("Total") FROM table_72057 WHERE "Fumble rec" > '0' AND "Fumble force" = '0'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 18517, 3436, 41, 96, 15800, 49, 121, 1499, 6, 96, 5231, 40, 32, 121, 490, 6, 96, 3696, 1947, 121, 490, 6, 96, 134, 4365, 7, 121, 1499, 6, 96, 371, 13514, 2054, 121, 490...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 3696, 1947, 8512, 21680, 953, 834, 18517, 3436, 549, 17444, 427, 96, 371, 13514, 5026, 121, 2490, 3, 31, 632, 31, 3430, 96, 371, 13514, 2054, 121, 3274, 3, 31, 632, 31, 1, -100, -100, -100, ...
What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?
CREATE TABLE table_name_31 ( feb_2013 INTEGER, feb_2010 VARCHAR, nov_2012 VARCHAR )
SELECT AVG(feb_2013) FROM table_name_31 WHERE feb_2010 = "37" AND nov_2012 < 32
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 3, 89, 15, 115, 834, 11138, 3, 21342, 17966, 6, 3, 89, 15, 115, 834, 14926, 584, 4280, 28027, 6, 3, 5326, 834, 12172, 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, 71, 17217, 599, 89, 15, 115, 834, 11138, 61, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 3, 89, 15, 115, 834, 14926, 3274, 96, 4118, 121, 3430, 3, 5326, 834, 12172, 3, 2, 3538, 1, -100, -100, -100, -100, ...
What was the average scoring the the top 10s is 4?
CREATE TABLE table_name_51 (scoring_average INTEGER, top_10s VARCHAR)
SELECT AVG(scoring_average) FROM table_name_51 WHERE top_10s = 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 3523, 1007, 834, 28951, 3, 21342, 17966, 6, 420, 834, 1714, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1348, 10389, 8, 8, 420,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 3523, 1007, 834, 28951, 61, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 420, 834, 1714, 7, 3274, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the lowest score that wes ellis got?
CREATE TABLE table_name_81 ( score INTEGER, player VARCHAR )
SELECT MIN(score) FROM table_name_81 WHERE player = "wes ellis"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4959, 41, 2604, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 2604, 24, 62, 7, 3, 7999, 7, 530, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 7, 9022, 61, 21680, 953, 834, 4350, 834, 4959, 549, 17444, 427, 1959, 3274, 96, 1123, 7, 3, 7999, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what date was the first ship launched ?
CREATE TABLE table_203_313 ( id number, "name" text, "pennant" text, "builder" text, "launched" text, "original name" text, "fate" text )
SELECT "launched" FROM table_203_313 ORDER BY "launched" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 519, 2368, 41, 3, 23, 26, 381, 6, 96, 4350, 121, 1499, 6, 96, 3208, 29, 288, 121, 1499, 6, 96, 16422, 49, 121, 1499, 6, 96, 27493, 15, 26, 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, 27493, 15, 26, 121, 21680, 953, 834, 23330, 834, 519, 2368, 4674, 11300, 272, 476, 96, 27493, 15, 26, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For each competition, count the number of matches.
CREATE TABLE match ( Match_ID int, Date text, Venue text, Score text, Result text, Competition text ) CREATE TABLE city ( City_ID int, City text, Hanzi text, Hanyu_Pinyin text, Regional_Population int, GDP real ) CREATE TABLE temperature ( City_ID int, Jan real, Feb real, Mar real, Apr real, Jun real, Jul real, Aug real, Sep real, Oct real, Nov real, Dec real ) CREATE TABLE hosting_city ( Year int, Match_ID int, Host_City text )
SELECT Competition, COUNT(*) FROM match GROUP BY Competition
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1588, 41, 12296, 834, 4309, 16, 17, 6, 7678, 1499, 6, 29940, 1499, 6, 17763, 1499, 6, 3, 20119, 1499, 6, 15571, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 690,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 15571, 6, 2847, 17161, 599, 1935, 61, 21680, 1588, 350, 4630, 6880, 272, 476, 15571, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For the attribute ACC_Regular_Season and School_ID, show their proportion by a pie chart.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT ACC_Regular_Season, School_ID FROM basketball_match
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8498, 834, 19515, 41, 2271, 834, 4309, 16, 17, 6, 1121, 834, 4309, 16, 17, 6, 2271, 834, 23954, 1499, 6, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 1499, 6, 3, 14775, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 6, 1121, 834, 4309, 21680, 8498, 834, 19515, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the name of the airport located in Russia with an IATA of KRR?
CREATE TABLE table_name_30 (airport VARCHAR, country VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_30 WHERE country = "russia" AND iata = "krr"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1458, 41, 2256, 1493, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 3, 17221, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 3761,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3761, 21680, 953, 834, 4350, 834, 1458, 549, 17444, 427, 684, 3274, 96, 26165, 121, 3430, 3, 17221, 3274, 96, 157, 52, 52, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For those employees who do not work in departments with managers that have ids between 100 and 200, find phone_number and employee_id , and visualize them by a bar chart, and order total number from high to low order.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) )
SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 3396, 19846, 11810, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3396, 19846, 11810, 834, 567, 17683, 3, 4331, 4059, 599, 1458, 201, 283, 15610, 17966, 834, 4309, 7908, 1982, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 8023, 7894, 834, 567, 6122, 12920, 6, 262, 5244, 5017, 476, 5080, 834, 4309, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 10521, 549...
Find the name of medication used on the patient who stays in room 111?
CREATE TABLE Prescribes ( Patient VARCHAR, Medication VARCHAR ) CREATE TABLE patient ( SSN VARCHAR ) CREATE TABLE Medication ( name VARCHAR, Code VARCHAR ) CREATE TABLE stay ( Patient VARCHAR )
SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1266, 19308, 7, 41, 17656, 584, 4280, 28027, 6, 1212, 17530, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1868, 41, 180, 8544, 584, 4280, 28027, 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, 332, 7984, 4350, 21680, 1049, 6157, 332, 536, 3, 15355, 3162, 1868, 6157, 332, 357, 9191, 332, 5411, 345, 9, 15058, 3274, 332, 4416, 134, 8544, 3, 15355, 3162, 1266, 19308, 7, 6157, 332, 519, 9191, 332, 5787, 345, 9...
Where the displacement(s) is 10.5L is, what is the engine family?
CREATE TABLE table_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR)
SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "10.5L"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 2469, 2773, 2668, 834, 591, 41, 20165, 834, 15474, 584, 4280, 28027, 6, 27780, 834, 7, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2840, 8, 27780, 599, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1948, 834, 15474, 21680, 953, 834, 2688, 2469, 2773, 2668, 834, 591, 549, 17444, 427, 27780, 834, 7, 834, 3274, 96, 536, 12100, 434, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?
CREATE TABLE table_name_52 (pommel_horse VARCHAR, vault VARCHAR, total VARCHAR, team VARCHAR)
SELECT COUNT(pommel_horse) FROM table_name_52 WHERE total < 230.019 AND team = "china (chn)" AND vault < 38.437
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5373, 41, 17043, 2341, 834, 107, 127, 7, 15, 584, 4280, 28027, 6, 28368, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 17043, 2341, 834, 107, 127, 7, 15, 61, 21680, 953, 834, 4350, 834, 5373, 549, 17444, 427, 792, 3, 2, 1902, 11739, 2294, 3430, 372, 3274, 96, 5675, 9, 41, 524, 29, 61, 121, 3430, 28368, 3, 2, 66...
Which manufacturer has the most number of shops? List its name and year of opening.
CREATE TABLE manufacturer ( manufacturer_id number, open_year number, name text, num_of_factories number, num_of_shops number ) CREATE TABLE furniture_manufacte ( manufacturer_id number, furniture_id number, price_in_dollar number ) CREATE TABLE furniture ( furniture_id number, name text, num_of_component number, market_rate number )
SELECT open_year, name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4818, 41, 4818, 834, 23, 26, 381, 6, 539, 834, 1201, 381, 6, 564, 1499, 6, 3, 5525, 834, 858, 834, 17899, 725, 381, 6, 3, 5525, 834, 858, 834, 6921, 7, 381, 3, 61, 3, 32102, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 539, 834, 1201, 6, 564, 21680, 4818, 4674, 11300, 272, 476, 3, 5525, 834, 858, 834, 6921, 7, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Round 1 is in what circuit?
CREATE TABLE table_28545 ( "Round" text, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text )
SELECT "Circuit" FROM table_28545 WHERE "Round" = '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4433, 2128, 41, 96, 448, 32, 1106, 121, 1499, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 8931, 15, 14258, 121, 1499, 6, 96, 371, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 23, 52, 21560, 121, 21680, 953, 834, 357, 4433, 2128, 549, 17444, 427, 96, 448, 32, 1106, 121, 3274, 3, 31, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When did the person born 24 September 1851 pass away?
CREATE TABLE table_77831 ( "Name" text, "Date of Birth" text, "Date of Death" text, "Age at Time of Disaster" text, "Age at Time of Death" text )
SELECT "Date of Death" FROM table_77831 WHERE "Date of Birth" = '24 september 1851'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4013, 4591, 536, 41, 96, 23954, 121, 1499, 6, 96, 308, 342, 13, 26337, 121, 1499, 6, 96, 308, 342, 13, 12358, 121, 1499, 6, 96, 188, 397, 44, 2900, 13, 29798, 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, 308, 342, 13, 12358, 121, 21680, 953, 834, 4013, 4591, 536, 549, 17444, 427, 96, 308, 342, 13, 26337, 121, 3274, 3, 31, 2266, 16022, 18247, 507, 5553, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
With a 2008 result of 153 what is the result for 2007?
CREATE TABLE table_name_23 (Id VARCHAR)
SELECT 2007 FROM table_name_23 WHERE 2008 = "153"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 438, 3, 9, 2628, 741, 13, 3, 27025, 125, 19, 8, 741, 21, 4101, 58, 1, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4101, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 2628, 3274, 96, 27025, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
the number of times patient 030-77189 had had a digoxin procedure since 2102.
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time )
SELECT COUNT(*) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-77189')) AND treatment.treatmentname = 'digoxin' AND STRFTIME('%y', treatment.treatmenttime) >= '2102'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3362, 4267, 32, 4370, 41, 3362, 4267, 32, 26, 1294, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2912, 381, 6, 3, 7, 9, 32, 357, 381, 6, 842, 2206, 381, 6, 14114, 257, 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, 2847, 17161, 599, 1935, 61, 21680, 1058, 549, 17444, 427, 1058, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15878, 3734, ...
Visualize the proportion of the total number of captains in each rank using a pie chart.
CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text )
SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15508, 41, 15508, 834, 4309, 16, 17, 6, 5570, 1499, 6, 6632, 1499, 6, 14862, 834, 476, 2741, 490, 6, 4501, 1499, 6, 17016, 1499, 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, 3, 22557, 6, 2847, 17161, 599, 22557, 61, 21680, 14268, 350, 4630, 6880, 272, 476, 3, 22557, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What Team has the Engine of Chevrolet 6.0 V8, the Manufacturer of Opel, and the Driver Chris Jackson?
CREATE TABLE table_name_51 ( team VARCHAR, driver VARCHAR, engine VARCHAR, manufacturer VARCHAR )
SELECT team FROM table_name_51 WHERE engine = "chevrolet 6.0 v8" AND manufacturer = "opel" AND driver = "chris jackson"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 372, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 6, 1948, 584, 4280, 28027, 6, 4818, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 2271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 1948, 3274, 96, 13847, 3491, 15, 17, 3, 22642, 3, 208, 927, 121, 3430, 4818, 3274, 96, 32, 4343, 121, 3430, 2535, 3274, 96, 524, 52, 159, 3, 9325, 739, 121, ...
Name the number of high rebounds for january 5
CREATE TABLE table_27733909_7 (high_rebounds VARCHAR, date VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27733909_7 WHERE date = "January 5"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4552, 3288, 4198, 834, 940, 41, 6739, 834, 23768, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 381, 13, 306, 3, 23768, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 6739, 834, 23768, 61, 21680, 953, 834, 2555, 4552, 3288, 4198, 834, 940, 549, 17444, 427, 833, 3274, 96, 30404, 3, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
which album has the least peak in the us ?
CREATE TABLE table_204_244 ( id number, "year" number, "album" text, "peak\nus" number, "peak\nus\nholiday" number, "certifications\n(sales threshold)" text )
SELECT "album" FROM table_204_244 ORDER BY "peak\nus" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 357, 3628, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 381, 6, 96, 23703, 121, 1499, 6, 96, 14661, 2, 29, 302, 121, 381, 6, 96, 14661, 2, 29, 302, 2, 29, 2831, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23703, 121, 21680, 953, 834, 26363, 834, 357, 3628, 4674, 11300, 272, 476, 96, 14661, 2, 29, 302, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the difference between rank 5 and rank 11 transfer fee
CREATE TABLE table_204_402 ( id number, "rank" number, "player" text, "from" text, "to" text, "transfer fee\n(\u20ac million)" number, "year" number )
SELECT ABS((SELECT "transfer fee\n(\u20ac million)" FROM table_204_402 WHERE "rank" = 5) - (SELECT "transfer fee\n(\u20ac million)" FROM table_204_402 WHERE "rank" = 11))
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 2445, 357, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 20846, 121, 1499, 6, 96, 7152, 121, 1499, 6, 96, 235, 121, 1499, 6, 96, 7031, 1010, 2572, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 20798, 599, 599, 23143, 14196, 96, 7031, 1010, 2572, 2, 29, 599, 2, 76, 1755, 9, 75, 770, 61, 121, 21680, 953, 834, 26363, 834, 2445, 357, 549, 17444, 427, 96, 6254, 121, 3274, 3, 9120, 3, 18, 41, 23143, 14196, ...
What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?
CREATE TABLE table_name_30 ( abb VARCHAR, disorder VARCHAR )
SELECT abb FROM table_name_30 WHERE disorder = "carbamoyl phosphate synthetase i deficiency"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1458, 41, 3, 12982, 584, 4280, 28027, 6, 9311, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 703, 1999, 2099, 257, 13, 8, 15735, 1381, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 12982, 21680, 953, 834, 4350, 834, 1458, 549, 17444, 427, 9311, 3274, 96, 1720, 115, 265, 32, 63, 40, 3, 24613, 15, 13353, 15, 17, 9, 7, 15, 3, 23, 20, 4638, 23, 4392, 121, 1, -100, -100, -100, -100, -100, ...
What district has 213 constituents?
CREATE TABLE table_29785324_5 ( district VARCHAR, constituency_no VARCHAR )
SELECT COUNT(district) FROM table_29785324_5 WHERE constituency_no = 213
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 21441, 4867, 2266, 834, 755, 41, 3939, 584, 4280, 28027, 6, 6439, 4392, 834, 29, 32, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 3939, 65, 204, 2368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 26, 23, 20066, 61, 21680, 953, 834, 357, 21441, 4867, 2266, 834, 755, 549, 17444, 427, 6439, 4392, 834, 29, 32, 3274, 204, 2368, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Power (kW) for the station located in Cebu?
CREATE TABLE table_name_83 ( power__kw_ VARCHAR, location VARCHAR )
SELECT power__kw_ FROM table_name_83 WHERE location = "cebu"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 579, 834, 834, 157, 210, 834, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2621, 41, 21729, 61, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 579, 834, 834, 157, 210, 834, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 1128, 3274, 96, 565, 3007, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the lowest Gold, when Nation is Canada, and when Rank is greater than 4?
CREATE TABLE table_name_63 (gold INTEGER, nation VARCHAR, rank VARCHAR)
SELECT MIN(gold) FROM table_name_63 WHERE nation = "canada" AND rank > 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 14910, 3, 21342, 17966, 6, 2982, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 2540, 6, 116, 11046, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 14910, 61, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 2982, 3274, 96, 658, 18089, 121, 3430, 11003, 2490, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?
CREATE TABLE table_name_18 ( bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR )
SELECT MAX(bronze) FROM table_name_18 WHERE silver < 1 AND nation = "belgium (bel)" AND gold < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 13467, 3, 21342, 17966, 6, 2045, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 13711, 776, 61, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 4294, 3, 2, 209, 3430, 2982, 3274, 96, 2370, 122, 2552, 41, 2370, 61, 121, 3430, 2045, 3, 2, 3, 632, 1, -100, -100, -100, -100, -1...
what is the number of patients whose age is less than 20 and days of hospital stay is greater than 14?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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.age < "20" AND demographic.days_stay > "14"
[ 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, 545, 3, 2, 96, 1755, 121, 3430, 14798, 5, 1135, 7, 834, 21545, 2490, 96, 2534, 121, 1, -100, -...
Who wrote 'Academic Octathalon'?
CREATE TABLE table_22607 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
SELECT "Written by" FROM table_22607 WHERE "Title" = 'Academic Octathalon'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2688, 4560, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 24965, 324, 57, 121, 21680, 953, 834, 357, 2688, 4560, 549, 17444, 427, 96, 382, 155, 109, 121, 3274, 3, 31, 188, 6615, 3113, 6416, 9, 13958, 106, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the capacity of the team in tucson, USA?
CREATE TABLE table_name_95 (capacity VARCHAR, country VARCHAR, city VARCHAR)
SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 4010, 9, 6726, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2614, 13, 8, 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, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2614, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 684, 3274, 96, 302, 9, 121, 3430, 690, 3274, 96, 17, 76, 75, 739, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When were the British Grand Prix races?
CREATE TABLE table_11672 ( "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text )
SELECT "Date" FROM table_11672 WHERE "Race" = 'british grand prix'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20159, 5865, 41, 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, 6, 96, 371, 9, 7, 4377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20159, 5865, 549, 17444, 427, 96, 448, 3302, 121, 3274, 3, 31, 2160, 17, 1273, 1907, 3407, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is the date for tirrana?
CREATE TABLE table_8468 ( "Name" text, "Type" text, "Nationality" text, "Date" text, "Displacement" text )
SELECT "Date" FROM table_8468 WHERE "Name" = 'tirrana'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4608, 3651, 41, 96, 23954, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 23664, 11706, 297, 121, 1499, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 4608, 3651, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 17, 23, 52, 2002, 9, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Site that has a Sex and other data of old male?
CREATE TABLE table_name_42 ( site INTEGER, sex_and_other_data VARCHAR )
SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = "old male"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 353, 3, 21342, 17966, 6, 3, 7, 994, 834, 232, 834, 9269, 834, 6757, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 3238, 24, 65, 3, 9,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 3585, 61, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 3, 7, 994, 834, 232, 834, 9269, 834, 6757, 3274, 96, 1490, 5069, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...