NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
what was the last hospital admissions type of patient 027-151154 since 2105?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime 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 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 ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime 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 )
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '027-151154' AND STRFTIME('%y', patient.hospitaladmittime) >= '2105' ORDER BY patient.hospitaladmittime DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7757, 41, 7757, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2672, 4350, 1499, 6, 17166, 1499, 6, 2981, 20466, 29, 1499, 6, 2672, 10208, 715, 97, 6, 4845, 2916, 715, 97, 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, 1868, 5, 31386, 20466, 17, 7928, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 632, 2555, 18, 26578, 27308, 31, 3430, 3, 13733, 6245, 15382, 599, 31, 1454, 63, 31, 6, 1868, 5, 31386, 20466, ...
List the total scores of body builders in ascending order.
CREATE TABLE body_builder ( body_builder_id number, people_id number, snatch number, clean_jerk number, total number ) CREATE TABLE people ( people_id number, name text, height number, weight number, birth_date text, birth_place text )
SELECT total FROM body_builder ORDER BY total
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 643, 834, 16422, 49, 41, 643, 834, 16422, 49, 834, 23, 26, 381, 6, 151, 834, 23, 26, 381, 6, 3, 7, 29, 14547, 381, 6, 1349, 834, 12488, 157, 381, 6, 792, 381, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 792, 21680, 643, 834, 16422, 49, 4674, 11300, 272, 476, 792, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the least total number with a rank of 4 and a total silver number bigger than 3?
CREATE TABLE table_name_99 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_99 WHERE rank = 4 AND silver > 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 235, 1947, 3, 21342, 17966, 6, 11003, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 709, 792, 381, 28, 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, 3, 17684, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 11003, 3274, 314, 3430, 4294, 2490, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What's the highest number a couple has ranked at?
CREATE TABLE table_20424140_3 ( place INTEGER )
SELECT MAX(place) FROM table_20424140_3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 2266, 22012, 834, 519, 41, 286, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 2030, 381, 3, 9, 1158, 65, 3, 8232, 44, 58, 1, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 4687, 61, 21680, 953, 834, 26363, 2266, 22012, 834, 519, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the most late 1943 with late 194 in slovenia
CREATE TABLE table_1115992_1 (late_1943 INTEGER, _late_1941 VARCHAR)
SELECT MAX(late_1943) FROM table_1115992_1 WHERE NOT _late_1941 = "Slovenia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15866, 3390, 4508, 834, 536, 41, 5867, 834, 2294, 4906, 3, 21342, 17966, 6, 3, 834, 5867, 834, 2294, 4853, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 167, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5867, 834, 2294, 4906, 61, 21680, 953, 834, 15866, 3390, 4508, 834, 536, 549, 17444, 427, 4486, 3, 834, 5867, 834, 2294, 4853, 3274, 96, 134, 5850, 18242, 121, 1, -100, -100, -100, -100, -100, -100, -1...
Show the account name, id and the number of transactions for each account.
CREATE TABLE invoice_line_items ( order_item_id number, invoice_number number, product_id number, product_title text, product_quantity text, product_price number, derived_product_cost number, derived_vat_payable number, derived_total_cost number ) CREATE TABLE financial_transactions ( transaction_id number, account_id number, invoice_number number, transaction_type text, transaction_date time, transaction_amount number, transaction_comment text, other_transaction_details text ) CREATE TABLE products ( product_id number, parent_product_id number, production_type_code text, unit_price number, product_name text, product_color text, product_size text ) CREATE TABLE customers ( customer_id number, customer_first_name text, customer_middle_initial text, customer_last_name text, gender text, email_address text, login_name text, login_password text, phone_number text, town_city text, state_county_province text, country text ) CREATE TABLE product_categories ( production_type_code text, product_type_description text, vat_rating number ) CREATE TABLE order_items ( order_item_id number, order_id number, product_id number, product_quantity text, other_order_item_details text ) CREATE TABLE orders ( order_id number, customer_id number, date_order_placed time, order_details text ) CREATE TABLE invoices ( invoice_number number, order_id number, invoice_date time ) CREATE TABLE accounts ( account_id number, customer_id number, date_account_opened time, account_name text, other_account_details text )
SELECT T2.account_name, T1.account_id, COUNT(*) FROM financial_transactions AS T1 JOIN accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10921, 834, 747, 834, 23, 3524, 7, 41, 455, 834, 23, 3524, 834, 23, 26, 381, 6, 10921, 834, 5525, 1152, 381, 6, 556, 834, 23, 26, 381, 6, 556, 834, 21869, 1499, 6, 556, 834, 1315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 9, 75, 13362, 834, 4350, 6, 332, 5411, 9, 75, 13362, 834, 23, 26, 6, 2847, 17161, 599, 1935, 61, 21680, 981, 834, 7031, 4787, 7, 6157, 332, 536, 3, 15355, 3162, 3744, 6157, 332, 357, 9191, 332, 5411, ...
what is the total number of seats in the fourth duma ?
CREATE TABLE table_204_599 ( id number, "party" text, "first duma" text, "second duma" text, "third duma" text, "fourth duma" text )
SELECT SUM("fourth duma") FROM table_204_599
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 755, 3264, 41, 3, 23, 26, 381, 6, 96, 8071, 121, 1499, 6, 96, 14672, 146, 51, 9, 121, 1499, 6, 96, 12091, 146, 51, 9, 121, 1499, 6, 96, 14965, 146, 51, 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, 180, 6122, 599, 121, 12521, 189, 146, 51, 9, 8512, 21680, 953, 834, 26363, 834, 755, 3264, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
In what year was the bridge in Clarkdale built?
CREATE TABLE table_name_16 (built VARCHAR, location VARCHAR)
SELECT built FROM table_name_16 WHERE location = "clarkdale"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 16152, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 86, 125, 215, 47, 8, 4716, 16, 8265, 5437, 1192, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1192, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 1128, 3274, 96, 23982, 157, 5437, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what ist he total number of ages where the start date is 6 november?
CREATE TABLE table_17596418_5 (age VARCHAR, started VARCHAR)
SELECT COUNT(age) FROM table_17596418_5 WHERE started = "6 November"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 3390, 4389, 2606, 834, 755, 41, 545, 584, 4280, 28027, 6, 708, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 229, 3, 88, 792, 381, 13, 3, 2568, 213, 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, 2847, 17161, 599, 545, 61, 21680, 953, 834, 2517, 3390, 4389, 2606, 834, 755, 549, 17444, 427, 708, 3274, 96, 948, 1671, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of price , and group by attribute name, I want to display by the x axis in desc.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23954, 6, 332, 5411, 345, 4920, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 332, 541...
How many patients diagnosed with poisoning by other opiates and related narcotics had a psychiatric facility-partial hospitalization discharge?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND diagnoses.long_title = "Poisoning by other opiates and related narcotics"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
How many throws did Needle have?
CREATE TABLE table_36224 ( "Surname" text, "First" text, "D.O.B." text, "Bats" text, "Throws" text, "Position" text )
SELECT "Throws" FROM table_36224 WHERE "Surname" = 'needle'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3420, 24622, 41, 96, 134, 450, 4350, 121, 1499, 6, 96, 25171, 121, 1499, 6, 96, 308, 5, 667, 5, 279, 535, 1499, 6, 96, 279, 144, 7, 121, 1499, 6, 96, 11889, 2381, 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, 11889, 2381, 7, 121, 21680, 953, 834, 3420, 24622, 549, 17444, 427, 96, 134, 450, 4350, 121, 3274, 3, 31, 29, 6958, 109, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What day is collingwood the home side?
CREATE TABLE table_33739 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Date" FROM table_33739 WHERE "Home team" = 'collingwood'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 4118, 3288, 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, 519, 4118, 3288, 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...
Name the aspect ratio for smpte 259m and interlaced scanning
CREATE TABLE table_272313_2 (aspect_ratio VARCHAR, pixel_aspect_ratio VARCHAR, scanning VARCHAR)
SELECT aspect_ratio FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M" AND scanning = "interlaced"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 2773, 2368, 834, 357, 41, 9, 5628, 834, 6850, 32, 584, 4280, 28027, 6, 3, 14251, 834, 9, 5628, 834, 6850, 32, 584, 4280, 28027, 6, 18269, 584, 4280, 28027, 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, 2663, 834, 6850, 32, 21680, 953, 834, 2555, 2773, 2368, 834, 357, 549, 17444, 427, 3, 14251, 834, 9, 5628, 834, 6850, 32, 3274, 96, 134, 5244, 3463, 204, 3390, 329, 121, 3430, 18269, 3274, 96, 3870, 11706, 26, 121, ...
Show different type codes of products and the number of products with each type code.
CREATE TABLE assets ( asset_id number, other_details text ) CREATE TABLE events ( event_id number, address_id number, channel_id number, event_type_code text, finance_id number, location_id number ) CREATE TABLE parties_in_events ( party_id number, event_id number, role_code text ) CREATE TABLE addresses ( address_id number, address_details text ) CREATE TABLE parties ( party_id number, party_details text ) CREATE TABLE products_in_events ( product_in_event_id number, event_id number, product_id number ) CREATE TABLE locations ( location_id number, other_details text ) CREATE TABLE products ( product_id number, product_type_code text, product_name text, product_price number ) CREATE TABLE agreements ( document_id number, event_id number ) CREATE TABLE assets_in_events ( asset_id number, event_id number ) CREATE TABLE finances ( finance_id number, other_details text ) CREATE TABLE channels ( channel_id number, other_details text )
SELECT product_type_code, COUNT(*) FROM products GROUP BY product_type_code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4089, 41, 7000, 834, 23, 26, 381, 6, 119, 834, 221, 5756, 7, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 984, 41, 605, 834, 23, 26, 381, 6, 1115, 834, 23, 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, 556, 834, 6137, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 494, 350, 4630, 6880, 272, 476, 556, 834, 6137, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What school/club did the player who layed shooting guard attend?
CREATE TABLE table_name_35 ( school_club_team VARCHAR, position VARCHAR )
SELECT school_club_team FROM table_name_35 WHERE position = "shooting guard"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 496, 834, 13442, 834, 11650, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 496, 87, 13442, 410, 8, 1959, 113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 496, 834, 13442, 834, 11650, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 1102, 3274, 96, 5630, 32, 1222, 4879, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the total number of result for mississippi 4?
CREATE TABLE table_1342393_23 (result VARCHAR, district VARCHAR)
SELECT COUNT(result) FROM table_1342393_23 WHERE district = "Mississippi 4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2773, 4271, 834, 2773, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 792, 381, 13, 741, 21, 3041, 159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 60, 7, 83, 17, 61, 21680, 953, 834, 23747, 2773, 4271, 834, 2773, 549, 17444, 427, 3939, 3274, 96, 329, 159, 7, 159, 7, 23, 1572, 23, 3, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many draws feature artist wendy fierce?
CREATE TABLE table_name_18 (draw INTEGER, artist VARCHAR)
SELECT SUM(draw) FROM table_name_18 WHERE artist = "wendy fierce"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 19489, 3, 21342, 17966, 6, 2377, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 14924, 1451, 2377, 62, 727, 63, 19894, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 19489, 61, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 2377, 3274, 96, 210, 989, 63, 19894, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the minimum property crimes stats if the burglary committed was 45350?
CREATE TABLE table_28287 ( "Year" real, "Population" real, "Total" real, "Violent" real, "Property Crimes" real, "Forcible rape" real, "Robbery" real, "Aggravated assault" real, "Burglary" real, "Larceny Theft" real, "Vehicle Theft" real )
SELECT MIN("Property Crimes") FROM table_28287 WHERE "Burglary" = '45350'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 357, 4225, 41, 96, 476, 2741, 121, 490, 6, 96, 27773, 7830, 121, 490, 6, 96, 3696, 1947, 121, 490, 6, 96, 553, 23, 32, 6987, 121, 490, 6, 96, 3174, 883, 17, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 3174, 883, 17, 63, 16923, 7, 8512, 21680, 953, 834, 2577, 357, 4225, 549, 17444, 427, 96, 279, 450, 7002, 651, 121, 3274, 3, 31, 2128, 16975, 31, 1, -100, -100, -100, -100, -100, -100, -100, -1...
What is the date of the Italian Grand Prix?
CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR)
SELECT date FROM table_28925058_1 WHERE grand_prix = "Italian grand_prix"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3914, 11434, 3449, 834, 536, 41, 5522, 584, 4280, 28027, 6, 1907, 834, 2246, 226, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 13, 8, 4338, 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, 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, 357, 3914, 11434, 3449, 834, 536, 549, 17444, 427, 1907, 834, 2246, 226, 3274, 96, 196, 17, 9, 9928, 1907, 834, 2246, 226, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find ACC_Road and the average of Team_ID , and group by attribute ACC_Road, and visualize them by a bar chart, and order by the y axis in desc.
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, AVG(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(Team_ID) DESC
[ 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, 71, 17217, 599, 18699, 834, 4309, 61, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 3, 14775, 834, 448, 32, 9, 26, 4674, 11300, 272, 476, 71, 17217, 599, 18699, 834, 4309, ...
What was the score of the Chiefs November 27, 1994 game?
CREATE TABLE table_name_74 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_74 WHERE date = "november 27, 1994"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 13, 8, 5116, 7, 1671, 14141, 7520, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 833, 3274, 96, 5326, 18247, 14141, 7520, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What entrant had a Maserati 250F chassis and fewer than 6 points before 1957?
CREATE TABLE table_name_17 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_17 WHERE chassis = "maserati 250f" AND year < 1957 AND points < 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 295, 3569, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 6, 22836, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 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, 0...
[ 3, 23143, 14196, 3, 295, 3569, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 22836, 3274, 96, 2754, 15, 6850, 5986, 89, 121, 3430, 215, 3, 2, 24011, 3430, 979, 3, 2, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What tournament located is mississippi was nov 5
CREATE TABLE table_name_83 (tournament VARCHAR, date VARCHAR, location VARCHAR)
SELECT tournament FROM table_name_83 WHERE date = "nov 5" AND location = "mississippi"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 17, 1211, 20205, 17, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 5892, 1069, 19, 3041,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5892, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 833, 3274, 96, 5326, 3, 17395, 3430, 1128, 3274, 96, 11502, 159, 7, 23, 1572, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?
CREATE TABLE table_name_82 (notes VARCHAR, vehicle VARCHAR, ceased_operation VARCHAR)
SELECT notes FROM table_name_82 WHERE vehicle = "scout x-4" AND ceased_operation = "june 1971"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4613, 41, 7977, 7, 584, 4280, 28027, 6, 1689, 584, 4280, 28027, 6, 3, 29220, 834, 22280, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 3358, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3358, 21680, 953, 834, 4350, 834, 4613, 549, 17444, 427, 1689, 3274, 96, 7, 3422, 17, 3, 226, 18, 20364, 3430, 3, 29220, 834, 22280, 3274, 96, 6959, 15, 17961, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the Tally in Kerry County?
CREATE TABLE table_name_36 ( tally VARCHAR, county VARCHAR )
SELECT tally FROM table_name_36 WHERE county = "kerry"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 3, 17, 1427, 584, 4280, 28027, 6, 5435, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 332, 1427, 16, 24967, 1334, 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, 3, 17, 1427, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 5435, 3274, 96, 2304, 651, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Tell me the proportion of the number of chips from different company names for the phone whose screen mode type is 'Graphics' with a pie chart.
CREATE TABLE screen_mode ( Graphics_mode real, Char_cells text, Pixels text, Hardware_colours real, used_kb real, map text, Type text ) CREATE TABLE phone ( Company_name text, Hardware_Model_name text, Accreditation_type text, Accreditation_level text, Date text, chip_model text, screen_mode text ) CREATE TABLE chip_model ( Model_name text, Launch_year real, RAM_MiB real, ROM_MiB real, Slots text, WiFi text, Bluetooth text )
SELECT T2.Company_name, COUNT(T2.Company_name) FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" GROUP BY T2.Company_name
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1641, 834, 14930, 41, 16297, 7, 834, 14930, 490, 6, 7435, 834, 8725, 7, 1499, 6, 20005, 7, 1499, 6, 19982, 834, 24814, 7, 490, 6, 261, 834, 157, 115, 490, 6, 2828, 1499, 6, 6632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 5890, 2837, 63, 834, 4350, 6, 2847, 17161, 599, 382, 4416, 5890, 2837, 63, 834, 4350, 61, 21680, 1641, 834, 14930, 6157, 332, 536, 3, 15355, 3162, 951, 6157, 332, 357, 9191, 332, 5411, 21094, 447, 7, 834,...
What is the car number for Jeff Simmons on the Rahal Letterman team?
CREATE TABLE table_name_46 ( car_no VARCHAR, team VARCHAR, driver VARCHAR )
SELECT car_no FROM table_name_46 WHERE team = "rahal letterman" AND driver = "jeff simmons"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4448, 41, 443, 834, 29, 32, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 443, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 443, 834, 29, 32, 21680, 953, 834, 4350, 834, 4448, 549, 17444, 427, 372, 3274, 96, 52, 9, 3828, 2068, 348, 121, 3430, 2535, 3274, 96, 1924, 89, 89, 108, 635, 106, 7, 121, 1, -100, -100, -100, -100, -100, -100, ...
What kind of Disc number has a Track number of 02 on 7 september 2004?
CREATE TABLE table_name_19 ( disc_number VARCHAR, track_number VARCHAR, release_date VARCHAR )
SELECT disc_number FROM table_name_19 WHERE track_number = "02" AND release_date = "7 september 2004"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2294, 41, 5025, 834, 5525, 1152, 584, 4280, 28027, 6, 1463, 834, 5525, 1152, 584, 4280, 28027, 6, 1576, 834, 5522, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 5025, 834, 5525, 1152, 21680, 953, 834, 4350, 834, 2294, 549, 17444, 427, 1463, 834, 5525, 1152, 3274, 96, 4305, 121, 3430, 1576, 834, 5522, 3274, 96, 940, 16022, 18247, 4406, 121, 1, -100, -100, -100, -100, -100, -10...
Bar chart of how many openning year from each openning year, I want to show names in ascending order please.
CREATE TABLE schedule ( Cinema_ID int, Film_ID int, Date text, Show_times_per_day int, Price float ) CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text ) CREATE TABLE film ( Film_ID int, Rank_in_series int, Number_in_season int, Title text, Directed_by text, Original_air_date text, Production_code text )
SELECT Openning_year, COUNT(Openning_year) FROM cinema GROUP BY Openning_year ORDER BY Openning_year
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2023, 41, 17544, 834, 4309, 16, 17, 6, 3417, 834, 4309, 16, 17, 6, 7678, 1499, 6, 3111, 834, 715, 7, 834, 883, 834, 1135, 16, 17, 6, 5312, 3, 12660, 3, 61, 3, 32102, 32103, 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, 2384, 29, 53, 834, 1201, 6, 2847, 17161, 599, 22696, 29, 53, 834, 1201, 61, 21680, 10276, 350, 4630, 6880, 272, 476, 2384, 29, 53, 834, 1201, 4674, 11300, 272, 476, 2384, 29, 53, 834, 1201, 1, -100, -100, -100, -1...
How many positions does Greg Bryant play?
CREATE TABLE table_17077 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text )
SELECT COUNT("Position") FROM table_17077 WHERE "Player" = 'Greg Bryant'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 536, 2518, 4013, 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, 1, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 345, 32, 7, 4749, 8512, 21680, 953, 834, 536, 2518, 4013, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 517, 60, 122, 15961, 17, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the lowest no. in series?
CREATE TABLE table_1758 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text )
SELECT MIN("No. in series") FROM table_1758
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 3449, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 4168, 5, 16, 939, 8512, 21680, 953, 834, 2517, 3449, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the record of teams that play the yankees, and lose at mulholland (5-6)
CREATE TABLE table_66718 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT "Record" FROM table_66718 WHERE "Opponent" = 'yankees' AND "Loss" = 'mulholland (5-6)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3539, 940, 2606, 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, 96, 1649, 7621, 121, 21680, 953, 834, 3539, 940, 2606, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 63, 5979, 15, 15, 7, 31, 3430, 96, 434, 32, 7, 7, 121, 3274, 3, 31, 4115, 2831, 40, 232, 9209, 18, ...
How many the artists who produced the top three highly rated songs of each country? Show the result using a bar chart.
CREATE TABLE files ( f_id number(10), artist_name varchar2(50), file_size varchar2(20), duration varchar2(20), formats varchar2(20) ) CREATE TABLE artist ( artist_name varchar2(50), country varchar2(20), gender varchar2(20), preferred_genre varchar2(50) ) CREATE TABLE song ( song_name varchar2(50), artist_name varchar2(50), country varchar2(20), f_id number(10), genre_is varchar2(20), rating number(10), languages varchar2(20), releasedate Date, resolution number(10) ) CREATE TABLE genre ( g_name varchar2(20), rating varchar2(10), most_popular_in varchar2(50) )
SELECT T1.country, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T1.country ORDER BY T2.rating DESC LIMIT 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2073, 41, 3, 89, 834, 23, 26, 381, 599, 16968, 6, 2377, 834, 4350, 3, 4331, 4059, 357, 599, 1752, 201, 1042, 834, 7991, 3, 4331, 4059, 357, 599, 1755, 201, 8659, 3, 4331, 4059, 357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 17529, 6, 332, 5411, 17529, 21680, 2377, 6157, 332, 536, 3, 15355, 3162, 2324, 6157, 332, 357, 9191, 332, 5411, 1408, 343, 834, 4350, 3274, 332, 4416, 1408, 343, 834, 4350, 350, 4630, 6880, 272, 476, 332, ...
Show the amount for all the payments processed with Visa distributing the payment date with a bar chart.
CREATE TABLE Customer_Policies ( Policy_ID INTEGER, Customer_ID INTEGER, Policy_Type_Code CHAR(15), Start_Date DATE, End_Date DATE ) CREATE TABLE Payments ( Payment_ID INTEGER, Settlement_ID INTEGER, Payment_Method_Code VARCHAR(255), Date_Payment_Made DATE, Amount_Payment INTEGER ) CREATE TABLE Customers ( Customer_ID INTEGER, Customer_Details VARCHAR(255) ) CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER, Customer_Policy_ID INTEGER ) CREATE TABLE Claims ( Claim_ID INTEGER, Policy_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER )
SELECT Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7327, 834, 8931, 447, 725, 41, 7587, 834, 4309, 3, 21342, 17966, 6, 7327, 834, 4309, 3, 21342, 17966, 6, 7587, 834, 25160, 834, 22737, 3, 28027, 599, 1808, 201, 3273, 834, 308, 342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7678, 834, 19702, 297, 834, 329, 9, 221, 6, 71, 11231, 834, 19702, 297, 21680, 12248, 7, 549, 17444, 427, 12248, 834, 23351, 107, 32, 26, 834, 22737, 3274, 3, 31, 553, 159, 9, 31, 1, -100, -100, -100, -100, -100, ...
what is the least bronze when the nation is soviet union and the total is less than 11?
CREATE TABLE table_name_51 ( bronze INTEGER, nation VARCHAR, total VARCHAR )
SELECT MIN(bronze) FROM table_name_51 WHERE nation = "soviet union" AND total < 11
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 13467, 3, 21342, 17966, 6, 2982, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 709, 13467, 116, 8, 2982...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 13711, 776, 61, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 2982, 3274, 96, 7, 9881, 15, 17, 7021, 121, 3430, 792, 3, 2, 850, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
known compromised renal function ( egfr < 30 ml / min / 1.73 m2 ) or potassium > 5 mmol / l
CREATE TABLE table_test_28 ( "id" int, "positive_shock_index" bool, "anemia" bool, "serum_potassium" float, "left_ventricular_ejection_fraction_lvef" int, "systolic_blood_pressure_sbp" int, "malignant_hypertension" bool, "severe_hypertension" bool, "hemoglobin_a1c_hba1c" float, "allergy_to_thienopyridine" bool, "platelets" int, "neutrophil_count" int, "renal_disease" bool, "hepatic_disease" bool, "allergy_to_aspirin" bool, "creatinine_clearance_cl" float, "neutropenia" int, "estimated_glomerular_filtration_rate_egfr" int, "cardiogenic_shock" bool, "allergy_to_heparin" bool, "platelet_count" float, "thrombocytopenia" float, "diastolic_blood_pressure_dbp" int, "serum_creatinine" float, "catecholamine_support" bool, "NOUSE" float )
SELECT * FROM table_test_28 WHERE renal_disease = 1 OR estimated_glomerular_filtration_rate_egfr < 30 OR serum_potassium > 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4377, 834, 2577, 41, 96, 23, 26, 121, 16, 17, 6, 96, 26093, 834, 7, 19076, 834, 18288, 121, 3, 12840, 40, 6, 96, 152, 11658, 121, 3, 12840, 40, 6, 96, 7, 49, 440, 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, 1429, 21680, 953, 834, 4377, 834, 2577, 549, 17444, 427, 23328, 834, 26, 159, 14608, 3274, 209, 4674, 5861, 834, 24422, 4885, 834, 18974, 834, 2206, 834, 15, 122, 89, 52, 3, 2, 604, 4674, 20725, 834, 3013, 6500, 440...
Name the original air date for barnaby southcomb for charlie martin
CREATE TABLE table_18335117_5 (original_air_date VARCHAR, director VARCHAR, writer VARCHAR)
SELECT original_air_date FROM table_18335117_5 WHERE director = "Barnaby Southcomb" AND writer = "Charlie Martin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24361, 2469, 20275, 834, 755, 41, 21878, 834, 2256, 834, 5522, 584, 4280, 28027, 6, 2090, 584, 4280, 28027, 6, 4346, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 926, 834, 2256, 834, 5522, 21680, 953, 834, 24361, 2469, 20275, 834, 755, 549, 17444, 427, 2090, 3274, 96, 279, 15918, 969, 1013, 9763, 121, 3430, 4346, 3274, 96, 18947, 1896, 3394, 121, 1, -100, -100, -100, -100, -10...
How many park and rides are proposed for Overlake Village?
CREATE TABLE table_25297 ( "Station" text, "Extension" text, "City/Neighborhood" text, "Projected opening" text, "Park and ride?" text, "Funded by ST2 ?" text )
SELECT COUNT("Park and ride?") FROM table_25297 WHERE "Station" = 'Overlake Village'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 357, 4327, 41, 96, 134, 6821, 121, 1499, 6, 96, 5420, 13177, 121, 1499, 6, 96, 254, 485, 87, 567, 15, 9031, 6693, 4500, 121, 1499, 6, 96, 3174, 354, 7633, 2101, 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, 26163, 11, 2564, 4609, 61, 21680, 953, 834, 1828, 357, 4327, 549, 17444, 427, 96, 134, 6821, 121, 3274, 3, 31, 23847, 16948, 7305, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
In which game did the opponents score 14 points?
CREATE TABLE table_name_41 (game VARCHAR, opponents VARCHAR)
SELECT game FROM table_name_41 WHERE opponents = "14"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 7261, 584, 4280, 28027, 6, 16383, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 86, 84, 467, 410, 8, 16383, 2604, 968, 979, 58, 1, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 467, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 16383, 3274, 96, 2534, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the playoffs 2 result of season 2010-11?
CREATE TABLE table_name_18 ( playoffs_2 VARCHAR, season VARCHAR )
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 15289, 7, 834, 357, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 15289, 7, 204, 741, 13, 774, 2735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15289, 7, 834, 357, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 774, 3274, 96, 14926, 9169, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
When was the date of an event at Tokyo venue?
CREATE TABLE table_name_86 ( date VARCHAR, venue VARCHAR )
SELECT date FROM table_name_86 WHERE venue = "tokyo"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 833, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 47, 8, 833, 13, 46, 605, 44, 12653, 5669, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 5669, 3274, 96, 235, 3781, 32, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Name the record for l 106 116 (ot)
CREATE TABLE table_23285849_8 ( record VARCHAR, score VARCHAR )
SELECT record FROM table_23285849_8 WHERE score = "L 106–116 (OT)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 2577, 3449, 3647, 834, 927, 41, 1368, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1368, 21, 3, 40, 3, 16431, 3, 20159,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1368, 21680, 953, 834, 2773, 2577, 3449, 3647, 834, 927, 549, 17444, 427, 2604, 3274, 96, 434, 3, 16431, 104, 20159, 41, 6951, 61, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the 2010 entry for the row that has a 2009 entry of 270?
CREATE TABLE table_12922 ( "Tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2010" FROM table_12922 WHERE "2009" = '270'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22174, 2884, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 20615, 121, 1499, 6, 96, 16128, 121, 1499, 6, 96, 16660, 121, 1499, 6, 96, 14926, 121, 1499, 6, 96, 13907, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 14926, 121, 21680, 953, 834, 22174, 2884, 549, 17444, 427, 96, 16660, 121, 3274, 3, 31, 17485, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the GDP (nominal) (billions USD) where the population in millions for 2011 is 3.4?
CREATE TABLE table_24462 ( "Country" text, "Area (km\u00b2)" text, "Population (millions, 2011)" text, "GDP (PPP) (USD, per capita)" real, "GDP (nominal) (billions USD)" text, "HDI (2011)" text )
SELECT "GDP (nominal) (billions USD)" FROM table_24462 WHERE "Population (millions, 2011)" = '3.4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 4448, 357, 41, 96, 10628, 651, 121, 1499, 6, 96, 188, 864, 41, 5848, 2, 76, 1206, 115, 7318, 121, 1499, 6, 96, 27773, 7830, 41, 17030, 7, 6, 2722, 61, 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, 517, 7410, 41, 3114, 10270, 61, 41, 115, 14916, 7, 9513, 61, 121, 21680, 953, 834, 2266, 4448, 357, 549, 17444, 427, 96, 27773, 7830, 41, 17030, 7, 6, 2722, 61, 121, 3274, 3, 31, 23204, 31, 1, -100, -100, -1...
What is the total points of teams using a ligier js11/15 chassis?
CREATE TABLE table_name_18 ( points VARCHAR, chassis VARCHAR )
SELECT COUNT(points) FROM table_name_18 WHERE chassis = "ligier js11/15"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 979, 584, 4280, 28027, 6, 22836, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 979, 13, 2323, 338, 3, 9, 3, 2825, 972, 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, 2847, 17161, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 22836, 3274, 96, 2825, 972, 3, 354, 7, 2596, 20376, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Tell me the venue for 8 june 1931 for st kilda away team
CREATE TABLE table_57676 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_57676 WHERE "Date" = '8 june 1931' AND "Away team" = 'st kilda'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3959, 3959, 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, 755, 3959, 3959, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 927, 3, 6959, 15, 957, 3341, 31, 3430, 96, 188, 1343, 372, 121, 3274, 3, 31, 7, 17, 3, 157, 173, 2...
What year(s) did Hakeem Olajuwon play Center for Toronto?
CREATE TABLE table_name_33 ( years_in_toronto VARCHAR, player VARCHAR )
SELECT years_in_toronto FROM table_name_33 WHERE player = "hakeem olajuwon"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 203, 834, 77, 834, 235, 4438, 32, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 599, 7, 61, 410, 1626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 203, 834, 77, 834, 235, 4438, 32, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 1959, 3274, 96, 15416, 15, 15, 51, 3, 32, 521, 2047, 210, 106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What was the highest pick for a player from a school or club team of Arkansas?
CREATE TABLE table_75511 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School/Club Team" text )
SELECT MAX("Pick") FROM table_75511 WHERE "School/Club Team" = 'arkansas'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3072, 755, 2596, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 345, 3142, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 29364, 87, 254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 345, 3142, 8512, 21680, 953, 834, 3072, 755, 2596, 549, 17444, 427, 96, 29364, 87, 254, 11158, 2271, 121, 3274, 3, 31, 6604, 3247, 9, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
In what year is the status of won?
CREATE TABLE table_10405 ( "Year" text, "Name" text, "Film" text, "Role" text, "Status" text )
SELECT "Year" FROM table_10405 WHERE "Status" = 'won'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15442, 3076, 41, 96, 476, 2741, 121, 1499, 6, 96, 23954, 121, 1499, 6, 96, 371, 173, 51, 121, 1499, 6, 96, 448, 32, 109, 121, 1499, 6, 96, 134, 17, 144, 302, 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, 0, 0...
[ 3, 23143, 14196, 96, 476, 2741, 121, 21680, 953, 834, 15442, 3076, 549, 17444, 427, 96, 134, 17, 144, 302, 121, 3274, 3, 31, 210, 106, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Official Name of the Community with an Area km 2 of 16.13?
CREATE TABLE table_45223 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text )
SELECT "Official Name" FROM table_45223 WHERE "Area km 2" = '16.13'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2128, 357, 2773, 41, 96, 667, 89, 22816, 5570, 121, 1499, 6, 96, 134, 17, 144, 302, 121, 1499, 6, 96, 188, 864, 2280, 204, 121, 490, 6, 96, 27773, 7830, 121, 490, 6, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 667, 89, 22816, 5570, 121, 21680, 953, 834, 2128, 357, 2773, 549, 17444, 427, 96, 188, 864, 2280, 204, 121, 3274, 3, 31, 2938, 5, 2368, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show all the ranks and the number of male and female faculty for each rank in a bar chart, list by the bar in desc.
CREATE TABLE Activity ( actid INTEGER, activity_name varchar(25) ) CREATE TABLE Participates_in ( stuid INTEGER, actid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER )
SELECT Rank, COUNT(*) FROM Faculty GROUP BY Sex, Rank ORDER BY Rank DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 22536, 41, 1810, 23, 26, 3, 21342, 17966, 6, 1756, 834, 4350, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 15077, 6203, 834, 77, 41, 2134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1935, 61, 21680, 16896, 350, 4630, 6880, 272, 476, 679, 226, 6, 3, 22557, 4674, 11300, 272, 476, 3, 22557, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Show me mean rating by languages in a histogram
CREATE TABLE genre ( g_name varchar2(20), rating varchar2(10), most_popular_in varchar2(50) ) CREATE TABLE artist ( artist_name varchar2(50), country varchar2(20), gender varchar2(20), preferred_genre varchar2(50) ) CREATE TABLE song ( song_name varchar2(50), artist_name varchar2(50), country varchar2(20), f_id number(10), genre_is varchar2(20), rating number(10), languages varchar2(20), releasedate Date, resolution number(10) ) CREATE TABLE files ( f_id number(10), artist_name varchar2(50), file_size varchar2(20), duration varchar2(20), formats varchar2(20) )
SELECT languages, AVG(rating) FROM song GROUP BY languages
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5349, 41, 3, 122, 834, 4350, 3, 4331, 4059, 357, 599, 1755, 201, 5773, 3, 4331, 4059, 357, 599, 16968, 6, 167, 834, 27302, 834, 77, 3, 4331, 4059, 357, 599, 1752, 61, 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, 8024, 6, 71, 17217, 599, 52, 1014, 61, 21680, 2324, 350, 4630, 6880, 272, 476, 8024, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Show the title and publication dates of books.
CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Publication_Date VARCHAR, Book_ID VARCHAR)
SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 484, 41, 382, 155, 109, 584, 4280, 28027, 6, 3086, 834, 4309, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 5707, 41, 30931, 257, 834, 308, 342, 584, 4280,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 382, 155, 109, 6, 332, 4416, 30931, 257, 834, 308, 342, 21680, 484, 6157, 332, 536, 3, 15355, 3162, 5707, 6157, 332, 357, 9191, 332, 5411, 13355, 834, 4309, 3274, 332, 4416, 13355, 834, 4309, 1, -100, -10...
What is the latesr year that has more points than 0?
CREATE TABLE table_name_22 (year INTEGER, pts INTEGER)
SELECT MAX(year) FROM table_name_22 WHERE pts > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 1201, 3, 21342, 17966, 6, 3, 102, 17, 7, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1480, 7, 52, 215, 24, 65, 72, 979, 145, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 1201, 61, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 3, 102, 17, 7, 2490, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which United States player has a place of T3?
CREATE TABLE table_name_3 ( player VARCHAR, country VARCHAR, place VARCHAR )
SELECT player FROM table_name_3 WHERE country = "united states" AND place = "t3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 1959, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 286, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 907, 1323, 1959, 65, 3, 9, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1959, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 684, 3274, 96, 15129, 15, 26, 2315, 121, 3430, 286, 3274, 96, 17, 519, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the relationship between School_ID and All_Games_Percent , and group by attribute All_Games?
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 School_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games
[ 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, 1121, 834, 4309, 6, 432, 834, 23055, 7, 834, 12988, 3728, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 432, 834, 23055, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants?
CREATE TABLE table_name_13 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR)
SELECT MIN(pick) FROM table_name_13 WHERE position = "of" AND team = "san francisco giants" AND player = "arturo mcdowell"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 17967, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 17967, 61, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 1102, 3274, 96, 858, 121, 3430, 372, 3274, 96, 7, 152, 2515, 11389, 3523, 6079, 7, 121, 3430, 1959, 3274, 96, 1408, 450, 32, 3, 51, 75, ...
low hdl level ( < 40 mg / dl male , < 50 mg / dl female )
CREATE TABLE table_dev_41 ( "id" int, "gender" string, "serum_potassium" float, "systolic_blood_pressure_sbp" int, "serum_bicarbonate" int, "renal_disease" bool, "temperature" float, "diastolic_blood_pressure_dbp" int, "liver_disease" bool, "hdl" int, "serum_sodium_concentration" int, "heart_rate" int, "serum_creatinine" float, "kidney_disease" bool, "hypertension" bool, "uncontrolled_blood_pressure" bool, "unstable_vitals_signs" bool, "NOUSE" float )
SELECT * FROM table_dev_41 WHERE (hdl < 40 AND gender = 'male') OR (hdl < 50 AND gender = 'female')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9776, 834, 4853, 41, 96, 23, 26, 121, 16, 17, 6, 96, 122, 3868, 121, 6108, 6, 96, 7, 49, 440, 834, 3013, 6500, 440, 121, 3, 12660, 6, 96, 7, 63, 7, 235, 2176, 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, 1429, 21680, 953, 834, 9776, 834, 4853, 549, 17444, 427, 41, 107, 26, 40, 3, 2, 1283, 3430, 7285, 3274, 3, 31, 13513, 31, 61, 4674, 41, 107, 26, 40, 3, 2, 943, 3430, 7285, 3274, 3, 31, 89, 15, 13513, 31, 61, ...
Tell me the average pesticide residue for each state in the US where food is grown.
CREATE TABLE resultsdata15 ( sample_pk number, commod text, commtype text, lab text, pestcode text, testclass text, concen number, lod number, conunit text, confmethod text, confmethod2 text, annotate text, quantitate text, mean text, extract text, determin text ) CREATE TABLE sampledata15 ( sample_pk number, state text, year text, month text, day text, site text, commod text, source_id text, variety text, origin text, country text, disttype text, commtype text, claim text, quantity number, growst text, packst text, distst text )
SELECT T1.growst, AVG(T2.concen) FROM sampledata15 AS T1 JOIN resultsdata15 AS T2 ON T1.sample_pk = T2.sample_pk GROUP BY T1.growst
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 772, 6757, 1808, 41, 3106, 834, 102, 157, 381, 6, 3, 287, 7360, 1499, 6, 3, 287, 51, 6137, 1499, 6, 7690, 1499, 6, 6256, 4978, 1499, 6, 794, 4057, 1499, 6, 3, 11620, 29, 381, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 122, 3623, 7, 17, 6, 71, 17217, 599, 382, 4416, 11620, 29, 61, 21680, 3106, 6757, 1808, 6157, 332, 536, 3, 15355, 3162, 772, 6757, 1808, 6157, 332, 357, 9191, 332, 5411, 7, 9, 9208, 834, 102, 157, 3274,...
What is catcher Josh Donaldson's pick number?
CREATE TABLE table_name_11 ( pick VARCHAR, position VARCHAR, player VARCHAR )
SELECT pick FROM table_name_11 WHERE position = "catcher" AND player = "josh donaldson"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2596, 41, 1432, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 3, 27073, 14136, 7459, 739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1432, 21680, 953, 834, 4350, 834, 2596, 549, 17444, 427, 1102, 3274, 96, 27073, 121, 3430, 1959, 3274, 96, 1927, 7, 107, 278, 138, 26, 739, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which DVD Title has a Region 1 of n/a and greater than 3 in No. of Discs?
CREATE TABLE table_name_57 ( dvd_title VARCHAR, region_1 VARCHAR, no_of_discs VARCHAR )
SELECT dvd_title FROM table_name_57 WHERE region_1 = "n/a" AND no_of_discs > 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3436, 41, 30114, 834, 21869, 584, 4280, 28027, 6, 1719, 834, 536, 584, 4280, 28027, 6, 150, 834, 858, 834, 19315, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 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, 30114, 834, 21869, 21680, 953, 834, 4350, 834, 3436, 549, 17444, 427, 1719, 834, 536, 3274, 96, 29, 87, 9, 121, 3430, 150, 834, 858, 834, 19315, 7, 2490, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many draws have less than 35 losses with 136 matches and less than 146 against?
CREATE TABLE table_name_47 (draw INTEGER, against VARCHAR, losses VARCHAR, matches VARCHAR)
SELECT AVG(draw) FROM table_name_47 WHERE losses < 35 AND matches = 136 AND against < 146
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 19489, 3, 21342, 17966, 6, 581, 584, 4280, 28027, 6, 8467, 584, 4280, 28027, 6, 6407, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1492...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 19489, 61, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 8467, 3, 2, 3097, 3430, 6407, 3274, 3, 23459, 3430, 581, 3, 2, 3, 24300, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the solo when name is briggs, diyral
CREATE TABLE table_1187 ( "Name" text, "GP" real, "Solo" real, "Ast" real, "Total" real, "TFL-Yds" text, "No-Yds" text, "BrUp" real, "QBH" real, "No.-Yds" text, "Avg" text, "TD" real, "Rcv-Yds" text, "FF" real, "Blkd Kick" real )
SELECT "Solo" FROM table_1187 WHERE "Name" = 'Briggs, Diyral'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 4225, 41, 96, 23954, 121, 1499, 6, 96, 8049, 121, 490, 6, 96, 5231, 40, 32, 121, 490, 6, 96, 188, 7, 17, 121, 490, 6, 96, 3696, 1947, 121, 490, 6, 96, 9164, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5231, 40, 32, 121, 21680, 953, 834, 2596, 4225, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 279, 23983, 7, 6, 2043, 63, 4900, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What G/F Player has 3 Years in the NBA?
CREATE TABLE table_name_27 (player VARCHAR, pos VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT player FROM table_name_27 WHERE pos = "g/f" AND years_of_nba_experience_[a_] = "3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2555, 41, 20846, 584, 4280, 28027, 6, 3, 2748, 584, 4280, 28027, 6, 203, 834, 858, 834, 29, 115, 9, 834, 22602, 834, 584, 4280, 28027, 6, 3, 9, 834, 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, 1959, 21680, 953, 834, 4350, 834, 2555, 549, 17444, 427, 3, 2748, 3274, 96, 122, 87, 89, 121, 3430, 203, 834, 858, 834, 29, 115, 9, 834, 22602, 834, 6306, 9, 834, 908, 3274, 96, 519, 121, 1, -100, -100, -100, -1...
Which country had a round of Q3?
CREATE TABLE table_name_58 ( country VARCHAR, round VARCHAR )
SELECT country FROM table_name_58 WHERE round = "q3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 684, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 684, 141, 3, 9, 1751, 13, 1593, 519, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 21680, 953, 834, 4350, 834, 3449, 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, ...
How many times was there a draw when played is more than 4 and the first game is in 2000?
CREATE TABLE table_name_24 (drawn VARCHAR, played VARCHAR, first_game VARCHAR)
SELECT drawn FROM table_name_24 WHERE played > 4 AND first_game = 2000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 19489, 29, 584, 4280, 28027, 6, 1944, 584, 4280, 28027, 6, 166, 834, 7261, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 648, 47, 132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6796, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 1944, 2490, 314, 3430, 166, 834, 7261, 3274, 2766, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
which team has the highest rank among those listed ?
CREATE TABLE table_204_219 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number )
SELECT "opponent#" FROM table_204_219 ORDER BY "rank#" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 357, 2294, 41, 3, 23, 26, 381, 6, 96, 5522, 121, 1499, 6, 96, 715, 121, 1499, 6, 96, 32, 102, 9977, 4663, 121, 1499, 6, 96, 6254, 4663, 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, 32, 102, 9977, 4663, 121, 21680, 953, 834, 26363, 834, 357, 2294, 4674, 11300, 272, 476, 96, 6254, 4663, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the total number of years where runner-up and championship is us open
CREATE TABLE table_1547951_3 (year VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT COUNT(year) FROM table_1547951_3 WHERE outcome = "Runner-up" AND championship = "US Open"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27308, 4440, 5553, 834, 519, 41, 1201, 584, 4280, 28027, 6, 6138, 584, 4280, 28027, 6, 10183, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 792, 381, 13, 203,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1201, 61, 21680, 953, 834, 27308, 4440, 5553, 834, 519, 549, 17444, 427, 6138, 3274, 96, 23572, 18, 413, 121, 3430, 10183, 3274, 96, 3063, 2384, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100...
Show the location name for document 'Robin CV'.
CREATE TABLE All_documents ( document_id VARCHAR, document_name VARCHAR ) CREATE TABLE Ref_locations ( location_name VARCHAR, location_code VARCHAR ) CREATE TABLE Document_locations ( document_id VARCHAR, location_code VARCHAR )
SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 432, 834, 28244, 7, 41, 1708, 834, 23, 26, 584, 4280, 28027, 6, 1708, 834, 4350, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 419, 89, 834, 14836, 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, 332, 5787, 14836, 834, 4350, 21680, 432, 834, 28244, 7, 6157, 332, 536, 3, 15355, 3162, 11167, 834, 14836, 7, 6157, 332, 357, 9191, 332, 5411, 28244, 834, 23, 26, 3274, 332, 4416, 28244, 834, 23, 26, 3, 15355, 3162,...
What is the release Date of Catalog RR 8655-2?
CREATE TABLE table_name_39 ( date VARCHAR, catalog VARCHAR )
SELECT date FROM table_name_39 WHERE catalog = "rr 8655-2"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3288, 41, 833, 584, 4280, 28027, 6, 10173, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1576, 7678, 13, 22424, 3, 12224, 505, 4122, 24279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 21680, 953, 834, 4350, 834, 3288, 549, 17444, 427, 10173, 3274, 96, 52, 52, 505, 4122, 24279, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the most gold medals when the bronze medals were 0, and the silver medals greater than 1?
CREATE TABLE table_13458 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MAX("Gold") FROM table_13458 WHERE "Bronze" = '0' AND "Silver" > '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 3449, 41, 96, 22557, 121, 1499, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, 3696,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23576, 8512, 21680, 953, 834, 23747, 3449, 549, 17444, 427, 96, 22780, 29, 776, 121, 3274, 3, 31, 632, 31, 3430, 96, 134, 173, 624, 121, 2490, 3, 31, 536, 31, 1, -100, -100, -100, -100, -100, ...
What is the Money of the Player with a To par of +3 and Score of 76-69-69-69=283?
CREATE TABLE table_name_67 (money___ INTEGER, to_par VARCHAR, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_67 WHERE to_par = "+3" AND score = 76 - 69 - 69 - 69 = 283
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3708, 41, 28442, 834, 834, 834, 3, 21342, 17966, 6, 12, 834, 1893, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28442, 834, 834, 834, 61, 6157, 1514, 834, 834, 21680, 953, 834, 4350, 834, 3708, 549, 17444, 427, 12, 834, 1893, 3274, 96, 1220, 519, 121, 3430, 2604, 3274, 3, 3959, 3, 18, 3, 3951, 3, 18, 3, 3951...
what is the number of patients whose discharge location is home and procedure short title is skin closure nec?
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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME" AND procedures.short_title = "Skin closure NEC"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What is the average hours across all projects?
CREATE TABLE scientists ( ssn number, name text ) CREATE TABLE projects ( code text, name text, hours number ) CREATE TABLE assignedto ( scientist number, project text )
SELECT AVG(hours) FROM projects
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7004, 41, 3, 7, 7, 29, 381, 6, 564, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1195, 41, 1081, 1499, 6, 564, 1499, 6, 716, 381, 3, 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, 71, 17217, 599, 5842, 7, 61, 21680, 1195, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the method in round 1 of the UFC 20 event?
CREATE TABLE table_name_87 (method VARCHAR, round VARCHAR, event VARCHAR)
SELECT method FROM table_name_87 WHERE round = 1 AND event = "ufc 20"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4225, 41, 23152, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 6, 605, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1573, 16, 1751, 209, 13, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1573, 21680, 953, 834, 4350, 834, 4225, 549, 17444, 427, 1751, 3274, 209, 3430, 605, 3274, 96, 76, 89, 75, 460, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many u.s. viewers (million) have the number 16?
CREATE TABLE table_19229713_6 ( us_viewers__million_ VARCHAR, _number VARCHAR )
SELECT us_viewers__million_ FROM table_19229713_6 WHERE _number = 16
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 2884, 4327, 2368, 834, 948, 41, 178, 834, 4576, 277, 834, 834, 17030, 834, 584, 4280, 28027, 6, 3, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 178, 834, 4576, 277, 834, 834, 17030, 834, 21680, 953, 834, 2294, 2884, 4327, 2368, 834, 948, 549, 17444, 427, 3, 834, 5525, 1152, 3274, 898, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How much was the score of the home team at windy hill?
CREATE TABLE table_name_34 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_34 WHERE venue = "windy hill"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 5515, 834, 11650, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 231, 47, 8, 2604, 13, 8, 234, 372, 44, 2943, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 234, 834, 11650, 6157, 2604, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 5669, 3274, 96, 5165, 63, 9956, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Fencing Victories (pts) has a Total of 5640?
CREATE TABLE table_65458 ( "Athlete" text, "Shooting Score (pts)" text, "Fencing Victories (pts)" text, "Swimming Time (pts)" text, "Equestrian Time (pts)" text, "Running Time (pts)" text, "Total" real )
SELECT "Fencing Victories (pts)" FROM table_65458 WHERE "Total" = '5640'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4122, 2128, 927, 41, 96, 188, 189, 1655, 15, 121, 1499, 6, 96, 10499, 32, 32, 1222, 17763, 41, 102, 17, 7, 61, 121, 1499, 6, 96, 371, 15, 4733, 8884, 725, 41, 102, 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, 96, 371, 15, 4733, 8884, 725, 41, 102, 17, 7, 61, 121, 21680, 953, 834, 4122, 2128, 927, 549, 17444, 427, 96, 3696, 1947, 121, 3274, 3, 31, 4834, 2445, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many courses are located in carmel, indiana?
CREATE TABLE table_29580 ( "Year" real, "Player" text, "Country" text, "Score" text, "To par" text, "Margin of victory" text, "Course" text, "Location" text, "Purse ( $ )" real, "Winners share ($)" real )
SELECT COUNT("Course") FROM table_29580 WHERE "Location" = 'Carmel, Indiana'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3301, 2079, 41, 96, 476, 2741, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 6, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 3881, 3589, 15, 8512, 21680, 953, 834, 357, 3301, 2079, 549, 17444, 427, 96, 434, 32, 75, 257, 121, 3274, 3, 31, 6936, 2341, 6, 11494, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?
CREATE TABLE table_name_22 ( birth VARCHAR, ceased_to_be_duke_of_girona VARCHAR )
SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 3879, 584, 4280, 28027, 6, 3, 29220, 834, 235, 834, 346, 834, 1259, 1050, 834, 858, 834, 9427, 106, 9, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3879, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 3, 29220, 834, 235, 834, 346, 834, 1259, 1050, 834, 858, 834, 9427, 106, 9, 3274, 96, 2658, 3, 5326, 18247, 627, 4613, 121, 1, -100, -100, -100, -100, -100, ...
what was the first prescription drug that was prescribed to patient 022-34558 since 114 months ago?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime 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 ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE 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 diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time )
SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-34558')) AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-114 month') ORDER BY medication.drugstarttime LIMIT 1
[ 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, 7690, 41, 50, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7757, 5, 26, 13534, 4350, 21680, 7757, 549, 17444, 427, 7757, 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, 21...
What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997?
CREATE TABLE table_name_99 ( preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR )
SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 554, 4941, 77, 5414, 584, 4280, 28027, 6, 9728, 7628, 584, 4280, 28027, 6, 2772, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 554, 4941, 77, 5414, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 9728, 7628, 3, 2, 4848, 4240, 927, 3430, 2772, 3274, 505, 14990, 940, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was Hawthorn's score when they were the home team?
CREATE TABLE table_33320 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team score" FROM table_33320 WHERE "Home team" = 'hawthorn'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23360, 1755, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 19040, 372, 2604, 121, 21680, 953, 834, 23360, 1755, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 1024, 210, 17, 6293, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
how many teams scored no points against their opponents ?
CREATE TABLE table_204_361 ( id number, "tie no" number, "home team" text, "score" text, "away team" text )
SELECT COUNT(*) FROM table_204_361 WHERE "score" = 0 OR "score" = 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 3420, 536, 41, 3, 23, 26, 381, 6, 96, 17, 23, 15, 150, 121, 381, 6, 96, 5515, 372, 121, 1499, 6, 96, 7, 9022, 121, 1499, 6, 96, 8006, 372, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 26363, 834, 3420, 536, 549, 17444, 427, 96, 7, 9022, 121, 3274, 3, 632, 4674, 96, 7, 9022, 121, 3274, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the sum of t ( m), when Technology is MJ?
CREATE TABLE table_name_26 ( t__µm_ INTEGER, technology VARCHAR )
SELECT SUM(t__µm_) FROM table_name_26 WHERE technology = "mj"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 3, 17, 834, 834, 2, 51, 834, 3, 21342, 17966, 6, 748, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4505, 13, 3, 17, 41, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 17, 834, 834, 2, 51, 834, 61, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 748, 3274, 96, 51, 354, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average of all the years when the notes are electronics brand?
CREATE TABLE table_33724 ( "Year" real, "Kit Supplier" text, "Sponsor" text, "Shirt Printing" text, "Notes" text )
SELECT AVG("Year") FROM table_33724 WHERE "Notes" = 'electronics brand'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 4118, 2266, 41, 96, 476, 2741, 121, 490, 6, 96, 439, 155, 16406, 121, 1499, 6, 96, 134, 5041, 7, 127, 121, 1499, 6, 96, 16671, 6763, 53, 121, 1499, 6, 96, 10358, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 476, 2741, 8512, 21680, 953, 834, 519, 4118, 2266, 549, 17444, 427, 96, 10358, 15, 7, 121, 3274, 3, 31, 15, 3437, 52, 4554, 7, 1056, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100...
how many patients were prescribed the drug 2 ml: ondansetron hcl 4 mg/2ml ij soln in 2104?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime 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 intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = '2 ml: ondansetron hcl 4 mg/2ml ij soln' AND STRFTIME('%y', medication.drugstarttime) = '2104')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8209, 41, 8209, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 8209, 4350, 1499, 6, 8209, 715, 97, 6, 3, 447, 26, 1298, 4978, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 1868, 5, 202, 1495, 12417, 61, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 7757, 5, 10061, 15129, 21545, 23, 26, 21680, 7757, 549, ...
What is the FA Cup App for Squad Number 3 having fewer than 4 league goals?
CREATE TABLE table_46959 ( "Squad No." real, "Name" text, "Position" text, "League Apps" text, "League Goals" real, "FA Cup Apps" text, "FA Cup Goals" real, "League Cup Apps" text, "League Cup Goals" real, "Total Apps" text, "Total Goals" real )
SELECT "FA Cup Apps" FROM table_46959 WHERE "League Goals" < '4' AND "Squad No." = '3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 3951, 3390, 41, 96, 134, 4960, 26, 465, 535, 490, 6, 96, 23954, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 2796, 9, 5398, 2276, 7, 121, 1499, 6, 96, 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, 4795, 3802, 2276, 7, 121, 21680, 953, 834, 591, 3951, 3390, 549, 17444, 427, 96, 2796, 9, 5398, 17916, 7, 121, 3, 2, 3, 31, 591, 31, 3430, 96, 134, 4960, 26, 465, 535, 3274, 3, 31, 519, 31, 1, -100, -100, ...
a fasting glucose 100 _ 125 mg / dl, or a hba1c measurement of 5.7 _ 6.4 % , or a diagnosis of prediabetes or impaired fasting glucose in the past 6 months
CREATE TABLE table_dev_36 ( "id" int, "gender" string, "prediabetes" bool, "leukopenia" int, "hemoglobin_a1c_hba1c" float, "cd4_count" int, "platelets" int, "hematocrit_hct" float, "fasting_triglycerides" int, "hyperlipidemia" bool, "lymphopenia" int, "fasting_ldl_cholesterol" int, "impaired_fasting_glucose" bool, "baseline_hemoglobin_hgb" float, "fasting_glucose" int, "NOUSE" float )
SELECT * FROM table_dev_36 WHERE (fasting_glucose >= 100 AND fasting_glucose <= 125) OR (hemoglobin_a1c_hba1c >= 5.7 AND hemoglobin_a1c_hba1c <= 6.4) OR (prediabetes = 1 OR impaired_fasting_glucose = 1)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9776, 834, 3420, 41, 96, 23, 26, 121, 16, 17, 6, 96, 122, 3868, 121, 6108, 6, 96, 2026, 26, 23, 9, 346, 1422, 121, 3, 12840, 40, 6, 96, 109, 1598, 8751, 23, 9, 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, 1429, 21680, 953, 834, 9776, 834, 3420, 549, 17444, 427, 41, 11584, 53, 834, 13492, 509, 7, 15, 2490, 2423, 910, 3430, 1006, 53, 834, 13492, 509, 7, 15, 3, 2, 2423, 3, 10124, 61, 4674, 41, 6015, 32, 14063, 77, 8...
which To par has a Country of united states, and a Player of dave stockton?
CREATE TABLE table_name_42 ( to_par VARCHAR, country VARCHAR, player VARCHAR )
SELECT to_par FROM table_name_42 WHERE country = "united states" AND player = "dave stockton"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 12, 834, 1893, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 84, 304, 260, 65, 3, 9, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 12, 834, 1893, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 684, 3274, 96, 15129, 15, 26, 2315, 121, 3430, 1959, 3274, 96, 26, 9, 162, 1519, 17, 106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who was on Jason's team for the 12 June 2009 episode?
CREATE TABLE table_73534 ( "Episode" text, "First broadcast" text, "Seans team" text, "Jasons team" text, "Scores" text )
SELECT "Jasons team" FROM table_73534 WHERE "First broadcast" = '12 June 2009'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2469, 3710, 41, 96, 427, 102, 159, 32, 221, 121, 1499, 6, 96, 25171, 6878, 121, 1499, 6, 96, 134, 15, 3247, 372, 121, 1499, 6, 96, 683, 9, 6577, 372, 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, 683, 9, 6577, 372, 121, 21680, 953, 834, 940, 2469, 3710, 549, 17444, 427, 96, 25171, 6878, 121, 3274, 3, 31, 2122, 1515, 2464, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the sum of rank when total is 3 and the nation is Australia?
CREATE TABLE table_name_12 (rank INTEGER, total VARCHAR, nation VARCHAR)
SELECT SUM(rank) FROM table_name_12 WHERE total = 3 AND nation = "australia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2122, 41, 6254, 3, 21342, 17966, 6, 792, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4505, 13, 11003, 116, 792, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 6254, 61, 21680, 953, 834, 4350, 834, 2122, 549, 17444, 427, 792, 3274, 220, 3430, 2982, 3274, 96, 2064, 8792, 23, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
which patients have td route of drug administration?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "TD"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the average of salary , and group by attribute job_id in a bar chart, and show by the bars from low to high.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) )
SELECT JOB_ID, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 71, 17217, 599, 134, 4090, 24721, 61, 21680, 1652, 549, 17444, 427, 30085, 834, 567, 17683, 8729, 9914, 3, 31, 1454, 308, 1454, 31, 4674, 30085, 834, 567, 17683, 8729, 9914, 3, 31, 1454, 13...
What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?
CREATE TABLE checking ( custid number, balance number ) CREATE TABLE accounts ( custid number, name text ) CREATE TABLE savings ( custid number, balance number )
SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6450, 41, 123, 2248, 26, 381, 6, 2109, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3744, 41, 123, 2248, 26, 381, 6, 564, 1499, 3, 61, 3, 32102, 32103, 32102, 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, 332, 5411, 1071, 2248, 26, 6, 332, 5411, 4350, 21680, 3744, 6157, 332, 536, 3, 15355, 3162, 6450, 6157, 332, 357, 9191, 332, 5411, 1071, 2248, 26, 3274, 332, 4416, 1071, 2248, 26, 549, 17444, 427, 332, 4416, 3849, 6...
give me the number of patients whose year of death is less than or equal to 2168 and diagnoses long title is hyperosmolality and/or hypernatremia?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2168.0" AND diagnoses.long_title = "Hyperosmolality and/or hypernatremia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
how many dead/expired patients have been discharged and had undergone the lab test manual reticulocyte count?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "DEAD/EXPIRED" AND lab.label = "Reticulocyte Count, Manual"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
How many contestants of whatever age are there whose hometown of Andujar?
CREATE TABLE table_23476629_2 (age VARCHAR, hometown VARCHAR)
SELECT COUNT(age) FROM table_23476629_2 WHERE hometown = "Andujar"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 4177, 3539, 3166, 834, 357, 41, 545, 584, 4280, 28027, 6, 22295, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 4233, 2366, 13, 2891, 1246, 33, 132, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 545, 61, 21680, 953, 834, 2773, 4177, 3539, 3166, 834, 357, 549, 17444, 427, 22295, 3274, 96, 7175, 76, 5670, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What player has 1 as the place?
CREATE TABLE table_78762 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text )
SELECT "Player" FROM table_78762 WHERE "Finish" = '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 3959, 357, 41, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 476, 2741, 599, 7, 61, 751, 121, 1499, 6, 96, 3696, 1947, 121, 490, 6, 96, 3696, 260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3940, 3959, 357, 549, 17444, 427, 96, 371, 77, 1273, 121, 3274, 3, 31, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...