NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
how many patients whose primary disease is s/p hanging and year of birth is less than 2049?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P HANGING" AND demographic.dob_year < "2049"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 134, 87, 345, 454, 19775, 2365, 121, 3430, 14798, 5, 26, 32, 115, 83...
What position does Drew Callander play?
CREATE TABLE table_name_1 ( position VARCHAR, player VARCHAR )
SELECT position FROM table_name_1 WHERE player = "drew callander"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 536, 41, 1102, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 1102, 405, 24348, 2571, 11849, 577, 58, 1, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 4350, 834, 536, 549, 17444, 427, 1959, 3274, 96, 26, 60, 210, 580, 11849, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
State average scores of participants from arizona
CREATE TABLE table_17088705_2 ( average VARCHAR, country VARCHAR )
SELECT average FROM table_17088705_2 WHERE country = "Arizona"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 4018, 4225, 3076, 834, 357, 41, 1348, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 1015, 1348, 7586, 13, 3008, 45, 3, 1665, 8892, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1348, 21680, 953, 834, 2517, 4018, 4225, 3076, 834, 357, 549, 17444, 427, 684, 3274, 96, 188, 13266, 106, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
When was Lachlan Dale born?
CREATE TABLE table_36220 ( "Surname" text, "First" text, "D.O.B." text, "Bats" text, "Throws" text, "Position" text )
SELECT "D.O.B." FROM table_36220 WHERE "Surname" = 'dale' AND "First" = 'lachlan'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3420, 357, 1755, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5, 667, 5, 279, 535, 21680, 953, 834, 3420, 357, 1755, 549, 17444, 427, 96, 134, 450, 4350, 121, 3274, 3, 31, 5437, 31, 3430, 96, 25171, 121, 3274, 3, 31, 40, 1836, 1618, 31, 1, -100, -100, -100, -100, ...
Where did Geelong play a home game?
CREATE TABLE table_name_74 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_74 WHERE home_team = "geelong"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 15098, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2840, 410, 961, 15, 2961, 577, 3, 9, 234, 467, 58, 1,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5669, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 234, 834, 11650, 3274, 96, 397, 15, 2961, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the total number of players who had a money list rank of 96?
CREATE TABLE table_23760 ( "Player" text, "Starts" real, "Cuts made" real, "Best finish" text, "Money list rank" real, "Earnings ($)" real )
SELECT COUNT("Best finish") FROM table_23760 WHERE "Money list rank" = '96'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 28212, 41, 96, 15800, 49, 121, 1499, 6, 96, 7681, 17, 7, 121, 490, 6, 96, 15784, 17, 7, 263, 121, 490, 6, 96, 17278, 1992, 121, 1499, 6, 96, 9168, 15, 63, 570, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17278, 1992, 8512, 21680, 953, 834, 2773, 28212, 549, 17444, 427, 96, 9168, 15, 63, 570, 11003, 121, 3274, 3, 31, 4314, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who had the decision goal when the date was 1?
CREATE TABLE table_50114 ( "Game" real, "Date" real, "Opponent" text, "Score" text, "Decision" text, "Location/Attendance" text, "Record" text )
SELECT "Decision" FROM table_50114 WHERE "Date" = '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 18959, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 490, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 2962, 18901, 121, 1499, 6, 96, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2962, 18901, 121, 21680, 953, 834, 1752, 18959, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is Opposing Teams, when Date is '11/10/1991'?
CREATE TABLE table_79079 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text )
SELECT "Opposing Teams" FROM table_79079 WHERE "Date" = '11/10/1991'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2394, 4440, 41, 96, 667, 102, 2748, 53, 16651, 121, 1499, 6, 96, 20749, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 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, 667, 102, 2748, 53, 16651, 121, 21680, 953, 834, 940, 2394, 4440, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 2596, 11476, 13523, 4729, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the position of the team with more than 16 losses and an against greater than 74?
CREATE TABLE table_38620 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT SUM("Position") FROM table_38620 WHERE "Lost" > '16' AND "Against" > '74'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3747, 26898, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 308, 10936, 29, 121, 490, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 345, 32, 7, 4749, 8512, 21680, 953, 834, 3747, 26898, 549, 17444, 427, 96, 434, 3481, 121, 2490, 3, 31, 2938, 31, 3430, 96, 20749, 121, 2490, 3, 31, 4581, 31, 1, -100, -100, -100, -100, -100, ...
Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?
CREATE TABLE table_58391 ( "AVE- No." real, "Name" text, "Country" text, "Highest mountain" text, "Height (m)" real )
SELECT SUM("AVE- No.") FROM table_58391 WHERE "Name" = 'albula alps' AND "Height (m)" > '3418'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3449, 3288, 536, 41, 96, 18111, 18, 465, 535, 490, 6, 96, 23954, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 21417, 222, 4180, 121, 1499, 6, 96, 3845, 2632, 41, 51, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 18111, 18, 465, 5, 8512, 21680, 953, 834, 3449, 3288, 536, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 138, 6724, 9, 491, 102, 7, 31, 3430, 96, 3845, 2632, 41, 51, 61, 121, 2490, 3, 31, ...
Name the total number of stage for lloyd mondory
CREATE TABLE table_22713796_14 ( stage VARCHAR, mountains_classification VARCHAR )
SELECT COUNT(stage) FROM table_22713796_14 WHERE mountains_classification = "Lloyd Mondory"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2555, 24636, 4314, 834, 2534, 41, 1726, 584, 4280, 28027, 6, 8022, 834, 4057, 2420, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 792, 381, 13, 1726, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10705, 61, 21680, 953, 834, 357, 2555, 24636, 4314, 834, 2534, 549, 17444, 427, 8022, 834, 4057, 2420, 3274, 96, 434, 40, 32, 63, 26, 283, 17381, 651, 121, 1, -100, -100, -100, -100, -100, -100, -1...
Which club lost 10 games ?
CREATE TABLE table_67609 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text )
SELECT "Club" FROM table_67609 WHERE "Lost" = '10'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 948, 4198, 41, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 1499, 6, 96, 308, 10936, 29, 121, 1499, 6, 96, 434, 3481, 121, 1499, 6, 96, 22512, 7, 21, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 11158, 121, 21680, 953, 834, 3708, 948, 4198, 549, 17444, 427, 96, 434, 3481, 121, 3274, 3, 31, 1714, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Return a bar chart on what are the different card types, and how many transactions have been made with each?, and I want to rank by the x-axis in ascending please.
CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_details VARCHAR(255) ) CREATE TABLE Customers ( customer_id INTEGER, customer_first_name VARCHAR(20), customer_last_name VARCHAR(20), customer_address VARCHAR(255), customer_phone VARCHAR(255), customer_email VARCHAR(255), other_customer_details VARCHAR(255) ) CREATE TABLE Customers_Cards ( card_id INTEGER, customer_id INTEGER, card_type_code VARCHAR(15), card_number VARCHAR(80), date_valid_from DATETIME, date_valid_to DATETIME, other_card_details VARCHAR(255) ) CREATE TABLE Accounts ( account_id INTEGER, customer_id INTEGER, account_name VARCHAR(50), other_account_details VARCHAR(255) )
SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY card_type_code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5421, 834, 18474, 4787, 7, 41, 5878, 834, 23, 26, 3, 21342, 17966, 6, 1767, 834, 7031, 4787, 834, 23, 26, 3, 21342, 17966, 6, 905, 834, 23, 26, 3, 21342, 17966, 6, 895, 834, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 895, 834, 6137, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 5421, 834, 18474, 4787, 7, 6157, 332, 536, 3, 15355, 3162, 16423, 834, 6936, 26, 7, 6157, 332, 357, 9191, 332, 5411, 6043, 834, 23, 26, 3274, 332, 4...
until 2101 what are the four most common diagnoses?
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE STRFTIME('%y', diagnosis.diagnosistime) <= '2101' GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1868, 41, 775, 12417, 1499, 6, 1868, 15878, 3734, 21545, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 7285, 1499, 6, 1246, 1499, 6, 11655, 485, 1499, 6, 2833, 23, 26, 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, 3, 17, 5411, 25930, 4844, 159, 4350, 21680, 41, 23143, 14196, 8209, 5, 25930, 4844, 159, 4350, 6, 3, 22284, 4132, 834, 16375, 439, 9960, 3, 23288, 41, 2990, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 6...
what are patient 017-13959 hospital admission times since 5 years ago?
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 medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time )
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '017-13959' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-5 year')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 23886, 41, 23886, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2672, 4350, 1499, 6, 23886, 4350, 1499, 6, 23886, 715, 97, 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, 1868, 5, 31386, 20466, 17, 715, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 632, 2517, 18, 24090, 3390, 31, 3430, 309, 6048, 382, 15382, 599, 10061, 5, 31386, 20466, 17, 715, 61, 2490, 2423...
What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?
CREATE TABLE table_name_92 ( match_no INTEGER, date VARCHAR, time VARCHAR )
SELECT MAX(match_no) FROM table_name_92 WHERE date = "2008-03-21" AND time = "16:00"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4508, 41, 1588, 834, 29, 32, 3, 21342, 17966, 6, 833, 584, 4280, 28027, 6, 97, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 12296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 19515, 834, 29, 32, 61, 21680, 953, 834, 4350, 834, 4508, 549, 17444, 427, 833, 3274, 96, 16128, 18, 4928, 16539, 121, 3430, 97, 3274, 96, 536, 18828, 121, 1, -100, -100, -100, -100, -100, -100, -100, ...
what was the signing price on average of all the players ?
CREATE TABLE table_203_833 ( id number, "round" number, "pick" number, "player" text, "pos." text, "nationality" text, "team" text, "aba team" text, "signing price" text )
SELECT AVG("signing price") FROM table_203_833
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 4591, 519, 41, 3, 23, 26, 381, 6, 96, 7775, 121, 381, 6, 96, 17967, 121, 381, 6, 96, 20846, 121, 1499, 6, 96, 2748, 535, 1499, 6, 96, 16557, 485, 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, 71, 17217, 599, 121, 6732, 53, 594, 8512, 21680, 953, 834, 23330, 834, 4591, 519, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Where was the game played when the score was 14.16 (100)-12.12 (84)?
CREATE TABLE table_24919137_2 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_24919137_2 WHERE score = "14.16 (100)-12.12 (84)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3647, 2294, 24636, 834, 357, 41, 15098, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2840, 47, 8, 467, 1944, 116, 8, 2604, 47, 9264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5669, 21680, 953, 834, 357, 3647, 2294, 24636, 834, 357, 549, 17444, 427, 2604, 3274, 96, 2534, 5, 2938, 41, 2915, 61, 5947, 5, 2122, 13642, 7256, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show headquarters with at least two companies in the banking industry.
CREATE TABLE gas_station ( station_id number, open_year number, location text, manager_name text, vice_manager_name text, representative_name text ) CREATE TABLE station_company ( station_id number, company_id number, rank_of_the_year number ) CREATE TABLE company ( company_id number, rank number, company text, headquarters text, main_industry text, sales_billion number, profits_billion number, assets_billion number, market_value number )
SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING COUNT(*) >= 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1807, 834, 6682, 41, 2478, 834, 23, 26, 381, 6, 539, 834, 1201, 381, 6, 1128, 1499, 6, 2743, 834, 4350, 1499, 6, 6444, 834, 24185, 834, 4350, 1499, 6, 6978, 834, 4350, 1499, 3, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 13767, 21680, 349, 549, 17444, 427, 711, 834, 13580, 7, 8224, 3274, 3, 31, 21347, 53, 31, 350, 4630, 6880, 272, 476, 13767, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 2423, 204, 1, -100, -100, -100, -100, -1...
what is the lowest position of brendan sole
CREATE TABLE table_20090682_4 ( pos INTEGER, driver VARCHAR )
SELECT MAX(pos) FROM table_20090682_4 WHERE driver = "Brendan Sole"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 16660, 5176, 4613, 834, 591, 41, 3, 2748, 3, 21342, 17966, 6, 2535, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 7402, 1102, 13, 6397, 35, 3768, 4199...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 2748, 61, 21680, 953, 834, 16660, 5176, 4613, 834, 591, 549, 17444, 427, 2535, 3274, 96, 279, 1536, 3768, 264, 109, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When was the last final lost of the club with 7 wins?
CREATE TABLE table_34523 ( "Club" text, "Wins" text, "Last win" text, "Runners-up" text, "Last final lost" text )
SELECT "Last final lost" FROM table_34523 WHERE "Wins" = '7'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 2128, 2773, 41, 96, 254, 11158, 121, 1499, 6, 96, 18455, 7, 121, 1499, 6, 96, 3612, 7, 17, 1369, 121, 1499, 6, 96, 23572, 7, 18, 413, 121, 1499, 6, 96, 3612, 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, 3612, 7, 17, 804, 1513, 121, 21680, 953, 834, 519, 2128, 2773, 549, 17444, 427, 96, 18455, 7, 121, 3274, 3, 31, 940, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What date did series number 32 premiere?
CREATE TABLE table_2667438_5 ( original_air_date VARCHAR, no_in_series VARCHAR )
SELECT original_air_date FROM table_2667438_5 WHERE no_in_series = 32
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3539, 4581, 3747, 834, 755, 41, 926, 834, 2256, 834, 5522, 584, 4280, 28027, 6, 150, 834, 77, 834, 10833, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 926, 834, 2256, 834, 5522, 21680, 953, 834, 357, 3539, 4581, 3747, 834, 755, 549, 17444, 427, 150, 834, 77, 834, 10833, 7, 3274, 3538, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of patients whose ethnicity is black/haitian and admission year is less than 2125?
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.admityear < "2125"
[ 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, 549, 17444, 427, 14798, 5, 15, 189, 2532, 485, 3274, 96, 8775, 15339, 87, 5478, 3177, 21758, 121, 3430, 14798, 5, 20466, 17, ...
Team of elgin city, and a Highest smaller than 537 had what total number of average?
CREATE TABLE table_name_20 ( average VARCHAR, team VARCHAR, highest VARCHAR )
SELECT COUNT(average) FROM table_name_20 WHERE team = "elgin city" AND highest < 537
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 1348, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 6, 2030, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2271, 13, 3, 15, 40, 122, 77, 690, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 28951, 61, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 372, 3274, 96, 15, 40, 122, 77, 690, 121, 3430, 2030, 3, 2, 305, 4118, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which score has a visitor of New York?
CREATE TABLE table_name_62 ( score VARCHAR, visitor VARCHAR )
SELECT score FROM table_name_62 WHERE visitor = "new york"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 2604, 584, 4280, 28027, 6, 7019, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 2604, 65, 3, 9, 7019, 13, 368, 1060, 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, 2604, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 7019, 3274, 96, 5534, 25453, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Show the most frequently used carrier of the phones.
CREATE TABLE phone ( Carrier VARCHAR )
SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 951, 41, 1184, 6711, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 3111, 8, 167, 4344, 261, 9568, 13, 8, 7219, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1184, 6711, 21680, 951, 350, 4630, 6880, 272, 476, 1184, 6711, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Episodes have a TV Station of tbs, and a Japanese Title of ?
CREATE TABLE table_name_79 ( episodes INTEGER, tv_station VARCHAR, japanese_title VARCHAR )
SELECT MAX(episodes) FROM table_name_79 WHERE tv_station = "tbs" AND japanese_title = "今夜ひとりのベッドで"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4440, 41, 13562, 3, 21342, 17966, 6, 3, 17, 208, 834, 6682, 584, 4280, 28027, 6, 2662, 2837, 15, 7, 15, 834, 21869, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 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, 4800, 4, 599, 15, 102, 159, 32, 1395, 61, 21680, 953, 834, 4350, 834, 4440, 549, 17444, 427, 3, 17, 208, 834, 6682, 3274, 96, 17, 115, 7, 121, 3430, 2662, 2837, 15, 7, 15, 834, 21869, 3274, 96, 2, 121, 1, -100...
Which catalogue is from the UK region, and is on vinyl, and was dated in 1986?
CREATE TABLE table_name_33 (catalogue VARCHAR, date VARCHAR, region VARCHAR, format VARCHAR)
SELECT catalogue FROM table_name_33 WHERE region = "uk" AND format = "vinyl" AND date = "1986"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 2138, 9, 10384, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 1719, 584, 4280, 28027, 6, 1910, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14978, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 1719, 3274, 96, 1598, 121, 3430, 1910, 3274, 96, 2494, 63, 40, 121, 3430, 833, 3274, 96, 2294, 3840, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
who won the senate seat in arkansas
CREATE TABLE table_1133844_4 (senator VARCHAR, state__linked_to_summaries_below_ VARCHAR)
SELECT senator FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "Arkansas"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20522, 3747, 3628, 834, 591, 41, 7, 35, 1016, 584, 4280, 28027, 6, 538, 834, 834, 29000, 834, 235, 834, 4078, 51, 5414, 834, 346, 3216, 834, 584, 4280, 28027, 61, 3, 32102,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 20596, 21680, 953, 834, 20522, 3747, 3628, 834, 591, 549, 17444, 427, 538, 834, 834, 29000, 834, 235, 834, 4078, 51, 5414, 834, 346, 3216, 834, 3274, 96, 188, 52, 3304, 7, 9, 7, 121, 1, -100, -100, -100, -100, -10...
Show all template type codes with less than three templates.
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8935, 7, 41, 3524, 17628, 834, 6137, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 3111, 66, 3847, 686, 5633, 28, 705, 145, 386, 7405, 5, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3847, 834, 6137, 834, 4978, 21680, 8935, 7, 350, 4630, 6880, 272, 476, 3847, 834, 6137, 834, 4978, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 3, 2, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For all employees who have the letters D or S in their first name, give me the comparison about the sum of department_id over the hire_date bin hire_date by time by a bar chart, and order in desc by the y axis.
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 countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) 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) )
SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(DEPARTMENT_ID) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2476, 41, 446, 10539, 834, 4309, 3, 4331, 4059, 599, 16968, 6, 446, 10539, 834, 382, 3177, 3765, 3, 4331, 4059, 599, 2469, 201, 3, 17684, 834, 134, 4090, 24721, 7908, 1982, 599, 11071,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 180, 6122, 599, 5596, 19846, 11810, 834, 4309, 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,...
How many members are there in each country? Visualize in a pie chart.
CREATE TABLE round ( Round_ID int, Member_ID int, Decoration_Theme text, Rank_in_Round int ) CREATE TABLE college ( College_ID int, Name text, Leader_Name text, College_Location text ) CREATE TABLE member ( Member_ID int, Name text, Country text, College_ID int )
SELECT Country, COUNT(Country) FROM member GROUP BY Country
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1751, 41, 9609, 834, 4309, 16, 17, 6, 8541, 834, 4309, 16, 17, 6, 23367, 834, 634, 526, 1499, 6, 3, 22557, 834, 77, 834, 448, 32, 1106, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 6993, 6, 2847, 17161, 599, 10628, 651, 61, 21680, 1144, 350, 4630, 6880, 272, 476, 6993, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the types of documents with more than 4 documents.
CREATE TABLE images ( image_id number, image_alt_text text, image_name text, image_url text ) CREATE TABLE functional_areas ( functional_area_code text, parent_functional_area_code text, functional_area_description text ) CREATE TABLE document_sections_images ( section_id number, image_id number ) CREATE TABLE document_functional_areas ( document_code text, functional_area_code text ) CREATE TABLE document_structures ( document_structure_code text, parent_document_structure_code text, document_structure_description text ) CREATE TABLE users ( user_id number, role_code text, user_name text, user_login text, password text ) CREATE TABLE roles ( role_code text, role_description text ) CREATE TABLE documents ( document_code text, document_structure_code text, document_type_code text, access_count number, document_name text ) CREATE TABLE document_sections ( section_id number, document_code text, section_sequence number, section_code text, section_title text )
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1383, 41, 1023, 834, 23, 26, 381, 6, 1023, 834, 2920, 834, 6327, 1499, 6, 1023, 834, 4350, 1499, 6, 1023, 834, 16137, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1708, 834, 6137, 834, 4978, 21680, 2691, 350, 4630, 6880, 272, 476, 1708, 834, 6137, 834, 4978, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?
CREATE TABLE table_name_11 ( drawn VARCHAR, points_against VARCHAR )
SELECT drawn FROM table_name_11 WHERE points_against = "correct as of 08:50 10 may 2009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2596, 41, 6796, 584, 4280, 28027, 6, 979, 834, 9, 16720, 7, 17, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 19183, 29, 381, 28, 3, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6796, 21680, 953, 834, 4350, 834, 2596, 549, 17444, 427, 979, 834, 9, 16720, 7, 17, 3274, 96, 28832, 38, 13, 12046, 10, 1752, 335, 164, 2464, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the Provider that has a pay in 2006 , and a Transmission of iptv and digital terrestrial?
CREATE TABLE table_60009 ( "Provider" text, "Years" text, "Free or pay" text, "Transmission" text, "On demand" text )
SELECT "Provider" FROM table_60009 WHERE "Free or pay" = 'pay' AND "Years" = '2006–' AND "Transmission" = 'iptv and digital terrestrial'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 6007, 4198, 41, 96, 3174, 6961, 49, 121, 1499, 6, 96, 476, 2741, 7, 121, 1499, 6, 96, 16393, 42, 726, 121, 1499, 6, 96, 18474, 5451, 121, 1499, 6, 96, 7638, 2173, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 3174, 6961, 49, 121, 21680, 953, 834, 6007, 4198, 549, 17444, 427, 96, 16393, 42, 726, 121, 3274, 3, 31, 8832, 31, 3430, 96, 476, 2741, 7, 121, 3274, 3, 31, 21196, 104, 31, 3430, 96, 18474, 5451, 121, 3274, ...
Name the finish with Laps more than 200
CREATE TABLE table_name_17 ( finish VARCHAR, laps INTEGER )
SELECT finish FROM table_name_17 WHERE laps > 200
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 1992, 584, 4280, 28027, 6, 14941, 7, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1992, 28, 325, 102, 7, 72, 145, 2382, 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, 1992, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 14941, 7, 2490, 2382, 1, -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 team for copa conmebol 1992 is round of 16
CREATE TABLE table_15013825_8 (team VARCHAR, copa_conmebol_1992 VARCHAR)
SELECT team FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12278, 22744, 1828, 834, 927, 41, 11650, 584, 4280, 28027, 6, 7326, 9, 834, 1018, 526, 4243, 834, 19479, 357, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 372, 21680, 953, 834, 12278, 22744, 1828, 834, 927, 549, 17444, 427, 7326, 9, 834, 1018, 526, 4243, 834, 19479, 357, 3274, 96, 448, 32, 1106, 13, 898, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Name the finish with player lou graham
CREATE TABLE table_name_26 ( finish VARCHAR, player VARCHAR )
SELECT finish FROM table_name_26 WHERE player = "lou graham"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 1992, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1992, 28, 1959, 16585, 3, 3484, 1483, 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, 1992, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 1959, 3274, 96, 40, 1063, 3, 3484, 1483, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the most wins for earnings of 130,002
CREATE TABLE table_name_86 ( wins INTEGER, earnings___$__ VARCHAR )
SELECT MAX(wins) FROM table_name_86 WHERE earnings___$__ = 130 OFFSET 002
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 9204, 3, 21342, 17966, 6, 8783, 834, 834, 834, 3229, 834, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 167, 9204, 21, 8783, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 3757, 7, 61, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 8783, 834, 834, 834, 3229, 834, 834, 3274, 12778, 3, 15316, 20788, 3, 1206, 357, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Where is the orchestra when the year of recording is 1934?
CREATE TABLE table_73366 ( "Piano" text, "Conductor" text, "Orchestra" text, "Record Company" text, "Year of Recording" real, "Format" text )
SELECT "Orchestra" FROM table_73366 WHERE "Year of Recording" = '1934'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4552, 519, 3539, 41, 96, 345, 20028, 121, 1499, 6, 96, 4302, 7472, 127, 121, 1499, 6, 96, 7395, 1033, 3109, 121, 1499, 6, 96, 1649, 7621, 1958, 121, 1499, 6, 96, 476, 274...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7395, 1033, 3109, 121, 21680, 953, 834, 4552, 519, 3539, 549, 17444, 427, 96, 476, 2741, 13, 11392, 53, 121, 3274, 3, 31, 2294, 3710, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many goals scored entries are listed when the year is verano 2001?
CREATE TABLE table_28848697_4 (goals_scored VARCHAR, year VARCHAR)
SELECT COUNT(goals_scored) FROM table_28848697_4 WHERE year = "Verano 2001"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 4608, 3840, 4327, 834, 591, 41, 839, 5405, 834, 3523, 1271, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1766, 5799, 10066, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 839, 5405, 834, 3523, 1271, 61, 21680, 953, 834, 2577, 4608, 3840, 4327, 834, 591, 549, 17444, 427, 215, 3274, 96, 5000, 152, 32, 4402, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the det/pre-amp with # of tubes of 8
CREATE TABLE table_name_74 (det_pre_amp VARCHAR, _number_tubes VARCHAR)
SELECT det_pre_amp FROM table_name_74 WHERE _number_tubes = "8"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 221, 17, 834, 2026, 834, 4624, 584, 4280, 28027, 6, 3, 834, 5525, 1152, 834, 9863, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 20, 17, 834, 2026, 834, 4624, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 3, 834, 5525, 1152, 834, 9863, 7, 3274, 96, 927, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the number of patients whose item id is 50802?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50802"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Which parties did not have any delegates in elections?
CREATE TABLE election ( election_id number, counties_represented text, district number, delegate text, party number, first_elected number, committee text ) CREATE TABLE party ( party_id number, year number, party text, governor text, lieutenant_governor text, comptroller text, attorney_general text, us_senate text ) CREATE TABLE county ( county_id number, county_name text, population number, zip_code text )
SELECT party FROM party WHERE NOT party_id IN (SELECT party FROM election)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4356, 41, 4356, 834, 23, 26, 381, 6, 16227, 834, 29845, 1499, 6, 3939, 381, 6, 20, 8791, 1499, 6, 1088, 381, 6, 166, 834, 19971, 381, 6, 4492, 1499, 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, 1088, 21680, 1088, 549, 17444, 427, 4486, 1088, 834, 23, 26, 3388, 41, 23143, 14196, 1088, 21680, 4356, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many years was the number of laps 71?
CREATE TABLE table_name_49 ( year VARCHAR, laps VARCHAR )
SELECT COUNT(year) FROM table_name_49 WHERE laps = 71
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3647, 41, 215, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 203, 47, 8, 381, 13, 14941, 7, 3, 4450, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1201, 61, 21680, 953, 834, 4350, 834, 3647, 549, 17444, 427, 14941, 7, 3274, 3, 4450, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the record during the loss by key (7-11)?
CREATE TABLE table_69986 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT "Record" FROM table_69986 WHERE "Loss" = 'key (7-11)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 3264, 3840, 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, 1649, 7621, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 7621, 121, 21680, 953, 834, 948, 3264, 3840, 549, 17444, 427, 96, 434, 32, 7, 7, 121, 3274, 3, 31, 4397, 13649, 9169, 61, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the total number of field goals of Denan Kemp, who has more than 4 tries, more than 32 points, and 0 goals?
CREATE TABLE table_name_4 ( Field VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR, points VARCHAR )
SELECT COUNT(Field) AS goals FROM table_name_4 WHERE tries > 4 AND points > 32 AND goals = 0 AND player = "denan kemp"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 591, 41, 7257, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 6, 1766, 584, 4280, 28027, 6, 3, 9000, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 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, 3183, 8804, 61, 6157, 1766, 21680, 953, 834, 4350, 834, 591, 549, 17444, 427, 3, 9000, 2490, 314, 3430, 979, 2490, 3538, 3430, 1766, 3274, 3, 632, 3430, 1959, 3274, 96, 537, 152, 3, 1050, 1167, 121...
What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted?
CREATE TABLE table_47314 ( "Year" text, "Indians admitted" real, "Pakistanis admitted" real, "Sri Lankans admitted" real, "Bangladeshis admitted" real, "Nepalis admitted" real )
SELECT MAX("Nepalis admitted") FROM table_47314 WHERE "Bangladeshis admitted" < '1,896'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 519, 2534, 41, 96, 476, 2741, 121, 1499, 6, 96, 22126, 29, 7, 10246, 121, 490, 6, 96, 345, 11259, 5627, 159, 10246, 121, 490, 6, 96, 134, 52, 23, 13877, 29, 7, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 567, 15, 6459, 159, 10246, 8512, 21680, 953, 834, 4177, 519, 2534, 549, 17444, 427, 96, 279, 1468, 14712, 5605, 7, 10246, 121, 3, 2, 3, 31, 4347, 3914, 948, 31, 1, -100, -100, -100, -100, -100, ...
which country did participated in the most number of Tournament competitions?
CREATE TABLE competition ( country VARCHAR, competition_type VARCHAR )
SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2259, 41, 684, 584, 4280, 28027, 6, 2259, 834, 6137, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 84, 684, 410, 10627, 16, 8, 167, 381, 13, 20502, 2259, 7, 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, 684, 21680, 2259, 549, 17444, 427, 2259, 834, 6137, 3274, 3, 31, 382, 1211, 20205, 17, 31, 350, 4630, 6880, 272, 476, 684, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -1...
What's the type that ends in 2009?
CREATE TABLE table_name_60 (type VARCHAR, ends VARCHAR)
SELECT type FROM table_name_60 WHERE ends = "2009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 6137, 584, 4280, 28027, 6, 5542, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 686, 24, 5542, 16, 2464, 58, 1, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 686, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 5542, 3274, 96, 16660, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Name has a Location of ljubljana?
CREATE TABLE table_name_32 (name VARCHAR, location VARCHAR)
SELECT name FROM table_name_32 WHERE location = "ljubljana"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 4350, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 5570, 65, 3, 9, 10450, 13, 3, 40, 2047, 115, 40, 7066, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 1128, 3274, 96, 40, 2047, 115, 40, 7066, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who walked in space from STS-101 Eva 1?
CREATE TABLE table_22385461_1 (spacewalkers VARCHAR, spacecraft VARCHAR)
SELECT spacewalkers FROM table_22385461_1 WHERE spacecraft = "STS-101 EVA 1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 3747, 5062, 4241, 834, 536, 41, 6633, 24063, 7, 584, 4280, 28027, 6, 628, 6696, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 3, 6412, 16, 628, 45, 5097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 628, 24063, 7, 21680, 953, 834, 2884, 3747, 5062, 4241, 834, 536, 549, 17444, 427, 628, 6696, 3274, 96, 4209, 134, 18, 19621, 262, 8230, 209, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What player has 3 wins and ranks above 3rd?
CREATE TABLE table_name_51 ( player VARCHAR, wins VARCHAR, rank VARCHAR )
SELECT player FROM table_name_51 WHERE wins = 3 AND rank > 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 1959, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 1959, 65, 220, 9204, 11, 13799,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5553, 549, 17444, 427, 9204, 3274, 220, 3430, 11003, 2490, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the D 47 when it has a D 48 of d 49 and D 42 of r 42
CREATE TABLE table_name_35 (d_47 VARCHAR, d_48 VARCHAR, d_42 VARCHAR)
SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 26, 834, 4177, 584, 4280, 28027, 6, 3, 26, 834, 3707, 584, 4280, 28027, 6, 3, 26, 834, 4165, 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, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 26, 834, 4177, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 3, 26, 834, 3707, 3274, 96, 26, 9526, 121, 3430, 3, 26, 834, 4165, 3274, 96, 52, 6426, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest Top-5 that has 18 or more events with a Top-25 of 23?
CREATE TABLE table_42348 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT MAX("Top-5") FROM table_42348 WHERE "Events" > '18' AND "Top-25" = '23'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2773, 3707, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 18455, 7, 121, 490, 6, 96, 22481, 18, 17395, 490, 6, 96, 22481, 4536, 121, 490, 6, 96, 22481, 14855, 121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 22481, 4525, 8512, 21680, 953, 834, 591, 2773, 3707, 549, 17444, 427, 96, 427, 2169, 7, 121, 2490, 3, 31, 2606, 31, 3430, 96, 22481, 14855, 121, 3274, 3, 31, 2773, 31, 1, -100, -100, -100, -100,...
Show me a scatter plot of account id and account_details for .
CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) ) CREATE TABLE Documents_with_Expenses ( Document_ID INTEGER, Budget_Type_Code CHAR(15), Document_Details VARCHAR(255) ) CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) )
SELECT Account_ID, Account_Details FROM Accounts
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 419, 89, 834, 4135, 1071, 297, 834, 25160, 7, 41, 11167, 834, 25160, 834, 22737, 3, 28027, 599, 1808, 201, 11167, 834, 25160, 834, 23954, 584, 4280, 28027, 599, 25502, 201, 11167, 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, 6288, 834, 4309, 6, 6288, 834, 2962, 5756, 7, 21680, 6288, 7, 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, -1...
Which City has a State of massachusetts, and a School of northeastern university?
CREATE TABLE table_name_59 (city VARCHAR, state VARCHAR, school VARCHAR)
SELECT city FROM table_name_59 WHERE state = "massachusetts" AND school = "northeastern university"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 6726, 584, 4280, 28027, 6, 538, 584, 4280, 28027, 6, 496, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 896, 65, 3, 9, 1015, 13, 3294, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 690, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 538, 3274, 96, 2754, 7, 1836, 1074, 17, 17, 7, 121, 3430, 496, 3274, 96, 29, 127, 532, 9, 13072, 3819, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100...
How many people came to the game at Victoria Park?
CREATE TABLE table_name_17 ( crowd VARCHAR, venue VARCHAR )
SELECT COUNT(crowd) FROM table_name_17 WHERE venue = "victoria park"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 4374, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 151, 764, 12, 8, 467, 44, 7488, 1061, 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, 2847, 17161, 599, 75, 3623, 26, 61, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 5669, 3274, 96, 7287, 3600, 9, 2447, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
give me the number of patients whose age is less than 41 and lab test abnormal status is abnormal?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab.flag = "abnormal"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
patient 011-49193 has received any medication since 130 months ago?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE 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 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 treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time )
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-49193')) AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-130 month')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 23886, 41, 23886, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2672, 4350, 1499, 6, 23886, 4350, 1499, 6, 23886, 715, 97, 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, 2847, 17161, 599, 1935, 61, 2490, 3, 632, 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,...
how many patients under the age of 85 years underwent the procedure named continuous invasive mechanical ventilation for less than 96 consecutive hours?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "85" AND procedures.long_title = "Continuous invasive mechanical ventilation for less than 96 consecutive hours"
[ 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, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
count the number of patients whose age is less than 20 and diagnoses icd9 code is 42731?
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "20" AND diagnoses.icd9_code = "42731"
[ 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, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
how many patients are admitted to the emergency room admit and are born before 2080?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "2080"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 9, 26, 5451, 834, 14836, 3274, 96, 427, 13098, 18464, 17063, 3, 30270, 8502, 12604, 121, 3430, 147...
Count the number of distinct names associated with the photos.
CREATE TABLE photos ( photo_id number, tourist_attraction_id number, name text, description text, filename text, other_details text ) CREATE TABLE locations ( location_id number, location_name text, address text, other_details text ) CREATE TABLE tourist_attractions ( tourist_attraction_id number, attraction_type_code text, location_id number, how_to_get_there text, name text, description text, opening_hours text, other_details text ) CREATE TABLE features ( feature_id number, feature_details text ) CREATE TABLE hotels ( hotel_id number, star_rating_code text, pets_allowed_yn text, price_range number, other_hotel_details text ) CREATE TABLE ref_attraction_types ( attraction_type_code text, attraction_type_description text ) CREATE TABLE street_markets ( market_id number, market_details text ) CREATE TABLE tourist_attraction_features ( tourist_attraction_id number, feature_id number ) CREATE TABLE museums ( museum_id number, museum_details text ) CREATE TABLE visits ( visit_id number, tourist_attraction_id number, tourist_id number, visit_date time, visit_details text ) CREATE TABLE shops ( shop_id number, shop_details text ) CREATE TABLE theme_parks ( theme_park_id number, theme_park_details text ) CREATE TABLE ref_hotel_star_ratings ( star_rating_code text, star_rating_description text ) CREATE TABLE visitors ( tourist_id number, tourist_details text ) CREATE TABLE royal_family ( royal_family_id number, royal_family_details text ) CREATE TABLE staff ( staff_id number, tourist_attraction_id number, name text, other_details text )
SELECT COUNT(DISTINCT name) FROM photos
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1302, 41, 1202, 834, 23, 26, 381, 6, 8548, 834, 144, 10559, 834, 23, 26, 381, 6, 564, 1499, 6, 4210, 1499, 6, 1042, 4350, 1499, 6, 119, 834, 221, 5756, 7, 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, 564, 61, 21680, 1302, 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 was the score for Team 1 of Stade Lavallois (d1)?
CREATE TABLE table_8699 ( "Team 1" text, "Score" text, "Team 2" text, "1st round" text, "2nd round" text )
SELECT "Score" FROM table_8699 WHERE "Team 1" = 'stade lavallois (d1)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3840, 3264, 41, 96, 18699, 209, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 18699, 204, 121, 1499, 6, 96, 536, 7, 17, 1751, 121, 1499, 6, 96, 357, 727, 1751, 121, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 9022, 121, 21680, 953, 834, 3840, 3264, 549, 17444, 427, 96, 18699, 209, 121, 3274, 3, 31, 2427, 221, 50, 2165, 14970, 41, 26, 6982, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the lowest goal difference a club with more than 13 wins, less than 8 losses, and less than 11 draws has?
CREATE TABLE table_51884 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real )
SELECT MIN("Goal Difference") FROM table_51884 WHERE "Wins" > '13' AND "Losses" < '8' AND "Draws" < '11'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2606, 4608, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 22512, 7, 121, 490, 6, 96, 18455, 7, 121, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6221, 138, 27187, 8512, 21680, 953, 834, 755, 2606, 4608, 549, 17444, 427, 96, 18455, 7, 121, 2490, 3, 31, 2368, 31, 3430, 96, 434, 13526, 7, 121, 3, 2, 3, 31, 927, 31, 3430, 96, 308, 10936, ...
What unit of measurement for uruguay?
CREATE TABLE table_19128 ( "Country or territory with flag" text, "Area (km\u00b2) (per sqmi)" text, "Population (July 2009 est.)" real, "Population density per km\u00b2" text, "Capital" text )
SELECT "Area (km\u00b2) (per sqmi)" FROM table_19128 WHERE "Country or territory with flag" = 'Uruguay'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 536, 2577, 41, 96, 10628, 651, 42, 9964, 28, 5692, 121, 1499, 6, 96, 188, 864, 41, 5848, 2, 76, 1206, 115, 7318, 41, 883, 11820, 51, 23, 61, 121, 1499, 6, 96, 277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 864, 41, 5848, 2, 76, 1206, 115, 7318, 41, 883, 11820, 51, 23, 61, 121, 21680, 953, 834, 2294, 536, 2577, 549, 17444, 427, 96, 10628, 651, 42, 9964, 28, 5692, 121, 3274, 3, 31, 1265, 13534, 76, 9, 63, ...
What is the Notes with a Venue that is venice, italy?
CREATE TABLE table_name_23 ( notes VARCHAR, venue VARCHAR )
SELECT notes FROM table_name_23 WHERE venue = "venice, italy"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 3358, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2507, 7, 28, 3, 9, 29940, 24, 19, 3, 1926, 867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3358, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 5669, 3274, 96, 1926, 867, 6, 34, 9, 120, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
The length of 30 minutes aired on what date?
CREATE TABLE table_name_54 (airdate VARCHAR, length VARCHAR)
SELECT airdate FROM table_name_54 WHERE length = "30 minutes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 2256, 5522, 584, 4280, 28027, 6, 2475, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 37, 2475, 13, 604, 676, 3, 2378, 26, 30, 125, 833, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 799, 5522, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 2475, 3274, 96, 1458, 676, 121, 1, -100, -100, -100, -100, -100, -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, a bar chart shows the distribution of founder and the average of code , and group by attribute founder, rank from low to high by the Founder.
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 T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder
[ 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, 4416, 19145, 6, 332, 5411, 22737, 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, 4416, 1...
how many patients whose admission year is less than 2156 and diagnoses short title is end stage renal disease?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2156" AND diagnoses.short_title = "End stage renal disease"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What player was picked earlier than 126 by the Houston Oilers?
CREATE TABLE table_name_3 (player VARCHAR, pick VARCHAR, team VARCHAR)
SELECT player FROM table_name_3 WHERE pick < 126 AND team = "houston oilers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 20846, 584, 4280, 28027, 6, 1432, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1959, 47, 4758, 2283, 145, 3, 21976,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1959, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 1432, 3, 2, 3, 21976, 3430, 372, 3274, 96, 9492, 4411, 1043, 277, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which song has a Picturization of Vijay?
CREATE TABLE table_name_86 (song VARCHAR, picturization VARCHAR)
SELECT song FROM table_name_86 WHERE picturization = "vijay"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 7, 2444, 584, 4280, 28027, 6, 27283, 1707, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 2324, 65, 3, 9, 11000, 2905, 1707, 13, 1813, 1191, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2324, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 27283, 1707, 3274, 96, 2099, 1191, 63, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What time was there when the bike was Ducati 999 F06 and the grid number was 15?
CREATE TABLE table_name_93 ( time VARCHAR, bike VARCHAR, grid VARCHAR )
SELECT time FROM table_name_93 WHERE bike = "ducati 999 f06" AND grid = 15
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 97, 584, 4280, 28027, 6, 3724, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 97, 47, 132, 116, 8, 3724, 47, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 97, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 3724, 3274, 96, 1259, 16461, 3, 19446, 3, 89, 5176, 121, 3430, 8634, 3274, 627, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the to par of Philip Parkin?
CREATE TABLE table_60489 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "To par" FROM table_60489 WHERE "Player" = 'philip parkin'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 591, 3914, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 490, 6, 96, 3696, 260, 121, 1499, 3, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 3696, 260, 121, 21680, 953, 834, 3328, 591, 3914, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 11692, 7446, 2447, 77, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the highest population in 2001?
CREATE TABLE table_27366772_3 (population__2001_ INTEGER)
SELECT MAX(population__2001_) FROM table_27366772_3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 3420, 3708, 5865, 834, 519, 41, 9791, 7830, 834, 834, 23658, 834, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 2074, 16, 4402, 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, 4800, 4, 599, 9791, 7830, 834, 834, 23658, 834, 61, 21680, 953, 834, 2555, 3420, 3708, 5865, 834, 519, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many cuts did he make in the tournament with 3 top 25s and under 13 events?
CREATE TABLE table_name_44 (cuts_made INTEGER, top_25 VARCHAR, events VARCHAR)
SELECT MAX(cuts_made) FROM table_name_44 WHERE top_25 = 3 AND events < 13
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 3044, 7, 834, 4725, 3, 21342, 17966, 6, 420, 834, 1828, 584, 4280, 28027, 6, 984, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 8620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 3044, 7, 834, 4725, 61, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 420, 834, 1828, 3274, 220, 3430, 984, 3, 2, 1179, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What title episode did Paris Barclay direct?
CREATE TABLE table_20726262_2 ( title VARCHAR, directedby VARCHAR )
SELECT title FROM table_20726262_2 WHERE directedby = "Paris Barclay"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26426, 2688, 2688, 357, 834, 357, 41, 2233, 584, 4280, 28027, 6, 6640, 969, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 2233, 5640, 410, 1919, 1386, 4651, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2233, 21680, 953, 834, 26426, 2688, 2688, 357, 834, 357, 549, 17444, 427, 6640, 969, 3274, 96, 13212, 159, 1386, 4651, 63, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many total points were earned from the couple that averaged 29.0 points?
CREATE TABLE table_23662356_3 (total_points_earned INTEGER, average VARCHAR)
SELECT MAX(total_points_earned) FROM table_23662356_3 WHERE average = "29.0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 3539, 2773, 4834, 834, 519, 41, 235, 1947, 834, 2700, 7, 834, 25461, 3, 21342, 17966, 6, 1348, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 792, 979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 235, 1947, 834, 2700, 7, 834, 25461, 61, 21680, 953, 834, 2773, 3539, 2773, 4834, 834, 519, 549, 17444, 427, 1348, 3274, 96, 3166, 5, 632, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
who is the husband when ceased to be dauphine is 22 july 1461 became queen?
CREATE TABLE table_name_36 ( husband VARCHAR, ceased_to_be_dauphine VARCHAR )
SELECT husband FROM table_name_36 WHERE ceased_to_be_dauphine = "22 july 1461 became queen"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 2553, 584, 4280, 28027, 6, 3, 29220, 834, 235, 834, 346, 834, 26, 402, 22230, 15, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 113, 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, 0...
[ 3, 23143, 14196, 2553, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 3, 29220, 834, 235, 834, 346, 834, 26, 402, 22230, 15, 3274, 96, 2884, 3, 2047, 120, 968, 4241, 1632, 14915, 121, 1, -100, -100, -100, -100, -100, -100, -100,...
What was the first week when there was an attendance over 75,007 at Mile High Stadium?
CREATE TABLE table_name_21 ( week INTEGER, game_site VARCHAR, attendance VARCHAR )
SELECT MIN(week) FROM table_name_21 WHERE game_site = "mile high stadium" AND attendance > 75 OFFSET 007
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 471, 3, 21342, 17966, 6, 467, 834, 3585, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 166, 471, 116,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8041, 61, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 467, 834, 3585, 3274, 96, 8770, 306, 14939, 121, 3430, 11364, 2490, 6374, 3, 15316, 20788, 3, 1206, 940, 1, -100, -100, -100, -100, -100, -...
Draw a bar chart of last name versus department_id, and order from low to high by the X.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT LAST_NAME, DEPARTMENT_ID FROM employees ORDER BY LAST_NAME
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 3396, 19846, 11810, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3396, 19846, 11810, 834, 567, 17683, 3, 4331, 4059, 599, 1458, 201, 283, 15610, 17966, 834, 4309, 7908, 1982, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 301, 12510, 834, 567, 17683, 6, 3396, 19846, 11810, 834, 4309, 21680, 1652, 4674, 11300, 272, 476, 301, 12510, 834, 567, 17683, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the result for the Outstanding director of a musical category?
CREATE TABLE table_name_67 ( result VARCHAR, category VARCHAR )
SELECT result FROM table_name_67 WHERE category = "outstanding director of a musical"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3708, 41, 741, 584, 4280, 28027, 6, 3295, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 741, 21, 8, 27178, 2090, 13, 3, 9, 4183, 3295, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 21680, 953, 834, 4350, 834, 3708, 549, 17444, 427, 3295, 3274, 96, 670, 11018, 2090, 13, 3, 9, 4183, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was crew chief for the team owned by Bob Leavine?
CREATE TABLE table_1266602_2 (crew_chief VARCHAR, owner_s_ VARCHAR)
SELECT crew_chief FROM table_1266602_2 WHERE owner_s_ = "Bob Leavine"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21976, 3539, 4305, 834, 357, 41, 5045, 210, 834, 20053, 584, 4280, 28027, 6, 2527, 834, 7, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 4627, 5752, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4627, 834, 20053, 21680, 953, 834, 21976, 3539, 4305, 834, 357, 549, 17444, 427, 2527, 834, 7, 834, 3274, 96, 279, 32, 115, 312, 9, 8402, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the lowest amount of Span metres when the year opened is 2007, the country is China, rank is less than 13, and the span feet is less than 1378?
CREATE TABLE table_name_23 (span_metres INTEGER, span_feet VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)
SELECT MIN(span_metres) FROM table_name_23 WHERE year_opened = "2007" AND country = "china" AND rank < 13 AND span_feet < 1378
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 7, 2837, 834, 22404, 7, 3, 21342, 17966, 6, 8438, 834, 89, 15, 15, 17, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 6, 215, 834, 26940, 584, 4280, 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, 3, 17684, 599, 7, 2837, 834, 22404, 7, 61, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 215, 834, 26940, 3274, 96, 20615, 121, 3430, 684, 3274, 96, 5675, 9, 121, 3430, 11003, 3, 2, 1179, 3430, 8438, 834, 89,...
what is the chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello?
CREATE TABLE table_name_14 ( chassis VARCHAR, driver VARCHAR, tyre VARCHAR, engine_† VARCHAR )
SELECT chassis FROM table_name_14 WHERE tyre = "b" AND engine_† = "ferrari 050 ferrari 051" AND driver = "rubens barrichello"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 22836, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 6, 3, 17, 63, 60, 584, 4280, 28027, 6, 1948, 834, 2, 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, 22836, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 3, 17, 63, 60, 3274, 96, 115, 121, 3430, 1948, 834, 2, 3274, 96, 1010, 52, 1665, 3, 632, 1752, 25007, 1665, 3, 3076, 536, 121, 3430, 2535, 3274, 96, 14446,...
Who were the opponents of the final on June 23, 2003?
CREATE TABLE table_name_4 ( opponents_in_the_final VARCHAR, date VARCHAR )
SELECT opponents_in_the_final FROM table_name_4 WHERE date = "june 23, 2003"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 591, 41, 16383, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 130, 8, 16383, 13, 8, 804,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 16383, 834, 77, 834, 532, 834, 12406, 21680, 953, 834, 4350, 834, 591, 549, 17444, 427, 833, 3274, 96, 6959, 15, 12992, 3888, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
2013 of 4–4 is involved in what 2006?
CREATE TABLE table_name_59 (Id VARCHAR)
SELECT 2006 FROM table_name_59 WHERE 2013 = "4–4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2038, 13, 314, 104, 591, 19, 1381, 16, 125, 3581, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3581, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 2038, 3274, 96, 591, 104, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How big of a crowd does the home team of essendon have?
CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_66 WHERE home_team = "essendon"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3539, 41, 75, 3623, 26, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 600, 13, 3, 9, 4374, 405, 8, 234, 372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4374, 21680, 953, 834, 4350, 834, 3539, 549, 17444, 427, 234, 834, 11650, 3274, 96, 8185, 2029, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was USC's record before the 1967 season?
CREATE TABLE table_40460 ( "Season" real, "Team" text, "Conference" text, "Head Coach" text, "Record" text )
SELECT "Record" FROM table_40460 WHERE "Team" = 'usc' AND "Season" < '1967'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 25991, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 4302, 11788, 121, 1499, 6, 96, 3845, 9, 26, 9493, 121, 1499, 6, 96, 1649, 7621, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 7621, 121, 21680, 953, 834, 2445, 25991, 549, 17444, 427, 96, 18699, 121, 3274, 3, 31, 302, 75, 31, 3430, 96, 134, 15, 9, 739, 121, 3, 2, 3, 31, 2294, 3708, 31, 1, -100, -100, -100, -100, -100, -100, ...
what are the entries by each specific artist/group?
CREATE TABLE tags ( index number, id number, tag text ) CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number )
SELECT groupname, artist FROM torrents
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 12391, 41, 5538, 381, 6, 3, 23, 26, 381, 6, 7860, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 23326, 7, 41, 563, 4350, 1499, 6, 792, 7, 29, 144, 4513, 381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 563, 4350, 6, 2377, 21680, 23326, 7, 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, -100,...
Show the number of countries for all people whose age is smaller than the average.
CREATE TABLE people ( People_ID int, Name text, Country text, Is_Male text, Age int ) CREATE TABLE church ( Church_ID int, Name text, Organized_by text, Open_Date int, Continuation_of text ) CREATE TABLE wedding ( Church_ID int, Male_ID int, Female_ID int, Year int )
SELECT Country, COUNT(Country) FROM people WHERE Age < (SELECT AVG(Age) FROM people) GROUP BY Country
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 151, 41, 2449, 834, 4309, 16, 17, 6, 5570, 1499, 6, 6993, 1499, 6, 27, 7, 834, 329, 9, 109, 1499, 6, 7526, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 6993, 6, 2847, 17161, 599, 10628, 651, 61, 21680, 151, 549, 17444, 427, 7526, 3, 2, 41, 23143, 14196, 71, 17217, 599, 188, 397, 61, 21680, 151, 61, 350, 4630, 6880, 272, 476, 6993, 1, -100, -100, -100, -100, -100, ...
What date has high park demons as the away?
CREATE TABLE table_name_15 ( date VARCHAR, away VARCHAR )
SELECT date FROM table_name_15 WHERE away = "high park demons"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1808, 41, 833, 584, 4280, 28027, 6, 550, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 833, 65, 306, 2447, 20, 2157, 7, 38, 8, 550, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 1808, 549, 17444, 427, 550, 3274, 96, 6739, 2447, 20, 2157, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the administrative division for 95391
CREATE TABLE table_14986292_1 ( administrative_division VARCHAR, population__2010_census_ VARCHAR )
SELECT administrative_division FROM table_14986292_1 WHERE population__2010_census_ = 95391
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24816, 3840, 3166, 357, 834, 536, 41, 6601, 834, 26, 23, 6610, 584, 4280, 28027, 6, 2074, 834, 834, 14926, 834, 75, 35, 7, 302, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6601, 834, 26, 23, 6610, 21680, 953, 834, 24816, 3840, 3166, 357, 834, 536, 549, 17444, 427, 2074, 834, 834, 14926, 834, 75, 35, 7, 302, 834, 3274, 668, 4867, 4729, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the highest Podiums with 0 as wins, and a season later than 1985?
CREATE TABLE table_name_31 (podiums INTEGER, wins VARCHAR, season VARCHAR)
SELECT MAX(podiums) FROM table_name_31 WHERE wins = 0 AND season > 1985
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 11410, 2552, 7, 3, 21342, 17966, 6, 9204, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 1908, 12925, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 11410, 2552, 7, 61, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 9204, 3274, 3, 632, 3430, 774, 2490, 13200, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the opponent with a score of 6 5 13?
CREATE TABLE table_name_82 ( opponent VARCHAR, score VARCHAR )
SELECT opponent FROM table_name_82 WHERE score = "6–5 13"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4613, 41, 15264, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 15264, 28, 3, 9, 2604, 13, 431, 305, 1179, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 4613, 549, 17444, 427, 2604, 3274, 96, 948, 104, 755, 1179, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What Class has a Frequency of 90.1 FM?
CREATE TABLE table_name_8 ( class VARCHAR, frequency VARCHAR )
SELECT class FROM table_name_8 WHERE frequency = "90.1 fm"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 853, 584, 4280, 28027, 6, 7321, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 4501, 65, 3, 9, 5532, 835, 11298, 13, 668, 16029, 13409, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 853, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 7321, 3274, 96, 1298, 16029, 3, 89, 51, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern?
CREATE TABLE table_39537 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" real, "2nd (m)" real, "Points" real, "Overall WC points (Rank)" text )
SELECT MAX("Points") FROM table_39537 WHERE "Nationality" = 'aut' AND "Name" = 'thomas morgenstern'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3301, 4118, 41, 96, 22557, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 536, 7, 17, 41, 51, 61, 121, 490, 6, 96, 357, 727, 41, 51, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 22512, 7, 8512, 21680, 953, 834, 519, 3301, 4118, 549, 17444, 427, 96, 24732, 485, 121, 3274, 3, 31, 402, 17, 31, 3430, 96, 23954, 121, 3274, 3, 31, 189, 32, 2754, 8030, 729, 13072, 31, 1, -10...
AT WHAT VENUE DID THE HOME TEAM SCORE 10.9 (69)?
CREATE TABLE table_33338 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_33338 WHERE "Home team score" = '10.9 (69)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23360, 3747, 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, 553, 35, 76, 15, 121, 21680, 953, 834, 23360, 3747, 549, 17444, 427, 96, 19040, 372, 2604, 121, 3274, 3, 31, 10415, 1298, 41, 3951, 61, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the average amount of transactions for different lots, ordered by average amount of transactions. Show scatter chart.
CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) ) CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Investors ( investor_id INTEGER, Investor_details VARCHAR(255) ) CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( transaction_type_code VARCHAR(10), transaction_type_description VARCHAR(80) ) CREATE TABLE Transactions_Lots ( transaction_id INTEGER, lot_id INTEGER )
SELECT lot_id, AVG(amount_of_transaction) FROM Transactions AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY AVG(amount_of_transaction)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 21469, 7, 41, 5878, 834, 23, 26, 3, 21342, 17966, 6, 12024, 834, 23, 26, 3, 21342, 17966, 6, 5878, 834, 6137, 834, 4978, 584, 4280, 28027, 599, 16968, 6, 833, 834, 858, 834, 7031, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 418, 834, 23, 26, 6, 71, 17217, 599, 9, 11231, 834, 858, 834, 7031, 4787, 61, 21680, 21469, 7, 6157, 332, 536, 3, 15355, 3162, 21469, 7, 834, 434, 32, 17, 7, 6157, 332, 357, 9191, 332, 5411, 7031, 4787, 834, 23,...