NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
What is the date that Stirling Moss had his fastest lap in a Maserati?
CREATE TABLE table_name_28 (date VARCHAR, constructor VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_name_28 WHERE constructor = "maserati" AND fastest_lap = "stirling moss"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 5522, 584, 4280, 28027, 6, 6774, 127, 584, 4280, 28027, 6, 10391, 834, 8478, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 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, 833, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 6774, 127, 3274, 96, 2754, 15, 6850, 121, 3430, 10391, 834, 8478, 3274, 96, 2248, 52, 697, 3, 3972, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the verb meaning for half drosch
CREATE TABLE table_21736 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text )
SELECT "Verb meaning" FROM table_21736 WHERE "Part 2" = 'half drosch'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2517, 3420, 41, 96, 21486, 121, 1499, 6, 96, 13725, 209, 121, 1499, 6, 96, 13725, 204, 121, 1499, 6, 96, 13725, 220, 121, 1499, 6, 96, 13725, 3, 20364, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 5000, 115, 2530, 121, 21680, 953, 834, 357, 2517, 3420, 549, 17444, 427, 96, 13725, 204, 121, 3274, 3, 31, 17114, 3, 26, 1859, 524, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals?
CREATE TABLE table_57075 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Silver") FROM table_57075 WHERE "Rank" > '7' AND "Total" = '6' AND "Bronze" < '2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 28363, 3072, 41, 96, 22557, 121, 490, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, 3696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 134, 173, 624, 8512, 21680, 953, 834, 28363, 3072, 549, 17444, 427, 96, 22557, 121, 2490, 3, 31, 940, 31, 3430, 96, 3696, 1947, 121, 3274, 3, 31, 948, 31, 3430, 96, 22780, 29, 776, 121, 3, 2...
how many patients with icd9 code 3324 left against medical advice?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND procedures.icd9_code = "3324"
[ 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,...
Who had the high rebounds when the score was l 84 102 (ot)?
CREATE TABLE table_17336 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "High rebounds" FROM table_17336 WHERE "Score" = 'L 84–102 (OT)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 519, 3420, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21417, 3, 23768, 121, 21680, 953, 834, 2517, 519, 3420, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 434, 3, 4608, 104, 14388, 41, 6951, 61, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
List the camera lens names containing substring 'Digital'.
CREATE TABLE camera_lens ( name VARCHAR )
SELECT name FROM camera_lens WHERE name LIKE "%Digital%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1861, 834, 40, 35, 7, 41, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 6792, 8, 1861, 6888, 3056, 3, 6443, 769, 16099, 3, 31, 30225, 31, 5, 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, 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, 564, 21680, 1861, 834, 40, 35, 7, 549, 17444, 427, 564, 8729, 9914, 96, 1454, 30225, 1454, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Show me about the correlation between Team_ID and ACC_Percent , and group by attribute ACC_Regular_Season in a scatter chart.
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 Team_ID, ACC_Percent FROM basketball_match GROUP BY ACC_Regular_Season
[ 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, 2271, 834, 4309, 6, 3, 14775, 834, 12988, 3728, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What country did the player who scored 73-73-65=211 come from?
CREATE TABLE table_name_6 ( country VARCHAR, score VARCHAR )
SELECT country FROM table_name_6 WHERE score = 73 - 73 - 65 = 211
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 684, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 684, 410, 8, 1959, 113, 5799, 3, 4552, 18, 4552, 18, 4122, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 684, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 2604, 3274, 3, 4552, 3, 18, 3, 4552, 3, 18, 7123, 3274, 3, 27278, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the smallest height associated with Honduras?
CREATE TABLE table_27689 ( "Country" text, "Contestant" text, "Age" real, "Height (cm)" real, "Height (ft)" text, "Hometown" text )
SELECT MIN("Height (cm)") FROM table_27689 WHERE "Country" = 'Honduras'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3959, 3914, 41, 96, 10628, 651, 121, 1499, 6, 96, 4302, 4377, 288, 121, 1499, 6, 96, 188, 397, 121, 490, 6, 96, 3845, 2632, 41, 75, 51, 61, 121, 490, 6, 96, 3845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 2632, 41, 75, 51, 61, 8512, 21680, 953, 834, 357, 3959, 3914, 549, 17444, 427, 96, 10628, 651, 121, 3274, 3, 31, 4489, 727, 2414, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the average number of Byes for the team that had 15 Losses, and less than 1 Win?
CREATE TABLE table_name_13 (byes INTEGER, losses VARCHAR, wins VARCHAR)
SELECT AVG(byes) FROM table_name_13 WHERE losses = 15 AND wins < 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 969, 15, 7, 3, 21342, 17966, 6, 8467, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 381, 13, 938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 17217, 599, 969, 15, 7, 61, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 8467, 3274, 627, 3430, 9204, 3, 2, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Compute the total total number of rating in percent across owner as a pie chart.
CREATE TABLE program ( Program_ID int, Name text, Origin text, Launch real, Owner text ) CREATE TABLE broadcast_share ( Channel_ID int, Program_ID int, Date text, Share_in_percent real ) CREATE TABLE broadcast ( Channel_ID int, Program_ID int, Time_of_day text ) CREATE TABLE channel ( Channel_ID int, Name text, Owner text, Share_in_percent real, Rating_in_percent real )
SELECT Owner, SUM(Rating_in_percent) FROM channel GROUP BY Owner
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 478, 41, 2350, 834, 4309, 16, 17, 6, 5570, 1499, 6, 19477, 1499, 6, 17113, 490, 6, 13307, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 6878, 834, 12484, 41, 9916...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 13307, 6, 180, 6122, 599, 448, 1014, 834, 77, 834, 883, 3728, 61, 21680, 4245, 350, 4630, 6880, 272, 476, 13307, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who had the best regular season in the contest won by Arkansas-Pine Bluff?
CREATE TABLE table_25182 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text )
SELECT "Regular Season Winner" FROM table_25182 WHERE "Tournament Winner" = 'Arkansas-Pine Bluff'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 2606, 357, 41, 96, 4302, 11788, 121, 1499, 6, 96, 17748, 4885, 7960, 18125, 121, 1499, 6, 96, 4302, 11788, 12387, 13, 8, 2929, 121, 1499, 6, 96, 4302, 11788, 20502, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4885, 7960, 18125, 121, 21680, 953, 834, 1828, 2606, 357, 549, 17444, 427, 96, 382, 1211, 20205, 17, 18125, 121, 3274, 3, 31, 188, 52, 3304, 7, 9, 7, 18, 345, 630, 30926, 31, 1, -100, -100, -100, -100, ...
What championships were played on clay and the opponent was virginia ruano pascual paola su rez?
CREATE TABLE table_27030 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponent" text, "Score" text )
SELECT "Championship" FROM table_27030 WHERE "Surface" = 'Clay' AND "Opponent" = 'Virginia Ruano Pascual Paola Suárez'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 17485, 1458, 41, 96, 15767, 287, 15, 121, 1499, 6, 96, 476, 2741, 121, 490, 6, 96, 254, 1483, 12364, 2009, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 13725, 687,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1483, 12364, 2009, 121, 21680, 953, 834, 17485, 1458, 549, 17444, 427, 96, 134, 450, 4861, 121, 3274, 3, 31, 254, 5595, 31, 3430, 96, 667, 102, 9977, 121, 3274, 3, 31, 21031, 122, 77, 23, 9, 2770, 152, ...
Which silver has a Gold smaller than 12, a Rank smaller than 5, and a Bronze of 5?
CREATE TABLE table_79955 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT "Silver" FROM table_79955 WHERE "Gold" < '12' AND "Rank" < '5' AND "Bronze" = '5'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4440, 3301, 755, 41, 96, 22557, 121, 490, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 173, 624, 121, 21680, 953, 834, 4440, 3301, 755, 549, 17444, 427, 96, 23576, 121, 3, 2, 3, 31, 2122, 31, 3430, 96, 22557, 121, 3, 2, 3, 31, 755, 31, 3430, 96, 22780, 29, 776, 121, 3274, 3, 31, 755, ...
What year was Kelin nominated?
CREATE TABLE table_name_53 ( year_ceremony VARCHAR, english_title VARCHAR )
SELECT year_ceremony FROM table_name_53 WHERE english_title = "kelin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 215, 834, 2110, 15, 21208, 584, 4280, 28027, 6, 22269, 834, 21869, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 47, 13329, 77, 150, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 215, 834, 2110, 15, 21208, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 22269, 834, 21869, 3274, 96, 5768, 77, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
how many games did this player play in 2011 ?
CREATE TABLE table_204_868 ( id number, "outcome" text, "no." number, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text )
SELECT COUNT(*) FROM table_204_868 WHERE "date" = 2011
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 927, 3651, 41, 3, 23, 26, 381, 6, 96, 670, 287, 15, 121, 1499, 6, 96, 29, 32, 535, 381, 6, 96, 5522, 121, 1499, 6, 96, 17, 1211, 20205, 17, 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, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 26363, 834, 927, 3651, 549, 17444, 427, 96, 5522, 121, 3274, 2722, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are Andrew McNamara's colors?
CREATE TABLE table_20095300_1 (colours VARCHAR, jockey VARCHAR)
SELECT colours FROM table_20095300_1 WHERE jockey = "Andrew McNamara"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3632, 3301, 5426, 834, 536, 41, 24814, 7, 584, 4280, 28027, 6, 8624, 4397, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 5954, 26842, 9, 1635, 9, 31, 7, 260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6548, 21680, 953, 834, 3632, 3301, 5426, 834, 536, 549, 17444, 427, 8624, 4397, 3274, 96, 7175, 60, 210, 26842, 9, 1635, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
provide the number of patients who have government insurance policy and have undergone a unilateral radical neck dissection.
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) 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.insurance = "Government" AND procedures.long_title = "Radical neck dissection, unilateral"
[ 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,...
Who is the player on round 7 with an overall ranking of #195?
CREATE TABLE table_name_86 ( player VARCHAR, round VARCHAR, overall VARCHAR )
SELECT player FROM table_name_86 WHERE round = "7" AND overall = "#195"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 1959, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 6, 1879, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 1959, 30, 1751, 489, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 1751, 3274, 96, 940, 121, 3430, 1879, 3274, 96, 4663, 22464, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941?
CREATE TABLE table_61038 ( "Date" text, "Name" text, "Nationality" text, "Tonnage (GRT)" real, "Fate" text )
SELECT COUNT("Tonnage (GRT)") FROM table_61038 WHERE "Nationality" = 'united kingdom' AND "Date" = '27 june 1941'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27097, 3747, 41, 96, 308, 342, 121, 1499, 6, 96, 23954, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 382, 106, 9761, 41, 517, 5934, 61, 121, 490, 6, 96, 371, 342, 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, 2847, 17161, 599, 121, 382, 106, 9761, 41, 517, 5934, 61, 8512, 21680, 953, 834, 27097, 3747, 549, 17444, 427, 96, 24732, 485, 121, 3274, 3, 31, 15129, 15, 26, 14740, 31, 3430, 96, 308, 342, 121, 3274, 3, 31, 2555...
What start has a year later than 2010, and chip ganassi racing as the team?
CREATE TABLE table_name_17 ( start VARCHAR, year VARCHAR, team VARCHAR )
SELECT start FROM table_name_17 WHERE year > 2010 AND team = "chip ganassi racing"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 456, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 456, 65, 3, 9, 215, 865, 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, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 456, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 215, 2490, 2735, 3430, 372, 3274, 96, 17362, 3, 2565, 6500, 8191, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
On 11 Feb 1990, the competition is listed as what?
CREATE TABLE table_name_23 ( competition VARCHAR, date VARCHAR )
SELECT competition FROM table_name_23 WHERE date = "11 feb 1990"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 2259, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 461, 850, 8037, 5541, 6, 8, 2259, 19, 2616, 38, 125, 58, 1, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2259, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 833, 3274, 96, 2596, 3, 89, 15, 115, 5541, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Team has a Year larger than 2010?
CREATE TABLE table_47415 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text )
SELECT "Team" FROM table_47415 WHERE "Year" > '2010'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 591, 1808, 41, 96, 476, 2741, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 3881, 18, 20982, 52, 7, 121, 1499, 6, 96, 21486, 121, 1499, 6, 96, 3612, 102, 7, 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, 96, 18699, 121, 21680, 953, 834, 4177, 591, 1808, 549, 17444, 427, 96, 476, 2741, 121, 2490, 3, 31, 14926, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose admission year is less than 2182 and lab test name is protein, total?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2182" AND lab.label = "Protein, Total"
[ 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 highest age (years) that the 1st place had a performance of 62.20m?
CREATE TABLE table_name_45 ( age__years_ INTEGER, place VARCHAR, performance VARCHAR )
SELECT MAX(age__years_) FROM table_name_45 WHERE place = "1st" AND performance = "62.20m"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2128, 41, 1246, 834, 834, 1201, 7, 834, 3, 21342, 17966, 6, 286, 584, 4280, 28027, 6, 821, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 545, 834, 834, 1201, 7, 834, 61, 21680, 953, 834, 4350, 834, 2128, 549, 17444, 427, 286, 3274, 96, 536, 7, 17, 121, 3430, 821, 3274, 96, 4056, 5, 1755, 51, 121, 1, -100, -100, -100, -100, -100, -10...
what is the total number of 2006-2007 and 2007-2008 for jack huczek?
CREATE TABLE table_25141 ( "Position" real, "2005\u20132006" text, "2006\u20132007" text, "2007\u20132008" text, "2008\u20132009" text, "2009\u20132010" text )
SELECT COUNT("2006\u20132007") FROM table_25141 WHERE "2007\u20132008" = 'Jack Huczek'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 26059, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 22594, 2, 76, 11138, 21196, 121, 1499, 6, 96, 21196, 2, 76, 11138, 20615, 121, 1499, 6, 96, 20615, 2, 76, 11138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21196, 2, 76, 11138, 20615, 8512, 21680, 953, 834, 1828, 26059, 549, 17444, 427, 96, 20615, 2, 76, 11138, 16128, 121, 3274, 3, 31, 683, 4365, 3455, 75, 776, 157, 31, 1, -100, -100, -100, -100,...
what's the date of completion where success is yes
CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, success VARCHAR)
SELECT date_of_completion FROM table_12078626_1 WHERE success = "Yes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4560, 3840, 2688, 834, 536, 41, 5522, 834, 858, 834, 7699, 109, 1575, 584, 4280, 28027, 6, 1269, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 31, 7, 8, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 834, 858, 834, 7699, 109, 1575, 21680, 953, 834, 2122, 4560, 3840, 2688, 834, 536, 549, 17444, 427, 1269, 3274, 96, 19739, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
find the number of patients who died in or before the year 2138.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dod_year <= "2138.0"
[ 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, 549, 17444, 427, 14798, 5, 26, 32, 26, 834, 1201, 3, 2, 2423, 96, 357, 2368, 27376, 121, 1, -100, -100, -100, -100, -100, ...
What is the total longitude of Nogosek and a GEO ID larger than 3809357060?
CREATE TABLE table_name_68 ( longitude VARCHAR, township VARCHAR, geo_id VARCHAR )
SELECT COUNT(longitude) FROM table_name_68 WHERE township = "nogosek" AND geo_id > 3809357060
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 307, 20341, 584, 4280, 28027, 6, 1511, 2009, 584, 4280, 28027, 6, 9502, 834, 23, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 2961, 20341, 61, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 1511, 2009, 3274, 96, 29, 32, 839, 7, 15, 157, 121, 3430, 9502, 834, 23, 26, 2490, 3, 22671, 4271, 28363, 3328, 1, -100, -100, ...
Give me the comparison about Team_ID over the ACC_Road , and group by attribute ACC_Home, and could you show X in descending order?
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, Team_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, 2271, 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, ...
Find the names of all instructors in Comp. Sci. department with salary > 80000.
CREATE TABLE instructor (name VARCHAR, dept_name VARCHAR, salary VARCHAR)
SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10617, 41, 4350, 584, 4280, 28027, 6, 20, 102, 17, 834, 4350, 584, 4280, 28027, 6, 9090, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2588, 8, 3056, 13, 66, 18166, 16, 4961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 564, 21680, 10617, 549, 17444, 427, 20, 102, 17, 834, 4350, 3274, 3, 31, 5890, 102, 5, 16021, 5, 31, 3430, 9090, 2490, 2775, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the total number of length minutes for number in series for 17
CREATE TABLE table_1252 ( "No. in series" text, "No. Disc" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Length (minutes)" real )
SELECT COUNT("Length (minutes)") FROM table_1252 WHERE "No. in series" = '17'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 10124, 357, 41, 96, 4168, 5, 16, 939, 121, 1499, 6, 96, 4168, 5, 3, 15683, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 2496...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 434, 4606, 189, 41, 6890, 7, 61, 8512, 21680, 953, 834, 10124, 357, 549, 17444, 427, 96, 4168, 5, 16, 939, 121, 3274, 3, 31, 2517, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the highest number of households with a median household income of $31,176, and a population of 25,607?
CREATE TABLE table_60956 ( "County" text, "Per capita income" text, "Median household income" text, "Median family income" text, "Population" real, "Number of households" real )
SELECT MAX("Number of households") FROM table_60956 WHERE "Median household income" = '$31,176' AND "Population" < '25,607'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 3301, 948, 41, 96, 10628, 63, 121, 1499, 6, 96, 12988, 23219, 2055, 121, 1499, 6, 96, 24607, 29, 5699, 2055, 121, 1499, 6, 96, 24607, 29, 384, 2055, 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, 4800, 4, 599, 121, 567, 5937, 49, 13, 15802, 8512, 21680, 953, 834, 3328, 3301, 948, 549, 17444, 427, 96, 24607, 29, 5699, 2055, 121, 3274, 3, 31, 3229, 3341, 6, 26782, 31, 3430, 96, 27773, 7830, 121, 3, 2, 3, 3...
provide the number of patients whose discharge location is short term hospital and diagnosis long title is malignant neoplasm of descending colon.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND diagnoses.long_title = "Malignant neoplasm of descending colon"
[ 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...
What's the smallest season for Montreal that's greater than 5,100 for capacity?
CREATE TABLE table_name_8 ( first_season INTEGER, city VARCHAR, capacity VARCHAR )
SELECT MIN(first_season) FROM table_name_8 WHERE city = "montreal" AND capacity > 5 OFFSET 100
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 166, 834, 9476, 3, 21342, 17966, 6, 690, 584, 4280, 28027, 6, 2614, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 3, 17924, 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, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 14672, 834, 9476, 61, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 690, 3274, 96, 4662, 6644, 121, 3430, 2614, 2490, 305, 3, 15316, 20788, 910, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266?
CREATE TABLE table_name_80 ( nationality VARCHAR, fate VARCHAR, tonnage__grt_ VARCHAR )
SELECT nationality FROM table_name_80 WHERE fate = "sunk (mine)" AND tonnage__grt_ < 2 OFFSET 266
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 1157, 485, 584, 4280, 28027, 6, 15126, 584, 4280, 28027, 6, 12, 29, 9761, 834, 834, 122, 52, 17, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1157, 485, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 15126, 3274, 96, 7, 6513, 41, 8695, 61, 121, 3430, 12, 29, 9761, 834, 834, 122, 52, 17, 834, 3, 2, 204, 3, 15316, 20788, 204, 3539, 1, -100, -100, -1...
what was the least successful season ?
CREATE TABLE table_204_636 ( id number, "season" text, "tier" number, "division" text, "pos." text, "notes" text )
SELECT "season" FROM table_204_636 ORDER BY "pos." DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 948, 3420, 41, 3, 23, 26, 381, 6, 96, 9476, 121, 1499, 6, 96, 3276, 121, 381, 6, 96, 26, 23, 6610, 121, 1499, 6, 96, 2748, 535, 1499, 6, 96, 7977, 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, 0...
[ 3, 23143, 14196, 96, 9476, 121, 21680, 953, 834, 26363, 834, 948, 3420, 4674, 11300, 272, 476, 96, 2748, 535, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Draw a scatter chart about the correlation between School_ID and ACC_Percent , and group by attribute ACC_Home.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT School_ID, ACC_Percent FROM basketball_match GROUP BY ACC_Home
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1121, 834, 4309, 6, 3, 14775, 834, 12988, 3728, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 3, 14775, 834, 19040, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Name the total number of year for chassis of kurtis kraft 4000 and points more than 2
CREATE TABLE table_68076 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT COUNT("Year") FROM table_68076 WHERE "Chassis" = 'kurtis kraft 4000' AND "Points" > '2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 2079, 3959, 41, 96, 476, 2741, 121, 490, 6, 96, 16924, 3569, 121, 1499, 6, 96, 3541, 6500, 7, 121, 1499, 6, 96, 31477, 121, 1499, 6, 96, 22512, 7, 121, 490, 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, 2847, 17161, 599, 121, 476, 2741, 8512, 21680, 953, 834, 948, 2079, 3959, 549, 17444, 427, 96, 3541, 6500, 7, 121, 3274, 3, 31, 10923, 17, 159, 3, 11326, 314, 2313, 31, 3430, 96, 22512, 7, 121, 2490, 3, 31, 357, ...
What was the score of the game against Divij Sharan?
CREATE TABLE table_name_56 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_56 WHERE opponent_in_the_final = "divij sharan"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4834, 41, 7, 9022, 584, 4280, 28027, 6, 15264, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 13, 8, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 4834, 549, 17444, 427, 15264, 834, 77, 834, 532, 834, 12406, 3274, 96, 8481, 23, 354, 3, 7, 14888, 29, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the qualifying 1 time for Rusport and Justin Wilson?
CREATE TABLE table_5196 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text )
SELECT "Qual 1" FROM table_5196 WHERE "Team" = 'rusport' AND "Name" = 'justin wilson'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5553, 4314, 41, 96, 23954, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 5991, 138, 209, 121, 1499, 6, 96, 5991, 138, 204, 121, 1499, 6, 96, 17278, 121, 1499, 3, 61, 3, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 96, 5991, 138, 209, 121, 21680, 953, 834, 5553, 4314, 549, 17444, 427, 96, 18699, 121, 3274, 3, 31, 4502, 1493, 31, 3430, 96, 23954, 121, 3274, 3, 31, 4998, 77, 3, 210, 173, 739, 31, 1, -100, -100, -100, -100, -...
What was the voting order when the commentator was renato tagliani?
CREATE TABLE table_name_95 ( voting_order VARCHAR, commentator VARCHAR )
SELECT voting_order FROM table_name_95 WHERE commentator = "renato tagliani"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 10601, 834, 9397, 584, 4280, 28027, 6, 1670, 1016, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 10601, 455, 116, 8, 1670, 1016, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10601, 834, 9397, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 1670, 1016, 3274, 96, 1536, 9, 235, 7860, 9928, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the Time of the match with a Record of 3-3?
CREATE TABLE table_name_30 (time VARCHAR, record VARCHAR)
SELECT time FROM table_name_30 WHERE record = "3-3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1458, 41, 715, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2900, 13, 8, 1588, 28, 3, 9, 11392, 13, 220, 3486, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 97, 21680, 953, 834, 4350, 834, 1458, 549, 17444, 427, 1368, 3274, 96, 519, 3486, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
count the number of patients whose year of death is less than or equal to 2115 and procedure icd9 code is 4341?
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2115.0" AND procedures.icd9_code = "4341"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Show the name of track with most number of races.
CREATE TABLE track ( name VARCHAR, track_id VARCHAR ) CREATE TABLE race ( track_id VARCHAR )
SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1463, 41, 564, 584, 4280, 28027, 6, 1463, 834, 23, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1964, 41, 1463, 834, 23, 26, 584, 4280, 28027, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 332, 4416, 4350, 21680, 1964, 6157, 332, 536, 3, 15355, 3162, 1463, 6157, 332, 357, 9191, 332, 5411, 11991, 834, 23, 26, 3274, 332, 4416, 11991, 834, 23, 26, 350, 4630, 6880, 272, 476, 332, 5411, 11991, 834, 23, 26,...
What were the average launches for Ariane 5 and 0 partial failures?
CREATE TABLE table_name_63 (launches INTEGER, rocket VARCHAR, partial_failures VARCHAR)
SELECT AVG(launches) FROM table_name_63 WHERE rocket = "ariane 5" AND partial_failures < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 27493, 15, 7, 3, 21342, 17966, 6, 15721, 584, 4280, 28027, 6, 11807, 834, 89, 9, 173, 7665, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 27493, 15, 7, 61, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 15721, 3274, 96, 6855, 15, 3, 17395, 3430, 11807, 834, 89, 9, 173, 7665, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, ...
Who did the Toronto Blue Jays play against where the score was 4 - 2?
CREATE TABLE table_71272 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Opponent" FROM table_71272 WHERE "Score" = '4 - 2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4450, 2555, 357, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 188, 17, 324, 26,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 667, 102, 9977, 121, 21680, 953, 834, 4450, 2555, 357, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 591, 3, 18, 204, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Where was the home court on April 14?
CREATE TABLE table_name_34 ( home VARCHAR, date VARCHAR )
SELECT home FROM table_name_34 WHERE date = "april 14"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 234, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2840, 47, 8, 234, 1614, 30, 1186, 968, 58, 1, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 833, 3274, 96, 9, 2246, 40, 968, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest Game, when Streak is 'Win 1', and when Date is 'February 18'?
CREATE TABLE table_9658 ( "Game" real, "Date" text, "Team" text, "Score" text, "Record" text, "Streak" text )
SELECT MAX("Game") FROM table_9658 WHERE "Streak" = 'win 1' AND "Date" = 'february 18'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4314, 3449, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 11500, 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, 4800, 4, 599, 121, 23055, 8512, 21680, 953, 834, 4314, 3449, 549, 17444, 427, 96, 11500, 15, 1639, 121, 3274, 3, 31, 3757, 209, 31, 3430, 96, 308, 342, 121, 3274, 3, 31, 89, 15, 9052, 1208, 507, 31, 1, -100, -10...
Which Score has a Result of 2 1, and a Competition of friendly, and a Goal smaller than 17?
CREATE TABLE table_name_21 ( score VARCHAR, goal VARCHAR, result VARCHAR, competition VARCHAR )
SELECT score FROM table_name_21 WHERE result = "2–1" AND competition = "friendly" AND goal < 17
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 2604, 584, 4280, 28027, 6, 1288, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 2259, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 17763...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 741, 3274, 96, 357, 104, 536, 121, 3430, 2259, 3274, 96, 4905, 121, 3430, 1288, 3, 2, 1003, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
how many games did the home team score at least 3 goals ?
CREATE TABLE table_204_346 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "result" text, "competition" text, "scored" number )
SELECT COUNT(*) FROM table_204_346 WHERE "result" >= 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 519, 4448, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 5522, 121, 1499, 6, 96, 15098, 121, 1499, 6, 96, 32, 102, 9977, 121, 1499, 6, 96, 60, 7, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 26363, 834, 519, 4448, 549, 17444, 427, 96, 60, 7, 83, 17, 121, 2490, 2423, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who is the written by when mark worthington is the director?
CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_22570439_1 WHERE directed_by = "Mark Worthington"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20489, 2518, 591, 3288, 834, 536, 41, 14973, 834, 969, 584, 4280, 28027, 6, 6640, 834, 969, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 1545, 57, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1545, 834, 969, 21680, 953, 834, 20489, 2518, 591, 3288, 834, 536, 549, 17444, 427, 6640, 834, 969, 3274, 96, 19762, 16990, 6029, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which animal has an AP duration of 1.0 and a conduction speed of 7 30?
CREATE TABLE table_41592 ( "Animal" text, "Cell type" text, "Resting potential (mV)" text, "AP increase (mV)" text, "AP duration (ms)" text, "Conduction speed (m/s)" text )
SELECT "Animal" FROM table_41592 WHERE "AP duration (ms)" = '1.0' AND "Conduction speed (m/s)" = '7–30'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 1808, 4508, 41, 96, 19209, 138, 121, 1499, 6, 96, 254, 3820, 686, 121, 1499, 6, 96, 1649, 11026, 1055, 41, 51, 553, 61, 121, 1499, 6, 96, 2965, 993, 41, 51, 553, 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, 19209, 138, 121, 21680, 953, 834, 591, 1808, 4508, 549, 17444, 427, 96, 2965, 8659, 41, 51, 7, 61, 121, 3274, 3, 31, 12734, 31, 3430, 96, 4302, 8291, 1634, 41, 51, 87, 7, 61, 121, 3274, 3, 31, 940, 104, 14...
What's the Chinese population in the borough with 26347 Pakistanis?
CREATE TABLE table_22848 ( "Rank" real, "London Borough" text, "Indian Population" real, "Pakistani Population" real, "Bangladeshi Population" real, "Chinese Population" real, "Other Asian Population" real, "Total Asian Population" real )
SELECT "Chinese Population" FROM table_22848 WHERE "Pakistani Population" = '26347'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2577, 3707, 41, 96, 22557, 121, 490, 6, 96, 29712, 28666, 121, 1499, 6, 96, 22126, 29, 29659, 121, 490, 6, 96, 345, 11259, 5627, 23, 29659, 121, 490, 6, 96, 279, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3541, 4477, 15, 29659, 121, 21680, 953, 834, 357, 2577, 3707, 549, 17444, 427, 96, 345, 11259, 5627, 23, 29659, 121, 3274, 3, 31, 357, 3891, 4177, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what was the date of the game that had the least number of people in attendance ?
CREATE TABLE table_203_809 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number )
SELECT "date" FROM table_203_809 ORDER BY "attendance" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 2079, 1298, 41, 3, 23, 26, 381, 6, 96, 5522, 121, 1499, 6, 96, 715, 121, 1499, 6, 96, 32, 102, 9977, 4663, 121, 1499, 6, 96, 6254, 4663, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 5522, 121, 21680, 953, 834, 23330, 834, 2079, 1298, 4674, 11300, 272, 476, 96, 15116, 663, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the name and number of followers for each user, and sort the results by the number of followers in descending order.
CREATE TABLE user_profiles ( name VARCHAR, followers VARCHAR )
SELECT name, followers FROM user_profiles ORDER BY followers DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1139, 834, 18816, 7, 41, 564, 584, 4280, 28027, 6, 10076, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 6792, 8, 564, 11, 381, 13, 10076, 21, 284, 1139, 6, 11, 1843, 8, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 10076, 21680, 1139, 834, 18816, 7, 4674, 11300, 272, 476, 10076, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the Hadeda Ibis when the Whitefaced Duck is Blacksmith Plover?
CREATE TABLE table_20042805_2 ( hadeda_ibis VARCHAR, whitefaced_duck VARCHAR )
SELECT hadeda_ibis FROM table_20042805_2 WHERE whitefaced_duck = "Blacksmith Plover"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21653, 2577, 3076, 834, 357, 41, 141, 15, 26, 9, 834, 16775, 7, 584, 4280, 28027, 6, 872, 4861, 26, 834, 26, 4636, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 141, 15, 26, 9, 834, 16775, 7, 21680, 953, 834, 21653, 2577, 3076, 834, 357, 549, 17444, 427, 872, 4861, 26, 834, 26, 4636, 3274, 96, 20096, 16331, 7337, 1890, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the number of patients admitted before 2164 who had wbc lab test?
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2164" AND lab.label = "WBC"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Find the number of stores in each city. Visualize by pie chart.
CREATE TABLE store_district ( Store_ID int, District_ID int ) CREATE TABLE store ( Store_ID int, Store_Name text, Type text, Area_size real, Number_of_product_category real, Ranking int ) CREATE TABLE product ( product_id int, product text, dimensions text, dpi real, pages_per_minute_color real, max_page_size text, interface text ) CREATE TABLE district ( District_ID int, District_name text, Headquartered_City text, City_Population real, City_Area real ) CREATE TABLE store_product ( Store_ID int, Product_ID int )
SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1078, 834, 26, 23, 20066, 41, 4493, 834, 4309, 16, 17, 6, 3570, 834, 4309, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1078, 41, 4493, 834, 4309, 16, 17, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3642, 19973, 15, 26, 834, 254, 485, 6, 2847, 17161, 599, 1935, 61, 21680, 1078, 6157, 3, 17, 536, 3, 15355, 3162, 1078, 834, 26, 23, 20066, 6157, 3, 17, 357, 9191, 3, 17, 5411, 28719, 834, 4309, 3274, 3, 17, 441...
What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?
CREATE TABLE table_24819 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text )
SELECT "Partial thromboplastin time" FROM table_24819 WHERE "Prothrombin time" = 'Prolonged' AND "Bleeding time" = 'Prolonged'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3707, 2294, 41, 96, 4302, 10569, 121, 1499, 6, 96, 3174, 8514, 51, 4517, 97, 121, 1499, 6, 96, 13212, 10646, 3, 8514, 6310, 23918, 77, 97, 121, 1499, 6, 96, 279, 40,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 13212, 10646, 3, 8514, 6310, 23918, 77, 97, 121, 21680, 953, 834, 357, 3707, 2294, 549, 17444, 427, 96, 3174, 8514, 51, 4517, 97, 121, 3274, 3, 31, 3174, 23629, 31, 3430, 96, 279, 40, 6958, 53, 97, 121, 3274, ...
Which athlete is from Norway?
CREATE TABLE table_name_44 ( athlete VARCHAR, country VARCHAR )
SELECT athlete FROM table_name_44 WHERE country = "norway"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 17893, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 17893, 19, 45, 16491, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 17893, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 684, 3274, 96, 29, 127, 1343, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which analog channel has a digital channel of 4.1?
CREATE TABLE table_name_31 ( analog_channel VARCHAR, digital_channel VARCHAR )
SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 10552, 834, 19778, 584, 4280, 28027, 6, 1125, 834, 19778, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 10552, 4245, 65, 3, 9, 1125, 4245...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10552, 834, 19778, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 1125, 834, 19778, 3274, 96, 19708, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is Jon Thorne's average speed?
CREATE TABLE table_1963459_2 (average_speed__mph_ VARCHAR, team VARCHAR)
SELECT average_speed__mph_ FROM table_1963459_2 WHERE team = "Jon Thorne"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26937, 3710, 3390, 834, 357, 41, 28951, 834, 9993, 834, 834, 7656, 834, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8178, 10632, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1348, 834, 9993, 834, 834, 7656, 834, 21680, 953, 834, 26937, 3710, 3390, 834, 357, 549, 17444, 427, 372, 3274, 96, 683, 106, 10632, 29, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose age is less than 89 and diagnoses long title is benzodiazepine-based tranquilizers causing adverse effects in therapeutic use?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "89" AND diagnoses.long_title = "Benzodiazepine-based tranquilizers causing adverse effects in therapeutic use"
[ 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...
What is the traditional way to write the name of the district who's area is 2331?
CREATE TABLE table_1300525_1 (traditional VARCHAR, area VARCHAR)
SELECT traditional FROM table_1300525_1 WHERE area = 2331
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21448, 3076, 1828, 834, 536, 41, 26374, 584, 4280, 28027, 6, 616, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1435, 194, 12, 1431, 8, 564, 13, 8, 3939,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1435, 21680, 953, 834, 21448, 3076, 1828, 834, 536, 549, 17444, 427, 616, 3274, 1902, 3341, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the date of appointment when Jürgen Kohler was the outgoing manager?
CREATE TABLE table_17085981_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_appointment FROM table_17085981_2 WHERE outgoing_manager = "Jürgen Kohler"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 4018, 3390, 4959, 834, 357, 41, 5522, 834, 858, 834, 9, 102, 2700, 297, 584, 4280, 28027, 6, 91, 9545, 834, 24185, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 833, 834, 858, 834, 9, 102, 2700, 297, 21680, 953, 834, 2517, 4018, 3390, 4959, 834, 357, 549, 17444, 427, 91, 9545, 834, 24185, 3274, 96, 683, 4087, 729, 16157, 49, 121, 1, -100, -100, -100, -100, -100, -100, -100,...
Show the number of climbers for each mountain in a bar chart, and sort Name in descending order.
CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text )
SELECT T2.Name, COUNT(T2.Name) FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID GROUP BY T2.Name ORDER BY T2.Name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8147, 49, 41, 205, 9577, 49, 834, 4309, 16, 17, 6, 5570, 1499, 6, 6993, 1499, 6, 2900, 1499, 6, 4564, 7, 490, 6, 5617, 834, 4309, 16, 17, 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, 332, 4416, 23954, 6, 2847, 17161, 599, 382, 4416, 23954, 61, 21680, 8147, 49, 6157, 332, 536, 3, 15355, 3162, 4180, 6157, 332, 357, 9191, 332, 5411, 329, 32, 14016, 77, 834, 4309, 3274, 332, 4416, 329, 32, 14016, 77...
What is the Location of the Event in Round 1 with a Time of 1:25?
CREATE TABLE table_63683 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT "Location" FROM table_63683 WHERE "Round" = '1' AND "Time" = '1:25'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3891, 3651, 519, 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, 434, 32, 75, 257, 121, 21680, 953, 834, 3891, 3651, 519, 549, 17444, 427, 96, 448, 32, 1106, 121, 3274, 3, 31, 536, 31, 3430, 96, 13368, 121, 3274, 3, 31, 536, 10, 1828, 31, 1, -100, -100, -100, -100, -100, ...
Find the number of matches in different competitions Visualize by bar chart, I want to display in asc by the X-axis.
CREATE TABLE hosting_city ( Year int, Match_ID int, Host_City text ) CREATE TABLE temperature ( City_ID int, Jan real, Feb real, Mar real, Apr real, Jun real, Jul real, Aug real, Sep real, Oct real, Nov real, Dec real ) CREATE TABLE city ( City_ID int, City text, Hanzi text, Hanyu_Pinyin text, Regional_Population int, GDP real ) CREATE TABLE match ( Match_ID int, Date text, Venue text, Score text, Result text, Competition text )
SELECT Competition, COUNT(*) FROM match GROUP BY Competition ORDER BY Competition
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4434, 834, 6726, 41, 2929, 16, 17, 6, 12296, 834, 4309, 16, 17, 6, 1546, 7, 17, 834, 254, 485, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2912, 41, 896, 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, 15571, 6, 2847, 17161, 599, 1935, 61, 21680, 1588, 350, 4630, 6880, 272, 476, 15571, 4674, 11300, 272, 476, 15571, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What rocket has a Block of block i and a COSPAR ID of 1995-060a?
CREATE TABLE table_57477 ( "Name" text, "Block" text, "Launch date/time (UTC)" text, "COSPAR ID" text, "Rocket" text )
SELECT "Rocket" FROM table_57477 WHERE "Block" = 'block i' AND "COSPAR ID" = '1995-060a'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3436, 591, 4013, 41, 96, 23954, 121, 1499, 6, 96, 279, 4029, 121, 1499, 6, 96, 3612, 202, 524, 833, 87, 715, 41, 6675, 254, 61, 121, 1499, 6, 96, 5911, 21215, 448, 4699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23349, 15, 17, 121, 21680, 953, 834, 3436, 591, 4013, 549, 17444, 427, 96, 279, 4029, 121, 3274, 3, 31, 10734, 3, 23, 31, 3430, 96, 5911, 21215, 448, 4699, 121, 3274, 3, 31, 19479, 29325, 3328, 9, 31, 1, -10...
Swimmer Audrey Lacroix finished in what time?
CREATE TABLE table_name_20 (time VARCHAR, name VARCHAR)
SELECT time FROM table_name_20 WHERE name = "audrey lacroix"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 715, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 27813, 935, 31423, 325, 2771, 2407, 2369, 16, 125, 97, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 97, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 564, 3274, 96, 402, 26, 60, 63, 50, 2771, 2407, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the Playoffs MVP of the game with a Result of 4–1 with Champions Daejeon Hyundai Dynat?
CREATE TABLE table_name_65 (playoffs_mvp VARCHAR, result VARCHAR, champions VARCHAR)
SELECT playoffs_mvp FROM table_name_65 WHERE result = "4–1" AND champions = "daejeon hyundai dynat"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4122, 41, 4895, 1647, 7, 834, 51, 208, 102, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 6336, 7, 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, 15289, 7, 834, 51, 208, 102, 21680, 953, 834, 4350, 834, 4122, 549, 17444, 427, 741, 3274, 96, 591, 104, 536, 121, 3430, 6336, 7, 3274, 96, 26, 9, 15, 1924, 106, 3, 107, 63, 1106, 9, 23, 3, 24805, 17, 121, 1, ...
What is the engine for the bmw motorsport entrant with 123 points before 2004?
CREATE TABLE table_70388 ( "Year" real, "Entrant" text, "Class" text, "Chassis" text, "Engine" text, "Tyres" text, "Rank" text, "Points" real )
SELECT "Engine" FROM table_70388 WHERE "Year" < '2004' AND "Entrant" = 'bmw motorsport' AND "Points" = '123'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2518, 519, 4060, 41, 96, 476, 2741, 121, 490, 6, 96, 16924, 3569, 121, 1499, 6, 96, 21486, 121, 1499, 6, 96, 3541, 6500, 7, 121, 1499, 6, 96, 31477, 121, 1499, 6, 96, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 31477, 121, 21680, 953, 834, 2518, 519, 4060, 549, 17444, 427, 96, 476, 2741, 121, 3, 2, 3, 31, 21653, 31, 3430, 96, 16924, 3569, 121, 3274, 3, 31, 29471, 2340, 6661, 31, 3430, 96, 22512, 7, 121, 3274, 3, 31...
What is the highest Rank for more than 220 goals in 1965–1978-78?
CREATE TABLE table_name_51 (rank INTEGER, goals VARCHAR, years VARCHAR)
SELECT MAX(rank) FROM table_name_51 WHERE goals > 220 AND years = "1965–1978-78"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 6254, 3, 21342, 17966, 6, 1766, 584, 4280, 28027, 6, 203, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 3, 22557, 21, 72, 145,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 6254, 61, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 1766, 2490, 204, 1755, 3430, 203, 3274, 96, 2294, 4122, 104, 2294, 3940, 18, 3940, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the least road wins
CREATE TABLE table_1343 ( "Num" real, "Team" text, "W" real, "L" real, "PCT" text, "PF" real, "PA" real, "Last appearance" real, "Last championship" real, "HOME games" real, "Home wins" real, "Home losses" real, "Home Win Pct." text, "ROAD games" real, "Road wins" real, "Road losses" real, "Road Win Pct." text )
SELECT MIN("Road wins") FROM table_1343
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2368, 4906, 41, 96, 567, 440, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 518, 121, 490, 6, 96, 434, 121, 490, 6, 96, 4051, 382, 121, 1499, 6, 96, 12017, 121, 490, 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, 3, 17684, 599, 121, 448, 32, 9, 26, 9204, 8512, 21680, 953, 834, 2368, 4906, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the result for Lane 3?
CREATE TABLE table_name_12 (result VARCHAR, lane VARCHAR)
SELECT result FROM table_name_12 WHERE lane = 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2122, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 3, 8102, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 741, 21, 11834, 220, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 21680, 953, 834, 4350, 834, 2122, 549, 17444, 427, 3, 8102, 3274, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Where was the game with record 20 23 and how many people attended it
CREATE TABLE table_17058116_7 ( location_attendance VARCHAR, record VARCHAR )
SELECT location_attendance FROM table_17058116_7 WHERE record = "20–23"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 3076, 4959, 2938, 834, 940, 41, 1128, 834, 15116, 663, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2840, 47, 8, 467, 28, 1368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 834, 15116, 663, 21680, 953, 834, 2517, 3076, 4959, 2938, 834, 940, 549, 17444, 427, 1368, 3274, 96, 1755, 104, 2773, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Score has a Venue of idrottsparken?
CREATE TABLE table_name_31 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_31 WHERE venue = "idrottsparken"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 7, 9022, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 17763, 65, 3, 9, 29940, 13, 3, 23, 26, 14369, 7, 6334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2604, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 5669, 3274, 96, 23, 26, 14369, 7, 6334, 35, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many regions have 0.5% solar panels?
CREATE TABLE table_27330 ( "Region" text, "Public network" text, "Own/community generator" text, "Solar panel" text, "Other source" text, "None" text )
SELECT COUNT("Public network") FROM table_27330 WHERE "Solar panel" = '0.5%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 17225, 41, 96, 17748, 23, 106, 121, 1499, 6, 96, 30931, 1229, 121, 1499, 6, 96, 667, 210, 29, 87, 18782, 485, 9877, 121, 1499, 6, 96, 134, 17401, 2952, 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, 2847, 17161, 599, 121, 30931, 1229, 8512, 21680, 953, 834, 2555, 17225, 549, 17444, 427, 96, 134, 17401, 2952, 121, 3274, 3, 31, 12100, 1454, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Name the losing bonus for 27
CREATE TABLE table_12792876_4 ( losing_bonus VARCHAR, tries_for VARCHAR )
SELECT losing_bonus FROM table_12792876_4 WHERE tries_for = "27"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4440, 2577, 3959, 834, 591, 41, 5489, 834, 5407, 302, 584, 4280, 28027, 6, 3, 9000, 834, 1161, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 5489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5489, 834, 5407, 302, 21680, 953, 834, 2122, 4440, 2577, 3959, 834, 591, 549, 17444, 427, 3, 9000, 834, 1161, 3274, 96, 2555, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find the student ID and middle name for all the students with at most two enrollments.
CREATE TABLE Student_Tests_Taken ( registration_id INTEGER, date_test_taken DATETIME, test_result VARCHAR(255) ) CREATE TABLE Students ( student_id INTEGER, date_of_registration DATETIME, date_of_latest_logon DATETIME, login_name VARCHAR(40), password VARCHAR(10), personal_name VARCHAR(40), middle_name VARCHAR(40), family_name VARCHAR(40) ) CREATE TABLE Subjects ( subject_id INTEGER, subject_name VARCHAR(120) ) CREATE TABLE Student_Course_Enrolment ( registration_id INTEGER, student_id INTEGER, course_id INTEGER, date_of_enrolment DATETIME, date_of_completion DATETIME ) CREATE TABLE Course_Authors_and_Tutors ( author_id INTEGER, author_tutor_ATB VARCHAR(3), login_name VARCHAR(40), password VARCHAR(40), personal_name VARCHAR(80), middle_name VARCHAR(80), family_name VARCHAR(80), gender_mf VARCHAR(1), address_line_1 VARCHAR(80) ) CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_description VARCHAR(255) )
SELECT T2.middle_name, T1.student_id FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6341, 834, 382, 222, 7, 834, 29468, 29, 41, 3816, 834, 23, 26, 3, 21342, 17966, 6, 833, 834, 4377, 834, 4914, 29, 309, 6048, 382, 15382, 6, 794, 834, 60, 7, 83, 17, 584, 4280, 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, 332, 4416, 51, 23, 8437, 834, 4350, 6, 332, 5411, 8637, 295, 834, 23, 26, 21680, 6341, 834, 3881, 3589, 15, 834, 8532, 3491, 297, 6157, 332, 536, 3, 15355, 3162, 4375, 6157, 332, 357, 9191, 332, 5411, 8637, 295, 8...
Which team 1 played against team 2 of Tours FC (D2)?
CREATE TABLE table_name_21 ( team_1 VARCHAR, team_2 VARCHAR )
SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 372, 834, 536, 584, 4280, 28027, 6, 372, 834, 357, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 372, 209, 1944, 581, 372, 204, 13, 335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 372, 834, 536, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 372, 834, 357, 3274, 96, 17, 1211, 7, 3, 89, 75, 41, 26, 7318, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What Club/province have caps less than 2 and Jonathan Sexton as player?
CREATE TABLE table_name_74 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
SELECT club_province FROM table_name_74 WHERE caps < 2 AND player = "jonathan sexton"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 13442, 834, 1409, 2494, 565, 584, 4280, 28027, 6, 16753, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1949, 87, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1886, 834, 1409, 2494, 565, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 16753, 3, 2, 204, 3430, 1959, 3274, 96, 15429, 9, 6736, 142, 20706, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find dates and attendance for exhibitions that happened in 2004, show me the comparison of attendance by date, I want to sort by the names in ascending.
CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int )
SELECT T1.Date, T1.Attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Year = 2004 ORDER BY Date
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4473, 41, 22371, 834, 4309, 16, 17, 6, 2929, 16, 17, 6, 37, 526, 1499, 6, 9152, 834, 4309, 16, 17, 6, 3, 15569, 834, 345, 4920, 490, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 308, 342, 6, 332, 5411, 188, 17, 324, 26, 663, 21680, 4473, 834, 60, 7621, 6157, 332, 536, 3, 15355, 3162, 4473, 6157, 332, 357, 9191, 332, 5411, 5420, 13506, 1575, 834, 4309, 3274, 332, 4416, 5420, 13506...
When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?
CREATE TABLE table_28286776_50 (cap_s_ VARCHAR, goal_s_ VARCHAR, player VARCHAR)
SELECT COUNT(cap_s_) FROM table_28286776_50 WHERE goal_s_ = 1 AND player = "Tommy Smith Category:Articles with hCards"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 2577, 3708, 3959, 834, 1752, 41, 4010, 834, 7, 834, 584, 4280, 28027, 6, 1288, 834, 7, 834, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 4010, 834, 7, 834, 61, 21680, 953, 834, 2577, 2577, 3708, 3959, 834, 1752, 549, 17444, 427, 1288, 834, 7, 834, 3274, 209, 3430, 1959, 3274, 96, 3696, 635, 63, 3931, 17459, 10, 7754, 447, 965, 28, ...
how many total different people have born the glad for samoa at the olympics ?
CREATE TABLE table_204_986 ( id number, "#" number, "event year" number, "season" text, "flag bearer" text )
SELECT COUNT(DISTINCT "flag bearer") FROM table_204_986
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 3916, 948, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 15, 2169, 215, 121, 381, 6, 96, 9476, 121, 1499, 6, 96, 89, 5430, 4595, 49, 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, 2847, 17161, 599, 15438, 25424, 6227, 96, 89, 5430, 4595, 49, 8512, 21680, 953, 834, 26363, 834, 3916, 948, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
specify the number of patients with icd9 code 5849 who had a stay at hospital for more than 6 days
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "6" AND diagnoses.icd9_code = "5849"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What were all Yachts with a sail number of 6952?
CREATE TABLE table_14882588_3 (yacht VARCHAR, sail_number VARCHAR)
SELECT yacht FROM table_14882588_3 WHERE sail_number = "6952"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2534, 4060, 1828, 4060, 834, 519, 41, 63, 9, 3997, 584, 4280, 28027, 6, 14725, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 130, 66, 26397, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 18082, 21680, 953, 834, 2534, 4060, 1828, 4060, 834, 519, 549, 17444, 427, 14725, 834, 5525, 1152, 3274, 96, 3951, 5373, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
give me a good arabic restaurant in mountain view ?
CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar ) CREATE TABLE geographic ( city_name varchar, county varchar, region varchar )
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2062, 41, 3, 23, 26, 16, 17, 6, 564, 3, 4331, 4059, 6, 542, 834, 6137, 3, 4331, 4059, 6, 690, 834, 4350, 3, 4331, 4059, 6, 5773, 96, 24223, 1982, 3, 61, 3, 32102, 32103, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1128, 5, 1840, 834, 5525, 1152, 6, 2062, 5, 4350, 21680, 1128, 6, 2062, 549, 17444, 427, 1128, 5, 6726, 834, 4350, 3274, 3, 31, 11231, 9, 77, 903, 31, 3430, 2062, 5, 12437, 834, 6137, 3274, 3, 31, 2551, 15979, 3...
angel fuentes and gilbert wilson were both from which residence ?
CREATE TABLE table_204_699 ( id number, "district" text, "name" text, "party" text, "residence" text, "first served" number )
SELECT "residence" FROM table_204_699 WHERE "name" = 'angel fuentes'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 948, 3264, 41, 3, 23, 26, 381, 6, 96, 26, 23, 20066, 121, 1499, 6, 96, 4350, 121, 1499, 6, 96, 8071, 121, 1499, 6, 96, 60, 1583, 3772, 121, 1499, 6, 96, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 60, 1583, 3772, 121, 21680, 953, 834, 26363, 834, 948, 3264, 549, 17444, 427, 96, 4350, 121, 3274, 3, 31, 3280, 40, 7683, 4617, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the street address of the building with 40 floors?
CREATE TABLE table_name_94 (street_address VARCHAR, floors VARCHAR)
SELECT street_address FROM table_name_94 WHERE floors = "40"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 22967, 834, 9, 26, 12039, 584, 4280, 28027, 6, 8242, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2815, 1115, 13, 8, 740, 28, 1283,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2815, 834, 9, 26, 12039, 21680, 953, 834, 4350, 834, 4240, 549, 17444, 427, 8242, 3274, 96, 2445, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Visualize a bar chart about the distribution of All_Games and ACC_Percent , and rank by the Y in descending.
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 All_Games, ACC_Percent FROM basketball_match ORDER BY ACC_Percent 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, 432, 834, 23055, 7, 6, 3, 14775, 834, 12988, 3728, 21680, 8498, 834, 19515, 4674, 11300, 272, 476, 3, 14775, 834, 12988, 3728, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What was Australia's score when Peter Lonard played?
CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_6 WHERE country = "australia" AND player = "peter lonard"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 7, 9022, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 2051, 31, 7, 2604, 116, 2737...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2604, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 684, 3274, 96, 2064, 8792, 23, 9, 121, 3430, 1959, 3274, 96, 4995, 49, 3, 40, 106, 986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many votes did Other receive where Bush received less than 154,204 votes, and Kerry received 41.7% and more than 98,066 votes?
CREATE TABLE table_15329 ( "County" text, "Kerry %" text, "Kerry #" real, "Bush %" text, "Bush #" real, "Others %" text, "Others #" real )
SELECT COUNT("Others #") FROM table_15329 WHERE "Bush #" < '154,204' AND "Kerry %" = '41.7%' AND "Kerry #" > '98,066'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27025, 3166, 41, 96, 10628, 63, 121, 1499, 6, 96, 439, 49, 651, 3, 1454, 121, 1499, 6, 96, 439, 49, 651, 1713, 121, 490, 6, 96, 279, 8489, 3, 1454, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 667, 189, 277, 1713, 8512, 21680, 953, 834, 27025, 3166, 549, 17444, 427, 96, 279, 8489, 1713, 121, 3, 2, 3, 31, 27308, 6, 26363, 31, 3430, 96, 439, 49, 651, 3, 1454, 121, 3274, 3, 31, 485...
What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against?
CREATE TABLE table_name_56 (losses INTEGER, team VARCHAR, goals_against VARCHAR)
SELECT SUM(losses) FROM table_name_56 WHERE team = "montreal hockey club" AND goals_against > 15
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4834, 41, 2298, 2260, 3, 21342, 17966, 6, 372, 584, 4280, 28027, 6, 1766, 834, 9, 16720, 7, 17, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 2298, 2260, 61, 21680, 953, 834, 4350, 834, 4834, 549, 17444, 427, 372, 3274, 96, 4662, 6644, 16528, 1886, 121, 3430, 1766, 834, 9, 16720, 7, 17, 2490, 627, 1, -100, -100, -100, -100, -100, -100, -10...
What is the Pole Position of the Brazilian Grand Prix race?
CREATE TABLE table_name_28 ( pole_position VARCHAR, race VARCHAR )
SELECT pole_position FROM table_name_28 WHERE race = "brazilian grand prix"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 11148, 834, 4718, 584, 4280, 28027, 6, 1964, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 19418, 14258, 13, 8, 18065, 2698, 12942,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11148, 834, 4718, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 1964, 3274, 96, 1939, 702, 9928, 1907, 3407, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the RECNet when the power is 199 watts?
CREATE TABLE table_name_9 (recnet VARCHAR, power VARCHAR)
SELECT recnet FROM table_name_9 WHERE power = "199 watts"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1298, 41, 60, 75, 1582, 584, 4280, 28027, 6, 579, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 3, 20921, 9688, 116, 8, 579, 19, 3, 19479...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5026, 1582, 21680, 953, 834, 4350, 834, 1298, 549, 17444, 427, 579, 3274, 96, 19479, 3, 11876, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What position(s) drafted by the montreal alouettes?
CREATE TABLE table_20170644_5 (position VARCHAR, cfl_team VARCHAR)
SELECT position FROM table_20170644_5 WHERE cfl_team = "Montreal Alouettes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9887, 5176, 3628, 834, 755, 41, 4718, 584, 4280, 28027, 6, 3, 75, 89, 40, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1102, 599, 7, 61, 3, 23505, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1102, 21680, 953, 834, 9887, 5176, 3628, 834, 755, 549, 17444, 427, 3, 75, 89, 40, 834, 11650, 3274, 96, 9168, 17, 6644, 901, 24043, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Was it a home game on the date of April 6?
CREATE TABLE table_name_6 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_6 WHERE date = "april 6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 5515, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2751, 34, 3, 9, 234, 467, 30, 8, 833, 13, 1186, 431, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 833, 3274, 96, 9, 2246, 40, 431, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the location codes and the number of documents in each location.
CREATE TABLE ref_calendar ( calendar_date time, day_number number ) CREATE TABLE employees ( employee_id number, role_code text, employee_name text, gender_mfu text, date_of_birth time, other_details text ) CREATE TABLE documents_to_be_destroyed ( document_id number, destruction_authorised_by_employee_id number, destroyed_by_employee_id number, planned_destruction_date time, actual_destruction_date time, other_details text ) CREATE TABLE ref_document_types ( document_type_code text, document_type_name text, document_type_description text ) CREATE TABLE document_locations ( document_id number, location_code text, date_in_location_from time, date_in_locaton_to time ) CREATE TABLE ref_locations ( location_code text, location_name text, location_description text ) CREATE TABLE all_documents ( document_id number, date_stored time, document_type_code text, document_name text, document_description text, other_details text ) CREATE TABLE roles ( role_code text, role_name text, role_description text )
SELECT location_code, COUNT(*) FROM document_locations GROUP BY location_code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6273, 834, 1489, 35, 3439, 41, 4793, 834, 5522, 97, 6, 239, 834, 5525, 1152, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1652, 41, 3490, 834, 23, 26, 381, 6, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1128, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 1708, 834, 14836, 7, 350, 4630, 6880, 272, 476, 1128, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...