NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Show the number of male and female assistant professors with a bar chart, and sort from high to low by the y-axis.
CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Participates_in ( stuid INTEGER, actid INTEGER ) CREATE TABLE Activity ( actid INTEGER, activity_name varchar(25) )
SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex ORDER BY COUNT(*) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 16896, 41, 1699, 75, 4309, 3, 21342, 17966, 6, 301, 4350, 584, 4280, 28027, 599, 1808, 201, 377, 4350, 584, 4280, 28027, 599, 1808, 201, 3, 22557, 584, 4280, 28027, 599, 1808, 201, 679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 679, 226, 6, 2847, 17161, 599, 1935, 61, 21680, 16896, 549, 17444, 427, 3, 22557, 3274, 96, 188, 7, 7, 17, 23057, 121, 350, 4630, 6880, 272, 476, 679, 226, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 2...
What was the Michele Alboreto's engine?
CREATE TABLE table_name_22 ( engine VARCHAR, driver VARCHAR )
SELECT engine FROM table_name_22 WHERE driver = "michele alboreto"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 1948, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 9411, 15, 12677, 127, 15, 235, 31, 7, 1948, 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, 1948, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 2535, 3274, 96, 51, 362, 400, 7046, 127, 15, 235, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the pick of Texas-San Antonio?
CREATE TABLE table_name_79 (pick INTEGER, college VARCHAR)
SELECT AVG(pick) FROM table_name_79 WHERE college = "texas-san antonio"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4440, 41, 17967, 3, 21342, 17966, 6, 1900, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1432, 13, 2514, 18, 134, 152, 12923, 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, 71, 17217, 599, 17967, 61, 21680, 953, 834, 4350, 834, 4440, 549, 17444, 427, 1900, 3274, 96, 10354, 9, 7, 18, 7, 152, 3, 9, 6992, 23, 32, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Where has an ICAO of EPWA?
CREATE TABLE table_name_43 (city VARCHAR, icao VARCHAR)
SELECT city FROM table_name_43 WHERE icao = "epwa"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 6726, 584, 4280, 28027, 6, 3, 2617, 32, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2840, 65, 46, 3, 15038, 667, 13, 10177, 12054, 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, 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, 690, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 3, 2617, 32, 3274, 96, 15, 102, 210, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is the total listed for gene sarazen ?
CREATE TABLE table_203_327 ( id number, "player" text, "country" text, "year(s) won" text, "r1" number, "r2" number, "total" number, "to par" number )
SELECT "total" FROM table_203_327 WHERE "player" = 'gene sarazen'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 519, 2555, 41, 3, 23, 26, 381, 6, 96, 20846, 121, 1499, 6, 96, 17529, 121, 1499, 6, 96, 1201, 599, 7, 61, 751, 121, 1499, 6, 96, 52, 536, 121, 381, 6, 96,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 235, 1947, 121, 21680, 953, 834, 23330, 834, 519, 2555, 549, 17444, 427, 96, 20846, 121, 3274, 3, 31, 729, 15, 3, 7, 2551, 1847, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many millions of people in the US saw the episode with season number 1?
CREATE TABLE table_19401346_1 ( us_viewers__millions_ VARCHAR, no_in_season VARCHAR )
SELECT us_viewers__millions_ FROM table_19401346_1 WHERE no_in_season = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 2445, 2368, 4448, 834, 536, 41, 178, 834, 4576, 277, 834, 834, 17030, 7, 834, 584, 4280, 28027, 6, 150, 834, 77, 834, 9476, 584, 4280, 28027, 3, 61, 3, 32102, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 178, 834, 4576, 277, 834, 834, 17030, 7, 834, 21680, 953, 834, 2294, 2445, 2368, 4448, 834, 536, 549, 17444, 427, 150, 834, 77, 834, 9476, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What country has david toms as the player?
CREATE TABLE table_13331 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Country" FROM table_13331 WHERE "Player" = 'david toms'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22974, 3341, 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, 61, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 96, 10628, 651, 121, 21680, 953, 834, 22974, 3341, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 26, 9, 6961, 12, 51, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many entrants was yves giraud-cabantous?
CREATE TABLE table_21977627_1 ( entrant VARCHAR, driver VARCHAR )
SELECT COUNT(entrant) FROM table_21977627_1 WHERE driver = "Yves Giraud-Cabantous"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 4327, 3959, 2555, 834, 536, 41, 3, 295, 3569, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 3, 295, 3569, 7, 47, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 295, 3569, 61, 21680, 953, 834, 2658, 4327, 3959, 2555, 834, 536, 549, 17444, 427, 2535, 3274, 96, 476, 162, 7, 21210, 402, 26, 18, 254, 9, 115, 288, 1162, 121, 1, -100, -100, -100, -100, -100, -...
what is marital status and gender of subject name kenneth koeller?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT demographic.marital_status, demographic.gender FROM demographic WHERE demographic.name = "Kenneth Koeller"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 14798, 5, 1635, 9538, 834, 8547, 302, 6, 14798, 5, 122, 3868, 21680, 14798, 549, 17444, 427, 14798, 5, 4350, 3274, 96, 439, 5990, 189, 1793, 9670, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many total bronze medals did Canada receive?
CREATE TABLE table_name_58 ( bronze INTEGER, nation VARCHAR )
SELECT MAX(bronze) FROM table_name_58 WHERE nation = "canada"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 13467, 3, 21342, 17966, 6, 2982, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 792, 13467, 9365, 7, 410, 1894, 911, 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, 13711, 776, 61, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 2982, 3274, 96, 658, 18089, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Return a histogram on what are the names and budgets of departments with budgets greater than the average?, order by the budget from high to low.
CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) )
SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY budget DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8815, 41, 3, 7, 834, 4309, 3, 4331, 4059, 15757, 6, 3, 23, 834, 4309, 3, 4331, 4059, 15757, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 10617, 41, 4699, 3, 4331, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 20, 102, 17, 834, 4350, 6, 1487, 21680, 3066, 549, 17444, 427, 1487, 2490, 41, 23143, 14196, 71, 17217, 599, 11073, 2782, 61, 21680, 3066, 61, 4674, 11300, 272, 476, 1487, 309, 25067, 1, -100, -100, -100, -100, -100, ...
Find the names and average salaries of all departments whose average salary is greater than 42000.
CREATE TABLE student ( id text, name text, dept_name text, tot_cred number ) CREATE TABLE course ( course_id text, title text, dept_name text, credits number ) CREATE TABLE instructor ( id text, name text, dept_name text, salary number ) CREATE TABLE department ( dept_name text, building text, budget number ) CREATE TABLE teaches ( id text, course_id text, sec_id text, semester text, year number ) CREATE TABLE prereq ( course_id text, prereq_id text ) CREATE TABLE classroom ( building text, room_number text, capacity number ) CREATE TABLE time_slot ( time_slot_id text, day text, start_hr number, start_min number, end_hr number, end_min number ) CREATE TABLE section ( course_id text, sec_id text, semester text, year number, building text, room_number text, time_slot_id text ) CREATE TABLE advisor ( s_id text, i_id text ) CREATE TABLE takes ( id text, course_id text, sec_id text, semester text, year number, grade text )
SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name HAVING AVG(salary) > 42000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 3, 23, 26, 1499, 6, 564, 1499, 6, 20, 102, 17, 834, 4350, 1499, 6, 12, 17, 834, 17216, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 503, 41, 503, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 20, 102, 17, 834, 4350, 6, 71, 17217, 599, 7, 138, 1208, 61, 21680, 10617, 350, 4630, 6880, 272, 476, 20, 102, 17, 834, 4350, 454, 6968, 2365, 71, 17217, 599, 7, 138, 1208, 61, 2490, 314, 13527, 1, -100, -100, -...
How many positions have Played smaller than 12?
CREATE TABLE table_63140 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws P.K. Wins / P.K. Losses" text, "Losses" real, "Scored" real, "Conceded" real, "Points" real )
SELECT SUM("Position") FROM table_63140 WHERE "Played" < '12'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3891, 22012, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 18455, 7, 121, 490, 6, 96, 308, 10936, 7, 276, 5, 439...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3891, 22012, 549, 17444, 427, 96, 15800, 15, 26, 121, 3, 2, 3, 31, 2122, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
screening lvef must be no greater than 45 % by echocardiography
CREATE TABLE table_test_26 ( "id" int, "bleeding" int, "left_ventricular_ejection_fraction_lvef" int, "left_main_coronary_artery_disease" bool, "uncontrolled_diabetes" bool, "hiv_infection" bool, "hemoglobin_a1c_hba1c" float, "hepatitis_b_infection" bool, "renal_disease" bool, "unprotected_left_main_disease" bool, "creatinine_clearance_cl" float, "stenosis" int, "hepatitis_c_infection" bool, "alcohol_abuse" bool, "body_mass_index_bmi" float, "NOUSE" float )
SELECT * FROM table_test_26 WHERE left_ventricular_ejection_fraction_lvef <= 45
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4377, 834, 2688, 41, 96, 23, 26, 121, 16, 17, 6, 96, 27779, 53, 121, 16, 17, 6, 96, 17068, 834, 31695, 834, 15, 21440, 834, 22513, 834, 40, 162, 89, 121, 16, 17, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1429, 21680, 953, 834, 4377, 834, 2688, 549, 17444, 427, 646, 834, 31695, 834, 15, 21440, 834, 22513, 834, 40, 162, 89, 3, 2, 2423, 3479, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
For those employees who was hired before 2002-06-21, find job_id and the average of salary , and group by attribute job_id, and visualize them by a bar chart, rank in ascending by the Y.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE 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 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 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) )
SELECT JOB_ID, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(SALARY)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 71, 17217, 599, 134, 4090, 24721, 61, 21680, 1652, 549, 17444, 427, 454, 14132, 834, 308, 6048, 3, 2, 3, 31, 24898, 18, 5176, 16539, 31, 350, 4630, 6880, 272, 476, 446, 10539, 834, 4309, ...
give me the number of patients whose admission type is urgent and lab test name is wbc, joint fluid?
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 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.label = "WBC, Joint Fluid"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What are the start and end dates for incidents with incident type code 'NOISE'?
CREATE TABLE Behavior_Incident ( date_incident_start VARCHAR, date_incident_end VARCHAR, incident_type_code VARCHAR )
SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 29396, 834, 1570, 75, 4215, 41, 833, 834, 77, 75, 4215, 834, 10208, 584, 4280, 28027, 6, 833, 834, 77, 75, 4215, 834, 989, 584, 4280, 28027, 6, 5415, 834, 6137, 834, 4978, 584, 4280,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 833, 834, 77, 75, 4215, 834, 10208, 6, 833, 834, 77, 75, 4215, 834, 989, 21680, 29396, 834, 1570, 75, 4215, 549, 17444, 427, 5415, 834, 6137, 834, 4978, 3274, 96, 7400, 19056, 121, 1, -100, -100, -100, -100, -100, ...
Who was the constructor for a FW20 chassis?
CREATE TABLE table_56817 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine \u2020" text, "Tyre" text, "Driver" text, "Rounds" text )
SELECT "Constructor" FROM table_56817 WHERE "Chassis" = 'fw20'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3651, 2517, 41, 96, 16924, 3569, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3541, 6500, 7, 121, 1499, 6, 96, 31477, 3, 2, 76, 22224, 121, 1499, 6, 96, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4302, 7593, 127, 121, 21680, 953, 834, 755, 3651, 2517, 549, 17444, 427, 96, 3541, 6500, 7, 121, 3274, 3, 31, 89, 210, 1755, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Jushin Liger has a Masaaki Mochizuki of kashin (10:00)?
CREATE TABLE table_name_20 ( jushin_liger VARCHAR, masaaki_mochizuki VARCHAR )
SELECT jushin_liger FROM table_name_20 WHERE masaaki_mochizuki = "kashin (10:00)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 3, 2047, 7, 2907, 834, 2825, 49, 584, 4280, 28027, 6, 9358, 11259, 834, 51, 32, 1436, 1000, 2168, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 2047, 7, 2907, 834, 2825, 49, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 9358, 11259, 834, 51, 32, 1436, 1000, 2168, 3274, 96, 1258, 7, 2907, 4077, 25713, 61, 121, 1, -100, -100, -100, -100, -100, -100, ...
Find the number of rooms for different block code?
CREATE TABLE block ( blockfloor number, blockcode number ) CREATE TABLE procedures ( code number, name text, cost number ) CREATE TABLE patient ( ssn number, name text, address text, phone text, insuranceid number, pcp number ) CREATE TABLE room ( roomnumber number, roomtype text, blockfloor number, blockcode number, unavailable boolean ) CREATE TABLE appointment ( appointmentid number, patient number, prepnurse number, physician number, start time, end time, examinationroom text ) CREATE TABLE department ( departmentid number, name text, head number ) CREATE TABLE trained_in ( physician number, treatment number, certificationdate time, certificationexpires time ) CREATE TABLE physician ( employeeid number, name text, position text, ssn number ) CREATE TABLE on_call ( nurse number, blockfloor number, blockcode number, oncallstart time, oncallend time ) CREATE TABLE affiliated_with ( physician number, department number, primaryaffiliation boolean ) CREATE TABLE nurse ( employeeid number, name text, position text, registered boolean, ssn number ) CREATE TABLE stay ( stayid number, patient number, room number, staystart time, stayend time ) CREATE TABLE medication ( code number, name text, brand text, description text ) CREATE TABLE undergoes ( patient number, procedures number, stay number, dateundergoes time, physician number, assistingnurse number ) CREATE TABLE prescribes ( physician number, patient number, medication number, date time, appointment number, dose text )
SELECT COUNT(*), T1.blockcode FROM block AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2463, 41, 2463, 20924, 381, 6, 2463, 4978, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1081, 381, 6, 564, 1499, 6, 583, 381, 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, 1935, 201, 332, 5411, 10734, 4978, 21680, 2463, 6157, 332, 536, 3, 15355, 3162, 562, 6157, 332, 357, 9191, 332, 5411, 10734, 20924, 3274, 332, 4416, 10734, 20924, 3430, 332, 5411, 10734, 4978, 3274, 33...
which nation won more silver medals , hong kong or syria ?
CREATE TABLE table_204_320 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT "nation" FROM table_204_320 WHERE "nation" IN ('hong kong', 'syria') ORDER BY "silver" DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 15003, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 29, 257, 121, 1499, 6, 96, 14910, 121, 381, 6, 96, 7, 173, 624, 121, 381, 6, 96, 13711, 776, 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, 29, 257, 121, 21680, 953, 834, 26363, 834, 15003, 549, 17444, 427, 96, 29, 257, 121, 3388, 41, 31, 23001, 10447, 122, 31, 6, 3, 31, 7, 63, 52, 23, 9, 31, 61, 4674, 11300, 272, 476, 96, 7, 173, 624, 121, ...
What was the first win for pos 6?
CREATE TABLE table_12707313_2 (first_win VARCHAR, pos VARCHAR)
SELECT first_win FROM table_12707313_2 WHERE pos = 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 2518, 4552, 2368, 834, 357, 41, 14672, 834, 3757, 584, 4280, 28027, 6, 3, 2748, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 166, 1369, 21, 3, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 166, 834, 3757, 21680, 953, 834, 2122, 2518, 4552, 2368, 834, 357, 549, 17444, 427, 3, 2748, 3274, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
For all employees who have the letters D or S in their first name, give me the comparison about the average of manager_id over the hire_date bin hire_date by weekday by a bar chart, and show by the y axis in ascending.
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 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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1440, 41, 2847, 17161, 11824, 834, 4309, 3, 4331, 4059, 16426, 6, 2847, 17161, 11824, 834, 567, 17683, 3, 4331, 4059, 599, 2445, 201, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 1714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 17217, 599, 9312, 188, 17966, 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 much General election has a Share of votes of 17%?
CREATE TABLE table_13604 ( "General election" real, "Name" text, "Share of votes" text, "Seats" real, "Share of seats" text )
SELECT SUM("General election") FROM table_13604 WHERE "Share of votes" = '17%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23459, 6348, 41, 96, 20857, 4356, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 24501, 13, 11839, 121, 1499, 6, 96, 134, 1544, 7, 121, 490, 6, 96, 24501, 13, 6116, 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, 180, 6122, 599, 121, 20857, 4356, 8512, 21680, 953, 834, 23459, 6348, 549, 17444, 427, 96, 24501, 13, 11839, 121, 3274, 3, 31, 536, 6170, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show different types of ships and the number of ships of each type. Show bar chart.
CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text )
SELECT Type, COUNT(*) FROM ship GROUP BY Type
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4383, 41, 15508, 834, 4309, 16, 17, 6, 5570, 1499, 6, 6632, 1499, 6, 868, 485, 1499, 6, 8475, 9761, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2253, 41, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 6632, 6, 2847, 17161, 599, 1935, 61, 21680, 4383, 350, 4630, 6880, 272, 476, 6632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many students in each department? Give me a bar chart.
CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) )
SELECT dept_name, COUNT(dept_name) FROM student GROUP BY dept_name ORDER BY tot_cred
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 503, 41, 503, 834, 23, 26, 3, 4331, 4059, 28007, 6, 2233, 3, 4331, 4059, 599, 1752, 201, 20, 102, 17, 834, 4350, 3, 4331, 4059, 599, 1755, 201, 11893, 206, 17552, 599, 4482, 632, 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, 20, 102, 17, 834, 4350, 6, 2847, 17161, 599, 26, 6707, 834, 4350, 61, 21680, 1236, 350, 4630, 6880, 272, 476, 20, 102, 17, 834, 4350, 4674, 11300, 272, 476, 12, 17, 834, 17216, 1, -100, -100, -100, -100, -100, -10...
what is the candidates name who is ranked 8th?
CREATE TABLE table_66989 ( "Riding" text, "Candidate's Name" text, "Gender" text, "Residence" text, "Occupation" text, "Votes" real, "Rank" text )
SELECT "Candidate's Name" FROM table_66989 WHERE "Rank" = '8th'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 3951, 3914, 41, 96, 448, 12469, 121, 1499, 6, 96, 14050, 12416, 342, 31, 7, 5570, 121, 1499, 6, 96, 517, 3868, 121, 1499, 6, 96, 1649, 1583, 3772, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 14050, 12416, 342, 31, 7, 5570, 121, 21680, 953, 834, 948, 3951, 3914, 549, 17444, 427, 96, 22557, 121, 3274, 3, 31, 927, 189, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Where is the historic place that was built in 1910?
CREATE TABLE table_44962 ( "Name" text, "Built" text, "Listed" text, "Location" text, "County" text )
SELECT "Location" FROM table_44962 WHERE "Built" = '1910'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3628, 4314, 357, 41, 96, 23954, 121, 1499, 6, 96, 7793, 173, 17, 121, 1499, 6, 96, 28886, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 10628, 63, 121, 1499, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 96, 434, 32, 75, 257, 121, 21680, 953, 834, 3628, 4314, 357, 549, 17444, 427, 96, 7793, 173, 17, 121, 3274, 3, 31, 2294, 1714, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Record has a Game smaller than 19, and Points smaller than 19, and a Score of 4–6?
CREATE TABLE table_name_24 (record VARCHAR, score VARCHAR, game VARCHAR, points VARCHAR)
SELECT record FROM table_name_24 WHERE game < 19 AND points < 19 AND score = "4–6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 60, 7621, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 11392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1368, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 467, 3, 2, 957, 3430, 979, 3, 2, 957, 3430, 2604, 3274, 96, 591, 104, 948, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the date Listed of the Bridge Built CA.1876?
CREATE TABLE table_49983 ( "Name" text, "Built" text, "Listed" text, "Location" text, "County" text )
SELECT "Listed" FROM table_49983 WHERE "Built" = 'ca.1876'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 3916, 519, 41, 96, 23954, 121, 1499, 6, 96, 7793, 173, 17, 121, 1499, 6, 96, 28886, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 10628, 63, 121, 1499, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 28886, 121, 21680, 953, 834, 3647, 3916, 519, 549, 17444, 427, 96, 7793, 173, 17, 121, 3274, 3, 31, 658, 5, 2606, 3959, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many wins were there in 2004-05?
CREATE TABLE table_54365 ( "Season" text, "Winner" text, "Team" text, "Position" text, "Win #" real )
SELECT "Win #" FROM table_54365 WHERE "Season" = '2004-05'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5062, 10402, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 18455, 687, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 18455, 1713, 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, 0...
[ 3, 23143, 14196, 96, 18455, 1713, 121, 21680, 953, 834, 5062, 10402, 549, 17444, 427, 96, 134, 15, 9, 739, 121, 3274, 3, 31, 21653, 18, 3076, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the number of patients on main drug type prescription who are diagnosed with malignant neoplasm of descending colon?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Mal neo descend colon" AND prescriptions.drug_type = "MAIN"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
Return a bar chart on how many stores are headquarted in each city?
CREATE TABLE product ( product_id int, product text, dimensions text, dpi real, pages_per_minute_color real, max_page_size text, interface text ) CREATE TABLE store ( Store_ID int, Store_Name text, Type text, Area_size real, Number_of_product_category real, Ranking int ) CREATE TABLE store_product ( Store_ID int, Product_ID int ) CREATE TABLE store_district ( Store_ID int, District_ID int ) CREATE TABLE district ( District_ID int, District_name text, Headquartered_City text, City_Population real, City_Area real )
SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 556, 41, 556, 834, 23, 26, 16, 17, 6, 556, 1499, 6, 8393, 1499, 6, 3, 26, 102, 23, 490, 6, 1688, 834, 883, 834, 6890, 834, 9910, 490, 6, 9858, 834, 6492, 834, 7991, 1499, 6, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3642, 19973, 15, 26, 834, 254, 485, 6, 2847, 17161, 599, 1935, 61, 21680, 1078, 6157, 3, 17, 536, 3, 15355, 3162, 1078, 834, 26, 23, 20066, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28719, 834, 4309, 3274, 3, 17, 441...
which country had the least number of models ?
CREATE TABLE table_204_343 ( id number, "nation" text, "model" text, "length" text, "barrel length" text, "weight" text )
SELECT "nation" FROM table_204_343 GROUP BY "nation" ORDER BY COUNT("model") LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 3710, 519, 41, 3, 23, 26, 381, 6, 96, 29, 257, 121, 1499, 6, 96, 21770, 121, 1499, 6, 96, 19457, 121, 1499, 6, 96, 1047, 60, 40, 2475, 121, 1499, 6, 96, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 29, 257, 121, 21680, 953, 834, 26363, 834, 3710, 519, 350, 4630, 6880, 272, 476, 96, 29, 257, 121, 4674, 11300, 272, 476, 2847, 17161, 599, 121, 21770, 8512, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -1...
What was the record in the competition in which the home team was the Mavericks?
CREATE TABLE table_name_11 ( record VARCHAR, home VARCHAR )
SELECT record FROM table_name_11 WHERE home = "mavericks"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2596, 41, 1368, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1368, 16, 8, 2259, 16, 84, 8, 234, 372, 47, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1368, 21680, 953, 834, 4350, 834, 2596, 549, 17444, 427, 234, 3274, 96, 51, 9, 162, 5206, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the earliest created year when the map# was 10?
CREATE TABLE table_name_33 ( created INTEGER, map_number VARCHAR )
SELECT MIN(created) FROM table_name_33 WHERE map_number = 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 990, 3, 21342, 17966, 6, 2828, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3, 16454, 990, 215, 116, 8, 2828, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 22082, 26, 61, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 2828, 834, 5525, 1152, 3274, 335, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the title of season 3 ep# 12?
CREATE TABLE table_12451376_3 ( title VARCHAR, season_3_ep__number VARCHAR )
SELECT title FROM table_12451376_3 WHERE season_3_ep__number = 12
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 2128, 2368, 3959, 834, 519, 41, 2233, 584, 4280, 28027, 6, 774, 834, 519, 834, 15, 102, 834, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2233, 21680, 953, 834, 2122, 2128, 2368, 3959, 834, 519, 549, 17444, 427, 774, 834, 519, 834, 15, 102, 834, 834, 5525, 1152, 3274, 586, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is Jonathan Kaye's money list ranking?
CREATE TABLE table_4212 ( "Player" text, "Starts" real, "Cuts made" real, "Best finish" text, "Money list rank" text, "Earnings ($)" real )
SELECT COUNT("Money list rank") FROM table_4212 WHERE "Player" = 'Jonathan Kaye'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4165, 2122, 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, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 9168, 15, 63, 570, 11003, 8512, 21680, 953, 834, 4165, 2122, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 683, 106, 9, 6736, 14168, 15, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
Compare the lowest rating among all movies by each director using a bar chart, and could you list Y-axis in asc order?
CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date )
SELECT director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director ORDER BY MIN(T1.stars)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10743, 41, 3, 51, 4309, 16, 17, 6, 2233, 1499, 6, 215, 16, 17, 6, 2090, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4543, 49, 41, 3, 52, 4309, 16, 17, 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, 2090, 6, 3, 17684, 599, 382, 5411, 3624, 7, 61, 21680, 21662, 6157, 332, 536, 3, 15355, 3162, 10743, 6157, 332, 357, 9191, 332, 5411, 51, 4309, 3274, 332, 4416, 51, 4309, 350, 4630, 6880, 272, 476, 2090, 4674, 11300...
What pick number is Kevan George?
CREATE TABLE table_29836557_2 ( pick__number VARCHAR, player VARCHAR )
SELECT pick__number FROM table_29836557_2 WHERE player = "Kevan George"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3916, 10402, 3436, 834, 357, 41, 1432, 834, 834, 5525, 1152, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 1432, 381, 19, 2566,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1432, 834, 834, 5525, 1152, 21680, 953, 834, 357, 3916, 10402, 3436, 834, 357, 549, 17444, 427, 1959, 3274, 96, 439, 15, 2132, 3080, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the production code for the episode directed by Michael Morris?
CREATE TABLE table_23793770_1 ( production_code INTEGER, directed_by VARCHAR )
SELECT MIN(production_code) FROM table_23793770_1 WHERE directed_by = "Michael Morris"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 4440, 4118, 2518, 834, 536, 41, 999, 834, 4978, 3, 21342, 17966, 6, 6640, 834, 969, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 999, 1081, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 20762, 834, 4978, 61, 21680, 953, 834, 2773, 4440, 4118, 2518, 834, 536, 549, 17444, 427, 6640, 834, 969, 3274, 96, 329, 362, 9, 15, 40, 12193, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which tournament features the partner julian knowle?
CREATE TABLE table_name_93 ( tournament VARCHAR, partner VARCHAR )
SELECT tournament FROM table_name_93 WHERE partner = "julian knowle"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 5892, 584, 4280, 28027, 6, 2397, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 5892, 753, 8, 2397, 3, 2047, 9928, 214, 109, 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, 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, 5892, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 2397, 3274, 96, 2047, 9928, 214, 109, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the date of Bahrain International Circuit?
CREATE TABLE table_name_95 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_95 WHERE circuit = "bahrain international circuit"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 5522, 584, 4280, 28027, 6, 4558, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 833, 13, 29656, 1331, 17007, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 4558, 3274, 96, 17670, 6559, 1038, 4558, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Attendance of 29,000 occurred on what date?
CREATE TABLE table_33850 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT "Date" FROM table_33850 WHERE "Attendance" = '29,000'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4201, 17246, 41, 96, 518, 10266, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 188, 17, 324, 26, 663, 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, 0...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 4201, 17246, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 3274, 3, 31, 357, 23938, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
On what tra k was the march 19 race held?
CREATE TABLE table_26923 ( "Rnd" real, "Date" text, "Race Name" text, "Track" text, "Location" text, "Pole position" text, "Fastest lap" text, "Most Laps Led" text, "Winner" text )
SELECT "Track" FROM table_26923 WHERE "Date" = 'March 19'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3951, 2773, 41, 96, 448, 727, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 448, 3302, 5570, 121, 1499, 6, 96, 382, 16729, 121, 1499, 6, 96, 434, 32, 75, 257, 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, 382, 16729, 121, 21680, 953, 834, 357, 3951, 2773, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 25019, 957, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the rating of the episode with an overall ranking of 190?
CREATE TABLE table_16993379_1 (rating VARCHAR, rank__overall_ VARCHAR)
SELECT rating FROM table_16993379_1 WHERE rank__overall_ = "190"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2938, 3264, 4201, 4440, 834, 536, 41, 52, 1014, 584, 4280, 28027, 6, 11003, 834, 834, 1890, 1748, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 5773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5773, 21680, 953, 834, 2938, 3264, 4201, 4440, 834, 536, 549, 17444, 427, 11003, 834, 834, 1890, 1748, 834, 3274, 96, 11776, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What United States player holds the place of t8?`
CREATE TABLE table_name_57 ( player VARCHAR, place VARCHAR, country VARCHAR )
SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3436, 41, 1959, 584, 4280, 28027, 6, 286, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 907, 1323, 1959, 4532, 8, 286, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3436, 549, 17444, 427, 286, 3274, 96, 17, 927, 121, 3430, 684, 3274, 96, 15129, 15, 26, 2315, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the US air date when the director is ken girotti?
CREATE TABLE table_30012404_4 ( us_air_date VARCHAR, directed_by VARCHAR )
SELECT us_air_date FROM table_30012404_4 WHERE directed_by = "Ken Girotti"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5426, 2122, 25285, 834, 591, 41, 178, 834, 2256, 834, 5522, 584, 4280, 28027, 6, 6640, 834, 969, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 837, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 178, 834, 2256, 834, 5522, 21680, 953, 834, 5426, 2122, 25285, 834, 591, 549, 17444, 427, 6640, 834, 969, 3274, 96, 439, 35, 21210, 22334, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
what is the number of patients whose days of hospital stay is greater than 6 and lab test name is mch?
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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "6" AND lab.label = "MCH"
[ 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, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What was the final score of the game on November 23, 2008?
CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_66 WHERE date = "november 23, 2008"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3539, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 804, 2604, 13, 8, 467, 30, 1671, 12992, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 21680, 953, 834, 4350, 834, 3539, 549, 17444, 427, 833, 3274, 96, 5326, 18247, 12992, 2628, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
get the number of living patients who have drug code d5w1000.
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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "0" AND prescriptions.formulary_drug_cd = "D5W1000"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What Result has a Location of atlanta, and Rank smaller than 4?
CREATE TABLE table_12161 ( "Rank" real, "Result" real, "Athlete" text, "Date" text, "Location" text )
SELECT AVG("Result") FROM table_12161 WHERE "Location" = 'atlanta' AND "Rank" < '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22011, 4241, 41, 96, 22557, 121, 490, 6, 96, 20119, 121, 490, 6, 96, 188, 189, 1655, 15, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 20119, 8512, 21680, 953, 834, 22011, 4241, 549, 17444, 427, 96, 434, 32, 75, 257, 121, 3274, 3, 31, 144, 6761, 9, 31, 3430, 96, 22557, 121, 3, 2, 3, 31, 591, 31, 1, -100, -100, -100, -100, ...
What is the date of death of the duchess born on 30 October 1797?
CREATE TABLE table_name_2 (death VARCHAR, birth VARCHAR)
SELECT death FROM table_name_2 WHERE birth = "30 october 1797"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 357, 41, 221, 9, 189, 584, 4280, 28027, 6, 3879, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 13, 1687, 13, 8, 146, 2951, 7, 2170, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1687, 21680, 953, 834, 4350, 834, 357, 549, 17444, 427, 3879, 3274, 96, 1458, 3, 32, 75, 235, 1152, 1003, 4327, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the most number where the person is luke donald
CREATE TABLE table_30550 ( "#" real, "Player" text, "Country" text, "Points" real, "Reset points" real, "Events" real )
SELECT MAX("Reset points") FROM table_30550 WHERE "Player" = 'Luke Donald'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 17147, 41, 96, 4663, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 1649, 2244, 979, 121, 490, 6, 96, 427,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1649, 2244, 979, 8512, 21680, 953, 834, 1458, 17147, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 434, 1598, 15, 7459, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How much cash was on hand after debt of $82,741?
CREATE TABLE table_name_93 ( cash_on_hand VARCHAR, after_debt VARCHAR )
SELECT cash_on_hand FROM table_name_93 WHERE after_debt = "$82,741"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 1723, 834, 106, 834, 2894, 584, 4280, 28027, 6, 227, 834, 221, 115, 17, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 231, 1723, 47, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1723, 834, 106, 834, 2894, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 227, 834, 221, 115, 17, 3274, 96, 3229, 4613, 6, 4581, 536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what time slot did the show have for its first 6 episodes ?
CREATE TABLE table_204_384 ( id number, "#" number, "air date" text, "timeslot (est)" text, "season" text, "rating" number, "share" number, "18-49 (rating/share)" text, "viewers (m)" number, "weekly rank (#)" number )
SELECT "timeslot (est)" FROM table_204_384 WHERE "#" = 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 3747, 591, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 2256, 833, 121, 1499, 6, 96, 715, 7, 3171, 41, 222, 61, 121, 1499, 6, 96, 9476, 121, 1499, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 715, 7, 3171, 41, 222, 61, 121, 21680, 953, 834, 26363, 834, 3747, 591, 549, 17444, 427, 96, 4663, 121, 3274, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
give me the number of patients whose admission location is clinic referral/premature and diagnoses short title is hy kid nos w cr kid i-iv?
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 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 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.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.short_title = "Hy kid NOS w cr kid I-IV"
[ 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, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Which Record has a Week smaller than 15, and an Opponent of at new york jets?
CREATE TABLE table_name_48 (record VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_48 WHERE week < 15 AND opponent = "at new york jets"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3707, 41, 60, 7621, 584, 4280, 28027, 6, 471, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 11392, 65, 3, 9, 6551, 2755, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1368, 21680, 953, 834, 4350, 834, 3707, 549, 17444, 427, 471, 3, 2, 627, 3430, 15264, 3274, 96, 144, 126, 25453, 8757, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the last round with club team Guelph Storm (ohl)?
CREATE TABLE table_11803648_22 (round INTEGER, club_team VARCHAR)
SELECT MAX(round) FROM table_11803648_22 WHERE club_team = "Guelph Storm (OHL)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 2079, 3420, 3707, 834, 2884, 41, 7775, 3, 21342, 17966, 6, 1886, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 336, 1751, 28, 1886, 372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 7775, 61, 21680, 953, 834, 2596, 2079, 3420, 3707, 834, 2884, 549, 17444, 427, 1886, 834, 11650, 3274, 96, 9105, 15, 40, 102, 107, 16133, 41, 9195, 434, 61, 121, 1, -100, -100, -100, -100, -100, -100, ...
How many heights are listed for Jesse Holley in the WR position?
CREATE TABLE table_25170 ( "Position" text, "Name" text, "Jersey Number" real, "Age" real, "Height" text, "Weight" real, "College" text, "Result" text )
SELECT COUNT("Height") FROM table_25170 WHERE "Position" = 'WR' AND "Name" = 'Jesse Holley'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 536, 2518, 41, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 23954, 121, 1499, 6, 96, 683, 277, 15, 63, 7720, 121, 490, 6, 96, 188, 397, 121, 490, 6, 96, 3845, 2632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 2632, 8512, 21680, 953, 834, 1828, 536, 2518, 549, 17444, 427, 96, 345, 32, 7, 4749, 121, 3274, 3, 31, 15472, 31, 3430, 96, 23954, 121, 3274, 3, 31, 683, 6119, 5838, 1306, 31, 1, -100,...
count the number of patients who had been diagnosed with wound dehiscence / evisceration until 2104.
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'wound dehiscence / evisceration' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104')
[ 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, 2847, 17161, 599, 15438, 25424, 6227, 1868, 5, 202, 1495, 12417, 61, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 8209, 5, 10061, 15129, 21545, 23, 26, 21680, 8209, 549, ...
provide the number of patients whose admission year is less than 2144 and procedure short title is tonsil&adenoid biopsy?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2144" AND procedures.short_title = "Tonsil&adenoid biopsy"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Name the southern lakota for morning
CREATE TABLE table_19782 ( "English gloss" text, "Santee-Sisseton" text, "Yankton-Yanktonai" text, "Northern Lakota" text, "Southern Lakota" text )
SELECT "Southern Lakota" FROM table_19782 WHERE "English gloss" = 'morning'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27181, 4613, 41, 96, 26749, 20666, 121, 1499, 6, 96, 134, 1841, 15, 18, 134, 3818, 17, 106, 121, 1499, 6, 96, 476, 5979, 17, 106, 18, 476, 5979, 17, 106, 9, 23, 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, 22081, 49, 29, 325, 15414, 9, 121, 21680, 953, 834, 27181, 4613, 549, 17444, 427, 96, 26749, 20666, 121, 3274, 3, 31, 2528, 29, 53, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
WHICH 1990 has a 1993 of 1r?
CREATE TABLE table_36306 ( "Tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text )
SELECT "1990" FROM table_36306 WHERE "1993" = '1r'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3420, 1458, 948, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 2294, 4060, 121, 1499, 6, 96, 2294, 3914, 121, 1499, 6, 96, 2294, 2394, 121, 1499, 6, 96, 2294, 4729, 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, 2294, 2394, 121, 21680, 953, 834, 3420, 1458, 948, 549, 17444, 427, 96, 2294, 4271, 121, 3274, 3, 31, 536, 52, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the division in the season with 13 tms and pos smaller than 8?
CREATE TABLE table_name_36 ( division VARCHAR, tms VARCHAR, pos VARCHAR )
SELECT COUNT(division) FROM table_name_36 WHERE tms = 13 AND pos < 8
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 4889, 584, 4280, 28027, 6, 3, 17, 51, 7, 584, 4280, 28027, 6, 3, 2748, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4889, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 26, 23, 6610, 61, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 3, 17, 51, 7, 3274, 1179, 3430, 3, 2748, 3, 2, 505, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what's the sunday s l (sun) with friday venus (venus) being vernes
CREATE TABLE table_1277350_1 ( sunday_sōl__sun_ VARCHAR, friday_venus__venus_ VARCHAR )
SELECT sunday_sōl__sun_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vernes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4013, 16975, 834, 536, 41, 1997, 1135, 834, 7, 2, 40, 834, 834, 7, 202, 834, 584, 4280, 28027, 6, 9030, 1135, 834, 25116, 834, 834, 25116, 834, 584, 4280, 28027, 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, 1997, 1135, 834, 7, 2, 40, 834, 834, 7, 202, 834, 21680, 953, 834, 2122, 4013, 16975, 834, 536, 549, 17444, 427, 9030, 1135, 834, 25116, 834, 834, 25116, 834, 3274, 96, 624, 1496, 121, 1, -100, -100, -100, -100, -...
What did Alex Tagliani get for Qual 1?
CREATE TABLE table_name_93 ( qual_1 VARCHAR, name VARCHAR )
SELECT qual_1 FROM table_name_93 WHERE name = "alex tagliani"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 3, 11433, 834, 536, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 410, 5104, 3284, 9928, 23, 129, 21, 2415, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 11433, 834, 536, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 564, 3274, 96, 138, 994, 7860, 9928, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the nhl team for the position centre and nationality united states?
CREATE TABLE table_2679061_6 (nhl_team VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT nhl_team FROM table_2679061_6 WHERE position = "Centre" AND nationality = "United States"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3708, 2394, 4241, 834, 948, 41, 29, 107, 40, 834, 11650, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 1157, 485, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 3, 29, 107, 40, 834, 11650, 21680, 953, 834, 357, 3708, 2394, 4241, 834, 948, 549, 17444, 427, 1102, 3274, 96, 254, 9578, 121, 3430, 1157, 485, 3274, 96, 5110, 23, 1054, 1323, 121, 1, -100, -100, -100, -100, -100, ...
For a year earlier than 1991 and a reynard 91d chassis, what's the highest points?
CREATE TABLE table_name_7 ( points INTEGER, chassis VARCHAR, year VARCHAR )
SELECT MAX(points) FROM table_name_7 WHERE chassis = "reynard 91d" AND year < 1991
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 940, 41, 979, 3, 21342, 17966, 6, 22836, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 242, 3, 9, 215, 2283, 145, 9957, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 4800, 4, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 940, 549, 17444, 427, 22836, 3274, 96, 60, 63, 29, 986, 3, 4729, 26, 121, 3430, 215, 3, 2, 9957, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Among patients who had contr abd arteriogrm nec, how many of them were divorcees?
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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.short_title = "Contr abd arteriogrm NEC"
[ 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,...
Name the position for michael warner
CREATE TABLE table_25017530_6 (position VARCHAR, player VARCHAR)
SELECT position FROM table_25017530_6 WHERE player = "Michael Warner"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11434, 2517, 26918, 834, 948, 41, 4718, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1102, 21, 2278, 9, 15, 40, 615, 687, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 11434, 2517, 26918, 834, 948, 549, 17444, 427, 1959, 3274, 96, 329, 362, 9, 15, 40, 20055, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which Date has an Attendance of 9,535?
CREATE TABLE table_name_73 ( date VARCHAR, attendance VARCHAR )
SELECT date FROM table_name_73 WHERE attendance = "9,535"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 833, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 7678, 65, 46, 22497, 663, 13, 9902, 755, 2469, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 11364, 3274, 96, 1298, 6, 4867, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the margin of the score 52-12?
CREATE TABLE table_11258 ( "Margin" real, "Opponent" text, "Score" text, "Venue" text, "Date" text )
SELECT SUM("Margin") FROM table_11258 WHERE "Score" = '52-12'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 357, 3449, 41, 96, 7286, 122, 77, 121, 490, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 308, 342, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 7286, 122, 77, 8512, 21680, 953, 834, 2596, 357, 3449, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 5373, 5947, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Who won the womens doubles when wu jianqui won the womens singles?
CREATE TABLE table_12027364_1 ( womens_doubles VARCHAR, womens_singles VARCHAR )
SELECT womens_doubles FROM table_12027364_1 WHERE womens_singles = "Wu Jianqui"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15518, 2555, 3420, 591, 834, 536, 41, 887, 7, 834, 25761, 7, 584, 4280, 28027, 6, 887, 7, 834, 7, 53, 965, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 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, 887, 7, 834, 25761, 7, 21680, 953, 834, 15518, 2555, 3420, 591, 834, 536, 549, 17444, 427, 887, 7, 834, 7, 53, 965, 3274, 96, 518, 76, 7802, 152, 1169, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the name of the tournament that the final was played against Yi Jingqian?
CREATE TABLE table_name_89 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_89 WHERE opponent_in_the_final = "yi jingqian"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 17, 1211, 20205, 17, 584, 4280, 28027, 6, 15264, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 564, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5892, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 15264, 834, 77, 834, 532, 834, 12406, 3274, 96, 63, 23, 3, 354, 53, 1824, 23, 152, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is every TV network in Belgium?
CREATE TABLE table_18821196_1 ( tv_network_s_ VARCHAR, country VARCHAR )
SELECT tv_network_s_ FROM table_18821196_1 WHERE country = "Belgium"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25794, 2658, 26937, 834, 536, 41, 3, 17, 208, 834, 1582, 1981, 834, 7, 834, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17, 208, 834, 1582, 1981, 834, 7, 834, 21680, 953, 834, 25794, 2658, 26937, 834, 536, 549, 17444, 427, 684, 3274, 96, 2703, 40, 122, 2552, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What contestant is 173 cm tall?
CREATE TABLE table_20754016_2 (contestant VARCHAR, height__cm_ VARCHAR)
SELECT contestant FROM table_20754016_2 WHERE height__cm_ = 173
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26426, 25379, 2938, 834, 357, 41, 1018, 4377, 288, 584, 4280, 28027, 6, 3902, 834, 834, 75, 51, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 4233, 288, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4233, 288, 21680, 953, 834, 26426, 25379, 2938, 834, 357, 549, 17444, 427, 3902, 834, 834, 75, 51, 834, 3274, 1003, 519, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which polling institute has a 30.7% for social democratic?
CREATE TABLE table_name_81 (polling_institute VARCHAR, social_democratic VARCHAR)
SELECT polling_institute FROM table_name_81 WHERE social_democratic = "30.7%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4959, 41, 3233, 697, 834, 17521, 15, 584, 4280, 28027, 6, 569, 834, 23319, 447, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 5492, 53, 13681, 65, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5492, 53, 834, 17521, 15, 21680, 953, 834, 4350, 834, 4959, 549, 17444, 427, 569, 834, 23319, 447, 3274, 96, 1458, 5, 6170, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the team record by Week 8?
CREATE TABLE table_name_60 ( record VARCHAR, week VARCHAR )
SELECT record FROM table_name_60 WHERE week = "8"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 1368, 584, 4280, 28027, 6, 471, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 372, 1368, 57, 6551, 505, 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, 1368, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 471, 3274, 96, 927, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was the SS when jim lefebvre was at 2nd, willie davis at CF, and don drysdale was the SP.
CREATE TABLE table_72289 ( "Year" real, "Catcher" text, "First Baseman" text, "Second Baseman" text, "Shortstop" text, "Third Baseman" text, "Rightfielder" text, "Centerfielder" text, "Leftfielder" text, "Starting Pitcher" text )
SELECT "Shortstop" FROM table_72289 WHERE "Second Baseman" = 'Jim Lefebvre' AND "Centerfielder" = 'Willie Davis' AND "Starting Pitcher" = 'Don Drysdale'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5865, 357, 3914, 41, 96, 476, 2741, 121, 490, 6, 96, 18610, 1703, 121, 1499, 6, 96, 25171, 8430, 348, 121, 1499, 6, 96, 134, 15, 1018, 26, 8430, 348, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 14184, 7618, 121, 21680, 953, 834, 5865, 357, 3914, 549, 17444, 427, 96, 134, 15, 1018, 26, 8430, 348, 121, 3274, 3, 31, 683, 603, 312, 89, 15, 115, 10859, 31, 3430, 96, 24382, 1846, 49, 121, 3274, 3, 3...
What is To Par, when Place is "T5", and when Country is "United States"?
CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_18 WHERE place = "t5" AND country = "united states"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 235, 834, 1893, 584, 4280, 28027, 6, 286, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 304, 2180, 6, 116, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 12, 834, 1893, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 286, 3274, 96, 17, 17395, 3430, 684, 3274, 96, 15129, 15, 26, 2315, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the least total when there are more than 2 golds and fewer than 0 silver?
CREATE TABLE table_12956 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MIN("Total") FROM table_12956 WHERE "Gold" > '2' AND "Silver" < '0'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22174, 4834, 41, 96, 22557, 121, 490, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, 3696, 1947, 121, 490, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 3696, 1947, 8512, 21680, 953, 834, 22174, 4834, 549, 17444, 427, 96, 23576, 121, 2490, 3, 31, 357, 31, 3430, 96, 134, 173, 624, 121, 3, 2, 3, 31, 632, 31, 1, -100, -100, -100, -100, -100, -10...
Name the first elected for alabama 3
CREATE TABLE table_27288 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT COUNT("First elected") FROM table_27288 WHERE "District" = 'Alabama 3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 357, 4060, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 25171, 8160, 8512, 21680, 953, 834, 2555, 357, 4060, 549, 17444, 427, 96, 308, 23, 20066, 121, 3274, 3, 31, 188, 9339, 265, 9, 220, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For those records from the products and each product's manufacturer, find name and the sum of code , and group by attribute name, and visualize them by a bar chart, and show total number of code from high to low order.
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.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 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, 2...
How many Wisconsin school districts receive federal funding?
CREATE TABLE ndecoreexcel_math_grade8 ( year number, state text, all_students text, average_scale_score number ) CREATE TABLE finrev_fed_17 ( state_code number, idcensus number, school_district text, nces_id text, yr_data number, t_fed_rev number, c14 number, c25 number ) CREATE TABLE finrev_fed_key_17 ( state_code number, state text, #_records text )
SELECT COUNT(*) FROM finrev_fed_17 WHERE school_district LIKE "%Wisconsin%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3, 29, 221, 9022, 994, 7125, 834, 3357, 107, 834, 6801, 927, 41, 215, 381, 6, 538, 1499, 6, 66, 834, 8637, 295, 7, 1499, 6, 1348, 834, 6649, 834, 7, 9022, 381, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 2202, 60, 208, 834, 19565, 834, 2517, 549, 17444, 427, 496, 834, 26, 23, 20066, 8729, 9914, 96, 1454, 518, 159, 8056, 77, 1454, 121, 1, -100, -100, -100, -100, -100, -100, -100, -1...
What is the lowest total when arabs is 4000?
CREATE TABLE table_25947046_1 ( total INTEGER, arabs VARCHAR )
SELECT MIN(total) FROM table_25947046_1 WHERE arabs = 4000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 4240, 2518, 4448, 834, 536, 41, 792, 3, 21342, 17966, 6, 21165, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 792, 116, 21165, 7, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 235, 1947, 61, 21680, 953, 834, 1828, 4240, 2518, 4448, 834, 536, 549, 17444, 427, 21165, 7, 3274, 314, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between code and manufacturer .
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT T1.Code, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15248, 7, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 3642, 19973, 584, 4280, 28027, 599, 25502, 201, 3, 19145, 584, 4280, 28027, 599, 25502, 201, 19764, 17833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 22737, 6, 332, 5411, 7296, 76, 8717, 450, 49, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 1, -100, -100, -100, ...
Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
CREATE TABLE table_name_76 ( prohibition_ticket VARCHAR, greenback_ticket VARCHAR )
SELECT prohibition_ticket FROM table_name_76 WHERE greenback_ticket = "thomas armstrong"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3959, 41, 30693, 834, 26639, 584, 4280, 28027, 6, 1442, 1549, 834, 26639, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 30, 8, 30693, 4142, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 30693, 834, 26639, 21680, 953, 834, 4350, 834, 3959, 549, 17444, 427, 1442, 1549, 834, 26639, 3274, 96, 189, 32, 2754, 2939, 25866, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many grids have a Time/Retired of gearbox, and Laps smaller than 3?
CREATE TABLE table_name_98 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = "gearbox" AND laps < 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 3496, 26, 584, 4280, 28027, 6, 97, 834, 10682, 1271, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 8634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3496, 26, 61, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 97, 834, 10682, 1271, 3274, 96, 397, 291, 2689, 121, 3430, 14941, 7, 3, 2, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
among patients treated with base drug, how many of them had mild intellect disability?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) 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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Mild intellect disabilty" AND prescriptions.drug_type = "BASE"
[ 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, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
which two silver medalists had 2 weightlifting silver medals each ?
CREATE TABLE table_204_103 ( id number, "medal" text, "name" text, "sport" text, "event" text )
SELECT "name" FROM table_204_103 WHERE "sport" = 'weightlifting' GROUP BY "name" HAVING COUNT("medal") = 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 17864, 41, 3, 23, 26, 381, 6, 96, 2726, 138, 121, 1499, 6, 96, 4350, 121, 1499, 6, 96, 6661, 121, 1499, 6, 96, 15, 2169, 121, 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, 96, 4350, 121, 21680, 953, 834, 26363, 834, 17864, 549, 17444, 427, 96, 6661, 121, 3274, 3, 31, 9378, 9253, 53, 31, 350, 4630, 6880, 272, 476, 96, 4350, 121, 454, 6968, 2365, 2847, 17161, 599, 121, 2726, 138, 8512, ...
What are the commissioned for scotts, greenock and chieftain?
CREATE TABLE table_1206583_2 (commissioned VARCHAR, builder VARCHAR, name VARCHAR)
SELECT commissioned FROM table_1206583_2 WHERE builder = "Scotts, Greenock" AND name = "Chieftain"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15518, 4122, 4591, 834, 357, 41, 17183, 584, 4280, 28027, 6, 918, 49, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 3, 17183, 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, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17183, 21680, 953, 834, 15518, 4122, 4591, 834, 357, 549, 17444, 427, 918, 49, 3274, 96, 134, 10405, 7, 6, 1862, 3961, 121, 3430, 564, 3274, 96, 3541, 23, 15, 89, 17, 9, 77, 121, 1, -100, -100, -100, -100, -1...
which was scuttled earlier , ha-206 or ha-208 ?
CREATE TABLE table_204_522 ( id number, "boat #" text, "name" text, "builder" text, "laid down" text, "launched" text, "completed" text, "fate" text )
SELECT "name" FROM table_204_522 WHERE "name" IN ('ha-206', 'ha-208') ORDER BY "launched" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 5373, 357, 41, 3, 23, 26, 381, 6, 96, 14131, 1713, 121, 1499, 6, 96, 4350, 121, 1499, 6, 96, 16422, 49, 121, 1499, 6, 96, 40, 6146, 323, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4350, 121, 21680, 953, 834, 26363, 834, 5373, 357, 549, 17444, 427, 96, 4350, 121, 3388, 41, 31, 1024, 18, 24643, 31, 6, 3, 31, 1024, 18, 23946, 31, 61, 4674, 11300, 272, 476, 96, 27493, 15, 26, 121, 8729, 1...
How many total episodes aired over all seasons with 7.79 million viewers?
CREATE TABLE table_37889 ( "Season" real, "Network" text, "Time slot" text, "Season premiere" text, "Season finale" text, "Episode count" real, "TV season" text, "Season rank" text, "Viewers (in millions)" real )
SELECT COUNT("Episode count") FROM table_37889 WHERE "Viewers (in millions)" = '7.79'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3940, 3914, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 9688, 1981, 121, 1499, 6, 96, 13368, 4918, 121, 1499, 6, 96, 134, 15, 9, 739, 13539, 121, 1499, 6, 96, 134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 427, 102, 159, 32, 221, 3476, 8512, 21680, 953, 834, 519, 3940, 3914, 549, 17444, 427, 96, 15270, 277, 41, 77, 4040, 61, 121, 3274, 3, 31, 940, 5, 4440, 31, 1, -100, -100, -100, -100, -100, ...
Find the number of investors in total.
CREATE TABLE INVESTORS (Id VARCHAR)
SELECT COUNT(*) FROM INVESTORS
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 27, 17058, 6038, 22500, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2588, 8, 381, 13, 4367, 16, 792, 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, 2847, 17161, 599, 1935, 61, 21680, 27, 17058, 6038, 22500, 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, -...
When are end dates (last night) for the season of 1918?
CREATE TABLE table_159359_2 ( end_date__last_night_ VARCHAR, season VARCHAR )
SELECT end_date__last_night_ FROM table_159359_2 WHERE season = "1918"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1808, 4271, 3390, 834, 357, 41, 414, 834, 5522, 834, 834, 5064, 834, 7602, 834, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 33, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 414, 834, 5522, 834, 834, 5064, 834, 7602, 834, 21680, 953, 834, 1808, 4271, 3390, 834, 357, 549, 17444, 427, 774, 3274, 96, 2294, 2606, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name and component amount of the least popular furniture.
CREATE TABLE furniture ( name VARCHAR, Num_of_Component VARCHAR, market_rate VARCHAR )
SELECT name, Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1991, 41, 564, 584, 4280, 28027, 6, 1174, 51, 834, 858, 834, 5890, 9977, 584, 4280, 28027, 6, 512, 834, 2206, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2588, 8, 564, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 1174, 51, 834, 858, 834, 5890, 9977, 21680, 1991, 4674, 11300, 272, 476, 512, 834, 2206, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
did 2001 or 2002 had the more attendence ?
CREATE TABLE table_203_794 ( id number, "year" number, "location" text, "attendance" number, "theme phrase" text, "top messages" text, "host" text, "opening general session guest(s)" text, "closing general session guest(s)" text, "sunday night reception" text, "wednesday night party" text, "cult shirt" text )
SELECT "year" FROM table_203_794 WHERE "year" IN (2001, 2002) ORDER BY "attendance" DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 4440, 591, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 381, 6, 96, 14836, 121, 1499, 6, 96, 15116, 663, 121, 381, 6, 96, 532, 526, 9261, 121, 1499, 6, 96, 2916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1201, 121, 21680, 953, 834, 23330, 834, 4440, 591, 549, 17444, 427, 96, 1201, 121, 3388, 41, 23658, 6, 4407, 61, 4674, 11300, 272, 476, 96, 15116, 663, 121, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -10...
When was the event in the City of Baden?
CREATE TABLE table_name_35 (date VARCHAR, city VARCHAR)
SELECT date FROM table_name_35 WHERE city = "baden"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 5522, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 366, 47, 8, 605, 16, 8, 896, 13, 3862, 35, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 690, 3274, 96, 5514, 35, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which nhl team has a college/junior/club team named university of notre dame (ncaa)
CREATE TABLE table_1213511_7 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT nhl_team FROM table_1213511_7 WHERE college_junior_club_team = "University of Notre Dame (NCAA)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22011, 2469, 2596, 834, 940, 41, 29, 107, 40, 834, 11650, 584, 4280, 28027, 6, 1900, 834, 6959, 23, 127, 834, 13442, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 29, 107, 40, 834, 11650, 21680, 953, 834, 22011, 2469, 2596, 834, 940, 549, 17444, 427, 1900, 834, 6959, 23, 127, 834, 13442, 834, 11650, 3274, 96, 8313, 485, 13, 7711, 3, 17084, 41, 8137, 5498, 61, 121, 1, -10...