NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
What's the location of the National event?
CREATE TABLE table_name_97 ( location VARCHAR, event VARCHAR )
SELECT location FROM table_name_97 WHERE event = "the national"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4327, 41, 1128, 584, 4280, 28027, 6, 605, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 1128, 13, 8, 868, 605, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 4350, 834, 4327, 549, 17444, 427, 605, 3274, 96, 532, 1157, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Venue when the Crowd was larger than 11,000 and the Away team score was 7.9 (51)?
CREATE TABLE table_33019 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_33019 WHERE "Crowd" > '11,000' AND "Away team score" = '7.9 (51)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 17225, 2294, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 17225, 2294, 549, 17444, 427, 96, 254, 3623, 26, 121, 2490, 3, 31, 536, 19215, 31, 3430, 96, 188, 1343, 372, 2604, 121, 3274, 3, 31, 940, 5, 1298, 9209, 6982, 31, 1, ...
Which player has the fewest assists and played 2 games or fewer?
CREATE TABLE table_41565 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Assists" real )
SELECT MIN("Assists") FROM table_41565 WHERE "Games" < '2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 1808, 4122, 41, 96, 22557, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 23055, 7, 121, 490, 6, 96, 188, 7, 7, 343, 7, 121, 490, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 188, 7, 7, 343, 7, 8512, 21680, 953, 834, 591, 1808, 4122, 549, 17444, 427, 96, 23055, 7, 121, 3, 2, 3, 31, 357, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the original air date of an episode set in 1544?
CREATE TABLE table_16099 ( "No. in series" real, "No. in season" real, "Title" text, "Setting" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text )
SELECT "Original air date" FROM table_16099 WHERE "Setting" = '1544'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19129, 3264, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 17175, 1222, 121, 1499, 6, 96, 23620, 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...
[ 3, 23143, 14196, 96, 667, 3380, 10270, 799, 833, 121, 21680, 953, 834, 19129, 3264, 549, 17444, 427, 96, 17175, 1222, 121, 3274, 3, 31, 1808, 3628, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the least bronze when gold is more than 0 for russia?
CREATE TABLE table_name_37 (bronze INTEGER, gold VARCHAR, nation VARCHAR)
SELECT MIN(bronze) FROM table_name_37 WHERE gold > 0 AND nation = "russia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 13711, 776, 3, 21342, 17966, 6, 2045, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 709, 13467, 116, 2045, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 17684, 599, 13711, 776, 61, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 2045, 2490, 3, 632, 3430, 2982, 3274, 96, 26165, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what was the score in 1990
CREATE TABLE table_5468 ( "Year" real, "Champion" text, "Score" text, "Opponent" text, "State Champion Head coach" text )
SELECT "Score" FROM table_5468 WHERE "Year" = '1990'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5062, 3651, 41, 96, 476, 2741, 121, 490, 6, 96, 254, 1483, 12364, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 4748, 16127, 3642,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 134, 9022, 121, 21680, 953, 834, 5062, 3651, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 2294, 2394, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Did the round 8 race get reported
CREATE TABLE table_20120 ( "Rd" real, "Race" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text, "Report" text )
SELECT "Report" FROM table_20120 WHERE "Rd" = '8'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12172, 632, 41, 96, 448, 26, 121, 490, 6, 96, 448, 3302, 121, 1499, 6, 96, 8931, 15, 14258, 121, 1499, 6, 96, 371, 9, 7, 4377, 325, 102, 121, 1499, 6, 96, 518, 10503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 1493, 121, 21680, 953, 834, 12172, 632, 549, 17444, 427, 96, 448, 26, 121, 3274, 3, 31, 927, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what title is before dhol in 2007 ?
CREATE TABLE table_204_620 ( id number, "title" text, "year" number, "language" text, "role" text, "notes" text )
SELECT "title" FROM table_204_620 WHERE id = (SELECT id FROM table_204_620 WHERE "title" = 'dhol') - 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 26898, 41, 3, 23, 26, 381, 6, 96, 21869, 121, 1499, 6, 96, 1201, 121, 381, 6, 96, 24925, 121, 1499, 6, 96, 3491, 15, 121, 1499, 6, 96, 7977, 7, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 21869, 121, 21680, 953, 834, 26363, 834, 26898, 549, 17444, 427, 3, 23, 26, 3274, 41, 23143, 14196, 3, 23, 26, 21680, 953, 834, 26363, 834, 26898, 549, 17444, 427, 96, 21869, 121, 3274, 3, 31, 26, 2831, 31, 61...
Who was the successor in New York 11th district?
CREATE TABLE table_2159537_3 ( successor VARCHAR, district VARCHAR )
SELECT successor FROM table_2159537_3 WHERE district = "New York 11th"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 1808, 3301, 4118, 834, 519, 41, 22261, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 22261, 16, 368, 1060, 850, 189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22261, 21680, 953, 834, 357, 1808, 3301, 4118, 834, 519, 549, 17444, 427, 3939, 3274, 96, 6861, 1060, 850, 189, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many games drawn for the team that lost 11 and had 748 points?
CREATE TABLE table_1676073_12 ( drawn VARCHAR, lost VARCHAR, points_for VARCHAR )
SELECT drawn FROM table_1676073_12 WHERE lost = "11" AND points_for = "748"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2938, 28212, 4552, 834, 2122, 41, 6796, 584, 4280, 28027, 6, 1513, 584, 4280, 28027, 6, 979, 834, 1161, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1031...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6796, 21680, 953, 834, 2938, 28212, 4552, 834, 2122, 549, 17444, 427, 1513, 3274, 96, 2596, 121, 3430, 979, 834, 1161, 3274, 96, 940, 3707, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
give the number of patients whose insurance is self pay and diagnosis long title is antineoplastic and immunosuppressive drugs 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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Self Pay" AND diagnoses.long_title = "Antineoplastic and immunosuppressive drugs 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 are the names of all the songs whose album is under the label of 'Universal Music Group'?
CREATE TABLE songs ( songid number, title text ) CREATE TABLE tracklists ( albumid number, position number, songid number ) CREATE TABLE albums ( aid number, title text, year number, label text, type text ) CREATE TABLE instruments ( songid number, bandmateid number, instrument text ) CREATE TABLE vocals ( songid number, bandmate number, type text ) CREATE TABLE band ( id number, firstname text, lastname text ) CREATE TABLE performance ( songid number, bandmate number, stageposition text )
SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = "Universal Music Group"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 2324, 23, 26, 381, 6, 2233, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1463, 3350, 7, 41, 2306, 23, 26, 381, 6, 1102, 381, 6, 2324, 23, 26, 381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 21869, 21680, 14234, 6157, 332, 536, 3, 15355, 3162, 1463, 3350, 7, 6157, 332, 357, 9191, 332, 5411, 6146, 3274, 332, 4416, 23703, 23, 26, 3, 15355, 3162, 3605, 6157, 332, 519, 9191, 332, 4416, 7, 2444, 2...
Which college did the player weighing 207 pounds attend?
CREATE TABLE table_20162 ( "Round" real, "Choice" real, "Player name" text, "Position" text, "Height" text, "Weight" real, "College" text )
SELECT "College" FROM table_20162 WHERE "Weight" = '207'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11505, 357, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 3541, 32, 867, 121, 490, 6, 96, 15800, 49, 564, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 3845, 2632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 9939, 7883, 121, 21680, 953, 834, 11505, 357, 549, 17444, 427, 96, 1326, 2632, 121, 3274, 3, 31, 26426, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the family friendly status of the punk genre song from the 1970s?
CREATE TABLE table_name_8 (family_friendly VARCHAR, decade VARCHAR, genre VARCHAR)
SELECT family_friendly FROM table_name_8 WHERE decade = "1970s" AND genre = "punk"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 15474, 834, 4905, 584, 4280, 28027, 6, 5112, 584, 4280, 28027, 6, 5349, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 384, 2609, 2637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 384, 834, 4905, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 5112, 3274, 96, 2294, 2518, 7, 121, 3430, 5349, 3274, 96, 102, 6513, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When rank is 33, what is the smallest lane?
CREATE TABLE table_name_38 ( lane INTEGER, rank VARCHAR )
SELECT MIN(lane) FROM table_name_38 WHERE rank = 33
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3747, 41, 3, 8102, 3, 21342, 17966, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 11003, 19, 5400, 6, 125, 19, 8, 3, 17924, 3, 8102, 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, 3, 17684, 599, 8102, 61, 21680, 953, 834, 4350, 834, 3747, 549, 17444, 427, 11003, 3274, 5400, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many eliminations did each team have?
CREATE TABLE elimination ( elimination_id text, wrestler_id text, team text, eliminated_by text, elimination_move text, time text ) CREATE TABLE wrestler ( wrestler_id number, name text, reign text, days_held text, location text, event text )
SELECT team, COUNT(*) FROM elimination GROUP BY team
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 23458, 41, 23458, 834, 23, 26, 1499, 6, 26033, 52, 834, 23, 26, 1499, 6, 372, 1499, 6, 17809, 834, 969, 1499, 6, 23458, 834, 7168, 15, 1499, 6, 97, 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, 372, 6, 2847, 17161, 599, 1935, 61, 21680, 23458, 350, 4630, 6880, 272, 476, 372, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many picks had less than 11 rounds and a player of Charley Casey?
CREATE TABLE table_name_29 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT SUM(pick) FROM table_name_29 WHERE round < 11 AND player = "charley casey"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 17967, 3, 21342, 17966, 6, 1751, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1432, 7, 141, 705, 145, 850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 17967, 61, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 1751, 3, 2, 850, 3430, 1959, 3274, 96, 4059, 1306, 495, 63, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the away team score at victoria park?
CREATE TABLE table_54666 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team score" FROM table_54666 WHERE "Venue" = 'victoria park'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 4448, 3539, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 2604, 121, 21680, 953, 834, 755, 4448, 3539, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 7287, 3600, 9, 2447, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
For each bed type, find the average room price.
CREATE TABLE reservations ( code number, room text, checkin text, checkout text, rate number, lastname text, firstname text, adults number, kids number ) CREATE TABLE rooms ( roomid text, roomname text, beds number, bedtype text, maxoccupancy number, baseprice number, decor text )
SELECT bedtype, AVG(baseprice) FROM rooms GROUP BY bedtype
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 17653, 41, 1081, 381, 6, 562, 1499, 6, 691, 77, 1499, 6, 15912, 1499, 6, 1080, 381, 6, 336, 4350, 1499, 6, 166, 4350, 1499, 6, 3513, 381, 6, 1082, 381, 3, 61, 3, 32102, 32103, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1953, 6137, 6, 71, 17217, 599, 10925, 102, 4920, 61, 21680, 2801, 350, 4630, 6880, 272, 476, 1953, 6137, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the original air date (atv) of episode 1?
CREATE TABLE table_1439096_1 ( original_air_date__atv_ VARCHAR, episode_no VARCHAR )
SELECT original_air_date__atv_ FROM table_1439096_1 WHERE episode_no = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25133, 2394, 4314, 834, 536, 41, 926, 834, 2256, 834, 5522, 834, 834, 144, 208, 834, 584, 4280, 28027, 6, 5640, 834, 29, 32, 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, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 926, 834, 2256, 834, 5522, 834, 834, 144, 208, 834, 21680, 953, 834, 25133, 2394, 4314, 834, 536, 549, 17444, 427, 5640, 834, 29, 32, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is TV Time, when Date is December 22, 1996?
CREATE TABLE table_name_91 ( tv_time VARCHAR, date VARCHAR )
SELECT tv_time FROM table_name_91 WHERE date = "december 22, 1996"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4729, 41, 3, 17, 208, 834, 715, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 1424, 2900, 6, 116, 7678, 19, 1882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17, 208, 834, 715, 21680, 953, 834, 4350, 834, 4729, 549, 17444, 427, 833, 3274, 96, 221, 75, 18247, 12889, 6911, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many shows were launched on CBS (2002)?
CREATE TABLE table_28803803_1 (launched VARCHAR, original_channel VARCHAR)
SELECT COUNT(launched) FROM table_28803803_1 WHERE original_channel = "CBS (2002)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 2079, 22671, 519, 834, 536, 41, 27493, 15, 26, 584, 4280, 28027, 6, 926, 834, 19778, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1267, 130, 3759, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 27493, 15, 26, 61, 21680, 953, 834, 2577, 2079, 22671, 519, 834, 536, 549, 17444, 427, 926, 834, 19778, 3274, 96, 254, 4547, 3, 31444, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what are the film names with the co-singer vinod rathod?
CREATE TABLE table_11827596_2 ( film_name VARCHAR, co_singer VARCHAR )
SELECT film_name FROM table_11827596_2 WHERE co_singer = "Vinod Rathod"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20056, 25988, 4314, 834, 357, 41, 814, 834, 4350, 584, 4280, 28027, 6, 576, 834, 7, 9963, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 33, 8, 814, 3056, 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, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 814, 834, 4350, 21680, 953, 834, 20056, 25988, 4314, 834, 357, 549, 17444, 427, 576, 834, 7, 9963, 3274, 96, 553, 77, 32, 26, 2922, 189, 32, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the lowest number of league cups associated with 0 FA cups?
CREATE TABLE table_name_65 (league_cup INTEGER, fa_cup INTEGER)
SELECT MIN(league_cup) FROM table_name_65 WHERE fa_cup < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4122, 41, 29512, 834, 4658, 3, 21342, 17966, 6, 3, 89, 9, 834, 4658, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 381, 13, 5533, 12294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 29512, 834, 4658, 61, 21680, 953, 834, 4350, 834, 4122, 549, 17444, 427, 3, 89, 9, 834, 4658, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich?
CREATE TABLE table_name_85 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR)
SELECT score_in_the_final FROM table_name_85 WHERE partner = "jorge lozano" AND outcome = "runner-up" AND opponents_in_the_final = "udo riglewski michael stich"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 7, 9022, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 6, 16383, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 6, 2397, 584, 4280, 28027, 6, 6138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 834, 77, 834, 532, 834, 12406, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 2397, 3274, 96, 12775, 397, 6899, 10241, 32, 121, 3430, 6138, 3274, 96, 10806, 18, 413, 121, 3430, 16383, 834, 77, 834, 532, 83...
Draw a bar chart of gender versus the number of gender, and rank by the Y in asc.
CREATE TABLE match_result ( Rank int, Club_ID int, Gold int, Big_Silver int, Small_Silver int, Bronze int, Points int ) CREATE TABLE player ( Player_ID int, Sponsor_name text, Player_name text, Gender text, Residence text, Occupation text, Votes int, Rank text ) CREATE TABLE coach ( Coach_ID int, Coach_name text, Gender text, Club_ID int, Rank int ) CREATE TABLE club ( Club_ID int, Club_name text, Region text, Start_year int ) CREATE TABLE player_coach ( Player_ID int, Coach_ID int, Starting_year int )
SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender ORDER BY COUNT(Gender)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1588, 834, 60, 7, 83, 17, 41, 3, 22557, 16, 17, 6, 1949, 834, 4309, 16, 17, 6, 2540, 16, 17, 6, 2734, 834, 134, 173, 624, 16, 17, 6, 4872, 834, 134, 173, 624, 16, 17, 6, 2084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 350, 3868, 6, 2847, 17161, 599, 517, 3868, 61, 21680, 1959, 350, 4630, 6880, 272, 476, 350, 3868, 4674, 11300, 272, 476, 2847, 17161, 599, 517, 3868, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the episod for number 64
CREATE TABLE table_29358 ( "Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." real, "Series No." real, "Episode" text, "Director" text, "Writer" text, "Original airdate" text )
SELECT "Episode" FROM table_29358 WHERE "Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." = '64'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4271, 3449, 41, 96, 427, 102, 159, 32, 221, 465, 5, 16112, 465, 5, 2401, 7, 12, 8, 13562, 381, 16, 8, 1879, 939, 6, 3, 10339, 4531, 465, 5, 2401, 7, 12, 8, 13562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 427, 102, 159, 32, 221, 121, 21680, 953, 834, 357, 4271, 3449, 549, 17444, 427, 96, 427, 102, 159, 32, 221, 465, 5, 16112, 465, 5, 2401, 7, 12, 8, 13562, 381, 16, 8, 1879, 939, 6, 3, 10339, 4531, 465, 5, ...
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a line chart about the change of commission_pct over hire_date , rank x axis in ascending order.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1440, 41, 2847, 17161, 11824, 834, 4309, 3, 4331, 4059, 16426, 6, 2847, 17161, 11824, 834, 567, 17683, 3, 4331, 4059, 599, 2445, 201, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 1714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 3, 6657, 329, 16994, 9215, 834, 4051, 382, 21680, 1652, 549, 17444, 427, 180, 4090, 24721, 272, 7969, 518, 23394, 3, 25129, 3430, 586, 2313, 3430, 3, 6657, 329, 16994, 9215, 834, 4051, ...
tell me the number of american indian/alaska native patients who have prescription for d12.5w drug.
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND prescriptions.drug = "D12.5W"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
Find the name of the department that has no students minored in?
CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR)
SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3396, 19846, 11810, 41, 308, 23954, 584, 4280, 28027, 6, 309, 7400, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 8161, 24833, 834, 3162, 41, 308, 7400, 584,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 309, 23954, 21680, 3396, 19846, 11810, 262, 4, 30416, 3, 23143, 14196, 332, 5411, 308, 23954, 21680, 3396, 19846, 11810, 6157, 332, 536, 3, 15355, 3162, 8161, 24833, 834, 3162, 6157, 332, 357, 9191, 332, 5411, 308, 7400...
What is the record when attendance is more than 19,658 and Los Angeles Rams are the visiting team?
CREATE TABLE table_71499 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text, "Attendance" real )
SELECT "Record" FROM table_71499 WHERE "Attendance" > '19,658' AND "Visitor" = 'los angeles rams'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2534, 3264, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 159, 155, 127, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 19040, 121, 1499, 6, 96, 1649, 7621, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 7621, 121, 21680, 953, 834, 940, 2534, 3264, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 2490, 3, 31, 2294, 6, 948, 3449, 31, 3430, 96, 553, 159, 155, 127, 121, 3274, 3, 31, 2298, 11831, 15, 7, ...
List the forenames of all distinct drivers in alphabetical order?
CREATE TABLE drivers ( forename VARCHAR )
SELECT DISTINCT forename FROM drivers ORDER BY forename
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3863, 41, 21, 15, 4350, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 6792, 8, 21, 15, 4350, 7, 13, 66, 6746, 3863, 16, 20688, 1950, 455, 58, 1, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 21, 15, 4350, 21680, 3863, 4674, 11300, 272, 476, 21, 15, 4350, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what is the average number of losses an opponent has ?
CREATE TABLE table_204_623 ( id number, "opponent" text, "goals" text, "wins" number, "draws" number, "losses" number, "+- goals" number, "matches" number, "qualified" number, "eliminated" number )
SELECT AVG("losses") FROM table_204_623
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 4056, 519, 41, 3, 23, 26, 381, 6, 96, 32, 102, 9977, 121, 1499, 6, 96, 839, 5405, 121, 1499, 6, 96, 3757, 7, 121, 381, 6, 96, 19489, 7, 121, 381, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 2298, 2260, 8512, 21680, 953, 834, 26363, 834, 4056, 519, 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 is the city and region of the team in the dalh s arena?
CREATE TABLE table_34168 ( "Team" text, "City, Region" text, "Arena" text, "Colours" text, "Head coach" text )
SELECT "City, Region" FROM table_34168 WHERE "Arena" = 'dalhús'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3710, 24274, 41, 96, 18699, 121, 1499, 6, 96, 254, 485, 6, 6163, 121, 1499, 6, 96, 188, 1536, 9, 121, 1499, 6, 96, 9939, 1211, 7, 121, 1499, 6, 96, 3845, 9, 26, 3763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 485, 6, 6163, 121, 21680, 953, 834, 3710, 24274, 549, 17444, 427, 96, 188, 1536, 9, 121, 3274, 3, 31, 26, 138, 107, 2, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many series premieres did the season "All-stars" have?
CREATE TABLE table_2311410_1 (series_premiere VARCHAR, season VARCHAR)
SELECT COUNT(series_premiere) FROM table_2311410_1 WHERE season = "All-Stars"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 18959, 1714, 834, 536, 41, 10833, 7, 834, 2026, 2720, 60, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 939, 13539, 7, 410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 10833, 7, 834, 2026, 2720, 60, 61, 21680, 953, 834, 2773, 18959, 1714, 834, 536, 549, 17444, 427, 774, 3274, 96, 6838, 18, 7681, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What date did home team Gold Coast Blaze play?
CREATE TABLE table_name_14 ( date VARCHAR, home_team VARCHAR )
SELECT date FROM table_name_14 WHERE home_team = "gold coast blaze"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 833, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 833, 410, 234, 372, 2540, 5458, 6942, 776, 577, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 234, 834, 11650, 3274, 96, 14910, 4939, 3, 21020, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
how many patients aged below 54 years had the discharge location rehab/distinct part hospital?
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 WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND demographic.age < "54"
[ 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, 159, 7993, 834, 14836, 3274, 96, 4386, 5478, 279, 87, 15438, 25424, 6227, 3, 19846, 3, 6299, ...
What is the origin for the launch taking place in 2010?
CREATE TABLE table_name_71 (origin VARCHAR, launch VARCHAR)
SELECT origin FROM table_name_71 WHERE launch = 2010
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4450, 41, 32, 3380, 77, 584, 4280, 28027, 6, 3289, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 5233, 21, 8, 3289, 838, 286, 16, 2735, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5233, 21680, 953, 834, 4350, 834, 4450, 549, 17444, 427, 3289, 3274, 2735, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What was the attendance of the game November 24
CREATE TABLE table_17280 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Location Attendance" FROM table_17280 WHERE "Date" = 'November 24'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 17518, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, 3, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 32, 75, 257, 22497, 663, 121, 21680, 953, 834, 2517, 17518, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 28635, 997, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Polish Cup has a Puchat Ligi larger than 0?
CREATE TABLE table_name_20 (polish_cup INTEGER, puchat_ligi INTEGER)
SELECT AVG(polish_cup) FROM table_name_20 WHERE puchat_ligi > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 15621, 107, 834, 4658, 3, 21342, 17966, 6, 4353, 16842, 834, 2825, 23, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 4073, 16073, 3802, 65, 3, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 15621, 107, 834, 4658, 61, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 4353, 16842, 834, 2825, 23, 2490, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the number of the dates of the tests taken with result 'Pass', and I want to list by the bars from high to low.
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 Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_description VARCHAR(255) ) CREATE TABLE Student_Tests_Taken ( registration_id INTEGER, date_test_taken DATETIME, test_result VARCHAR(255) ) CREATE TABLE Subjects ( subject_id INTEGER, subject_name VARCHAR(120) ) 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 Student_Course_Enrolment ( registration_id INTEGER, student_id INTEGER, course_id INTEGER, date_of_enrolment DATETIME, date_of_completion DATETIME )
SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" GROUP BY date_test_taken ORDER BY date_test_taken DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4375, 41, 1236, 834, 23, 26, 3, 21342, 17966, 6, 833, 834, 858, 834, 5200, 257, 309, 6048, 382, 15382, 6, 833, 834, 858, 834, 521, 4377, 834, 2152, 106, 309, 6048, 382, 15382, 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, 833, 834, 4377, 834, 4914, 29, 6, 2847, 17161, 599, 5522, 834, 4377, 834, 4914, 29, 61, 21680, 6341, 834, 382, 222, 7, 834, 29468, 29, 549, 17444, 427, 794, 834, 60, 7, 83, 17, 3274, 96, 20192, 121, 350, 4630, 6...
What is the score of the wigan athletic home team?
CREATE TABLE table_name_3 ( score VARCHAR, home_team VARCHAR )
SELECT score FROM table_name_3 WHERE home_team = "wigan athletic"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 2604, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2604, 13, 8, 3, 14143, 152, 12217, 234, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 519, 549, 17444, 427, 234, 834, 11650, 3274, 96, 14143, 152, 12217, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983?
CREATE TABLE table_27529 ( "June 10-11" text, "March 27-29" text, "January 15-16" text, "November 3" text, "August 21-22" text )
SELECT COUNT("August 21-22") FROM table_27529 WHERE "June 10-11" = 'June 11, 1983'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25988, 3166, 41, 96, 683, 444, 335, 9169, 121, 1499, 6, 96, 25019, 2307, 18, 3166, 121, 1499, 6, 96, 30404, 627, 10892, 121, 1499, 6, 96, 28635, 220, 121, 1499, 6, 96, 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, 2847, 17161, 599, 121, 26579, 1401, 16149, 8512, 21680, 953, 834, 25988, 3166, 549, 17444, 427, 96, 683, 444, 335, 9169, 121, 3274, 3, 31, 683, 444, 9694, 15041, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is ICAO, when IATA is "HKG"?
CREATE TABLE table_name_99 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_99 WHERE iata = "hkg"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 2617, 32, 584, 4280, 28027, 6, 3, 17221, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 3, 15038, 667, 6, 116, 27, 19282, 19, 96, 566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 2617, 32, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 3, 17221, 3274, 96, 107, 8711, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the location and attendance at the game where the final score is w 118-112?
CREATE TABLE table_17382360_9 ( location_attendance VARCHAR, score VARCHAR )
SELECT location_attendance FROM table_17382360_9 WHERE score = "W 118-112"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 3747, 357, 19208, 834, 1298, 41, 1128, 834, 15116, 663, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1128, 11, 11364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1128, 834, 15116, 663, 21680, 953, 834, 2517, 3747, 357, 19208, 834, 1298, 549, 17444, 427, 2604, 3274, 96, 518, 3, 20056, 9169, 357, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of price , and group by attribute name, show in desc by the y axis.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Price DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15248, 7, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 3642, 19973, 584, 4280, 28027, 599, 25502, 201, 3, 19145, 584, 4280, 28027, 599, 25502, 201, 19764, 17833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 332, 5411, 345, 4920, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 332, 441...
What was the result for incumbent Joseph McKenna who was first elected in 1884?
CREATE TABLE table_name_77 ( result VARCHAR, first_elected VARCHAR, incumbent VARCHAR )
SELECT result FROM table_name_77 WHERE first_elected = "1884" AND incumbent = "joseph mckenna"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4013, 41, 741, 584, 4280, 28027, 6, 166, 834, 19971, 584, 4280, 28027, 6, 28406, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 741, 21, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 21680, 953, 834, 4350, 834, 4013, 549, 17444, 427, 166, 834, 19971, 3274, 96, 25794, 20364, 3430, 28406, 3274, 96, 1927, 7, 15, 102, 107, 3, 51, 4695, 29, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, ...
What is Michael Stewart's school or club team?
CREATE TABLE table_name_93 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_93 WHERE player = "michael stewart"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 6646, 834, 13442, 834, 11650, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 2457, 16496, 31, 7, 496, 42, 1886,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 496, 834, 13442, 834, 11650, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 1959, 3274, 96, 51, 362, 9, 15, 40, 21786, 1408, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the location/attendance with a 26-11 record?
CREATE TABLE table_name_95 ( location_attendance VARCHAR, record VARCHAR )
SELECT location_attendance FROM table_name_95 WHERE record = "26-11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 1128, 834, 15116, 663, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1128, 87, 15116, 663, 28, 3, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 834, 15116, 663, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 1368, 3274, 96, 2688, 9169, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the retired time for someone who was on grid 18?
CREATE TABLE table_name_76 ( time_retired VARCHAR, grid VARCHAR )
SELECT time_retired FROM table_name_76 WHERE grid = "18"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3959, 41, 97, 834, 10682, 1271, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 10611, 97, 21, 841, 113, 47, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 97, 834, 10682, 1271, 21680, 953, 834, 4350, 834, 3959, 549, 17444, 427, 8634, 3274, 96, 2606, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the connection speed when launched on 07.06.2005?
CREATE TABLE table_22908 ( "Carrier" text, "Standard" text, "Frequency" text, "Connection speed" text, "Launch date (dd.mm.yyyy)" text )
SELECT "Connection speed" FROM table_22908 WHERE "Launch date (dd.mm.yyyy)" = '07.06.2005'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3166, 4018, 41, 96, 6936, 6711, 121, 1499, 6, 96, 134, 17, 232, 986, 121, 1499, 6, 96, 371, 60, 835, 11298, 121, 1499, 6, 96, 25772, 23, 106, 1634, 121, 1499, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 25772, 23, 106, 1634, 121, 21680, 953, 834, 357, 3166, 4018, 549, 17444, 427, 96, 3612, 202, 524, 833, 41, 26, 26, 5, 635, 5, 63, 63, 63, 63, 61, 121, 3274, 3, 31, 14681, 13821, 22594, 31, 1, -100, -100, -...
What is the main legion base that disbanded 70 xx?
CREATE TABLE table_242785_3 (main_legion_base VARCHAR, date_disband VARCHAR)
SELECT main_legion_base FROM table_242785_3 WHERE date_disband = "70 XX"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 2555, 4433, 834, 519, 41, 7484, 834, 8492, 106, 834, 10925, 584, 4280, 28027, 6, 833, 834, 26, 159, 3348, 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, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 711, 834, 8492, 106, 834, 10925, 21680, 953, 834, 2266, 2555, 4433, 834, 519, 549, 17444, 427, 833, 834, 26, 159, 3348, 3274, 96, 2518, 3, 4, 4, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the highest against score that drew more than 5, and had more than 18 points?
CREATE TABLE table_40993 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT MAX("Against") FROM table_40993 WHERE "Drawn" > '5' AND "Points" > '18'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 3264, 519, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 308, 10936, 29, 121, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 20749, 8512, 21680, 953, 834, 2445, 3264, 519, 549, 17444, 427, 96, 308, 10936, 29, 121, 2490, 3, 31, 755, 31, 3430, 96, 22512, 7, 121, 2490, 3, 31, 2606, 31, 1, -100, -100, -100, -100, -100, ...
what were the five drugs that were ordered the most frequently in this year?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 50, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 7690, 4350, 1499, 6, 50, 1999, 7, 83, 17, 381, 6, 50, 1999, 7, 83, 17, 715, 97, 3, 61, 3, 32102, 32103, 32102, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 5411, 26, 13534, 4350, 21680, 41, 23143, 14196, 7757, 5, 26, 13534, 4350, 6, 3, 22284, 4132, 834, 16375, 439, 9960, 3, 23288, 41, 2990, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 61, 6157, 3, ...
What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?
CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 28951, 3, 21342, 17966, 6, 2772, 584, 4280, 28027, 6, 2272, 834, 122, 9197, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 180, 6122, 599, 28951, 61, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 2772, 3274, 4848, 3072, 3430, 2272, 834, 122, 9197, 2490, 4848, 3072, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose age is less than 58 and drug route is neb?
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 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "58" AND prescriptions.route = "NEB"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What year did he compete in the car class and win 0 stages?
CREATE TABLE table_name_59 ( year VARCHAR, class VARCHAR, stages_won VARCHAR )
SELECT year FROM table_name_59 WHERE class = "car" AND stages_won = "0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 215, 584, 4280, 28027, 6, 853, 584, 4280, 28027, 6, 6518, 834, 210, 106, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 410, 3, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 215, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 853, 3274, 96, 1720, 121, 3430, 6518, 834, 210, 106, 3274, 96, 632, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the score of the game played on 16 August 2006?
CREATE TABLE table_74636 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Score" FROM table_74636 WHERE "Date" = '16 august 2006'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 4448, 3420, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 9022, 121, 21680, 953, 834, 940, 4448, 3420, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 2938, 14663, 3581, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
when patient 004-13672 was receiving a lab test for the last time?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time )
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-13672')) ORDER BY lab.labresulttime DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8209, 41, 8209, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 8209, 4350, 1499, 6, 8209, 715, 97, 6, 3, 447, 26, 1298, 4978, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7690, 5, 9339, 60, 7, 83, 17, 715, 21680, 7690, 549, 17444, 427, 7690, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 1587...
Compare the total salary by each hire date (bin it into the day of week interval) of employees using a bar chart.
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) )
SELECT HIRE_DATE, SUM(SALARY) FROM employees
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1652, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 30085, 834, 567, 17683, 3, 4331, 4059, 599, 1755, 201, 301, 12510, 834, 567, 17683, 3, 4331, 4059, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 180, 6122, 599, 134, 4090, 24721, 61, 21680, 1652, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the losses of the playoffs season?
CREATE TABLE table_41328 ( "Season" text, "Division" text, "Finish" text, "Wins" text, "Losses" text, "Pct." text )
SELECT "Losses" FROM table_41328 WHERE "Season" = 'playoffs'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4853, 28070, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 308, 23, 6610, 121, 1499, 6, 96, 371, 77, 1273, 121, 1499, 6, 96, 18455, 7, 121, 1499, 6, 96, 434, 13526, 7, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 13526, 7, 121, 21680, 953, 834, 4853, 28070, 549, 17444, 427, 96, 134, 15, 9, 739, 121, 3274, 3, 31, 4895, 1647, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Tell me the sum of laps with a time/retired of +13 laps with grid more than 18
CREATE TABLE table_10281 ( "Driver" text, "Constructor" text, "Laps" real, "Time/retired" text, "Grid" real )
SELECT SUM("Laps") FROM table_10281 WHERE "Time/retired" = '+13 laps' AND "Grid" > '18'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 14388, 4959, 41, 96, 20982, 52, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3612, 102, 7, 121, 490, 6, 96, 13368, 87, 10682, 1271, 121, 1499, 6, 96, 13313, 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, 180, 6122, 599, 121, 3612, 102, 7, 8512, 21680, 953, 834, 14388, 4959, 549, 17444, 427, 96, 13368, 87, 10682, 1271, 121, 3274, 3, 31, 1220, 2368, 14941, 7, 31, 3430, 96, 13313, 26, 121, 2490, 3, 31, 2606, 31, 1, ...
How many white ethnic background patients have atrial septal defect/mitral valve replacement repair atrial-septal defect/sda as their primary disease?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 15, 189, 2532, 485, 3274, 96, 15313, 14871, 121, 3430, 14798, 5, 25930, 4844, 159, 3274, 96, 188, ...
On what date was the match against the St. George Illawarra Dragons?
CREATE TABLE table_name_37 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_37 WHERE opponent = "st. george illawarra dragons"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 5522, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 461, 125, 833, 47, 8, 1588, 581, 8, 472, 5, 3080, 802, 4207, 101...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 15264, 3274, 96, 7, 17, 5, 873, 1677, 15, 3, 173, 4207, 10116, 14580, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the terrain for stage 10 of the tour?
CREATE TABLE table_name_69 (terrain VARCHAR, stage VARCHAR)
SELECT terrain FROM table_name_69 WHERE stage = "10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3951, 41, 12829, 77, 584, 4280, 28027, 6, 1726, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 7572, 21, 1726, 335, 13, 8, 1552, 58, 1, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7572, 21680, 953, 834, 4350, 834, 3951, 549, 17444, 427, 1726, 3274, 96, 1714, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who were the Opponents in the final that played on a carpet (i) Surface?
CREATE TABLE table_name_62 (opponents_in_the_final VARCHAR, surface VARCHAR)
SELECT opponents_in_the_final FROM table_name_62 WHERE surface = "carpet (i)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 32, 102, 9977, 7, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 6, 1774, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 130, 8, 4495, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16383, 834, 77, 834, 532, 834, 12406, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 1774, 3274, 96, 1720, 4995, 41, 23, 61, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List all restaurant types.
CREATE TABLE Restaurant_Type (ResTypeName VARCHAR)
SELECT ResTypeName FROM Restaurant_Type
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6233, 834, 25160, 41, 1649, 7, 25160, 23954, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 6792, 66, 2062, 1308, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7127, 25160, 23954, 21680, 6233, 834, 25160, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
count the number of patients whose admission year is less than 2190 and diagnoses short title is hx of bladder malignancy?
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 ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2190" AND diagnoses.short_title = "Hx of bladder malignancy"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
How many games had 22 points?
CREATE TABLE table_18018214_4 ( games_played VARCHAR, points VARCHAR )
SELECT COUNT(games_played) FROM table_18018214_4 WHERE points = 22
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20829, 2606, 27357, 834, 591, 41, 1031, 834, 4895, 15, 26, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1031, 141, 1630, 979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 7261, 7, 834, 4895, 15, 26, 61, 21680, 953, 834, 20829, 2606, 27357, 834, 591, 549, 17444, 427, 979, 3274, 1630, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
find out the long title of diagnosis for patient stephanie suchan.
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE 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 diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Stephanie Suchan"
[ 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, 18730, 7, 5, 2961, 834, 21869, 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, 549, 17444, 427, 14798, 5, 4350, 3274, 96, 14337...
For all employees in the same department and with the first name Clara, please give me a bar chart that bins hire date into the day of week interval, and count how many employees in each day, and could you sort in asc by the Y-axis?
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE DEPARTMENT_ID = (SELECT DEPARTMENT_ID FROM employees WHERE FIRST_NAME = "Clara") ORDER BY COUNT(HIRE_DATE)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1652, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 30085, 834, 567, 17683, 3, 4331, 4059, 599, 1755, 201, 301, 12510, 834, 567, 17683, 3, 4331, 4059, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 2847, 17161, 599, 566, 14132, 834, 308, 6048, 61, 21680, 1652, 549, 17444, 427, 3396, 19846, 11810, 834, 4309, 3274, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 1652, 549, 1744...
who is the last constructor ?
CREATE TABLE table_204_788 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number )
SELECT "constructor" FROM table_204_788 ORDER BY id DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 3940, 927, 41, 3, 23, 26, 381, 6, 96, 2748, 121, 1499, 6, 96, 29, 32, 121, 381, 6, 96, 13739, 52, 121, 1499, 6, 96, 15982, 5317, 121, 1499, 6, 96, 8478, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15982, 5317, 121, 21680, 953, 834, 26363, 834, 3940, 927, 4674, 11300, 272, 476, 3, 23, 26, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which Lead Pitch/mm has a Part Number of tsop24/28?
CREATE TABLE table_name_13 (lead_pitch_mm INTEGER, part_number VARCHAR)
SELECT MAX(lead_pitch_mm) FROM table_name_13 WHERE part_number = "tsop24/28"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 109, 9, 26, 834, 102, 7059, 834, 635, 3, 21342, 17966, 6, 294, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 12208, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 109, 9, 26, 834, 102, 7059, 834, 635, 61, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 294, 834, 5525, 1152, 3274, 96, 17, 7, 32, 102, 2266, 87, 2577, 121, 1, -100, -100, -100, -100, -100, -1...
What is the position of cfl team saskatchewan (7)?
CREATE TABLE table_29226 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT "Position" FROM table_29226 WHERE "CFL Team" = 'Saskatchewan (7)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 357, 2688, 41, 96, 345, 3142, 1713, 121, 490, 6, 96, 254, 10765, 2271, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 9939, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 345, 32, 7, 4749, 121, 21680, 953, 834, 3166, 357, 2688, 549, 17444, 427, 96, 254, 10765, 2271, 121, 3274, 3, 31, 134, 9, 7, 8682, 1033, 3877, 3, 24358, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the customer id and number of accounts with most accounts.
CREATE TABLE Accounts (customer_id VARCHAR)
SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6288, 7, 41, 25697, 49, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 3111, 8, 884, 3, 23, 26, 11, 381, 13, 3744, 28, 167, 3744, 5, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 884, 834, 23, 26, 6, 2847, 17161, 599, 1935, 61, 21680, 6288, 7, 350, 4630, 6880, 272, 476, 884, 834, 23, 26, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -...
When the face value is 42 , what was the issue's date?
CREATE TABLE table_15635768_1 ( date_of_issue VARCHAR, face_value VARCHAR )
SELECT date_of_issue FROM table_15635768_1 WHERE face_value = "42¢"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1808, 3891, 3436, 3651, 834, 536, 41, 833, 834, 858, 834, 13159, 584, 4280, 28027, 6, 522, 834, 12097, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 8, 522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 834, 858, 834, 13159, 21680, 953, 834, 1808, 3891, 3436, 3651, 834, 536, 549, 17444, 427, 522, 834, 12097, 3274, 96, 4165, 2, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is directed by when 'fade' is the title?
CREATE TABLE table_30650 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "U.S. air date" text, "Production code" text, "U.S. viewers (million)" text )
SELECT "Directed by" FROM table_30650 WHERE "Title" = 'Fade'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 15348, 41, 96, 4168, 535, 490, 6, 96, 4663, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965, 324, 57, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23620, 15, 26, 57, 121, 21680, 953, 834, 1458, 15348, 549, 17444, 427, 96, 382, 155, 109, 121, 3274, 3, 31, 371, 9, 221, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is Score, when Game is '19'?
CREATE TABLE table_name_11 ( score VARCHAR, game VARCHAR )
SELECT score FROM table_name_11 WHERE game = 19
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2596, 41, 2604, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 17763, 6, 116, 4435, 19, 3, 31, 2294, 31, 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, 2604, 21680, 953, 834, 4350, 834, 2596, 549, 17444, 427, 467, 3274, 957, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the lowest number of League Cups a player with a 434 league has?
CREATE TABLE table_name_34 (league INTEGER)
SELECT MIN(league) AS Cup FROM table_name_34 WHERE league = 434
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 29512, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 381, 13, 3815, 3802, 7, 3, 9, 1959, 28, 3, 9, 314, 3710, 5533, 65, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 29512, 61, 6157, 3802, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 5533, 3274, 314, 3710, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How long did the soap opera run in which Nadine Spruß acted in?
CREATE TABLE table_name_13 (character VARCHAR, actor VARCHAR)
SELECT character FROM table_name_13 WHERE actor = "nadine spruß"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 31886, 584, 4280, 28027, 6, 7556, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 307, 410, 8, 10758, 6329, 661, 16, 84, 1823, 26, 630, 3, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1848, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 7556, 3274, 96, 29, 9, 26, 630, 3, 7, 12129, 5202, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE?
CREATE TABLE table_14903627_1 ( mens_doubles VARCHAR, womens_doubles VARCHAR )
SELECT mens_doubles FROM table_14903627_1 WHERE womens_doubles = "Helen Reino Kai-Riin Saluste"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2534, 2394, 3420, 2555, 834, 536, 41, 1076, 7, 834, 25761, 7, 584, 4280, 28027, 6, 887, 7, 834, 25761, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 21665, 682...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1076, 7, 834, 25761, 7, 21680, 953, 834, 2534, 2394, 3420, 2555, 834, 536, 549, 17444, 427, 887, 7, 834, 25761, 7, 3274, 96, 3845, 40, 35, 14317, 32, 17654, 18, 448, 23, 77, 1138, 10008, 15, 121, 1, -100, -100, ...
What record has points less than 16, and detroit as the home?
CREATE TABLE table_name_13 ( record VARCHAR, points VARCHAR, home VARCHAR )
SELECT record FROM table_name_13 WHERE points < 16 AND home = "detroit"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 1368, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 1368, 65, 979, 705, 145, 11940, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1368, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 979, 3, 2, 898, 3430, 234, 3274, 96, 26, 15252, 155, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
when did patient 031-24513 receive for the first time a sputum, tracheal specimen microbiology test?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) AND microlab.culturesite = 'sputum, tracheal specimen' ORDER BY microlab.culturetakentime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2179, 9339, 41, 2179, 521, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1543, 3585, 1499, 6, 9329, 1499, 6, 1543, 4914, 29, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2179, 9339, 5, 10547, 4914, 29, 715, 21680, 2179, 9339, 549, 17444, 427, 2179, 9339, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5,...
Who had the highest total PR seats of 48 with a District seat larger than than 73?
CREATE TABLE table_31974 ( "Party" text, "PR seats" real, "District seats" real, "Total Elected 2001" text, "Total Seats" real )
SELECT MAX("Total Seats") FROM table_31974 WHERE "PR seats" = '48' AND "District seats" > '73'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 2294, 4581, 41, 96, 13725, 63, 121, 1499, 6, 96, 5554, 6116, 121, 490, 6, 96, 308, 23, 20066, 6116, 121, 490, 6, 96, 3696, 1947, 1289, 7633, 4402, 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, 4800, 4, 599, 121, 3696, 1947, 15915, 7, 8512, 21680, 953, 834, 519, 2294, 4581, 549, 17444, 427, 96, 5554, 6116, 121, 3274, 3, 31, 3707, 31, 3430, 96, 308, 23, 20066, 6116, 121, 2490, 3, 31, 4552, 31, 1, -100, ...
How many teams does Lee Sorochan play for?
CREATE TABLE table_29991 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT COUNT("College/junior/club team") FROM table_29991 WHERE "Player" = 'Lee Sorochan'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 19446, 536, 41, 96, 345, 3142, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 15743, 434, 372, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 9939, 7883, 87, 6959, 23, 127, 87, 13442, 372, 8512, 21680, 953, 834, 357, 19446, 536, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 2796, 15, 264, 11492, 152, 31, 1, -100, -100, -100, -...
what is the first track to have two performers ?
CREATE TABLE table_204_906 ( id number, "#" number, "title" text, "songwriters" text, "producer(s)" text, "performer" text )
SELECT "title" FROM table_204_906 WHERE "performer" = 2 ORDER BY "#" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 2394, 948, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 21869, 121, 1499, 6, 96, 21101, 7, 121, 1499, 6, 96, 1409, 4817, 49, 599, 7, 61, 121, 1499, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 21869, 121, 21680, 953, 834, 26363, 834, 2394, 948, 549, 17444, 427, 96, 883, 2032, 49, 121, 3274, 204, 4674, 11300, 272, 476, 96, 4663, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the name of product that is produced by both companies Creative Labs and Sony.
CREATE TABLE products ( name VARCHAR, Manufacturer VARCHAR ) CREATE TABLE manufacturers ( code VARCHAR, name VARCHAR )
SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 564, 584, 4280, 28027, 6, 15248, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 5360, 41, 1081, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 5360, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 4978, 549, 17444, 427, 332, 4416, 4350, 3274, 3, 31, 254, 60, 1528, 8100,...
How many catagories for denominations does Austria have?
CREATE TABLE table_28183 ( "Country" text, "Name of bullion coin" text, "Fineness" text, "Denominations (Gold weight)" text, "Years of mintage" text )
SELECT COUNT("Denominations (Gold weight)") FROM table_28183 WHERE "Country" = 'Austria'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 24361, 41, 96, 10628, 651, 121, 1499, 6, 96, 23954, 13, 8434, 23, 106, 7485, 121, 1499, 6, 96, 371, 630, 655, 121, 1499, 6, 96, 308, 35, 32, 14484, 7, 41, 23576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 308, 35, 32, 14484, 7, 41, 23576, 1293, 61, 8512, 21680, 953, 834, 2577, 24361, 549, 17444, 427, 96, 10628, 651, 121, 3274, 3, 31, 14934, 1788, 9, 31, 1, -100, -100, -100, -100, -100, -100, ...
Who has a reported age of 111 years, 66 days?
CREATE TABLE table_name_38 ( name VARCHAR, reported_age VARCHAR )
SELECT name FROM table_name_38 WHERE reported_age = "111 years, 66 days"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3747, 41, 564, 584, 4280, 28027, 6, 2196, 834, 545, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 65, 3, 9, 2196, 1246, 13, 3, 15866, 203, 6, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 3747, 549, 17444, 427, 2196, 834, 545, 3274, 96, 15866, 203, 6, 3, 3539, 477, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the winner and score of the tournament with semifinalists goran prpi sergi bruguera?
CREATE TABLE table_name_43 ( winner_and_score VARCHAR, semifinalists VARCHAR )
SELECT winner_and_score FROM table_name_43 WHERE semifinalists = "goran prpić sergi bruguera"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 4668, 834, 232, 834, 7, 9022, 584, 4280, 28027, 6, 4772, 28077, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 4668, 11, 2604, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 4668, 834, 232, 834, 7, 9022, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 4772, 28077, 3274, 96, 839, 2002, 4880, 102, 23, 2, 7637, 122, 23, 3, 9052, 19645, 9, 121, 1, -100, -100, -100, -100, -100, -100, -1...
What kind of surface was the Tournament at Sunderland played on?
CREATE TABLE table_name_32 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_32 WHERE tournament = "sunderland"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 26899, 584, 4280, 28027, 6, 5892, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 773, 13, 1774, 47, 8, 20502, 44, 3068, 221, 7721, 1944, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1774, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 5892, 3274, 96, 7, 7248, 40, 232, 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 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?
CREATE TABLE table_name_48 ( Id VARCHAR )
SELECT 2007 FROM table_name_48 WHERE 2006 = "4r" AND 2004 = "1r" AND 2009 = "4r"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3707, 41, 27, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4101, 701, 28, 3, 9, 314, 52, 16, 3581, 6, 3, 9, 209, 52, 16, 16931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4101, 21680, 953, 834, 4350, 834, 3707, 549, 17444, 427, 3581, 3274, 96, 591, 52, 121, 3430, 4406, 3274, 96, 536, 52, 121, 3430, 2464, 3274, 96, 591, 52, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many Atts that have Yards of 43 and a Long larger than 43?
CREATE TABLE table_name_65 (att INTEGER, yards VARCHAR, long VARCHAR)
SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4122, 41, 144, 17, 3, 21342, 17966, 6, 6460, 584, 4280, 28027, 6, 307, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 486, 17, 7, 24, 43, 16093, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 144, 17, 61, 21680, 953, 834, 4350, 834, 4122, 549, 17444, 427, 6460, 3274, 8838, 3430, 307, 2490, 8838, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the bronze with more than 2 gold and less than 14 total and 4 silver?
CREATE TABLE table_name_86 ( bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR )
SELECT AVG(bronze) FROM table_name_86 WHERE gold > 2 AND total < 14 AND silver = 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 13467, 3, 21342, 17966, 6, 4294, 584, 4280, 28027, 6, 2045, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 13711, 776, 61, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 2045, 2490, 204, 3430, 792, 3, 2, 968, 3430, 4294, 3274, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what's the winner with purse( $ ) value of bigger than 964017.2297960471 and date value of may 28
CREATE TABLE table_11621915_1 (winner VARCHAR, purse__$__ VARCHAR, date VARCHAR)
SELECT winner FROM table_11621915_1 WHERE purse__$__ > 964017.2297960471 AND date = "May 28"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20159, 357, 2294, 1808, 834, 536, 41, 3757, 687, 584, 4280, 28027, 6, 20717, 834, 834, 3229, 834, 834, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4668, 21680, 953, 834, 20159, 357, 2294, 1808, 834, 536, 549, 17444, 427, 20717, 834, 834, 3229, 834, 834, 2490, 668, 23714, 2517, 5, 2884, 4327, 27699, 4177, 536, 3430, 833, 3274, 96, 15881, 2059, 121, 1, -100, -100,...
find out the short title of both diagnoses and procedure for patient with patient id 23602.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "23602"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 18730, 7, 5, 7, 14184, 834, 21869, 6, 4293, 5, 7, 14184, 834, 21869, 21680, 18730, 7, 3388, 18206, 3, 15355, 3162, 4293, 9191, 18730, 7, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444...
what is the production where the parent company is ariel?
CREATE TABLE table_250309_1 (production__latest_figures_ VARCHAR, parent_company VARCHAR)
SELECT production__latest_figures_ FROM table_250309_1 WHERE parent_company = "Ariel"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11434, 1458, 1298, 834, 536, 41, 20762, 834, 834, 521, 4377, 834, 9178, 15, 7, 834, 584, 4280, 28027, 6, 4208, 834, 29179, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 999, 834, 834, 521, 4377, 834, 9178, 15, 7, 834, 21680, 953, 834, 11434, 1458, 1298, 834, 536, 549, 17444, 427, 4208, 834, 29179, 3274, 96, 188, 14018, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the highest number of viewers for the episode that has an 18-49 of 1.8/6?
CREATE TABLE table_50919 ( "Episode" text, "Air Date" text, "Timeslot" text, "18-49" text, "Viewers" real )
SELECT MAX("Viewers") FROM table_50919 WHERE "18-49" = '1.8/6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 1298, 2294, 41, 96, 427, 102, 159, 32, 221, 121, 1499, 6, 96, 20162, 7678, 121, 1499, 6, 96, 13368, 7, 3171, 121, 1499, 6, 96, 2606, 18, 3647, 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, 4800, 4, 599, 121, 15270, 277, 8512, 21680, 953, 834, 1752, 1298, 2294, 549, 17444, 427, 96, 2606, 18, 3647, 121, 3274, 3, 31, 16253, 18656, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What day is south melbourne the away side?
CREATE TABLE table_name_21 ( date VARCHAR, away_team VARCHAR )
SELECT date FROM table_name_21 WHERE away_team = "south melbourne"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 833, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 239, 19, 3414, 3, 2341, 26255, 8, 550, 596, 58,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 550, 834, 11650, 3274, 96, 7, 670, 107, 3, 2341, 26255, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of patients who have had a glucose - d50 performed since 2105.
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'glucose - d50' AND STRFTIME('%y', treatment.treatmenttime) >= '2105')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 50, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 7690, 4350, 1499, 6, 50, 1999, 7, 83, 17, 381, 6, 50, 1999, 7, 83, 17, 715, 97, 3, 61, 3, 32102, 32103, 32102, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 1868, 5, 202, 1495, 12417, 61, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1058, 5, 10061, 15129, 21545, 23, 26, 21680, 1058, 549, ...