NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
what is the number of patients whose admission year is less than 2172 and diagnoses long title is other persistent mental disorders due to conditions classified elsewhere?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2172" AND diagnoses.long_title = "Other persistent mental disorders due to conditions classified elsewhere"
[ 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, 5...
What is Tournament, when Date is "6 April 1992"?
CREATE TABLE table_name_40 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_40 WHERE date = "6 april 1992"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2445, 41, 17, 1211, 20205, 17, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 20502, 6, 116, 7678, 19, 96, 948, 1186, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5892, 21680, 953, 834, 4350, 834, 2445, 549, 17444, 427, 833, 3274, 96, 948, 3, 9, 2246, 40, 9047, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gen , and a grid larger than 20?
CREATE TABLE table_name_10 ( laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR )
SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1714, 41, 14941, 7, 3, 21342, 17966, 6, 8634, 584, 4280, 28027, 6, 6774, 127, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 8478, 7, 61, 21680, 953, 834, 4350, 834, 1714, 549, 17444, 427, 6774, 127, 3274, 96, 1109, 986, 23, 3, 18, 3036, 3493, 138, 121, 3430, 2535, 3274, 96, 1635, 75, 3, 729, 154, 121, 3430, 8634, 2490, ...
What is Sum of Score, when Place is T2, and when Player is Justin Leonard?
CREATE TABLE table_41944 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT SUM("Score") FROM table_41944 WHERE "Place" = 't2' AND "Player" = 'justin leonard'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2294, 3628, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 490, 6, 96, 3696, 260, 121, 1499, 3, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 134, 9022, 8512, 21680, 953, 834, 591, 2294, 3628, 549, 17444, 427, 96, 345, 11706, 121, 3274, 3, 31, 17, 357, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31, 4998, 77, 90, 106, 986, 31, 1, -100,...
What was the date of the Capitals game when Columbus was the home team?
CREATE TABLE table_name_28 ( date VARCHAR, home VARCHAR )
SELECT date FROM table_name_28 WHERE home = "columbus"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 833, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 833, 13, 8, 5826, 7, 467, 116, 18751, 47, 8, 234, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 234, 3274, 96, 3297, 440, 3465, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the average number of electorates (2003) reserved for sc with a constituency number of 50?
CREATE TABLE table_name_80 ( number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR )
SELECT AVG(number_of_electorates__2003_) FROM table_name_80 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "50"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 381, 834, 858, 834, 400, 5317, 6203, 834, 834, 23948, 834, 3, 21342, 17966, 6, 14040, 834, 1161, 834, 834, 834, 7, 75, 834, 834, 834, 7, 17, 834, 834...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 5525, 1152, 834, 858, 834, 400, 5317, 6203, 834, 834, 23948, 834, 61, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 14040, 834, 1161, 834, 834, 834, 7, 75, 834, 834, 834, 7, 17, 834, 834, 29, ...
What is the geo id for malcolm township?
CREATE TABLE table_18600760_13 ( geo_id VARCHAR, township VARCHAR )
SELECT COUNT(geo_id) FROM table_18600760_13 WHERE township = "Malcolm"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24700, 4560, 3328, 834, 2368, 41, 9502, 834, 23, 26, 584, 4280, 28027, 6, 1511, 2009, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 9502, 3, 23, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 397, 32, 834, 23, 26, 61, 21680, 953, 834, 24700, 4560, 3328, 834, 2368, 549, 17444, 427, 1511, 2009, 3274, 96, 329, 138, 3297, 51, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many players did the most high points in the game with 39-22 record?
CREATE TABLE table_23286223_8 ( high_points VARCHAR, record VARCHAR )
SELECT COUNT(high_points) FROM table_23286223_8 WHERE record = "39-22"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 2577, 4056, 2773, 834, 927, 41, 306, 834, 2700, 7, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1508, 410, 8, 167, 306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 6739, 834, 2700, 7, 61, 21680, 953, 834, 2773, 2577, 4056, 2773, 834, 927, 549, 17444, 427, 1368, 3274, 96, 3288, 16149, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
give me some restaurants good for french food in the yosemite and mono lake area ?
CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar ) CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE geographic ( city_name varchar, county varchar, region varchar )
SELECT location.house_number, restaurant.name FROM geographic, location, restaurant WHERE geographic.region = 'yosemite and mono lake area' AND restaurant.city_name = geographic.city_name AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1128, 41, 2062, 834, 23, 26, 16, 17, 6, 629, 834, 5525, 1152, 16, 17, 6, 2815, 834, 4350, 3, 4331, 4059, 6, 690, 834, 4350, 3, 4331, 4059, 3, 61, 3, 32102, 32103, 32102, 205, 438...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1128, 5, 1840, 834, 5525, 1152, 6, 2062, 5, 4350, 21680, 20929, 6, 1128, 6, 2062, 549, 17444, 427, 20929, 5, 18145, 3274, 3, 31, 63, 32, 7, 15, 1538, 15, 11, 7414, 6957, 616, 31, 3430, 2062, 5, 6726, 834, 4350, ...
tell me short title of both diagnoses and procedure for patient with patient id 25167.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "25167"
[ 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, 18730, 7, 5, 7, 14184, 834, 21869, 6, 4293, 5, 7, 14184, 834, 21869, 21680, 18730, 7, 3388, 18206, 3, 15355, 3162, 4293, 9191, 18730, 7, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444...
Who is the Brazil scorer who scored 6-0?
CREATE TABLE table_name_41 ( brazil_scorers VARCHAR, score VARCHAR )
SELECT brazil_scorers FROM table_name_41 WHERE score = "6-0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 3858, 702, 40, 834, 7, 5715, 277, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 9278, 2604, 52, 113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3858, 702, 40, 834, 7, 5715, 277, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 2604, 3274, 96, 28625, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
When julien jousse patrice goueslard yann clairay is teh gt1 of the winning team how many measurements of rnd. are there?
CREATE TABLE table_2111 ( "Rnd." real, "Circuit" text, "LMP1 Winning Team" text, "LMP2 Winning Team" text, "GT1 Winning Team" text, "GT2 Winning Team" text, "Results" text )
SELECT COUNT("Rnd.") FROM table_2111 WHERE "GT1 Winning Team" = 'Julien Jousse Patrice Goueslard Yann Clairay'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 15866, 41, 96, 448, 727, 535, 490, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 434, 5244, 536, 549, 10503, 2271, 121, 1499, 6, 96, 434, 5244, 357, 549, 10503, 2271,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 448, 727, 5, 8512, 21680, 953, 834, 357, 15866, 549, 17444, 427, 96, 18489, 536, 549, 10503, 2271, 121, 3274, 3, 31, 683, 83, 23, 35, 446, 17486, 276, 11488, 1263, 76, 15, 7, 40, 986, 18707,...
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, display in ascending by the total number.
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 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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_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, 446, 10539, 834, 4309, 6, 180, 6122, 599, 5596, 19846, 11810, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 30085, 834, 567, 17683, 8729, 9914, 3, 31, 1454, 308, 1454, 31, 4674, 30085, 834, 567, 17683, 8729, 9914, 3, ...
How many production codes are there for episode number 45?
CREATE TABLE table_2602958_4 ( prod_code VARCHAR, no VARCHAR )
SELECT COUNT(prod_code) FROM table_2602958_4 WHERE no = 45
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 18365, 3166, 3449, 834, 591, 41, 813, 26, 834, 4978, 584, 4280, 28027, 6, 150, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 999, 5633, 33, 132, 21, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1409, 26, 834, 4978, 61, 21680, 953, 834, 18365, 3166, 3449, 834, 591, 549, 17444, 427, 150, 3274, 3479, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the record of the game played on November 7?
CREATE TABLE table_7817 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Record" FROM table_7817 WHERE "Game" < '7' AND "Date" = 'november 7'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 2517, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, 3, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 7621, 121, 21680, 953, 834, 3940, 2517, 549, 17444, 427, 96, 23055, 121, 3, 2, 3, 31, 940, 31, 3430, 96, 308, 342, 121, 3274, 3, 31, 5326, 18247, 489, 31, 1, -100, -100, -100, -100, -100, -100, -100, -...
Display a bar chart for how many students are from each city, and which cities have more than one cities?, could you list x-axis from low to high order?
CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER )
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6200, 51, 834, 9, 904, 485, 41, 183, 35, 23, 26, 3, 21342, 17966, 6, 183, 35, 485, 834, 4350, 584, 4280, 28027, 599, 1828, 61, 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, 690, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 6341, 350, 4630, 6880, 272, 476, 690, 834, 4978, 4674, 11300, 272, 476, 690, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the incumbent for lost re-election democratic-republican hold
CREATE TABLE table_2668352_14 (incumbent VARCHAR, result VARCHAR)
SELECT incumbent FROM table_2668352_14 WHERE result = "Lost re-election Democratic-Republican hold"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 3651, 2469, 357, 834, 2534, 41, 77, 75, 5937, 295, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 28406, 21, 1513, 3, 60, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 28406, 21680, 953, 834, 2688, 3651, 2469, 357, 834, 2534, 549, 17444, 427, 741, 3274, 96, 434, 3481, 3, 60, 18, 15, 12252, 10021, 18, 1649, 15727, 152, 1520, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many people directed episode 3 in the season?
CREATE TABLE table_3250 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text )
SELECT COUNT("Directed by") FROM table_3250 WHERE "No. in season" = '3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2668, 1752, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 23620, 15, 26, 57, 8512, 21680, 953, 834, 2668, 1752, 549, 17444, 427, 96, 4168, 5, 16, 774, 121, 3274, 3, 31, 519, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
For those employees who was hired before 2002-06-21, find job_id and the sum of manager_id , and group by attribute job_id, and visualize them by a bar chart, could you list by the total number from low to high?
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE 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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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) )
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(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, 446, 10539, 834, 4309, 6, 180, 6122, 599, 9312, 188, 17966, 834, 4309, 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, ...
Who had the fastest lap when the winning driver was kristian ghedina?
CREATE TABLE table_26920192_5 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = "Kristian Ghedina"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 27749, 19978, 834, 755, 41, 11584, 222, 834, 8478, 584, 4280, 28027, 6, 3447, 834, 13739, 52, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 141, 8, 10391, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 10391, 834, 8478, 21680, 953, 834, 2688, 27749, 19978, 834, 755, 549, 17444, 427, 3447, 834, 13739, 52, 3274, 96, 439, 22061, 152, 350, 88, 2644, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many clubs are there?
CREATE TABLE club (Id VARCHAR)
SELECT COUNT(*) FROM club
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1886, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 8122, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 1886, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze?
CREATE TABLE table_name_71 ( total INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR )
SELECT MIN(total) FROM table_name_71 WHERE silver < 1 AND rank > 5 AND bronze > 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4450, 41, 792, 3, 21342, 17966, 6, 13467, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 4450, 549, 17444, 427, 4294, 3, 2, 209, 3430, 11003, 2490, 305, 3430, 13467, 2490, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the competition on 29 November 1997 that resulted in a draw?
CREATE TABLE table_46967 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Competition" FROM table_46967 WHERE "Result" = 'draw' AND "Date" = '29 november 1997'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 3951, 3708, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 5890, 4995, 4749, 121, 21680, 953, 834, 591, 3951, 3708, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 19489, 31, 3430, 96, 308, 342, 121, 3274, 3, 31, 3166, 3, 5326, 18247, 6622, 31, 1, -100, -100, -100, -100...
how many patients whose marital status is single and lab test category is hematology?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE 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.marital_status = "SINGLE" AND lab."CATEGORY" = "Hematology"
[ 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, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
With wins greater than 0 what is the minimum Top-10?
CREATE TABLE table_name_43 ( top_10 INTEGER, wins INTEGER )
SELECT MIN(top_10) FROM table_name_43 WHERE wins > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 420, 834, 1714, 3, 21342, 17966, 6, 9204, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 438, 9204, 2123, 145, 3, 632, 125, 19, 8, 2559, 2224, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17684, 599, 2916, 834, 16968, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 9204, 2490, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the earliest week that shows a record of 8 5?
CREATE TABLE table_75549 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Time ( ET )" text, "Result" text, "Record" text )
SELECT MIN("Week") FROM table_75549 WHERE "Record" = '8–5'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3072, 755, 3647, 41, 96, 518, 10266, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 13368, 41, 10104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 518, 10266, 8512, 21680, 953, 834, 3072, 755, 3647, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 927, 104, 755, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
which Pada 3 has a Pada 2 of che?
CREATE TABLE table_75564 ( "Name" text, "Pada 1" text, "Pada 2" text, "Pada 3" text, "Pada 4" text )
SELECT "Pada 3" FROM table_75564 WHERE "Pada 2" = 'चे che'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3072, 4834, 591, 41, 96, 23954, 121, 1499, 6, 96, 21853, 9, 209, 121, 1499, 6, 96, 21853, 9, 204, 121, 1499, 6, 96, 21853, 9, 220, 121, 1499, 6, 96, 21853, 9, 3, 20364,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21853, 9, 220, 121, 21680, 953, 834, 3072, 4834, 591, 549, 17444, 427, 96, 21853, 9, 204, 121, 3274, 3, 31, 2, 3, 1033, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year, and count them by a bar chart
CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Reviewer ( rID int, name text )
SELECT year, COUNT(year) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year
[ 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, 21662, 41, 3, 52, 4309, 16, 17, 6, 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, 215, 6, 2847, 17161, 599, 1201, 61, 21680, 10743, 6157, 332, 536, 3, 15355, 3162, 21662, 6157, 332, 357, 9191, 332, 5411, 51, 4309, 3274, 332, 4416, 51, 4309, 549, 17444, 427, 332, 4416, 3624, 7, 2490, 2423, 314, 46...
what is the imprint when the title is owari no chronicle (ahead series)?
CREATE TABLE table_name_22 (imprint VARCHAR, title VARCHAR)
SELECT imprint FROM table_name_22 WHERE title = "owari no chronicle (ahead series)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 603, 7260, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 256, 7260, 116, 8, 2233, 19, 3, 2381, 1665, 150,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 256, 7260, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 2233, 3274, 96, 2381, 1665, 150, 6658, 109, 41, 9, 3313, 939, 61, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
The head coach, steve radoslavic, is related to which websites?
CREATE TABLE table_11365528_2 ( website VARCHAR, head_coach VARCHAR )
SELECT website FROM table_11365528_2 WHERE head_coach = "Steve Radoslavic"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 10402, 755, 2577, 834, 357, 41, 475, 584, 4280, 28027, 6, 819, 834, 509, 1836, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 37, 819, 3763, 6, 3, 849, 162, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 475, 21680, 953, 834, 2596, 10402, 755, 2577, 834, 357, 549, 17444, 427, 819, 834, 509, 1836, 3274, 96, 14337, 162, 6324, 32, 17457, 447, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
how many patients below 68 years had the procedure long title venous catheterization for renal dialysis?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "68" AND procedures.long_title = "Venous catheterization for renal dialysis"
[ 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,...
what is drug type and drug route of drug code isos10?
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 ) 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 prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "ISOS10"
[ 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, 7744, 7, 5, 26, 13534, 834, 6137, 6, 7744, 7, 5, 20300, 21680, 7744, 7, 549, 17444, 427, 7744, 7, 5, 20128, 63, 834, 26, 13534, 834, 75, 26, 3274, 96, 4555, 3638, 1714, 121, 1, -100, -100, -100, -100, -100, -100...
Which team had more than 10 wins with a champion of Mat Mladin?
CREATE TABLE table_8697 ( "Season" real, "Champion" text, "Motorcycle" text, "Wins" real, "Team" text )
SELECT "Team" FROM table_8697 WHERE "Wins" > '10' AND "Champion" = 'mat mladin'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3840, 4327, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 254, 1483, 12364, 121, 1499, 6, 96, 329, 32, 17, 127, 10136, 121, 1499, 6, 96, 18455, 7, 121, 490, 6, 96, 18699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 18699, 121, 21680, 953, 834, 3840, 4327, 549, 17444, 427, 96, 18455, 7, 121, 2490, 3, 31, 1714, 31, 3430, 96, 254, 1483, 12364, 121, 3274, 3, 31, 3357, 3, 51, 521, 2644, 31, 1, -100, -100, -100, -100, -100, ...
what is the number of patients whose marital status is married and diagnoses short title is hx of gi malignancy nos?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "MARRIED" AND diagnoses.short_title = "Hx of GI malignancy NOS"
[ 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, 5...
How many blocks did the player who had 59 rebounds have?
CREATE TABLE table_27144 ( "Player" text, "Minutes" real, "Field Goals" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real )
SELECT "Blocks" FROM table_27144 WHERE "Rebounds" = '59'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 20885, 41, 96, 15800, 49, 121, 1499, 6, 96, 12858, 2810, 7, 121, 490, 6, 96, 3183, 8804, 17916, 7, 121, 490, 6, 96, 1649, 6115, 7, 121, 490, 6, 96, 188, 7, 7, 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, 279, 4029, 7, 121, 21680, 953, 834, 2555, 20885, 549, 17444, 427, 96, 1649, 6115, 7, 121, 3274, 3, 31, 3390, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the population (hab) when the distance medellin downtown (km) is * dane?
CREATE TABLE table_11332 ( "Municipalities" text, "Extension km\u00b2" text, "Population (hab)" text, "Density (hab/ km\u00b2 )" text, "Altitude m" text, "Distance Medell\u00edn Downtown ( km )" text )
SELECT "Population (hab)" FROM table_11332 WHERE "Distance Medell\u00edn Downtown ( km )" = '* dane'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20522, 2668, 41, 96, 329, 202, 1294, 6459, 2197, 121, 1499, 6, 96, 5420, 13177, 2280, 2, 76, 1206, 115, 357, 121, 1499, 6, 96, 27773, 7830, 41, 6111, 61, 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, 27773, 7830, 41, 6111, 61, 121, 21680, 953, 834, 20522, 2668, 549, 17444, 427, 96, 308, 23, 8389, 8067, 3820, 2, 76, 1206, 15, 26, 29, 19434, 41, 2280, 3, 61, 121, 3274, 3, 31, 1935, 3, 3768, 15, 31, 1, -1...
what is maximum age of patients whose gender is m and age is greater than or equal to 48?
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 MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.age >= "48"
[ 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, 4800, 4, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 122, 3868, 3274, 96, 329, 121, 3430, 14798, 5, 545, 2490, 2423, 96, 3707, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What were the interview subjects on those occasions where Bai Ling was the cover model?
CREATE TABLE table_1566852_6 (interview_subject VARCHAR, cover_model VARCHAR)
SELECT interview_subject FROM table_1566852_6 WHERE cover_model = "Bai Ling"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25463, 3651, 5373, 834, 948, 41, 3870, 4576, 834, 7304, 11827, 584, 4280, 28027, 6, 1189, 834, 21770, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 130, 8, 2772, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2772, 834, 7304, 11827, 21680, 953, 834, 25463, 3651, 5373, 834, 948, 549, 17444, 427, 1189, 834, 21770, 3274, 96, 279, 9, 23, 301, 53, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the 2nd leg when second team is Sumykhimprom?
CREATE TABLE table_name_98 ( team__number2 VARCHAR )
SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = "sumykhimprom"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 372, 834, 834, 5525, 1152, 357, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 204, 727, 4553, 116, 511, 372, 19, 12198, 63, 157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 204, 6157, 3, 727, 834, 5772, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 372, 834, 834, 5525, 1152, 357, 3274, 96, 4078, 63, 157, 107, 16260, 51, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which project made the most number of outcomes? List the project details and the project id.
CREATE TABLE Project_outcomes ( project_id VARCHAR ) CREATE TABLE Projects ( project_details VARCHAR, project_id VARCHAR )
SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2786, 834, 670, 287, 15, 7, 41, 516, 834, 23, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2786, 7, 41, 516, 834, 221, 5756, 7, 584, 4280, 2802...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23574, 834, 221, 5756, 7, 6, 332, 5411, 23574, 834, 23, 26, 21680, 2786, 7, 6157, 332, 536, 3, 15355, 3162, 2786, 834, 670, 287, 15, 7, 6157, 332, 357, 9191, 332, 5411, 23574, 834, 23, 26, 3274, 332, ...
For all artist names who are not from the United States, show the total number of each year, show in asc by the Y.
CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int )
SELECT Year_Join, COUNT(Year_Join) FROM artist WHERE Country <> 'United States' GROUP BY Year_Join ORDER BY COUNT(Year_Join)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2377, 41, 9152, 834, 4309, 16, 17, 6, 5570, 1499, 6, 6993, 1499, 6, 2929, 834, 683, 32, 77, 16, 17, 6, 7526, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2929, 834, 683, 32, 77, 6, 2847, 17161, 599, 476, 2741, 834, 683, 32, 77, 61, 21680, 2377, 549, 17444, 427, 6993, 3, 2, 3155, 3, 31, 5110, 23, 1054, 1323, 31, 350, 4630, 6880, 272, 476, 2929, 834, 683, 32, 77, ...
What amount of points for were there when there was 52 points?
CREATE TABLE table_13399573_3 (points_for VARCHAR, points VARCHAR)
SELECT points_for FROM table_13399573_3 WHERE points = "52"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2368, 3288, 3301, 4552, 834, 519, 41, 2700, 7, 834, 1161, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 866, 13, 979, 21, 130, 132, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 979, 834, 1161, 21680, 953, 834, 2368, 3288, 3301, 4552, 834, 519, 549, 17444, 427, 979, 3274, 96, 5373, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What rank was Peru with a total greater than 3?
CREATE TABLE table_44306 ( "Rank" real, "Country" text, "Miss United Continent" real, "Virreina" real, "1st RU" real, "2nd RU" real, "3rd RU" real, "4th RU" real, "Semifinalists" real, "Total" real )
SELECT MAX("Rank") FROM table_44306 WHERE "Country" = 'peru' AND "Total" > '3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3628, 1458, 948, 41, 96, 22557, 121, 490, 6, 96, 10628, 651, 121, 1499, 6, 96, 329, 159, 7, 907, 3, 16798, 295, 121, 490, 6, 96, 21031, 60, 77, 9, 121, 490, 6, 96, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22557, 8512, 21680, 953, 834, 3628, 1458, 948, 549, 17444, 427, 96, 10628, 651, 121, 3274, 3, 31, 883, 76, 31, 3430, 96, 3696, 1947, 121, 2490, 3, 31, 519, 31, 1, -100, -100, -100, -100, -100, ...
What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?
CREATE TABLE table_44135 ( "Poll" text, "Pre- season" text, "Mar 3" text, "Mar 17" text, "Mar 24" text, "Mar 31" text, "April 7" text, "April 14" text, "April 21" text, "April 28" text, "May 5" text, "May 12" text, "May 19" text, "May 26" text, "Final" text )
SELECT "Mar 24" FROM table_44135 WHERE "May 26" = '13' AND "May 12" = '6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3628, 536, 2469, 41, 96, 8931, 40, 121, 1499, 6, 96, 10572, 18, 774, 121, 1499, 6, 96, 7286, 220, 121, 1499, 6, 96, 7286, 1003, 121, 1499, 6, 96, 7286, 997, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 7286, 997, 121, 21680, 953, 834, 3628, 536, 2469, 549, 17444, 427, 96, 15881, 2208, 121, 3274, 3, 31, 2368, 31, 3430, 96, 15881, 586, 121, 3274, 3, 31, 948, 31, 1, -100, -100, -100, -100, -100, -100, -100, -10...
On what surface was the game played that had a score of 4 6, 6 4, [8 10]?
CREATE TABLE table_name_51 ( surface VARCHAR, score VARCHAR )
SELECT surface FROM table_name_51 WHERE score = "4–6, 6–4, [8–10]"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 1774, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 461, 125, 1774, 47, 8, 467, 1944, 24, 141, 3, 9, 2604, 13, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1774, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 2604, 3274, 96, 591, 104, 11071, 431, 104, 8525, 784, 927, 104, 1714, 908, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which developer has xbox 360 as the platform?
CREATE TABLE table_80125 ( "Title" text, "Year" real, "Developer" text, "Publisher" text, "Platform" text )
SELECT "Developer" FROM table_80125 WHERE "Platform" = 'xbox 360'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2079, 10124, 41, 96, 382, 155, 109, 121, 1499, 6, 96, 476, 2741, 121, 490, 6, 96, 2962, 162, 8745, 49, 121, 1499, 6, 96, 31009, 49, 121, 1499, 6, 96, 10146, 2032, 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, 2962, 162, 8745, 49, 121, 21680, 953, 834, 2079, 10124, 549, 17444, 427, 96, 10146, 2032, 121, 3274, 3, 31, 226, 2689, 9181, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the highest wins for the NFL with a finish of 1st, and more than 6 losses?
CREATE TABLE table_name_27 ( wins INTEGER, losses VARCHAR, league VARCHAR, finish VARCHAR )
SELECT MAX(wins) FROM table_name_27 WHERE league = "nfl" AND finish = "1st" AND losses > 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2555, 41, 9204, 3, 21342, 17966, 6, 8467, 584, 4280, 28027, 6, 5533, 584, 4280, 28027, 6, 1992, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 3757, 7, 61, 21680, 953, 834, 4350, 834, 2555, 549, 17444, 427, 5533, 3274, 96, 29, 89, 40, 121, 3430, 1992, 3274, 96, 536, 7, 17, 121, 3430, 8467, 2490, 431, 1, -100, -100, -100, -100, -100, -100, ...
When was the WC 1974 Qualifying game?
CREATE TABLE table_38723 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text )
SELECT "Date" FROM table_38723 WHERE "Type of game" = 'wc 1974 qualifying'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 4225, 2773, 41, 96, 308, 342, 121, 1499, 6, 96, 254, 485, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 7, 2, 76, 1206, 115, 1298, 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, 308, 342, 121, 21680, 953, 834, 519, 4225, 2773, 549, 17444, 427, 96, 25160, 13, 467, 121, 3274, 3, 31, 210, 75, 17184, 18002, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
which is the only year with promotion playoffs and promoted
CREATE TABLE table_204_738 ( id number, "season" number, "level" text, "division" text, "section" text, "position" text, "movements" text )
SELECT "season" FROM table_204_738 WHERE "movements" = 'promotion playoffs - promoted'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 940, 3747, 41, 3, 23, 26, 381, 6, 96, 9476, 121, 381, 6, 96, 4563, 121, 1499, 6, 96, 26, 23, 6610, 121, 1499, 6, 96, 14309, 121, 1499, 6, 96, 4718, 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, 1...
[ 3, 23143, 14196, 96, 9476, 121, 21680, 953, 834, 26363, 834, 940, 3747, 549, 17444, 427, 96, 7168, 10420, 121, 3274, 3, 31, 1409, 7259, 15289, 7, 3, 18, 14742, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many seasons have points totals of N/A?
CREATE TABLE table_26222468_1 (season VARCHAR, points VARCHAR)
SELECT COUNT(season) FROM table_26222468_1 WHERE points = "N/A"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 2884, 2266, 3651, 834, 536, 41, 9476, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 9385, 43, 979, 792, 7, 13, 445, 87, 188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 9476, 61, 21680, 953, 834, 2688, 2884, 2266, 3651, 834, 536, 549, 17444, 427, 979, 3274, 96, 567, 87, 188, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
when did patient 022-82169 until 2104 for the first time be admitted to the hospital?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '022-82169' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2179, 9339, 41, 2179, 521, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1543, 3585, 1499, 6, 9329, 1499, 6, 1543, 4914, 29, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1868, 5, 31386, 20466, 17, 715, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 4305, 7412, 4613, 27096, 31, 3430, 3, 13733, 6245, 15382, 599, 31, 1454, 63, 31, 6, 1868, 5, 31386, 20466, 17, ...
how many patients of white ethnicity had drug type as additive?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE" AND prescriptions.drug_type = "ADDITIVE"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What was the MNZ FEA when the SIL SPR was 18?
CREATE TABLE table_name_73 (mnz_fea VARCHAR, sil_spr VARCHAR)
SELECT mnz_fea FROM table_name_73 WHERE sil_spr = "18"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 51, 29, 172, 834, 89, 15, 9, 584, 4280, 28027, 6, 108, 40, 834, 7, 102, 52, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 283, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 51, 29, 172, 834, 89, 15, 9, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 108, 40, 834, 7, 102, 52, 3274, 96, 2606, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What streak start has a total less than 79, 22t as the rank, and tampa bay as the teams?
CREATE TABLE table_name_28 ( streak_start VARCHAR, teams VARCHAR, total VARCHAR, rank VARCHAR )
SELECT streak_start FROM table_name_28 WHERE total < 79 AND rank = "22t" AND teams = "tampa bay"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 18631, 834, 10208, 584, 4280, 28027, 6, 2323, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 11003, 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, 18631, 834, 10208, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 792, 3, 2, 3, 4440, 3430, 11003, 3274, 96, 2884, 17, 121, 3430, 2323, 3274, 96, 17, 4624, 9, 10210, 121, 1, -100, -100, -100, -100, -100, -100, ...
give me the number of patients whose diagnoses short title is fever in other diseases and lab test fluid is cerebrospinal fluid (csf)?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Fever in other diseases" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
Tell me the record for december 3
CREATE TABLE table_name_47 ( record VARCHAR, date VARCHAR )
SELECT record FROM table_name_47 WHERE date = "december 3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 1368, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 8779, 140, 8, 1368, 21, 20, 75, 18247, 220, 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, 1368, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 833, 3274, 96, 221, 75, 18247, 220, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
display the country ID and number of cities for each country.
CREATE TABLE locations ( country_id VARCHAR )
SELECT country_id, COUNT(*) FROM locations GROUP BY country_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 684, 834, 23, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 1831, 8, 684, 4699, 11, 381, 13, 3119, 21, 284, 684, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 834, 23, 26, 6, 2847, 17161, 599, 1935, 61, 21680, 3248, 350, 4630, 6880, 272, 476, 684, 834, 23, 26, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What type is You from the state of Chen?
CREATE TABLE table_name_91 (type VARCHAR, state VARCHAR, name VARCHAR)
SELECT type FROM table_name_91 WHERE state = "chen" AND name = "you"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4729, 41, 6137, 584, 4280, 28027, 6, 538, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 686, 19, 148, 45, 8, 538, 13, 15570...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 686, 21680, 953, 834, 4350, 834, 4729, 549, 17444, 427, 538, 3274, 96, 1559, 121, 3430, 564, 3274, 96, 4188, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Who played 44 games who averaged over 2.07 goals against?
CREATE TABLE table_name_88 ( player VARCHAR, goals_against_average VARCHAR, games_played VARCHAR )
SELECT player FROM table_name_88 WHERE goals_against_average > 2.07 AND games_played = 44
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 1959, 584, 4280, 28027, 6, 1766, 834, 9, 16720, 7, 17, 834, 28951, 584, 4280, 28027, 6, 1031, 834, 4895, 15, 26, 584, 4280, 28027, 3, 61, 3, 32102, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 1766, 834, 9, 16720, 7, 17, 834, 28951, 2490, 6864, 940, 3430, 1031, 834, 4895, 15, 26, 3274, 8537, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many FA cup goals did dick taylor score in the year that he had 0 league goals?
CREATE TABLE table_name_10 ( fa_cup_goals INTEGER, name VARCHAR, league_goals VARCHAR )
SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE name = "dick taylor" AND league_goals < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1714, 41, 3, 89, 9, 834, 4658, 834, 839, 5405, 3, 21342, 17966, 6, 564, 584, 4280, 28027, 6, 5533, 834, 839, 5405, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 89, 9, 834, 4658, 834, 839, 5405, 61, 21680, 953, 834, 4350, 834, 1714, 549, 17444, 427, 564, 3274, 96, 26, 3142, 3, 17, 9, 63, 322, 121, 3430, 5533, 834, 839, 5405, 3, 2, 3, 632, 1, -100, -100,...
what is the average total when bronze is more than 0, gold is 0, the nation is united states (usa) and silver is 0?
CREATE TABLE table_50718 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Total") FROM table_50718 WHERE "Bronze" > '0' AND "Gold" = '0' AND "Nation" = 'united states (usa)' AND "Silver" < '0'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 940, 2606, 41, 96, 22557, 121, 490, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3696, 1947, 8512, 21680, 953, 834, 1752, 940, 2606, 549, 17444, 427, 96, 22780, 29, 776, 121, 2490, 3, 31, 632, 31, 3430, 96, 23576, 121, 3274, 3, 31, 632, 31, 3430, 96, 567, 257, 121, 3274, ...
How many years have claudia beni as the artist?
CREATE TABLE table_name_3 ( year INTEGER, artist VARCHAR )
SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 215, 3, 21342, 17966, 6, 2377, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 203, 43, 3, 4651, 5291, 9, 36, 29, 23, 38, 8, 2377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 1201, 61, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 2377, 3274, 96, 4651, 5291, 9, 36, 29, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What year sold 1,695,900+ copies with an Oricon position larger than 1?
CREATE TABLE table_35900 ( "Year" real, "Album" text, "Oricon position" real, "1st week sales" text, "Copies sold" text )
SELECT AVG("Year") FROM table_35900 WHERE "Copies sold" = '1,695,900+' AND "Oricon position" > '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2469, 7015, 41, 96, 476, 2741, 121, 490, 6, 96, 25691, 440, 121, 1499, 6, 96, 7395, 23, 1018, 1102, 121, 490, 6, 96, 536, 7, 17, 471, 1085, 121, 1499, 6, 96, 3881, 8497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 476, 2741, 8512, 21680, 953, 834, 2469, 7015, 549, 17444, 427, 96, 3881, 8497, 1916, 121, 3274, 3, 31, 4347, 3951, 11116, 7015, 1220, 31, 3430, 96, 7395, 23, 1018, 1102, 121, 2490, 3, 31, 536, ...
What is the date of the game at Olympic Stadium?
CREATE TABLE table_24989925_2 ( date VARCHAR, game_site VARCHAR )
SELECT date FROM table_24989925_2 WHERE game_site = "Olympic Stadium"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 3916, 3264, 1828, 834, 357, 41, 833, 584, 4280, 28027, 6, 467, 834, 3585, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 13, 8, 467, 44, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 2266, 3916, 3264, 1828, 834, 357, 549, 17444, 427, 467, 834, 3585, 3274, 96, 667, 120, 51, 6174, 12750, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Show the number of games for each home team in a bar chart, sort by the y-axis in desc please.
CREATE TABLE injury_accident ( game_id int, id int, Player text, Injury text, Number_of_matches text, Source text ) CREATE TABLE game ( stadium_id int, id int, Season int, Date text, Home_team text, Away_team text, Score text, Competition text ) CREATE TABLE stadium ( id int, name text, Home_Games int, Average_Attendance real, Total_Attendance real, Capacity_Percentage real )
SELECT Home_team, COUNT(Home_team) FROM game GROUP BY Home_team ORDER BY COUNT(Home_team) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2871, 834, 6004, 4215, 41, 467, 834, 23, 26, 16, 17, 6, 3, 23, 26, 16, 17, 6, 12387, 1499, 6, 28905, 1499, 6, 7720, 834, 858, 834, 19515, 15, 7, 1499, 6, 9149, 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, 1, 1...
[ 3, 23143, 14196, 1210, 834, 11650, 6, 2847, 17161, 599, 19040, 834, 11650, 61, 21680, 467, 350, 4630, 6880, 272, 476, 1210, 834, 11650, 4674, 11300, 272, 476, 2847, 17161, 599, 19040, 834, 11650, 61, 309, 25067, 1, -100, -100, -100, -...
What is the school, when the Team is Senators?
CREATE TABLE table_name_56 ( school VARCHAR, team VARCHAR )
SELECT school FROM table_name_56 WHERE team = "senators"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4834, 41, 496, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 496, 6, 116, 8, 2271, 19, 13644, 7, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 496, 21680, 953, 834, 4350, 834, 4834, 549, 17444, 427, 372, 3274, 96, 7, 35, 6230, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?
CREATE TABLE table_46447 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Average 1" real, "Points 2" real )
SELECT SUM("Points 2") FROM table_46447 WHERE "Goal Average 1" > '1.17' AND "Goals Against" > '48' AND "Position" > '6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4389, 4177, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 308, 10936, 29, 121, 490, 6, 96, 434, 3481, 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, 180, 6122, 599, 121, 22512, 7, 204, 8512, 21680, 953, 834, 591, 4389, 4177, 549, 17444, 427, 96, 6221, 138, 23836, 209, 121, 2490, 3, 31, 11039, 940, 31, 3430, 96, 6221, 5405, 3, 20749, 121, 2490, 3, 31, 3707, 31,...
What is the location that has a power of 5kw (10kw ERP)?
CREATE TABLE table_28304 ( "Branding" text, "Callsign" text, "Ch. #" text, "Station Type" text, "Power kW (ERP)" text, "Location (Transmitter Site)" text )
SELECT "Location (Transmitter Site)" FROM table_28304 WHERE "Power kW (ERP)" = '5kW (10kW ERP)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 23702, 41, 96, 18304, 727, 53, 121, 1499, 6, 96, 254, 1748, 6732, 121, 1499, 6, 96, 3541, 5, 1713, 121, 1499, 6, 96, 134, 6821, 6632, 121, 1499, 6, 96, 23553, 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, 434, 32, 75, 257, 41, 18474, 1538, 449, 3238, 61, 121, 21680, 953, 834, 2577, 23702, 549, 17444, 427, 96, 23553, 3, 21729, 41, 3316, 345, 61, 121, 3274, 3, 31, 755, 21729, 11704, 21729, 22568, 61, 31, 1, -100,...
What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?
CREATE TABLE table_name_73 ( pl_gp VARCHAR, player VARCHAR, reg_gp VARCHAR )
SELECT COUNT(pl_gp) FROM table_name_73 WHERE player = "anton rodin" AND reg_gp < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 4752, 834, 122, 102, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 6, 5925, 834, 122, 102, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 102, 40, 834, 122, 102, 61, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 1959, 3274, 96, 9, 6992, 6102, 77, 121, 3430, 5925, 834, 122, 102, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, ...
What player is a cornerback?
CREATE TABLE table_56769 ( "Pick" real, "Round" text, "Player" text, "Position" text, "School" text )
SELECT "Player" FROM table_56769 WHERE "Position" = 'cornerback'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3708, 3951, 41, 96, 345, 3142, 121, 490, 6, 96, 448, 32, 1106, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 29364, 121, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 15800, 49, 121, 21680, 953, 834, 755, 3708, 3951, 549, 17444, 427, 96, 345, 32, 7, 4749, 121, 3274, 3, 31, 13165, 49, 1549, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Loss of the game at Nationwide Arena with a Score of 4–3?
CREATE TABLE table_name_42 (loss VARCHAR, score VARCHAR, arena VARCHAR)
SELECT loss FROM table_name_42 WHERE score = "4–3" AND arena = "nationwide arena"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 2298, 7, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 6, 15134, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3144, 7, 13, 8, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1453, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 2604, 3274, 96, 591, 104, 519, 121, 3430, 15134, 3274, 96, 29, 257, 6728, 15134, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many airlines have the star alliance and are in brazil?
CREATE TABLE table_53320 ( "Rank" real, "Airline" text, "Country" text, "Passengers Carried" real, "Remarks" text, "Alliance" text )
SELECT COUNT("Rank") FROM table_53320 WHERE "Alliance" = 'star alliance' AND "Country" = 'brazil'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 15003, 41, 96, 22557, 121, 490, 6, 96, 20162, 747, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 20192, 4606, 277, 1184, 9889, 121, 490, 6, 96, 1649, 3920, 7, 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, 22557, 8512, 21680, 953, 834, 4867, 15003, 549, 17444, 427, 96, 6838, 23, 663, 121, 3274, 3, 31, 3624, 15454, 31, 3430, 96, 10628, 651, 121, 3274, 3, 31, 1939, 702, 40, 31, 1, -100, -100, -1...
For which country does Keith Fergus play?
CREATE TABLE table_1515346_2 ( country VARCHAR, player VARCHAR )
SELECT country FROM table_1515346_2 WHERE player = "Keith Fergus"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1808, 27025, 4448, 834, 357, 41, 684, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 242, 84, 684, 405, 17017, 7566, 1744, 7, 577, 58, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 21680, 953, 834, 1808, 27025, 4448, 834, 357, 549, 17444, 427, 1959, 3274, 96, 439, 15, 23, 189, 7566, 1744, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many of the patients with icd9 code 4513 have unspecified death status
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 ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "4513"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Which Overall has a Round larger than 7, a Pick larger than 13, and a Name of tony hall?
CREATE TABLE table_8911 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT AVG("Overall") FROM table_8911 WHERE "Round" > '7' AND "Pick" > '13' AND "Name" = 'tony hall'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3914, 2596, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 345, 3142, 121, 490, 6, 96, 23847, 1748, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 345, 32, 7, 4749, 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, 71, 17217, 599, 121, 23847, 1748, 8512, 21680, 953, 834, 3914, 2596, 549, 17444, 427, 96, 448, 32, 1106, 121, 2490, 3, 31, 940, 31, 3430, 96, 345, 3142, 121, 2490, 3, 31, 2368, 31, 3430, 96, 23954, 121, 3274, 3, ...
What is the date of the winning score 74-67-71-73=285?
CREATE TABLE table_2167226_3 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27184, 5865, 2688, 834, 519, 41, 5522, 584, 4280, 28027, 6, 3447, 834, 7, 9022, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 13, 8, 3447, 2604, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 27184, 5865, 2688, 834, 519, 549, 17444, 427, 3447, 834, 7, 9022, 3274, 3, 4581, 3, 18, 3, 3708, 3, 18, 3, 4450, 3, 18, 3, 4552, 3274, 204, 4433, 1, -100, -100, -100, -100, -100, -100, -100...
How many bookings does each booking status have? List the booking status code and the number of corresponding bookings, order X from high to low order.
CREATE TABLE Guests ( guest_id INTEGER, gender_code CHAR(1), guest_first_name VARCHAR(80), guest_last_name VARCHAR(80), date_of_birth DATETIME ) CREATE TABLE View_Unit_Status ( apt_id INTEGER, apt_booking_id INTEGER, status_date DATETIME, available_yn BIT ) CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), building_full_name VARCHAR(80), building_description VARCHAR(255), building_address VARCHAR(255), building_manager VARCHAR(50), building_phone VARCHAR(80) ) CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Apartment_Bookings ( apt_booking_id INTEGER, apt_id INTEGER, guest_id INTEGER, booking_status_code CHAR(15), booking_start_date DATETIME, booking_end_date DATETIME ) CREATE TABLE Apartments ( apt_id INTEGER, building_id INTEGER, apt_type_code CHAR(15), apt_number CHAR(10), bathroom_count INTEGER, bedroom_count INTEGER, room_count CHAR(5) )
SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code ORDER BY booking_status_code DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3, 22360, 41, 3886, 834, 23, 26, 3, 21342, 17966, 6, 7285, 834, 4978, 3, 28027, 14296, 6, 3886, 834, 14672, 834, 4350, 584, 4280, 28027, 599, 2079, 201, 3886, 834, 5064, 834, 4350, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5038, 834, 8547, 302, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 15970, 834, 13355, 53, 7, 350, 4630, 6880, 272, 476, 5038, 834, 8547, 302, 834, 4978, 4674, 11300, 272, 476, 5038, 834, 8547, 302, 834, 4978, 30...
What is the round where winners from the previous round totals 8?
CREATE TABLE table_18328569_1 (round VARCHAR, winners_from_previous_round VARCHAR)
SELECT round FROM table_18328569_1 WHERE winners_from_previous_round = "8"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 2668, 4433, 3951, 834, 536, 41, 7775, 584, 4280, 28027, 6, 8969, 834, 7152, 834, 2026, 19117, 834, 7775, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1751, 21680, 953, 834, 2606, 2668, 4433, 3951, 834, 536, 549, 17444, 427, 8969, 834, 7152, 834, 2026, 19117, 834, 7775, 3274, 96, 927, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the Outcome of the match with a Score of 6 3, 6 4?
CREATE TABLE table_name_75 ( outcome VARCHAR, score VARCHAR )
SELECT outcome FROM table_name_75 WHERE score = "6–3, 6–4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3072, 41, 6138, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3387, 287, 15, 13, 8, 1588, 28, 3, 9, 17763, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6138, 21680, 953, 834, 4350, 834, 3072, 549, 17444, 427, 2604, 3274, 96, 948, 104, 6355, 431, 104, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.
CREATE TABLE track ( track_id number, name text, location text, seating number, year_opened number ) CREATE TABLE race ( race_id number, name text, class text, date text, track_id text )
SELECT location FROM track WHERE seating > 90000 INTERSECT SELECT location FROM track WHERE seating < 70000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1463, 41, 1463, 834, 23, 26, 381, 6, 564, 1499, 6, 1128, 1499, 6, 10259, 381, 6, 215, 834, 26940, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1964, 41, 1964, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1128, 21680, 1463, 549, 17444, 427, 10259, 2490, 2777, 2313, 3, 21342, 5249, 14196, 3, 23143, 14196, 1128, 21680, 1463, 549, 17444, 427, 10259, 3, 2, 2861, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which rounds were held on August 9?
CREATE TABLE table_10725629_2 ( rnd VARCHAR, date VARCHAR )
SELECT rnd FROM table_10725629_2 WHERE date = "August 9"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 18057, 19337, 3166, 834, 357, 41, 3, 52, 727, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 14419, 130, 1213, 30, 1660, 668, 58, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 52, 727, 21680, 953, 834, 18057, 19337, 3166, 834, 357, 549, 17444, 427, 833, 3274, 96, 26579, 668, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What's the rank for February 11, 2012 with less than 18,735 in attendance?
CREATE TABLE table_name_67 (rank INTEGER, date VARCHAR, attendance VARCHAR)
SELECT AVG(rank) FROM table_name_67 WHERE date = "february 11, 2012" AND attendance < 18 OFFSET 735
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3708, 41, 6254, 3, 21342, 17966, 6, 833, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 11003, 21, 2083, 9694, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 6254, 61, 21680, 953, 834, 4350, 834, 3708, 549, 17444, 427, 833, 3274, 96, 89, 15, 9052, 1208, 9694, 1673, 121, 3430, 11364, 3, 2, 507, 3, 15316, 20788, 489, 2469, 1, -100, -100, -100, -100, -100, ...
What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0 in)?
CREATE TABLE table_40863 ( "Record" text, "Athlete" text, "Nation" text, "Venue" text, "Date" text )
SELECT "Nation" FROM table_40863 WHERE "Athlete" = 'emma george' AND "Record" = '4.58m(15ft0¼in)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 3840, 519, 41, 96, 1649, 7621, 121, 1499, 6, 96, 188, 189, 1655, 15, 121, 1499, 6, 96, 567, 257, 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...
[ 3, 23143, 14196, 96, 567, 257, 121, 21680, 953, 834, 2445, 3840, 519, 549, 17444, 427, 96, 188, 189, 1655, 15, 121, 3274, 3, 31, 15, 635, 9, 873, 1677, 15, 31, 3430, 96, 1649, 7621, 121, 3274, 3, 31, 12451, 927, 51, 599, 1808, ...
Name the surface for january 8, 2001
CREATE TABLE table_38242 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partnering" text, "Opponents in the final" text, "Score" text )
SELECT "Surface" FROM table_38242 WHERE "Date" = 'january 8, 2001'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3747, 2266, 357, 41, 96, 15767, 287, 15, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 13725, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 450, 4861, 121, 21680, 953, 834, 3747, 2266, 357, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 7066, 76, 1208, 9478, 4402, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the score for the golfer from the country of fiji?
CREATE TABLE table_47057 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT COUNT("Score") FROM table_47057 WHERE "Country" = 'fiji'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27760, 3436, 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, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 134, 9022, 8512, 21680, 953, 834, 27760, 3436, 549, 17444, 427, 96, 10628, 651, 121, 3274, 3, 31, 89, 17279, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Return the names of singers who are from UK and released an English song.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2324, 41, 1408, 343, 834, 4350, 584, 4280, 28027, 6, 8024, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2377, 41, 1408, 343, 834, 4350, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2377, 834, 4350, 21680, 2377, 549, 17444, 427, 684, 3274, 96, 15787, 121, 3, 21342, 5249, 14196, 3, 23143, 14196, 332, 5411, 1408, 343, 834, 4350, 21680, 2377, 6157, 332, 536, 3, 15355, 3162, 2324, 6157, 332, 357, 919...
what is ba - running bear where b - bishop is rn - running stag?
CREATE TABLE table_2603017_2 (ba___running_bear VARCHAR, b___bishop VARCHAR)
SELECT ba___running_bear FROM table_2603017_2 WHERE b___bishop = "RN - Running Stag"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 18365, 1458, 2517, 834, 357, 41, 115, 9, 834, 834, 834, 24549, 834, 346, 291, 584, 4280, 28027, 6, 3, 115, 834, 834, 834, 11514, 10776, 584, 4280, 28027, 61, 3, 32102, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4698, 834, 834, 834, 24549, 834, 346, 291, 21680, 953, 834, 18365, 1458, 2517, 834, 357, 549, 17444, 427, 3, 115, 834, 834, 834, 11514, 10776, 3274, 96, 14151, 3, 18, 18286, 180, 2408, 121, 1, -100, -100, -100, -100...
What did the away team score at Junction oval?
CREATE TABLE table_name_30 ( away_team VARCHAR, venue VARCHAR )
SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1458, 41, 550, 834, 11650, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 410, 8, 550, 372, 2604, 44, 29092, 17986, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 550, 834, 11650, 6157, 2604, 21680, 953, 834, 4350, 834, 1458, 549, 17444, 427, 5669, 3274, 96, 6959, 4985, 17986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
recent stroke ( within the last six month )
CREATE TABLE table_test_16 ( "id" int, "left_ventricular_ejection_fraction_lvef" int, "systolic_blood_pressure_sbp" int, "severe_hypertension" bool, "adrenaline" bool, "stroke" bool, "renal_disease" bool, "severe_uncontrolled_arterial_hypertension" bool, "hepatic_disease" bool, "dobutamine" bool, "temperature" float, "creatinine_clearance_cl" float, "estimated_glomerular_filtration_rate_egfr" int, "cardiogenic_shock" bool, "diastolic_blood_pressure_dbp" int, "liver_disease" bool, "intravenous_vasoactive_agents" bool, "kidney_disease" bool, "hypertension" bool, "age" float, "NOUSE" float )
SELECT * FROM table_test_16 WHERE stroke = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4377, 834, 2938, 41, 96, 23, 26, 121, 16, 17, 6, 96, 17068, 834, 31695, 834, 15, 21440, 834, 22513, 834, 40, 162, 89, 121, 16, 17, 6, 96, 7, 63, 7, 235, 2176, 834, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2938, 549, 17444, 427, 9529, 3274, 209, 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...
How many million U.S. viewers saw the episode with production code 3X5710?
CREATE TABLE table_28760804_1 ( us_viewers__million_ VARCHAR, production_code VARCHAR )
SELECT us_viewers__million_ FROM table_28760804_1 WHERE production_code = "3X5710"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 28212, 2079, 591, 834, 536, 41, 178, 834, 4576, 277, 834, 834, 17030, 834, 584, 4280, 28027, 6, 999, 834, 4978, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 178, 834, 4576, 277, 834, 834, 17030, 834, 21680, 953, 834, 2577, 28212, 2079, 591, 834, 536, 549, 17444, 427, 999, 834, 4978, 3274, 96, 519, 4, 3436, 1714, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What are the unique names of all race held between 2014 and 2017?
CREATE TABLE status ( statusid number, status text ) CREATE TABLE circuits ( circuitid number, circuitref text, name text, location text, country text, lat number, lng number, alt number, url text ) CREATE TABLE results ( resultid number, raceid number, driverid number, constructorid number, number number, grid number, position number, positiontext text, positionorder number, points number, laps number, time text, milliseconds number, fastestlap number, rank number, fastestlaptime text, fastestlapspeed text, statusid number ) CREATE TABLE constructors ( constructorid number, constructorref text, name text, nationality text, url text ) CREATE TABLE drivers ( driverid number, driverref text, number number, code text, forename text, surname text, dob text, nationality text, url text ) CREATE TABLE laptimes ( raceid number, driverid number, lap number, position number, time text, milliseconds number ) CREATE TABLE constructorstandings ( constructorstandingsid number, raceid number, constructorid number, points number, position number, positiontext text, wins number ) CREATE TABLE seasons ( year number, url text ) CREATE TABLE driverstandings ( driverstandingsid number, raceid number, driverid number, points number, position number, positiontext text, wins number ) CREATE TABLE qualifying ( qualifyid number, raceid number, driverid number, constructorid number, number number, position number, q1 text, q2 text, q3 text ) CREATE TABLE pitstops ( raceid number, driverid number, stop number, lap number, time text, duration text, milliseconds number ) CREATE TABLE races ( raceid number, year number, round number, circuitid number, name text, date text, time text, url text ) CREATE TABLE constructorresults ( constructorresultsid number, raceid number, constructorid number, points number, status number )
SELECT DISTINCT name FROM races WHERE year BETWEEN 2014 AND 2017
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2637, 41, 2637, 23, 26, 381, 6, 2637, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4558, 7, 41, 4558, 23, 26, 381, 6, 4558, 60, 89, 1499, 6, 564, 1499, 6, 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, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 564, 21680, 10879, 549, 17444, 427, 215, 272, 7969, 518, 23394, 1412, 3430, 1233, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Return the description of the product called 'Chocolate'.
CREATE TABLE staff ( staff_id number, gender text, first_name text, last_name text, email_address text, phone_number text ) CREATE TABLE customers ( customer_id number, customer_type_code text, address_line_1 text, address_line_2 text, town_city text, state text, email_address text, phone_number text ) CREATE TABLE complaints ( complaint_id number, product_id number, customer_id number, complaint_outcome_code text, complaint_status_code text, complaint_type_code text, date_complaint_raised time, date_complaint_closed time, staff_id number ) CREATE TABLE products ( product_id number, parent_product_id number, product_category_code text, date_product_first_available time, date_product_discontinued time, product_name text, product_description text, product_price number )
SELECT product_description FROM products WHERE product_name = "Chocolate"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 871, 41, 871, 834, 23, 26, 381, 6, 7285, 1499, 6, 166, 834, 4350, 1499, 6, 336, 834, 4350, 1499, 6, 791, 834, 9, 26, 12039, 1499, 6, 951, 834, 5525, 1152, 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, 556, 834, 221, 11830, 21680, 494, 549, 17444, 427, 556, 834, 4350, 3274, 96, 3541, 32, 3297, 342, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which Season has Ties smaller than 1, and a Team of vancouver grizzlies, and Wins smaller than 1?
CREATE TABLE table_name_42 (season INTEGER, wins VARCHAR, ties VARCHAR, team VARCHAR)
SELECT SUM(season) FROM table_name_42 WHERE ties < 1 AND team = "vancouver grizzlies" AND wins < 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 9476, 3, 21342, 17966, 6, 9204, 584, 4280, 28027, 6, 3, 3010, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 7960, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9476, 61, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 3, 3010, 3, 2, 209, 3430, 372, 3274, 96, 2132, 3422, 624, 3, 3496, 5271, 4664, 121, 3430, 9204, 3, 2, 209, 1, -100, -100, -100, -100, ...
How many musicals has each nominee been nominated for Plot them as bar chart, and display from low to high by the x axis.
CREATE TABLE actor ( Actor_ID int, Name text, Musical_ID int, Character text, Duration text, age int ) CREATE TABLE musical ( Musical_ID int, Name text, Year int, Award text, Category text, Nominee text, Result text )
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee ORDER BY Nominee
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7556, 41, 1983, 127, 834, 4309, 16, 17, 6, 5570, 1499, 6, 22307, 834, 4309, 16, 17, 6, 20087, 1499, 6, 20610, 1499, 6, 1246, 16, 17, 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, 465, 8695, 15, 6, 2847, 17161, 599, 1935, 61, 21680, 4183, 350, 4630, 6880, 272, 476, 465, 8695, 15, 4674, 11300, 272, 476, 465, 8695, 15, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Position has a Player of patrick macdonald?
CREATE TABLE table_name_35 ( position VARCHAR, player VARCHAR )
SELECT position FROM table_name_35 WHERE player = "patrick macdonald"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 1102, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 14258, 65, 3, 9, 12387, 13, 6234, 5206, 11486, 26, 9533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 1959, 3274, 96, 4665, 5206, 11486, 26, 9533, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many channels are there in the Greater Tokyo area?
CREATE TABLE table_2638104_1 (channel VARCHAR, broadcast_area VARCHAR)
SELECT COUNT(channel) FROM table_2638104_1 WHERE broadcast_area = "Greater Tokyo"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 3747, 15442, 834, 536, 41, 19778, 584, 4280, 28027, 6, 6878, 834, 498, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 6047, 33, 132, 16, 8, 15993, 12653...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 19778, 61, 21680, 953, 834, 2688, 3747, 15442, 834, 536, 549, 17444, 427, 6878, 834, 498, 3274, 96, 24189, 49, 12653, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the lowest points of British Racing after 1963?
CREATE TABLE table_name_90 ( points INTEGER, year INTEGER )
SELECT MIN(points) FROM table_name_90 WHERE year > 1963
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2394, 41, 979, 3, 21342, 17966, 6, 215, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 979, 13, 2390, 16046, 227, 20613, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 2394, 549, 17444, 427, 215, 2490, 20613, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many games has number 61 played in?
CREATE TABLE table_37375 ( "Position" text, "Number" real, "Name" text, "Height" text, "Weight" real, "Class" text, "Hometown" text, "Games\u2191" real )
SELECT MIN("Games\u2191") FROM table_37375 WHERE "Number" = '61'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4118, 22954, 41, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 567, 5937, 49, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 3845, 2632, 121, 1499, 6, 96, 1326, 2632, 121, 490, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 23055, 7, 2, 76, 2658, 4729, 8512, 21680, 953, 834, 4118, 22954, 549, 17444, 427, 96, 567, 5937, 49, 121, 3274, 3, 31, 4241, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?
CREATE TABLE table_name_68 ( home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR )
SELECT home_team FROM table_name_68 WHERE tie_no = "replay" AND date = "4 february 1987" AND away_team = "luton town"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 234, 834, 11650, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 6, 6177, 834, 29, 32, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 6177, 834, 29, 32, 3274, 96, 60, 4895, 121, 3430, 833, 3274, 96, 591, 29976, 76, 1208, 12701, 121, 3430, 550, 834, 11650, 3274, 96, 40, 76, 17, 1...
for the time of 49.04 and lane less than 3, what is the nationality?
CREATE TABLE table_name_27 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_27 WHERE lane < 3 AND time = 49.04
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2555, 41, 16557, 485, 584, 4280, 28027, 6, 3, 8102, 584, 4280, 28027, 6, 97, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 21, 8, 97, 13, 9526, 5, 6348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1157, 485, 21680, 953, 834, 4350, 834, 2555, 549, 17444, 427, 3, 8102, 3, 2, 220, 3430, 97, 3274, 9526, 5, 6348, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...