NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
What's the 1981 census of Livorno?
CREATE TABLE table_10138926_1 (city VARCHAR)
SELECT 1981 AS _census FROM table_10138926_1 WHERE city = "Livorno"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1714, 2368, 3914, 2688, 834, 536, 41, 6726, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 15465, 23087, 13, 1414, 1967, 29, 32, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15465, 6157, 3, 834, 75, 35, 7, 302, 21680, 953, 834, 1714, 2368, 3914, 2688, 834, 536, 549, 17444, 427, 690, 3274, 96, 434, 23, 1967, 29, 32, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which Score has a Result of 5-1?
CREATE TABLE table_name_68 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_68 WHERE result = "5-1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 7, 9022, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 17763, 65, 3, 9, 3, 20119, 13, 305, 2292, 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, 2604, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 741, 3274, 96, 755, 2292, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many countries played in the city of ljungskile?
CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR)
SELECT COUNT(country) FROM table_28005160_2 WHERE city = "Ljungskile"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 17518, 3076, 19129, 834, 357, 41, 17529, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1440, 1944, 16, 8, 690, 13, 3, 40, 22498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 17529, 61, 21680, 953, 834, 17518, 3076, 19129, 834, 357, 549, 17444, 427, 690, 3274, 96, 434, 22498, 4009, 109, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who got second place when the winners were rafa mroczek & aneta piotrowska?
CREATE TABLE table_72741 ( "Season" text, "No. of stars" real, "No. of weeks" real, "Duration dates" text, "Winner" text, "Second place" text, "Third place" text )
SELECT "Second place" FROM table_72741 WHERE "Winner" = 'Rafał Mroczek & Aneta Piotrowska'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2555, 4853, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 4168, 5, 13, 4811, 121, 490, 6, 96, 4168, 5, 13, 1274, 121, 490, 6, 96, 12998, 2661, 5128, 121, 1499, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 15, 1018, 26, 286, 121, 21680, 953, 834, 940, 2555, 4853, 549, 17444, 427, 96, 18455, 687, 121, 3274, 3, 31, 448, 9, 89, 9, 2, 283, 7818, 776, 157, 3, 184, 71, 1582, 9, 2745, 24497, 210, 10717, 31, 1,...
what is the title when the citation is honor and the narrator is lincoln hoppe?
CREATE TABLE table_name_94 ( title VARCHAR, citation VARCHAR, narrator VARCHAR )
SELECT title FROM table_name_94 WHERE citation = "honor" AND narrator = "lincoln hoppe"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 2233, 584, 4280, 28027, 6, 3, 13903, 584, 4280, 28027, 6, 3, 29, 291, 52, 1016, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2233, 21680, 953, 834, 4350, 834, 4240, 549, 17444, 427, 3, 13903, 3274, 96, 107, 106, 127, 121, 3430, 3, 29, 291, 52, 1016, 3274, 96, 40, 77, 3297, 29, 13652, 855, 121, 1, -100, -100, -100, -100, -100, -100, -100...
What was the date when the record was 35-57?
CREATE TABLE table_56274 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT "Date" FROM table_56274 WHERE "Record" = '35-57'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 2555, 591, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 1649, 7621, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 4834, 2555, 591, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 2469, 18, 3436, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
15 albums were released in the UK during which year?
CREATE TABLE table_32858 ( "Year" text, "US 200" text, "UK Albums" text, "RIAA certification" text, "BPI certification" text )
SELECT "Year" FROM table_32858 WHERE "UK Albums" = '15'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 28070, 3449, 41, 96, 476, 2741, 121, 1499, 6, 96, 3063, 2382, 121, 1499, 6, 96, 15787, 16135, 7, 121, 1499, 6, 96, 22249, 188, 5151, 121, 1499, 6, 96, 279, 4111, 5151, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 476, 2741, 121, 21680, 953, 834, 28070, 3449, 549, 17444, 427, 96, 15787, 16135, 7, 121, 3274, 3, 31, 1808, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the least lost with points more than 6 and games less than 5
CREATE TABLE table_37134 ( "Games" real, "Drawn" real, "Lost" real, "Goal difference" text, "Points" real )
SELECT MIN("Lost") FROM table_37134 WHERE "Points" > '6' AND "Games" < '5'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4118, 23747, 41, 96, 23055, 7, 121, 490, 6, 96, 308, 10936, 29, 121, 490, 6, 96, 434, 3481, 121, 490, 6, 96, 6221, 138, 1750, 121, 1499, 6, 96, 22512, 7, 121, 490, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 434, 3481, 8512, 21680, 953, 834, 4118, 23747, 549, 17444, 427, 96, 22512, 7, 121, 2490, 3, 31, 948, 31, 3430, 96, 23055, 7, 121, 3, 2, 3, 31, 755, 31, 1, -100, -100, -100, -100, -100, -100, ...
Return a bar chart about the distribution of ACC_Road and School_ID , and group by attribute ACC_Home, order in descending by the X please.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14775, 834, 448, 32, 9, 26, 6, 1121, 834, 4309, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 3, 14775, 834, 19040, 6, 3, 14775, 834, 448, 32, 9, 26, 4674, 11300, 272, 476, 3, 14775, 834, 448, 32, 9, ...
How many patients stayed in the hospital for more than 2 days and have diagnosis long title as tricuspid valve disorders specified as nonrheumatic?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "2" AND diagnoses.long_title = "Tricuspid valve disorders, specified as nonrheumatic"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
calculate the total number of patients who had fus/refus 4-8 vertebrae
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 procedures.short_title = "Fus/refus 4-8 vertebrae"
[ 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,...
How many have Mrs. briar as a villain
CREATE TABLE table_10470082_5 ( no VARCHAR, villains VARCHAR )
SELECT COUNT(no) FROM table_10470082_5 WHERE villains = "Mrs. Briar"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15442, 9295, 4613, 834, 755, 41, 150, 584, 4280, 28027, 6, 23132, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 43, 8667, 5, 3, 2160, 291, 38, 3, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 29, 32, 61, 21680, 953, 834, 15442, 9295, 4613, 834, 755, 549, 17444, 427, 23132, 7, 3274, 96, 329, 52, 7, 5, 7834, 291, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season?
CREATE TABLE table_name_81 ( games INTEGER, year INTEGER )
SELECT MIN(games) FROM table_name_81 WHERE year > 2013
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4959, 41, 1031, 3, 21342, 17966, 6, 215, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 621, 8, 2038, 774, 6, 125, 47, 8, 360, 222, 381, 13, 1031, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 7261, 7, 61, 21680, 953, 834, 4350, 834, 4959, 549, 17444, 427, 215, 2490, 2038, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which Team has a Time of 1:14.51.73?
CREATE TABLE table_name_31 ( team VARCHAR, time VARCHAR )
SELECT team FROM table_name_31 WHERE time = "1:14.51.73"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 372, 584, 4280, 28027, 6, 97, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 2271, 65, 3, 9, 2900, 13, 19520, 12451, 18596, 519, 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, 372, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 97, 3274, 96, 536, 10, 2534, 5, 5553, 5, 4552, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
what camp is at the top ?
CREATE TABLE table_204_217 ( id number, "camp" text, "div sec\ndivision" text, "admin\ndistrict" text, "9 feb" number, "11 feb" number, "16 feb" number, "25 feb" number, "27 feb" number, "2 mar" number, "4 mar" number, "6 mar" number, "11 mar" number, "13 mar" number, "24 mar" number, "30 mar" number, "31 mar" number )
SELECT "camp" FROM table_204_217 WHERE id = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 357, 2517, 41, 3, 23, 26, 381, 6, 96, 12389, 121, 1499, 6, 96, 8481, 4220, 2, 727, 23, 6610, 121, 1499, 6, 96, 20466, 29, 2, 727, 23, 20066, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 12389, 121, 21680, 953, 834, 26363, 834, 357, 2517, 549, 17444, 427, 3, 23, 26, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who had a transfer fee of dkk 6m?
CREATE TABLE table_name_39 ( name VARCHAR, transfer_fee VARCHAR )
SELECT name FROM table_name_39 WHERE transfer_fee = "dkk 6m"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3288, 41, 564, 584, 4280, 28027, 6, 2025, 834, 89, 15, 15, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 141, 3, 9, 2025, 2572, 13, 3, 26, 8511...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 564, 21680, 953, 834, 4350, 834, 3288, 549, 17444, 427, 2025, 834, 89, 15, 15, 3274, 96, 26, 8511, 431, 51, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the team 1 in the match with a team 2 of Karabakh?
CREATE TABLE table_name_20 ( team_1 VARCHAR, team_2 VARCHAR )
SELECT team_1 FROM table_name_20 WHERE team_2 = "karabakh"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 372, 834, 536, 584, 4280, 28027, 6, 372, 834, 357, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 372, 209, 16, 8, 1588, 28, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 372, 834, 536, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 372, 834, 357, 3274, 96, 1258, 7093, 18965, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?
CREATE TABLE table_name_74 (package_version VARCHAR, carrier VARCHAR)
SELECT package_version FROM table_name_74 WHERE carrier = "telus mobility"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 5745, 545, 834, 8674, 584, 4280, 28027, 6, 9568, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 21665, 6827, 1853, 276, 15339, 11187, 3, 26794, 9215,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2642, 834, 8674, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 9568, 3274, 96, 1625, 302, 12337, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What number of Yards has 32 as an In 20?
CREATE TABLE table_name_90 (yards VARCHAR, in_20 VARCHAR)
SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2394, 41, 6636, 7, 584, 4280, 28027, 6, 16, 834, 1755, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 381, 13, 16093, 7, 65, 3538, 38, 46, 86, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6636, 7, 61, 21680, 953, 834, 4350, 834, 2394, 549, 17444, 427, 16, 834, 1755, 3274, 3538, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
provide the number of patients whose admission year is less than 2166 and item id is 50885?
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 ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2166" AND lab.itemid = "50885"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What is the crowd size for Victoria park?
CREATE TABLE table_51854 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Crowd" FROM table_51854 WHERE "Venue" = 'victoria park'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2606, 5062, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 3623, 26, 121, 21680, 953, 834, 755, 2606, 5062, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 7287, 3600, 9, 2447, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who had the pole(s) when esteban guerrieri led the most laps round 8a and josef newgarden had the fastest lap?
CREATE TABLE table_29690363_3 ( pole_position VARCHAR, rd VARCHAR, most_laps_led VARCHAR, fastest_lap VARCHAR )
SELECT pole_position FROM table_29690363_3 WHERE most_laps_led = "Esteban Guerrieri" AND fastest_lap = "Josef Newgarden" AND rd = "8A"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 3951, 4928, 3891, 834, 519, 41, 11148, 834, 4718, 584, 4280, 28027, 6, 3, 52, 26, 584, 4280, 28027, 6, 167, 834, 8478, 7, 834, 1361, 584, 4280, 28027, 6, 10391, 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, 11148, 834, 4718, 21680, 953, 834, 3166, 3951, 4928, 3891, 834, 519, 549, 17444, 427, 167, 834, 8478, 7, 834, 1361, 3274, 96, 14997, 15, 3478, 2846, 49, 6711, 23, 121, 3430, 10391, 834, 8478, 3274, 96, 683, 32, 7, ...
Nam ethe place for pat perez
CREATE TABLE table_name_43 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_43 WHERE player = "pat perez"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 4687, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 18740, 3, 15, 532, 286, 21, 6234, 399, 457, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 286, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 1959, 3274, 96, 4665, 399, 457, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
In the 2004 season with a 0-2 score what was the name of the venue?
CREATE TABLE table_48221 ( "Season" real, "Team 1" text, "Score" text, "Team 2" text, "Venue" text )
SELECT "Venue" FROM table_48221 WHERE "Score" = '0-2' AND "Season" = '2004'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3707, 357, 2658, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 18699, 209, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 18699, 204, 121, 1499, 6, 96, 553, 35, 76, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 3707, 357, 2658, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 632, 4949, 31, 3430, 96, 134, 15, 9, 739, 121, 3274, 3, 31, 21653, 31, 1, -100, -100, -100, -100, -...
state the winnings of yates racing front row motorsports where poles were 0
CREATE TABLE table_2012187_1 ( winnings VARCHAR, poles VARCHAR, team_s_ VARCHAR )
SELECT winnings FROM table_2012187_1 WHERE poles = 0 AND team_s_ = "Yates Racing Front Row Motorsports"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12172, 25828, 834, 536, 41, 3447, 7, 584, 4280, 28027, 6, 11148, 7, 584, 4280, 28027, 6, 372, 834, 7, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 538, 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, 0, 0...
[ 3, 23143, 14196, 3447, 7, 21680, 953, 834, 12172, 25828, 834, 536, 549, 17444, 427, 11148, 7, 3274, 3, 632, 3430, 372, 834, 7, 834, 3274, 96, 476, 6203, 16046, 7383, 11768, 30045, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100,...
Who is the opponent on November 22, 2009, clay surface?
CREATE TABLE table_name_46 ( opponent VARCHAR, surface VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_46 WHERE surface = "clay" AND date = "november 22, 2009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4448, 41, 15264, 584, 4280, 28027, 6, 1774, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 15264, 30, 1671, 12889, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15264, 21680, 953, 834, 4350, 834, 4448, 549, 17444, 427, 1774, 3274, 96, 4651, 63, 121, 3430, 833, 3274, 96, 5326, 18247, 12889, 2464, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the average econ for runs more than 703 and ovrs more than 25.5
CREATE TABLE table_71690 ( "Player" text, "Wkts" real, "Runs" real, "Econ" real, "Ovrs" real )
SELECT AVG("Econ") FROM table_71690 WHERE "Ovrs" > '25.5' AND "Runs" > '703'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2938, 2394, 41, 96, 15800, 49, 121, 1499, 6, 96, 518, 157, 17, 7, 121, 490, 6, 96, 448, 202, 7, 121, 490, 6, 96, 427, 1018, 121, 490, 6, 96, 667, 208, 52, 7, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 427, 1018, 8512, 21680, 953, 834, 940, 2938, 2394, 549, 17444, 427, 96, 667, 208, 52, 7, 121, 2490, 3, 31, 357, 15938, 31, 3430, 96, 448, 202, 7, 121, 2490, 3, 31, 2518, 519, 31, 1, -100, ...
When was the premiere of the show that had a rank of #7?
CREATE TABLE table_9651 ( "Season" text, "Premiere" text, "Finale" text, "Episodes" real, "Timeslot" text, "Rank" text, "Viewers (in households)" real )
SELECT "Premiere" FROM table_9651 WHERE "Rank" = '#7'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4314, 5553, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 10572, 2720, 60, 121, 1499, 6, 96, 371, 10270, 15, 121, 1499, 6, 96, 427, 102, 159, 32, 1395, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 10572, 2720, 60, 121, 21680, 953, 834, 4314, 5553, 549, 17444, 427, 96, 22557, 121, 3274, 3, 31, 4663, 940, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name and budget of departments whose budgets are more than the average budget.
CREATE TABLE department (dept_name VARCHAR, budget INTEGER)
SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3066, 41, 26, 6707, 834, 4350, 584, 4280, 28027, 6, 1487, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 2588, 8, 564, 11, 1487, 13, 10521, 3, 2544, 1487, 7, 33, 72, 145, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 20, 102, 17, 834, 4350, 6, 1487, 21680, 3066, 549, 17444, 427, 1487, 2490, 41, 23143, 14196, 71, 17217, 599, 11073, 2782, 61, 21680, 3066, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the Frequency that has a fairview City of license
CREATE TABLE table_name_32 ( frequency VARCHAR, city_of_license VARCHAR )
SELECT frequency FROM table_name_32 WHERE city_of_license = "fairview"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 7321, 584, 4280, 28027, 6, 690, 834, 858, 834, 28062, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 5532, 835, 11298, 24, 65, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7321, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 690, 834, 858, 834, 28062, 3274, 96, 14881, 4576, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the sport with championships less than 1 and club of erie bayhawks
CREATE TABLE table_68414 ( "Club" text, "League" text, "Sport" text, "Venue" text, "Established" real, "Championships" real )
SELECT "Sport" FROM table_68414 WHERE "Championships" < '1' AND "Club" = 'erie bayhawks'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3651, 591, 2534, 41, 96, 254, 11158, 121, 1499, 6, 96, 2796, 9, 5398, 121, 1499, 6, 96, 17682, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 14997, 15403, 11904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17682, 121, 21680, 953, 834, 3651, 591, 2534, 549, 17444, 427, 96, 254, 1483, 12364, 2009, 7, 121, 3, 2, 3, 31, 536, 31, 3430, 96, 254, 11158, 121, 3274, 3, 31, 4074, 10210, 14400, 7, 31, 1, -100, -100, -100...
What is the location of Tamagaki station with an l stop?
CREATE TABLE table_name_14 ( location VARCHAR, stop VARCHAR, station VARCHAR )
SELECT location FROM table_name_14 WHERE stop = "l" AND station = "tamagaki"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 1128, 584, 4280, 28027, 6, 1190, 584, 4280, 28027, 6, 2478, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1128, 13, 10903, 4711, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1128, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 1190, 3274, 96, 40, 121, 3430, 2478, 3274, 96, 22713, 122, 11259, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the number of patients less than 70 years of age who had a percutaneous liver aspiration procedure.
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.age < "70" AND procedures.short_title = "Percutan liver aspirat"
[ 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 Superfund site has the CERCLIS ID fld980494959?
CREATE TABLE table_name_78 (partially_deleted VARCHAR, cerclis_id VARCHAR)
SELECT partially_deleted FROM table_name_78 WHERE cerclis_id = "fld980494959"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 2274, 23, 1427, 834, 26, 400, 1054, 584, 4280, 28027, 6, 19259, 40, 159, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 2011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14610, 834, 26, 400, 1054, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 19259, 40, 159, 834, 23, 26, 3274, 96, 89, 40, 26, 3916, 632, 3647, 3647, 3390, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
let me know the gender and time of discharge for patient with patient id 55094.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT demographic.gender, demographic.dischtime FROM demographic WHERE demographic.subject_id = "55094"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 14798, 5, 122, 3868, 6, 14798, 5, 26, 2499, 715, 21680, 14798, 549, 17444, 427, 14798, 5, 7304, 11827, 834, 23, 26, 3274, 96, 17147, 4240, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the production code of the episode that had 5.43 million viewers?
CREATE TABLE table_24938621_3 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT production_code FROM table_24938621_3 WHERE us_viewers__million_ = "5.43"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 4271, 3840, 2658, 834, 519, 41, 20762, 834, 4978, 584, 4280, 28027, 6, 178, 834, 4576, 277, 834, 834, 17030, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 999, 834, 4978, 21680, 953, 834, 2266, 4271, 3840, 2658, 834, 519, 549, 17444, 427, 178, 834, 4576, 277, 834, 834, 17030, 834, 3274, 96, 27436, 519, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Around what time frame release a Sampling Rate of 12-bit 40khz?
CREATE TABLE table_34443 ( "Model" text, "Release Date" real, "Price" text, "MIDI Inputs/Outputs" text, "Sampling Rate" text, "Sampling Memory/Upgrade-able" text, "Sampling Time" text, "Storage Method" text, "Pad Banks" real )
SELECT SUM("Release Date") FROM table_34443 WHERE "Sampling Rate" = '12-bit 40khz'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3710, 3628, 519, 41, 96, 24663, 121, 1499, 6, 96, 1649, 40, 14608, 7678, 121, 490, 6, 96, 345, 4920, 121, 1499, 6, 96, 21003, 196, 86, 2562, 7, 87, 15767, 2562, 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, 180, 6122, 599, 121, 1649, 40, 14608, 7678, 8512, 21680, 953, 834, 3710, 3628, 519, 549, 17444, 427, 96, 134, 4624, 697, 13002, 121, 3274, 3, 31, 2122, 18, 2360, 1283, 157, 107, 172, 31, 1, -100, -100, -100, -100, ...
What is the yes percentage in the measure that had 35270 yes votes?
CREATE TABLE table_256286_5 (_percentage_yes VARCHAR, yes_votes VARCHAR)
SELECT _percentage_yes FROM table_256286_5 WHERE yes_votes = 35270
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 4056, 3840, 834, 755, 41, 834, 883, 3728, 545, 834, 10070, 584, 4280, 28027, 6, 4273, 834, 1621, 1422, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 834, 883, 3728, 545, 834, 10070, 21680, 953, 834, 1828, 4056, 3840, 834, 755, 549, 17444, 427, 4273, 834, 1621, 1422, 3274, 3097, 17485, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the To par of the Player wtih Year(s) won of 1983?
CREATE TABLE table_name_11 (to_par INTEGER, year_s__won VARCHAR)
SELECT AVG(to_par) FROM table_name_11 WHERE year_s__won = "1983"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2596, 41, 235, 834, 1893, 3, 21342, 17966, 6, 215, 834, 7, 834, 834, 210, 106, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 304, 260, 13, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 235, 834, 1893, 61, 21680, 953, 834, 4350, 834, 2596, 549, 17444, 427, 215, 834, 7, 834, 834, 210, 106, 3274, 96, 2294, 4591, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find meter_200 and the average of meter_100 , and group by attribute meter_200, and visualize them by a bar chart, and I want to rank bars in asc order.
CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text )
SELECT meter_200, AVG(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14939, 41, 4699, 16, 17, 6, 564, 1499, 6, 4000, 9, 6726, 16, 17, 6, 896, 1499, 6, 6993, 1499, 6, 20360, 834, 1201, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 4401, 834, 3632, 6, 71, 17217, 599, 4401, 834, 2915, 61, 21680, 27424, 350, 4630, 6880, 272, 476, 3, 4401, 834, 3632, 4674, 11300, 272, 476, 3, 4401, 834, 3632, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
when was patient 021-79544 for the last time prescribed a medication via the sl route on the current hospital encounter?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-79544' AND patient.hospitaldischargetime IS NULL)) AND medication.routeadmin = 'sl' ORDER BY medication.drugstarttime DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 50, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 7690, 4350, 1499, 6, 50, 1999, 7, 83, 17, 381, 6, 50, 1999, 7, 83, 17, 715, 97, 3, 61, 3, 32102, 32103, 32102, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7757, 5, 26, 13534, 10208, 715, 21680, 7757, 549, 17444, 427, 7757, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15878, 37...
What is Country, when Score is 71-74-70=215?
CREATE TABLE table_51137 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Country" FROM table_51137 WHERE "Score" = '71-74-70=215'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5553, 24636, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 3, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 10628, 651, 121, 21680, 953, 834, 5553, 24636, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 4450, 18, 4581, 18, 2518, 2423, 357, 1808, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the total number of medals when the bronze is more than 1, and Germany is the nation, and gold medals less than 1?
CREATE TABLE table_name_14 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_14 WHERE bronze > 1 AND nation = "germany" AND gold < 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 235, 1947, 584, 4280, 28027, 6, 2045, 584, 4280, 28027, 6, 13467, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 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, 2847, 17161, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 13467, 2490, 209, 3430, 2982, 3274, 96, 1304, 348, 63, 121, 3430, 2045, 3, 2, 209, 1, -100, -100, -100, -100, -100, -100, -100, -10...
What is the name of a partner that played on a hard surface on 18 April 2011?
CREATE TABLE table_name_23 ( partner VARCHAR, surface VARCHAR, date VARCHAR )
SELECT partner FROM table_name_23 WHERE surface = "hard" AND date = "18 april 2011"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 2397, 584, 4280, 28027, 6, 1774, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 3, 9, 2397, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2397, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 1774, 3274, 96, 5651, 121, 3430, 833, 3274, 96, 2606, 3, 9, 2246, 40, 2722, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who was her partner at the US Open and they were runner-up?
CREATE TABLE table_1920271_3 ( partner VARCHAR, championship VARCHAR, outcome VARCHAR )
SELECT partner FROM table_1920271_3 WHERE championship = "US Open" AND outcome = "Runner-up"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 19818, 4450, 834, 519, 41, 2397, 584, 4280, 28027, 6, 10183, 584, 4280, 28027, 6, 6138, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 160, 2397, 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, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2397, 21680, 953, 834, 2294, 19818, 4450, 834, 519, 549, 17444, 427, 10183, 3274, 96, 3063, 2384, 121, 3430, 6138, 3274, 96, 23572, 18, 413, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the safari value with a 28.0% internet explorer?
CREATE TABLE table_79528 ( "Date" text, "Internet Explorer" text, "Firefox" text, "Safari" text, "Opera" text )
SELECT "Safari" FROM table_79528 WHERE "Internet Explorer" = '28.0%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3301, 2577, 41, 96, 308, 342, 121, 1499, 6, 96, 22912, 15762, 121, 1499, 6, 96, 3183, 60, 20400, 121, 1499, 6, 96, 134, 9, 5544, 23, 121, 1499, 6, 96, 667, 883, 9,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 9, 5544, 23, 121, 21680, 953, 834, 940, 3301, 2577, 549, 17444, 427, 96, 22912, 15762, 121, 3274, 3, 31, 2577, 5, 6932, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which problems are reported before 1978-06-26? Give me the ids of the problems.
CREATE TABLE problem_status_codes ( problem_status_code text, problem_status_description text ) CREATE TABLE problem_category_codes ( problem_category_code text, problem_category_description text ) CREATE TABLE product ( product_id number, product_name text, product_details text ) CREATE TABLE problem_log ( problem_log_id number, assigned_to_staff_id number, problem_id number, problem_category_code text, problem_status_code text, log_entry_date time, log_entry_description text, log_entry_fix text, other_log_details text ) CREATE TABLE staff ( staff_id number, staff_first_name text, staff_last_name text, other_staff_details text ) CREATE TABLE problems ( problem_id number, product_id number, closure_authorised_by_staff_id number, reported_by_staff_id number, date_problem_reported time, date_problem_closed time, problem_description text, other_problem_details text )
SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 682, 834, 8547, 302, 834, 4978, 7, 41, 682, 834, 8547, 302, 834, 4978, 1499, 6, 682, 834, 8547, 302, 834, 221, 11830, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 682, 834, 23, 26, 21680, 982, 549, 17444, 427, 833, 834, 19307, 834, 60, 16262, 3, 2, 96, 2294, 3940, 18, 5176, 18, 2688, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What Australian Marquee team is Michael Beauchamp a captain of?
CREATE TABLE table_name_13 (australian_marquee VARCHAR, captain VARCHAR)
SELECT australian_marquee FROM table_name_13 WHERE captain = "michael beauchamp"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 402, 3109, 9928, 834, 1635, 835, 15, 584, 4280, 28027, 6, 14268, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 3746, 1571, 835, 15, 372, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 23407, 29, 834, 1635, 835, 15, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 14268, 3274, 96, 51, 362, 9, 15, 40, 36, 11532, 4624, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many values for founded when enrollment is 850?
CREATE TABLE table_22043925_1 (founded VARCHAR, enrolment VARCHAR)
SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = 850
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 26363, 3288, 1828, 834, 536, 41, 23329, 584, 4280, 28027, 6, 3, 35, 3491, 297, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 2620, 21, 5710, 116, 17938,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23329, 61, 21680, 953, 834, 357, 26363, 3288, 1828, 834, 536, 549, 17444, 427, 3, 35, 3491, 297, 3274, 3, 17246, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who had the overall pick of 72?
CREATE TABLE table_name_36 ( name VARCHAR, overall VARCHAR )
SELECT name FROM table_name_36 WHERE overall = 72
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 564, 584, 4280, 28027, 6, 1879, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 141, 8, 1879, 1432, 13, 9455, 58, 1, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 1879, 3274, 9455, 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...
Which team had a year entering the league under 2009, located in Bath?
CREATE TABLE table_name_21 (team VARCHAR, year_entered_league VARCHAR, location VARCHAR)
SELECT team FROM table_name_21 WHERE year_entered_league < 2009 AND location = "bath"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 11650, 584, 4280, 28027, 6, 215, 834, 35, 11196, 834, 29512, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 372, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 215, 834, 35, 11196, 834, 29512, 3, 2, 2464, 3430, 1128, 3274, 96, 3697, 107, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the average number of top-10s for events with more than 12 cuts made and 0 wins?
CREATE TABLE table_39903 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT AVG("Top-10") FROM table_39903 WHERE "Cuts made" > '12' AND "Wins" < '0'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3288, 2394, 519, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 18455, 7, 121, 490, 6, 96, 22481, 18, 17395, 490, 6, 96, 22481, 4536, 121, 490, 6, 96, 22481, 14855, 121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 22481, 4536, 8512, 21680, 953, 834, 3288, 2394, 519, 549, 17444, 427, 96, 15784, 17, 7, 263, 121, 2490, 3, 31, 2122, 31, 3430, 96, 18455, 7, 121, 3, 2, 3, 31, 632, 31, 1, -100, -100, -100, ...
List the number of winery of the wines whose price is bigger than 100 in a bar chart, and I want to rank in asc by the Y-axis.
CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT, Name TEXT, Year INTEGER, Price INTEGER, Score INTEGER, Cases INTEGER, Drink TEXT ) CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT )
SELECT Winery, COUNT(Winery) FROM wine WHERE Price > 100 GROUP BY Winery ORDER BY COUNT(Winery)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 11457, 7, 41, 4699, 3, 21342, 17966, 6, 29083, 3, 3463, 4, 382, 6, 6088, 3, 3463, 4, 382, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2013, 41, 465, 3, 21342, 17966...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 9426, 651, 6, 2847, 17161, 599, 18455, 4203, 61, 21680, 2013, 549, 17444, 427, 5312, 2490, 910, 350, 4630, 6880, 272, 476, 9426, 651, 4674, 11300, 272, 476, 2847, 17161, 599, 18455, 4203, 61, 1, -100, -100, -100, -100...
What is the total number of episodes where alexa wyatt is the writer?
CREATE TABLE table_16175064_3 (series__number VARCHAR, writer_s_ VARCHAR)
SELECT COUNT(series__number) FROM table_16175064_3 WHERE writer_s_ = "Alexa Wyatt"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2938, 2517, 1752, 4389, 834, 519, 41, 10833, 7, 834, 834, 5525, 1152, 584, 4280, 28027, 6, 4346, 834, 7, 834, 584, 4280, 28027, 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, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 10833, 7, 834, 834, 5525, 1152, 61, 21680, 953, 834, 2938, 2517, 1752, 4389, 834, 519, 549, 17444, 427, 4346, 834, 7, 834, 3274, 96, 27280, 9, 11314, 144, 17, 121, 1, -100, -100, -100, -100, -100, ...
What's the post position when the lengths behind is 0?
CREATE TABLE table_name_74 (post_position INTEGER, lengths_behind VARCHAR)
SELECT AVG(post_position) FROM table_name_74 WHERE lengths_behind = "0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 5950, 834, 4718, 3, 21342, 17966, 6, 2475, 7, 834, 346, 2907, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 442, 1102, 116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 5950, 834, 4718, 61, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 2475, 7, 834, 346, 2907, 26, 3274, 96, 632, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
in the first hospital visit what is patient 007-9338's age?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time )
SELECT patient.age FROM patient WHERE patient.uniquepid = '007-9338' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8209, 41, 8209, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 8209, 4350, 1499, 6, 8209, 715, 97, 6, 3, 447, 26, 1298, 4978, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1868, 5, 545, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 1206, 29568, 519, 3747, 31, 3430, 4486, 1868, 5, 31386, 26, 159, 7993, 715, 6827, 13046, 10376, 4674, 11300, 272, 476, 1868, 5, 313...
what is the difference of silver medals between south africa and kenya ?
CREATE TABLE table_203_61 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT (SELECT "silver" FROM table_203_61 WHERE "nation" = 'south africa') - (SELECT "silver" FROM table_203_61 WHERE "nation" = 'kenya')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 4241, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 29, 257, 121, 1499, 6, 96, 14910, 121, 381, 6, 96, 7, 173, 624, 121, 381, 6, 96, 13711, 776, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 41, 23143, 14196, 96, 7, 173, 624, 121, 21680, 953, 834, 23330, 834, 4241, 549, 17444, 427, 96, 29, 257, 121, 3274, 3, 31, 7, 670, 107, 24040, 31, 61, 3, 18, 41, 23143, 14196, 96, 7, 173, 624, 121, 21680, 953, ...
What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?
CREATE TABLE table_71548 ( "Date" text, "Winner" text, "Score" text, "Location" text, "Series" text )
SELECT "Score" FROM table_71548 WHERE "Location" = 'clemson, sc' AND "Winner" = 'clemson' AND "Date" = 'november 11, 2006'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 1808, 3707, 41, 96, 308, 342, 121, 1499, 6, 96, 18455, 687, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 12106, 7, 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, 134, 9022, 121, 21680, 953, 834, 940, 1808, 3707, 549, 17444, 427, 96, 434, 32, 75, 257, 121, 3274, 3, 31, 2482, 51, 739, 6, 3, 7, 75, 31, 3430, 96, 18455, 687, 121, 3274, 3, 31, 2482, 51, 739, 31, 3430, ...
Who was the winner on 15 December 1957?
CREATE TABLE table_name_6 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_6 WHERE date = "15 december 1957"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 3757, 687, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 4668, 30, 627, 1882, 24011, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4668, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 833, 3274, 96, 1808, 20, 75, 18247, 24011, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
how many patients with procedure icd9 code 3892 had home health care discharge?
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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.icd9_code = "3892"
[ 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,...
Return a bar chart on how many counties correspond to each police force?, could you show in asc by the x-axis?
CREATE TABLE city ( City_ID int, County_ID int, Name text, White real, Black real, Amerindian real, Asian real, Multiracial real, Hispanic real ) CREATE TABLE county_public_safety ( County_ID int, Name text, Population int, Police_officers int, Residents_per_officer int, Case_burden int, Crime_rate real, Police_force text, Location text )
SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force ORDER BY Police_force
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 690, 41, 896, 834, 4309, 16, 17, 6, 1334, 834, 4309, 16, 17, 6, 5570, 1499, 6, 1945, 490, 6, 1589, 490, 6, 736, 6655, 8603, 490, 6, 6578, 490, 6, 4908, 52, 9, 4703, 490, 6, 978...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5076, 834, 10880, 6, 2847, 17161, 599, 1935, 61, 21680, 5435, 834, 15727, 834, 15233, 17, 63, 350, 4630, 6880, 272, 476, 5076, 834, 10880, 4674, 11300, 272, 476, 5076, 834, 10880, 1, -100, -100, -100, -100, -100, -100...
How many times did the Wildcats play a game 11 regardless of points scored?
CREATE TABLE table_24105 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Wildcats points" real, "Opponents" real, "Record" text )
SELECT COUNT("Wildcats points") FROM table_24105 WHERE "Game" = '11'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 12869, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 518, 173, 26, 2138, 7, 979, 121, 490...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 518, 173, 26, 2138, 7, 979, 8512, 21680, 953, 834, 2266, 12869, 549, 17444, 427, 96, 23055, 121, 3274, 3, 31, 2596, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the region for cd format on february 22, 1984
CREATE TABLE table_67396 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT "Region" FROM table_67396 WHERE "Format" = 'cd' AND "Date" = 'february 22, 1984'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 519, 4314, 41, 96, 17748, 23, 106, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 434, 10333, 121, 1499, 6, 96, 3809, 3357, 121, 1499, 6, 96, 18610, 9, 2152, 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, 17748, 23, 106, 121, 21680, 953, 834, 3708, 519, 4314, 549, 17444, 427, 96, 3809, 3357, 121, 3274, 3, 31, 75, 26, 31, 3430, 96, 308, 342, 121, 3274, 3, 31, 89, 15, 9052, 1208, 12889, 13480, 31, 1, -100, -100...
What is the highest series number for 'The Devil Made Me Do It'?
CREATE TABLE table_30809 ( "Series #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT MAX("Series #") FROM table_30809 WHERE "Title" = 'The Devil Made Me Do It'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 2079, 1298, 41, 96, 12106, 7, 1713, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965, 324, 57, 121, 1499, 6, 96, 667, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12106, 7, 1713, 8512, 21680, 953, 834, 1458, 2079, 1298, 549, 17444, 427, 96, 382, 155, 109, 121, 3274, 3, 31, 634, 19558, 6465, 1212, 531, 94, 31, 1, -100, -100, -100, -100, -100, -100, -100, -...
What's the highest draw with over 60 points for paul duffy?
CREATE TABLE table_77205 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" text )
SELECT MAX("Draw") FROM table_77205 WHERE "Points" > '60' AND "Artist" = 'paul duffy'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4013, 23201, 41, 96, 308, 10936, 121, 490, 6, 96, 7754, 343, 121, 1499, 6, 96, 134, 2444, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 345, 11706, 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, 4800, 4, 599, 121, 308, 10936, 8512, 21680, 953, 834, 4013, 23201, 549, 17444, 427, 96, 22512, 7, 121, 2490, 3, 31, 3328, 31, 3430, 96, 7754, 343, 121, 3274, 3, 31, 102, 9, 83, 146, 20334, 31, 1, -100, -100, -10...
Find the number of courses offered by Psychology department in each building with a bar chart, could you sort from high to low by the names?
CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) )
SELECT building, COUNT(building) FROM course AS T1 JOIN section AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' GROUP BY building ORDER BY building DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 4699, 3, 4331, 4059, 15757, 6, 564, 3, 4331, 4059, 599, 1755, 201, 20, 102, 17, 834, 4350, 3, 4331, 4059, 599, 1755, 201, 12, 17, 834, 17216, 206, 17552, 599, 6355, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 740, 6, 2847, 17161, 599, 10905, 61, 21680, 503, 6157, 332, 536, 3, 15355, 3162, 1375, 6157, 332, 357, 9191, 332, 5411, 19221, 834, 23, 26, 3274, 332, 4416, 19221, 834, 23, 26, 549, 17444, 427, 332, 5411, 26, 6707, ...
How many home games are listed when the average attendance is 79475?
CREATE TABLE table_28884858_1 (home_games VARCHAR, average_attendance VARCHAR)
SELECT COUNT(home_games) FROM table_28884858_1 WHERE average_attendance = 79475
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 10927, 3707, 3449, 834, 536, 41, 5515, 834, 7261, 7, 584, 4280, 28027, 6, 1348, 834, 15116, 663, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 234, 1031...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 5515, 834, 7261, 7, 61, 21680, 953, 834, 357, 10927, 3707, 3449, 834, 536, 549, 17444, 427, 1348, 834, 15116, 663, 3274, 489, 4240, 3072, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the league position number when the attendance was 14,673 with a match day larger than 26?
CREATE TABLE table_43855 ( "Match Day" real, "Date" text, "Opponent" text, "Score" text, "League Position" real, "Attendance" real, "Report" text )
SELECT COUNT("League Position") FROM table_43855 WHERE "Attendance" = '14,673' AND "Match Day" > '26'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 3747, 3769, 41, 96, 329, 14547, 1430, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 2796, 9, 5398, 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, 121, 2796, 9, 5398, 14258, 8512, 21680, 953, 834, 591, 3747, 3769, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 3274, 3, 31, 2534, 6, 3708, 519, 31, 3430, 96, 329, 14547, 1430, 121, 2490, 3, ...
How many wins have 24 points?
CREATE TABLE table_18703133_6 ( wins VARCHAR, points VARCHAR )
SELECT wins FROM table_18703133_6 WHERE points = 24
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25828, 4928, 22974, 834, 948, 41, 9204, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 9204, 43, 997, 979, 58, 1, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 9204, 21680, 953, 834, 25828, 4928, 22974, 834, 948, 549, 17444, 427, 979, 3274, 997, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What's the courtesy title of 4th son of hatamoto oka tadataka?
CREATE TABLE table_name_36 ( courtesy_title VARCHAR, lineage VARCHAR )
SELECT courtesy_title FROM table_name_36 WHERE lineage = "4th son of hatamoto ōoka tadataka"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 3, 14726, 834, 21869, 584, 4280, 28027, 6, 689, 545, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 3, 14726, 2233, 13, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 14726, 834, 21869, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 689, 545, 3274, 96, 591, 189, 520, 13, 3, 547, 9, 11188, 3, 2, 1825, 9, 3, 17, 9, 6757, 1258, 121, 1, -100, -100, -100, -100, -100, -100, ...
count the number of patients whose admission year is less than 2198 and diagnoses icd9 code is 7830?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2198" AND diagnoses.icd9_code = "7830"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Draw a bar chart for what is the average account balance of customers with credit score below 50 for the different account types?
CREATE TABLE loan ( loan_ID varchar(3), loan_type varchar(15), cust_ID varchar(3), branch_ID varchar(3), amount int ) CREATE TABLE customer ( cust_ID varchar(3), cust_name varchar(20), acc_type char(1), acc_bal int, no_of_loans int, credit_score int, branch_ID int, state varchar(20) ) CREATE TABLE bank ( branch_ID int, bname varchar(20), no_of_customers int, city varchar(10), state varchar(20) )
SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2289, 41, 2289, 834, 4309, 3, 4331, 4059, 17867, 6, 2289, 834, 6137, 3, 4331, 4059, 599, 1808, 201, 123, 7, 17, 834, 4309, 3, 4331, 4059, 17867, 6, 6421, 834, 4309, 3, 4331, 4059, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6004, 834, 6137, 6, 71, 17217, 599, 6004, 834, 3849, 61, 21680, 884, 549, 17444, 427, 998, 834, 7, 9022, 3, 2, 943, 350, 4630, 6880, 272, 476, 3, 6004, 834, 6137, 1, -100, -100, -100, -100, -100, -100, -100, ...
What method does the opponent of Dan New use?
CREATE TABLE table_68576 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text )
SELECT "Method" FROM table_68576 WHERE "Opponent" = 'dan new'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3651, 755, 3959, 41, 96, 1649, 7, 535, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 23351, 107, 32, 26, 121, 1499, 6, 96, 427, 2169, 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, 23351, 107, 32, 26, 121, 21680, 953, 834, 3651, 755, 3959, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 3768, 126, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
On what date was the total 25–45?
CREATE TABLE table_name_50 (date VARCHAR, total VARCHAR)
SELECT date FROM table_name_50 WHERE total = "25–45"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1752, 41, 5522, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 461, 125, 833, 47, 8, 792, 944, 104, 2128, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 1752, 549, 17444, 427, 792, 3274, 96, 1828, 104, 2128, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the region for december 7, 2004
CREATE TABLE table_name_33 ( region VARCHAR, date VARCHAR )
SELECT region FROM table_name_33 WHERE date = "december 7, 2004"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 1719, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1719, 21, 20, 75, 18247, 7973, 4406, 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, 1719, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 833, 3274, 96, 221, 75, 18247, 7973, 4406, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what is the number of patients whose diagnoses short title is accident in place nec?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Accident in place NEC"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What is the total fat when the polyunsaturated fat is 11g, and Monounsaturated fat is 73g?
CREATE TABLE table_name_63 (total_fat VARCHAR, polyunsaturated_fat VARCHAR, monounsaturated_fat VARCHAR)
SELECT total_fat FROM table_name_63 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "73g"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 235, 1947, 834, 6589, 584, 4280, 28027, 6, 4251, 202, 7, 6010, 920, 834, 6589, 584, 4280, 28027, 6, 7414, 202, 7, 6010, 920, 834, 6589, 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, 792, 834, 6589, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 4251, 202, 7, 6010, 920, 834, 6589, 3274, 96, 2596, 122, 121, 3430, 7414, 202, 7, 6010, 920, 834, 6589, 3274, 96, 4552, 122, 121, 1, -100, -100, -...
Name the label for traditional chinese 情歌沒有告訴你
CREATE TABLE table_1893815_1 (label VARCHAR, chinese__traditional_ VARCHAR)
SELECT label FROM table_1893815_1 WHERE chinese__traditional_ = "情歌沒有告訴你"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25312, 3747, 1808, 834, 536, 41, 40, 10333, 584, 4280, 28027, 6, 3, 1436, 1496, 15, 834, 834, 26374, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 3783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3783, 21680, 953, 834, 25312, 3747, 1808, 834, 536, 549, 17444, 427, 3, 1436, 1496, 15, 834, 834, 26374, 834, 3274, 96, 2, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients are diagnosed with staphylococcus pneumonia have blood gas lab test category?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Other Staphylococcus pneumonia" AND lab."CATEGORY" = "Blood Gas"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
What was the result when the opponent was Arsenal?
CREATE TABLE table_47127 ( "Date" text, "Location" text, "Head coach" text, "Opponent" text, "Result" text )
SELECT "Result" FROM table_47127 WHERE "Opponent" = 'arsenal'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 22367, 41, 96, 308, 342, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 3845, 9, 26, 3763, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 20119, 121, 21680, 953, 834, 4177, 22367, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 291, 7, 35, 138, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Can you tell me the average Game that has the Team of @ boston?
CREATE TABLE table_9090 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT AVG("Game") FROM table_9090 WHERE "Team" = '@ boston'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2394, 2394, 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, 71, 17217, 599, 121, 23055, 8512, 21680, 953, 834, 2394, 2394, 549, 17444, 427, 96, 18699, 121, 3274, 3, 31, 1741, 3005, 4411, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what are name and phone number of patients who had more than one appointment?
CREATE TABLE appointment (patient VARCHAR); CREATE TABLE patient (ssn VARCHAR)
SELECT name, phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING COUNT(*) > 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4141, 41, 10061, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1868, 41, 7, 7, 29, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 33, 564, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 951, 21680, 4141, 6157, 332, 536, 3, 15355, 3162, 1868, 6157, 332, 357, 9191, 332, 5411, 10061, 3274, 332, 4416, 7, 7, 29, 350, 4630, 6880, 272, 476, 332, 5411, 10061, 454, 6968, 2365, 2847, 17161, 599, 1935...
Which Result has a Date of 4 april 1993?
CREATE TABLE table_38733 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Result" FROM table_38733 WHERE "Date" = '4 april 1993'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3747, 4552, 519, 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, 20119, 121, 21680, 953, 834, 3747, 4552, 519, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 591, 3, 9, 2246, 40, 8388, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?
CREATE TABLE table_57542 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Constructor" FROM table_57542 WHERE "Grid" < '3' AND "Time/Retired" = '1:34:31.522'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3436, 5062, 357, 41, 96, 20982, 52, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 1649, 11809, 26, 121, 1499, 6, 96, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4302, 7593, 127, 121, 21680, 953, 834, 3436, 5062, 357, 549, 17444, 427, 96, 13313, 26, 121, 3, 2, 3, 31, 519, 31, 3430, 96, 13368, 87, 1649, 11809, 26, 121, 3274, 3, 31, 536, 10, 3710, 10, 519, 16593, 2884,...
Name the total number of class aaa for 2006-07
CREATE TABLE table_19456 ( "School Year" text, "Class A" text, "Class AA" text, "Class AAA" text, "Class AAAA" text, "Class AAAAA" text )
SELECT COUNT("Class AAA") FROM table_19456 WHERE "School Year" = '2006-07'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 2128, 948, 41, 96, 29364, 2929, 121, 1499, 6, 96, 21486, 71, 121, 1499, 6, 96, 21486, 3, 5498, 121, 1499, 6, 96, 21486, 22656, 121, 1499, 6, 96, 21486, 22656, 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, 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, 21486, 22656, 8512, 21680, 953, 834, 2294, 2128, 948, 549, 17444, 427, 96, 29364, 2929, 121, 3274, 3, 31, 21196, 18, 4560, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What country was the game played when it was played from April 11-April 21?
CREATE TABLE table_name_73 ( country VARCHAR, date VARCHAR )
SELECT country FROM table_name_73 WHERE date = "april 11-april 21"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 684, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 684, 47, 8, 467, 1944, 116, 34, 47, 1944, 45, 1186, 850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 684, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 833, 3274, 96, 9, 2246, 40, 850, 18, 9, 2246, 40, 1401, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which venue had a status of five nations, an against larger than 12 and took place on 15/02/1975?
CREATE TABLE table_13169 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text )
SELECT "Venue" FROM table_13169 WHERE "Status" = 'five nations' AND "Against" > '12' AND "Date" = '15/02/1975'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2368, 27096, 41, 96, 667, 102, 2748, 53, 16651, 121, 1499, 6, 96, 20749, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 17, 144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 2368, 27096, 549, 17444, 427, 96, 134, 17, 144, 302, 121, 3274, 3, 31, 16443, 9352, 31, 3430, 96, 20749, 121, 2490, 3, 31, 2122, 31, 3430, 96, 308, 342, 121, 3274, 3, ...
What is the number of students playing as a goalie?
CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE college ( cname text, state text, enr number ) CREATE TABLE player ( pid number, pname text, ycard text, hs number )
SELECT COUNT(*) FROM tryout WHERE ppos = 'goalie'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 653, 670, 41, 3, 12417, 381, 6, 3, 75, 4350, 1499, 6, 3, 102, 2748, 1499, 6, 1357, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1900, 41, 3, 75, 4350, 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, 1935, 61, 21680, 653, 670, 549, 17444, 427, 3, 102, 2748, 3274, 3, 31, 839, 9, 1896, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the Proto-Oceanic verb for the verb to sew?
CREATE TABLE table_name_43 ( proto_oceanic VARCHAR, verb VARCHAR )
SELECT proto_oceanic FROM table_name_43 WHERE verb = "to sew"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 23844, 834, 32, 8433, 2532, 584, 4280, 28027, 6, 7375, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 749, 235, 18, 667, 8433, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23844, 834, 32, 8433, 2532, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 7375, 3274, 96, 235, 142, 210, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which song has Drunkard Groom listed as additional information?
CREATE TABLE table_2528382_1 (song VARCHAR, additional_info VARCHAR)
SELECT song FROM table_2528382_1 WHERE additional_info = "Drunkard Groom"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 2577, 3747, 357, 834, 536, 41, 7, 2444, 584, 4280, 28027, 6, 1151, 834, 9583, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 2324, 65, 707, 6513, 986, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2324, 21680, 953, 834, 1828, 2577, 3747, 357, 834, 536, 549, 17444, 427, 1151, 834, 9583, 3274, 96, 14561, 6513, 986, 350, 3082, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who wore the episode with the production code of 1apx11?
CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR)
SELECT written_by FROM table_21994729_2 WHERE prod_code = "1APX11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 19479, 4177, 3166, 834, 357, 41, 14973, 834, 969, 584, 4280, 28027, 6, 813, 26, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 3, 15295, 8, 5640, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1545, 834, 969, 21680, 953, 834, 357, 19479, 4177, 3166, 834, 357, 549, 17444, 427, 813, 26, 834, 4978, 3274, 96, 536, 2965, 4, 2596, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many episodes aired on 25 october 2012?
CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR)
SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = "25 October 2012"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3436, 2658, 834, 519, 41, 235, 1947, 834, 4576, 277, 584, 4280, 28027, 6, 799, 5522, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 13562, 3, 2378, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 235, 1947, 834, 4576, 277, 61, 21680, 953, 834, 357, 3436, 2658, 834, 519, 549, 17444, 427, 799, 5522, 3274, 96, 1828, 1797, 1673, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was the host of the premiere on November 10, 2007?
CREATE TABLE table_7052 ( "Country" text, "Host" text, "Channel" text, "Premiere" text, "Jackpot" text )
SELECT "Host" FROM table_7052 WHERE "Premiere" = 'november 10, 2007'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2518, 5373, 41, 96, 10628, 651, 121, 1499, 6, 96, 566, 3481, 121, 1499, 6, 96, 3541, 4515, 40, 121, 1499, 6, 96, 10572, 2720, 60, 121, 1499, 6, 96, 683, 4365, 3013, 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, 566, 3481, 121, 21680, 953, 834, 2518, 5373, 549, 17444, 427, 96, 10572, 2720, 60, 121, 3274, 3, 31, 5326, 18247, 10372, 4101, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the name of department where has the smallest number of professors?
CREATE TABLE student ( stu_num number, stu_lname text, stu_fname text, stu_init text, stu_dob time, stu_hrs number, stu_class text, stu_gpa number, stu_transfer number, dept_code text, stu_phone text, prof_num number ) CREATE TABLE enroll ( class_code text, stu_num number, enroll_grade text ) CREATE TABLE class ( class_code text, crs_code text, class_section text, class_time text, class_room text, prof_num number ) CREATE TABLE department ( dept_code text, dept_name text, school_code text, emp_num number, dept_address text, dept_extension text ) CREATE TABLE professor ( emp_num number, dept_code text, prof_office text, prof_extension text, prof_high_degree text ) CREATE TABLE employee ( emp_num number, emp_lname text, emp_fname text, emp_initial text, emp_jobcode text, emp_hiredate time, emp_dob time ) CREATE TABLE course ( crs_code text, dept_code text, crs_description text, crs_credit number )
SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 21341, 834, 5525, 381, 6, 21341, 834, 40, 4350, 1499, 6, 21341, 834, 89, 4350, 1499, 6, 21341, 834, 77, 155, 1499, 6, 21341, 834, 26, 32, 115, 97, 6, 21341, 834, 18745, 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, 332, 4416, 26, 6707, 834, 4350, 21680, 5812, 6157, 332, 536, 3, 15355, 3162, 3066, 6157, 332, 357, 9191, 332, 5411, 26, 6707, 834, 4978, 3274, 332, 4416, 26, 6707, 834, 4978, 350, 4630, 6880, 272, 476, 332, 5411, 26...
Name the college that has 7 rounds and boston celtics team
CREATE TABLE table_name_86 ( college VARCHAR, team VARCHAR, round VARCHAR )
SELECT college FROM table_name_86 WHERE team = "boston celtics" AND round = "7"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 1900, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1900, 24, 65, 489, 14419, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1900, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 372, 3274, 96, 115, 32, 4411, 1503, 7636, 121, 3430, 1751, 3274, 96, 940, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the lowest stage number that starts with els alocs and has a middle difficulty?
CREATE TABLE table_name_60 (stage INTEGER, difficulty VARCHAR, start VARCHAR)
SELECT MIN(stage) FROM table_name_60 WHERE difficulty = "middle" AND start = "els alocs"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 10705, 3, 21342, 17966, 6, 8565, 584, 4280, 28027, 6, 456, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 1726, 381, 24, 3511, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 10705, 61, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 8565, 3274, 96, 51, 23, 8437, 121, 3430, 456, 3274, 96, 3573, 3, 9, 5133, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is the difference between the nation with the most medals and the nation with the least amount of medals ?
CREATE TABLE table_203_497 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT MAX("total") - MIN("total") FROM table_203_497
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 591, 4327, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 29, 257, 121, 1499, 6, 96, 14910, 121, 381, 6, 96, 7, 173, 624, 121, 381, 6, 96, 13711, 776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 235, 1947, 8512, 3, 18, 3, 17684, 599, 121, 235, 1947, 8512, 21680, 953, 834, 23330, 834, 591, 4327, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the average of revenue , and group by attribute headquarter, sort by the y axis from low to high.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Revenue)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3642, 19973, 6, 71, 17217, 599, 1649, 15098, 61, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 36...
what is the number of asian ethnic background patients who were admitted in hospital before the year 2112?
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 WHERE demographic.ethnicity = "ASIAN" AND demographic.admityear < "2112"
[ 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, 549, 17444, 427, 14798, 5, 15, 189, 2532, 485, 3274, 96, 3291, 21758, 121, 3430, 14798, 5, 20466, 17, 1201, 3, 2, 96, 2658,...
Which round has a Kick Off of 1993-02-17 20:30?
CREATE TABLE table_name_8 (round VARCHAR, kick_off VARCHAR)
SELECT round FROM table_name_8 WHERE kick_off = "1993-02-17 20:30"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 7775, 584, 4280, 28027, 6, 4583, 834, 1647, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1751, 65, 3, 9, 20759, 4395, 13, 8388, 18, 4305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1751, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 4583, 834, 1647, 3274, 96, 19479, 22773, 357, 10794, 460, 10, 1458, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...