NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
What is the total work number of Gowrie with a 0-6-4t type after 1908?
CREATE TABLE table_name_51 ( works_number VARCHAR, date VARCHAR, type VARCHAR, name VARCHAR )
SELECT COUNT(works_number) FROM table_name_51 WHERE type = "0-6-4t" AND name = "gowrie" AND date > 1908
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 930, 834, 5525, 1152, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 686, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 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, 2847, 17161, 599, 13631, 834, 5525, 1152, 61, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 686, 3274, 96, 9498, 25618, 17, 121, 3430, 564, 3274, 96, 839, 210, 1753, 121, 3430, 833, 2490, 957, 4018, 1, -100, -1...
What day did Bernhard Langer (2) win?
CREATE TABLE table_15346009_1 ( date VARCHAR, winner VARCHAR )
SELECT date FROM table_15346009_1 WHERE winner = "Bernhard Langer (2)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27025, 25991, 4198, 834, 536, 41, 833, 584, 4280, 28027, 6, 4668, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 239, 410, 8942, 5651, 7073, 49, 6499, 1369, 58,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 27025, 25991, 4198, 834, 536, 549, 17444, 427, 4668, 3274, 96, 279, 49, 29, 5651, 7073, 49, 6499, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
how many patients are diagnosed with hx of colonic malignancy and have iv route of drug administration?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Hx of colonic malignancy" AND prescriptions.route = "IV"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
How many were in attendance when they played vs. 12 Stanford?
CREATE TABLE table_name_57 (attendance VARCHAR, opponent_number VARCHAR)
SELECT attendance FROM table_name_57 WHERE opponent_number = "vs. 12 stanford"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3436, 41, 15116, 663, 584, 4280, 28027, 6, 15264, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 130, 16, 11364, 116, 79, 1944, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 11364, 21680, 953, 834, 4350, 834, 3436, 549, 17444, 427, 15264, 834, 5525, 1152, 3274, 96, 208, 7, 5, 586, 3, 5627, 2590, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
If the episode was number 234, what was it's timeslot?
CREATE TABLE table_2639433_4 ( timeslot VARCHAR, episodes VARCHAR )
SELECT timeslot FROM table_2639433_4 WHERE episodes = 234
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 3288, 4906, 519, 834, 591, 41, 648, 3171, 584, 4280, 28027, 6, 13562, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 156, 8, 5640, 47, 381, 1902, 8525, 125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 648, 3171, 21680, 953, 834, 2688, 3288, 4906, 519, 834, 591, 549, 17444, 427, 13562, 3274, 204, 3710, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the minimum enrollment for Plainfield?
CREATE TABLE table_23890 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment (2009)" real, "Founded" real )
SELECT MIN("Enrollment (2009)") FROM table_23890 WHERE "Location(s)" = 'Plainfield'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3747, 2394, 41, 96, 29364, 121, 1499, 6, 96, 434, 32, 75, 257, 599, 7, 61, 121, 1499, 6, 96, 25716, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 8532, 4046, 297, 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, 8532, 4046, 297, 3, 25812, 8512, 21680, 953, 834, 357, 3747, 2394, 549, 17444, 427, 96, 434, 32, 75, 257, 599, 7, 61, 121, 3274, 3, 31, 345, 521, 77, 1846, 31, 1, -100, -100, -100, -100, -100...
What is Injured, when Date is '09.15 Sep. 15'?
CREATE TABLE table_name_98 ( injured VARCHAR, date VARCHAR )
SELECT injured FROM table_name_98 WHERE date = "09.15 sep. 15"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 7532, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 86, 2047, 1271, 6, 116, 7678, 19, 3, 31, 12900, 1808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7532, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 833, 3274, 96, 12900, 1808, 142, 102, 5, 627, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the number of season for beluga shipping
CREATE TABLE table_3489 ( "No. in series" real, "No. in season" real, "Title" text, "Vessel Type" text, "Vessel Operator" text, "Narrated by" text, "Original air date" real )
SELECT COUNT("No. in season") FROM table_3489 WHERE "Vessel Operator" = 'Beluga Shipping'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3710, 3914, 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, 553, 19132, 6632, 121, 1499, 6, 96, 553, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 4168, 5, 16, 774, 8512, 21680, 953, 834, 3710, 3914, 549, 17444, 427, 96, 553, 19132, 25667, 121, 3274, 3, 31, 2703, 8076, 9, 13651, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What bonus points have 448 as the points against?
CREATE TABLE table_65625 ( "Club" text, "Total points" text, "Bonus points" text, "Match points" text, "Games" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Diff" text )
SELECT "Bonus points" FROM table_65625 WHERE "Points against" = '448'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4122, 948, 1828, 41, 96, 254, 11158, 121, 1499, 6, 96, 3696, 1947, 979, 121, 1499, 6, 96, 279, 106, 302, 979, 121, 1499, 6, 96, 329, 14547, 979, 121, 1499, 6, 96, 23055, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 279, 106, 302, 979, 121, 21680, 953, 834, 4122, 948, 1828, 549, 17444, 427, 96, 22512, 7, 581, 121, 3274, 3, 31, 591, 3707, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What rank did Best Friends receive?
CREATE TABLE table_name_90 ( rank VARCHAR, title VARCHAR )
SELECT rank FROM table_name_90 WHERE title = "best friends"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2394, 41, 11003, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 11003, 410, 1648, 9779, 911, 58, 1, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11003, 21680, 953, 834, 4350, 834, 2394, 549, 17444, 427, 2233, 3274, 96, 9606, 803, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the number of regular season for 2007
CREATE TABLE table_26192 ( "Year" real, "Division" real, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text )
SELECT COUNT("Regular Season") FROM table_26192 WHERE "Year" = '2007'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 19978, 41, 96, 476, 2741, 121, 490, 6, 96, 308, 23, 6610, 121, 490, 6, 96, 2796, 9, 5398, 121, 1499, 6, 96, 17748, 4885, 7960, 121, 1499, 6, 96, 15800, 1647, 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, 2847, 17161, 599, 121, 17748, 4885, 7960, 8512, 21680, 953, 834, 2688, 19978, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 20615, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the Wins with a Top-25 of 3, and a Top-5 larger than 1?
CREATE TABLE table_name_86 (wins INTEGER, top_25 VARCHAR, top_5 VARCHAR)
SELECT AVG(wins) FROM table_name_86 WHERE top_25 = 3 AND top_5 > 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 3757, 7, 3, 21342, 17966, 6, 420, 834, 1828, 584, 4280, 28027, 6, 420, 834, 755, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4871,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 3757, 7, 61, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 420, 834, 1828, 3274, 220, 3430, 420, 834, 755, 2490, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?
CREATE TABLE table_name_25 ( category VARCHAR, title VARCHAR, year VARCHAR, result VARCHAR )
SELECT category FROM table_name_25 WHERE year < 2006 AND result = "nominated" AND title = "cold feet"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 3295, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 17459, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3295, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 215, 3, 2, 3581, 3430, 741, 3274, 96, 3114, 77, 920, 121, 3430, 2233, 3274, 96, 3297, 26, 1922, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
In which round was Barbara Hawcroft the loser?
CREATE TABLE table_name_84 (round VARCHAR, loser VARCHAR)
SELECT round FROM table_name_84 WHERE loser = "barbara hawcroft"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 7775, 584, 4280, 28027, 6, 2615, 52, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 86, 84, 1751, 47, 13163, 1626, 210, 30750, 8, 2615, 52, 58, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1751, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 2615, 52, 3274, 96, 1047, 1047, 9, 4244, 210, 30750, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)?
CREATE TABLE table_name_84 (senior_list VARCHAR, date_of_birth__age_when_delisted_ VARCHAR)
SELECT senior_list FROM table_name_84 WHERE date_of_birth__age_when_delisted_ = "5 june 1984 (aged 23)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 7, 35, 23, 127, 834, 3350, 584, 4280, 28027, 6, 833, 834, 858, 834, 20663, 834, 834, 545, 834, 15832, 834, 221, 19279, 834, 584, 4280, 28027, 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, 2991, 834, 3350, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 833, 834, 858, 834, 20663, 834, 834, 545, 834, 15832, 834, 221, 19279, 834, 3274, 96, 755, 3, 6959, 15, 13480, 41, 11438, 1902, 61, 121, 1, -100, ...
Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes?
CREATE TABLE table_name_93 (title VARCHAR, director VARCHAR, dance_partner VARCHAR, lyrics VARCHAR)
SELECT title FROM table_name_93 WHERE dance_partner = "adele astaire" AND lyrics = "ira gershwin" AND director = "felix edwardes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 21869, 584, 4280, 28027, 6, 2090, 584, 4280, 28027, 6, 2595, 834, 12300, 584, 4280, 28027, 6, 13475, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2233, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 2595, 834, 12300, 3274, 96, 15311, 15, 38, 5785, 121, 3430, 13475, 3274, 96, 23, 52, 9, 3, 1304, 7, 107, 3757, 121, 3430, 2090, 3274, 96, 4025, 2407, 3, 15,...
What was the theme when the original artist was The Beatles?
CREATE TABLE table_15796072_1 (theme VARCHAR, original_artist VARCHAR)
SELECT theme FROM table_15796072_1 WHERE original_artist = "The Beatles"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27452, 27699, 5865, 834, 536, 41, 532, 526, 584, 4280, 28027, 6, 926, 834, 1408, 343, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 3800, 116, 8, 926, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3800, 21680, 953, 834, 27452, 27699, 5865, 834, 536, 549, 17444, 427, 926, 834, 1408, 343, 3274, 96, 634, 27615, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
where was the tournament before the 1982 tournament in philadelphia held ?
CREATE TABLE table_204_638 ( id number, "year" number, "tournament" text, "surface" text, "round" text, "winner" text, "score" text )
SELECT "tournament" FROM table_204_638 WHERE id = (SELECT id FROM table_204_638 WHERE "year" = 1982 AND "tournament" = 'philadelphia') + 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 948, 3747, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 381, 6, 96, 17, 1211, 20205, 17, 121, 1499, 6, 96, 26899, 121, 1499, 6, 96, 7775, 121, 1499, 6, 96, 3757, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17, 1211, 20205, 17, 121, 21680, 953, 834, 26363, 834, 948, 3747, 549, 17444, 427, 3, 23, 26, 3274, 41, 23143, 14196, 3, 23, 26, 21680, 953, 834, 26363, 834, 948, 3747, 549, 17444, 427, 96, 1201, 121, 3274, 14...
What's the original air date of the episode with production code 2T6719?
CREATE TABLE table_12159115_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_12159115_2 WHERE production_code = "2T6719"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22011, 3390, 15660, 834, 357, 41, 21878, 834, 2256, 834, 5522, 584, 4280, 28027, 6, 999, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 926, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 926, 834, 2256, 834, 5522, 21680, 953, 834, 22011, 3390, 15660, 834, 357, 549, 17444, 427, 999, 834, 4978, 3274, 96, 357, 382, 3708, 2294, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of phone_number and commission_pct , I want to show by the x axis from low to high.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT PHONE_NUMBER, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 8023, 7894, 834, 567, 6122, 12920, 6, 3, 6657, 329, 16994, 9215, 834, 4051, 382, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 10521,...
Which surfaces have the final score of 6 1, 6 7 (2 7) , 7 6 (7 5) , 7 6 (10 8)?
CREATE TABLE table_25407 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text )
SELECT "Surface" FROM table_25407 WHERE "Score in the final" = '6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 2445, 940, 41, 96, 15767, 287, 15, 121, 1499, 6, 96, 476, 2741, 121, 490, 6, 96, 254, 1483, 12364, 2009, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 667, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 450, 4861, 121, 21680, 953, 834, 1828, 2445, 940, 549, 17444, 427, 96, 134, 9022, 16, 8, 804, 121, 3274, 3, 31, 948, 104, 4347, 431, 104, 940, 4743, 104, 12703, 3, 6, 489, 104, 948, 13649, 104, 9120, 3,...
Who was the senior US senator in the state whose governor was D. Patrick?
CREATE TABLE table_21531764_2 ( senior_us_senator VARCHAR, governor VARCHAR )
SELECT senior_us_senator FROM table_21531764_2 WHERE governor = "D. Patrick"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 4867, 2517, 4389, 834, 357, 41, 2991, 834, 302, 834, 7, 35, 1016, 584, 4280, 28027, 6, 13062, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2991, 834, 302, 834, 7, 35, 1016, 21680, 953, 834, 2658, 4867, 2517, 4389, 834, 357, 549, 17444, 427, 13062, 3274, 96, 308, 5, 8643, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which Points have a Record of 12 2 4 1, and a November larger than 22?
CREATE TABLE table_36294 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT AVG("Points") FROM table_36294 WHERE "Record" = '12–2–4–1' AND "November" > '22'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3420, 357, 4240, 41, 96, 23055, 121, 490, 6, 96, 28635, 121, 490, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22512, 7, 8512, 21680, 953, 834, 3420, 357, 4240, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 2122, 104, 357, 104, 591, 104, 536, 31, 3430, 96, 28635, 121, 2490, 3, 31, 2884, 31, 1, -...
Name the least episode for fibre cement siding
CREATE TABLE table_19918 ( "Series Ep." text, "Episode" real, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text )
SELECT MIN("Episode") FROM table_19918 WHERE "Segment D" = 'Fibre Cement Siding'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19479, 2606, 41, 96, 12106, 7, 10395, 535, 1499, 6, 96, 427, 102, 159, 32, 221, 121, 490, 6, 96, 134, 15, 122, 297, 71, 121, 1499, 6, 96, 134, 15, 122, 297, 272, 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, 3, 17684, 599, 121, 427, 102, 159, 32, 221, 8512, 21680, 953, 834, 19479, 2606, 549, 17444, 427, 96, 134, 15, 122, 297, 309, 121, 3274, 3, 31, 3183, 1999, 205, 1194, 180, 12469, 31, 1, -100, -100, -100, -100, -100...
What was the loss of the game against the Indians when the record was 15-15?
CREATE TABLE table_67070 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT "Loss" FROM table_67070 WHERE "Opponent" = 'indians' AND "Record" = '15-15'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 632, 2518, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 188, 17, 324, 26,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 32, 7, 7, 121, 21680, 953, 834, 3708, 632, 2518, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 8482, 3247, 31, 3430, 96, 1649, 7621, 121, 3274, 3, 31, 1808, 10106, 31, 1, -100, -100, -100, -100...
how many patients whose days of hospital stay is greater than 14 and item id is 51200?
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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "14" AND lab.itemid = "51200"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
what is the filter when the wavelength is 222mm (k-band)?
CREATE TABLE table_28143 ( "Camera" text, "Filter" text, "Wavelength" text, "Total exposure time" text, "Exposures" real )
SELECT "Filter" FROM table_28143 WHERE "Wavelength" = '222mm (K-band)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 25133, 41, 96, 254, 9, 935, 9, 121, 1499, 6, 96, 371, 173, 449, 121, 1499, 6, 96, 518, 9, 162, 19457, 121, 1499, 6, 96, 3696, 1947, 4773, 97, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 371, 173, 449, 121, 21680, 953, 834, 2577, 25133, 549, 17444, 427, 96, 518, 9, 162, 19457, 121, 3274, 3, 31, 26144, 635, 41, 439, 18, 3348, 61, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the sum of employee_id , and group by attribute job_id.
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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) 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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) )
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID
[ 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, 446, 10539, 834, 4309, 6, 180, 6122, 599, 6037, 345, 5017, 476, 5080, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 454, 14132, 834, 308, 6048, 3, 2, 3, 31, 24898, 18, 5176, 16539, 31, 350, 4630, 6880, 272, 476, 44...
Show the number of male and female assistant professors with a pie chart.
CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER ) CREATE TABLE Activity ( actid INTEGER, activity_name varchar(25) ) CREATE TABLE Participates_in ( stuid INTEGER, actid INTEGER ) CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) )
SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6341, 41, 3, 13076, 4309, 3, 21342, 17966, 6, 301, 23954, 584, 4280, 28027, 599, 2122, 201, 377, 4350, 584, 4280, 28027, 599, 2122, 201, 7526, 3, 21342, 17966, 6, 679, 226, 584, 4280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 679, 226, 6, 2847, 17161, 599, 1935, 61, 21680, 16896, 549, 17444, 427, 3, 22557, 3274, 96, 188, 7, 7, 17, 23057, 121, 350, 4630, 6880, 272, 476, 679, 226, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the count and code of the job has most employees.
CREATE TABLE department ( dept_code text, dept_name text, school_code text, emp_num number, dept_address text, dept_extension text ) CREATE TABLE enroll ( class_code text, stu_num number, enroll_grade text ) CREATE TABLE professor ( emp_num number, dept_code text, prof_office text, prof_extension text, prof_high_degree text ) CREATE TABLE employee ( emp_num number, emp_lname text, emp_fname text, emp_initial text, emp_jobcode text, emp_hiredate time, emp_dob time ) CREATE TABLE class ( class_code text, crs_code text, class_section text, class_time text, class_room text, prof_num number ) CREATE TABLE student ( stu_num number, stu_lname text, stu_fname text, stu_init text, stu_dob time, stu_hrs number, stu_class text, stu_gpa number, stu_transfer number, dept_code text, stu_phone text, prof_num number ) CREATE TABLE course ( crs_code text, dept_code text, crs_description text, crs_credit number )
SELECT emp_jobcode, COUNT(*) FROM employee GROUP BY emp_jobcode ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3066, 41, 20, 102, 17, 834, 4978, 1499, 6, 20, 102, 17, 834, 4350, 1499, 6, 496, 834, 4978, 1499, 6, 8943, 834, 5525, 381, 6, 20, 102, 17, 834, 9, 26, 12039, 1499, 6, 20, 102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 8943, 834, 16899, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 3490, 350, 4630, 6880, 272, 476, 8943, 834, 16899, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -1...
count the number of patients whose ethnicity is white - russian and days of hospital stay is greater than 43?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.days_stay > "43"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 15, 189, 2532, 485, 3274, 96, 15313, 14871, 3, 18, 3, 8503, 4256, 21758, 121, 3430, 14798, 5, 11...
What is the highest number of wins of the team with a position less than 1?
CREATE TABLE table_39948 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real )
SELECT MAX("Wins") FROM table_39948 WHERE "Position" < '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3264, 3707, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 254, 11158, 121, 1499, 6, 96, 23055, 7, 1944, 121, 490, 6, 96, 18455, 7, 121, 490, 6, 96, 308, 10936, 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, 4800, 4, 599, 121, 18455, 7, 8512, 21680, 953, 834, 519, 3264, 3707, 549, 17444, 427, 96, 345, 32, 7, 4749, 121, 3, 2, 3, 31, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many items appear in the written by column in episode 3?
CREATE TABLE table_27155243_4 (written_by VARCHAR, episode__number VARCHAR)
SELECT COUNT(written_by) FROM table_27155243_4 WHERE episode__number = 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 20896, 27730, 834, 591, 41, 14973, 834, 969, 584, 4280, 28027, 6, 5640, 834, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1173, 2385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 14973, 834, 969, 61, 21680, 953, 834, 2555, 20896, 27730, 834, 591, 549, 17444, 427, 5640, 834, 834, 5525, 1152, 3274, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When was the Super B capacity reached when the number of truck loads north was 7735?
CREATE TABLE table_12791809_1 ( super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR, number_of_truck_loads_north VARCHAR )
SELECT super_b_capacity_reached_ AS "_citation_needed_" FROM table_12791809_1 WHERE number_of_truck_loads_north = 7735
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4440, 2606, 4198, 834, 536, 41, 1355, 834, 115, 834, 4010, 9, 6726, 834, 864, 4513, 834, 584, 4280, 28027, 6, 3, 834, 13903, 834, 25797, 834, 584, 4280, 28027, 6, 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, 1355, 834, 115, 834, 4010, 9, 6726, 834, 864, 4513, 834, 6157, 96, 834, 13903, 834, 25797, 834, 121, 21680, 953, 834, 2122, 4440, 2606, 4198, 834, 536, 549, 17444, 427, 381, 834, 858, 834, 28105, 834, 7134, 7, 834, ...
which television show was gauri in for the longest amount of time ?
CREATE TABLE table_203_485 ( id number, "year" text, "show" text, "role" text, "notes" text )
SELECT "show" FROM table_203_485 ORDER BY "year" - "year" DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 591, 4433, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 1499, 6, 96, 10049, 121, 1499, 6, 96, 3491, 15, 121, 1499, 6, 96, 7977, 7, 121, 1499, 3, 61, 3, 32102, 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, 96, 10049, 121, 21680, 953, 834, 23330, 834, 591, 4433, 4674, 11300, 272, 476, 96, 1201, 121, 3, 18, 96, 1201, 121, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Date of the 1999 fifa confederations cup?
CREATE TABLE table_40346 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Date" FROM table_40346 WHERE "Competition" = '1999 fifa confederations cup'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 519, 4448, 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, 308, 342, 121, 21680, 953, 834, 2445, 519, 4448, 549, 17444, 427, 96, 5890, 4995, 4749, 121, 3274, 3, 31, 2294, 3264, 361, 89, 9, 975, 16812, 1628, 4119, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the gender for elsthorpe school
CREATE TABLE table_name_63 ( gender VARCHAR, name VARCHAR )
SELECT gender FROM table_name_63 WHERE name = "elsthorpe school"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 7285, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 7285, 21, 3, 3573, 189, 127, 855, 496, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7285, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 564, 3274, 96, 3573, 189, 127, 855, 496, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many students are in each department Plot them as bar chart, and show by the total number from low to high please.
CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) )
SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY COUNT(*)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 503, 41, 503, 834, 23, 26, 3, 4331, 4059, 28007, 6, 2233, 3, 4331, 4059, 599, 1752, 201, 20, 102, 17, 834, 4350, 3, 4331, 4059, 599, 1755, 201, 11893, 206, 17552, 599, 4482, 632, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 20, 102, 17, 834, 4350, 6, 2847, 17161, 599, 1935, 61, 21680, 1236, 350, 4630, 6880, 272, 476, 20, 102, 17, 834, 4350, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 1, -100, -100, -100, -100, -100, -100, -100, ...
what's the permanence of the body where purity is rudra
CREATE TABLE table_72203 ( "Acquisition" text, "knowledge" text, "penance" text, "permanence of the body" text, "constancy" text, "purity" text )
SELECT "permanence of the body" FROM table_72203 WHERE "purity" = 'Rudra'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5865, 23330, 41, 96, 188, 75, 1169, 7, 4749, 121, 1499, 6, 96, 20542, 13553, 121, 1499, 6, 96, 3208, 663, 121, 1499, 6, 96, 883, 348, 1433, 13, 8, 643, 121, 1499, 6, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 883, 348, 1433, 13, 8, 643, 121, 21680, 953, 834, 5865, 23330, 549, 17444, 427, 96, 3791, 485, 121, 3274, 3, 31, 17137, 3515, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average week number of all the matches where less than 22,604 people attended?
CREATE TABLE table_name_75 ( week INTEGER, attendance INTEGER )
SELECT AVG(week) FROM table_name_75 WHERE attendance < 22 OFFSET 604
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3072, 41, 471, 3, 21342, 17966, 6, 11364, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 471, 381, 13, 66, 8, 6407, 213, 705, 145, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 8041, 61, 21680, 953, 834, 4350, 834, 3072, 549, 17444, 427, 11364, 3, 2, 1630, 3, 15316, 20788, 1640, 591, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Return a trend line to show the average amount of payment by each payment day.
CREATE TABLE Claims ( Claim_ID INTEGER, Policy_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER ) CREATE TABLE Customers ( Customer_ID INTEGER, Customer_Details VARCHAR(255) ) CREATE TABLE Payments ( Payment_ID INTEGER, Settlement_ID INTEGER, Payment_Method_Code VARCHAR(255), Date_Payment_Made DATE, Amount_Payment INTEGER ) CREATE TABLE Customer_Policies ( Policy_ID INTEGER, Customer_ID INTEGER, Policy_Type_Code CHAR(15), Start_Date DATE, End_Date DATE ) CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER, Customer_Policy_ID INTEGER )
SELECT Date_Payment_Made, AVG(Amount_Payment) FROM Payments GROUP BY Date_Payment_Made ORDER BY Date_Payment_Made
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4779, 8345, 41, 7781, 603, 834, 4309, 3, 21342, 17966, 6, 7587, 834, 4309, 3, 21342, 17966, 6, 7678, 834, 254, 521, 603, 834, 329, 9, 221, 309, 6048, 6, 7678, 834, 254, 521, 603, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7678, 834, 19702, 297, 834, 329, 9, 221, 6, 71, 17217, 599, 188, 11231, 834, 19702, 297, 61, 21680, 12248, 7, 350, 4630, 6880, 272, 476, 7678, 834, 19702, 297, 834, 329, 9, 221, 4674, 11300, 272, 476, 7678, 834, 1...
What is in 2002 has a 2001 score 1 0, and a 2000 of 3 0?
CREATE TABLE table_name_85 ( Id VARCHAR )
SELECT 2002 FROM table_name_85 WHERE 2001 = "1–0" AND 2000 = "3–0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 27, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 16, 4407, 65, 3, 9, 4402, 2604, 209, 8014, 11, 3, 9, 2766, 13, 220, 3, 632...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4407, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 4402, 3274, 96, 536, 104, 632, 121, 3430, 2766, 3274, 96, 519, 104, 632, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is 2004, when 2009 is 'A'?
CREATE TABLE table_44849 ( "Tournament" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text )
SELECT "2004" FROM table_44849 WHERE "2009" = 'a'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 3707, 3647, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 21653, 121, 1499, 6, 96, 22594, 121, 1499, 6, 96, 21196, 121, 1499, 6, 96, 20615, 121, 1499, 6, 96, 16128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21653, 121, 21680, 953, 834, 591, 3707, 3647, 549, 17444, 427, 96, 16660, 121, 3274, 3, 31, 9, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday.
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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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) )
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 3396, 19846, 11810, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3396, 19846, 11810, 834, 567, 17683, 3, 4331, 4059, 599, 1458, 201, 283, 15610, 17966, 834, 4309, 7908, 1982, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 71, 17217, 599, 6037, 345, 5017, 476, 5080, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, ...
What is the lowest first elected?
CREATE TABLE table_18108 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT MIN("First elected") FROM table_18108
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 16169, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 7, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 25171, 8160, 8512, 21680, 953, 834, 2606, 16169, 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, -10...
What is the 3-dart average where the 140+ is 75?
CREATE TABLE table_30079 ( "Player" text, "Played" real, "Legs Won" real, "Legs Lost" real, "100+" real, "140+" real, "180s" real, "High Checkout" real, "3-dart Average" text )
SELECT "3-dart Average" FROM table_30079 WHERE "140+" = '75'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5426, 4440, 41, 96, 15800, 49, 121, 1499, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 2796, 122, 7, 549, 106, 121, 490, 6, 96, 2796, 122, 7, 19576, 121, 490, 6, 96, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 519, 18, 26, 1408, 23836, 121, 21680, 953, 834, 5426, 4440, 549, 17444, 427, 96, 22012, 1220, 121, 3274, 3, 31, 3072, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What nation did the speed skater that set a record in the 1000 metres event represent?
CREATE TABLE table_name_23 (nation VARCHAR, event VARCHAR)
SELECT nation FROM table_name_23 WHERE event = "1000 metres"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 29, 257, 584, 4280, 28027, 6, 605, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 2982, 410, 8, 1634, 16573, 52, 24, 356, 3, 9, 1368, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2982, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 605, 3274, 96, 16824, 14604, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Return the names of all counties sorted by population in ascending order.
CREATE TABLE county ( County_name VARCHAR, Population VARCHAR )
SELECT County_name FROM county ORDER BY Population
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5435, 41, 1334, 834, 4350, 584, 4280, 28027, 6, 29659, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 9778, 8, 3056, 13, 66, 16227, 3, 14504, 57, 2074, 16, 25200, 53, 455, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1334, 834, 4350, 21680, 5435, 4674, 11300, 272, 476, 29659, 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, ...
Who proceeded to the quarter finals with a points margin of 21?
CREATE TABLE table_30161 ( "Proceed to Quarter-final" text, "Match points" text, "Aggregate score" text, "Points margin" real, "Eliminated from competition" text )
SELECT "Proceed to Quarter-final" FROM table_30161 WHERE "Points margin" = '21'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25626, 4241, 41, 96, 3174, 75, 6958, 12, 17610, 18, 12406, 121, 1499, 6, 96, 329, 14547, 979, 121, 1499, 6, 96, 188, 122, 18301, 342, 2604, 121, 1499, 6, 96, 22512, 7, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3174, 75, 6958, 12, 17610, 18, 12406, 121, 21680, 953, 834, 25626, 4241, 549, 17444, 427, 96, 22512, 7, 6346, 121, 3274, 3, 31, 2658, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?
CREATE TABLE table_name_25 (gold INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT SUM(gold) FROM table_name_25 WHERE rank > 6 AND nation = "netherlands" AND bronze < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 14910, 3, 21342, 17966, 6, 13467, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 2540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14910, 61, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 11003, 2490, 431, 3430, 2982, 3274, 96, 29, 16764, 6347, 121, 3430, 13467, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -10...
Which BR number has an LMS number over 14768?
CREATE TABLE table_name_5 ( br_number VARCHAR, lms_number INTEGER )
SELECT br_number FROM table_name_5 WHERE lms_number > 14768
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 6397, 834, 5525, 1152, 584, 4280, 28027, 6, 3, 40, 51, 7, 834, 5525, 1152, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 3, 6934, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6397, 834, 5525, 1152, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 3, 40, 51, 7, 834, 5525, 1152, 2490, 3, 24719, 3651, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What name is for the period 1945-1949 & 1953-1954 1949-1952?
CREATE TABLE table_8441 ( "Name" text, "Country" text, "Role" text, "Period" text, "Teams" text )
SELECT "Name" FROM table_8441 WHERE "Period" = '1945-1949 & 1953-1954 1949-1952'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4608, 4853, 41, 96, 23954, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 448, 32, 109, 121, 1499, 6, 96, 12988, 23, 32, 26, 121, 1499, 6, 96, 18699, 7, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 23954, 121, 21680, 953, 834, 4608, 4853, 549, 17444, 427, 96, 12988, 23, 32, 26, 121, 3274, 3, 31, 2294, 2128, 4481, 3647, 3, 184, 23726, 4481, 5062, 24319, 4481, 5373, 31, 1, -100, -100, -100, -100, -100, -100,...
Which DRG number has xxx railway number?
CREATE TABLE table_64811 ( "Class" text, "Railway number(s)" text, "DRG number(s)" text, "Quantity" real, "Year(s) of manufacture" text, "Axle arrangement ( UIC ) Bauart" text )
SELECT "DRG number(s)" FROM table_64811 WHERE "Railway number(s)" = 'xxx'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 3707, 2596, 41, 96, 21486, 121, 1499, 6, 96, 448, 9, 173, 1343, 381, 599, 7, 61, 121, 1499, 6, 96, 3913, 517, 381, 599, 7, 61, 121, 1499, 6, 96, 5991, 288, 485, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3913, 517, 381, 599, 7, 61, 121, 21680, 953, 834, 948, 3707, 2596, 549, 17444, 427, 96, 448, 9, 173, 1343, 381, 599, 7, 61, 121, 3274, 3, 31, 226, 19230, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100...
what's the singles w-l for kim doo-hwan
CREATE TABLE table_10023387_1 (singles_w_l VARCHAR, player VARCHAR)
SELECT singles_w_l FROM table_10023387_1 WHERE player = "Kim Doo-Hwan"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2915, 20879, 4225, 834, 536, 41, 7, 53, 965, 834, 210, 834, 40, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 31, 7, 8, 712, 7, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 712, 7, 834, 210, 834, 40, 21680, 953, 834, 2915, 20879, 4225, 834, 536, 549, 17444, 427, 1959, 3274, 96, 439, 603, 531, 32, 18, 566, 3877, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the position of the player from Saskatchewan Roughriders?
CREATE TABLE table_23619005_3 (position VARCHAR, cfl_team VARCHAR)
SELECT position FROM table_23619005_3 WHERE cfl_team = "Saskatchewan Roughriders"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3420, 11776, 3076, 834, 519, 41, 4718, 584, 4280, 28027, 6, 3, 75, 89, 40, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1102, 13, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 357, 3420, 11776, 3076, 834, 519, 549, 17444, 427, 3, 75, 89, 40, 834, 11650, 3274, 96, 134, 9, 7, 8682, 1033, 3877, 391, 4607, 4055, 277, 121, 1, -100, -100, -100, -100, -100, -100, -100, -...
What is the enrollment for the school in bottineau?
CREATE TABLE table_2326 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Enrollment (fall 2010)" real, "Founded" real, "Accreditation" text )
SELECT "Enrollment (fall 2010)" FROM table_2326 WHERE "Location(s)" = 'Bottineau'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 2688, 41, 96, 29364, 121, 1499, 6, 96, 434, 32, 75, 257, 599, 7, 61, 121, 1499, 6, 96, 25716, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 8532, 4046, 297, 41, 2857...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8532, 4046, 297, 41, 2857, 2735, 61, 121, 21680, 953, 834, 2773, 2688, 549, 17444, 427, 96, 434, 32, 75, 257, 599, 7, 61, 121, 3274, 3, 31, 26465, 4070, 402, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
How many die sizes have a texture of exactly 34?
CREATE TABLE table_28268 ( "Model" text, "Launch" text, "Code name" text, "Transistors (million)" real, "Die size (mm 2 )" real, "Bus interface" text, "Memory ( MB )" text, "SM count" real, "Core config 1,3" text, "Core ( MHz )" real, "Shader ( MHz )" real, "Memory ( MHz )" text, "Pixel ( GP /s)" text, "Texture ( GT /s)" text, "Bandwidth ( GB /s)" text, "DRAM type" text, "Bus width ( bit )" real, "GFLOPS (FMA) 2" text, "TDP (watts)" real, "Release price (USD)" text )
SELECT COUNT("Die size (mm 2 )") FROM table_28268 WHERE "Texture ( GT /s)" = '34'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 357, 3651, 41, 96, 24663, 121, 1499, 6, 96, 3612, 202, 524, 121, 1499, 6, 96, 22737, 564, 121, 1499, 6, 96, 18474, 159, 5535, 41, 17030, 61, 121, 490, 6, 96, 8639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8639, 812, 41, 635, 204, 3, 61, 8512, 21680, 953, 834, 2577, 357, 3651, 549, 17444, 427, 96, 13598, 2693, 41, 10188, 3, 87, 7, 61, 121, 3274, 3, 31, 3710, 31, 1, -100, -100, -100, -100, -1...
in what year did stephen henrdy win his first title ?
CREATE TABLE table_204_399 ( id number, "outcome" text, "no." number, "year" number, "championship" text, "opponent in the final" text, "score" text )
SELECT "year" FROM table_204_399 WHERE "outcome" = 'winner' ORDER BY "year" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 519, 3264, 41, 3, 23, 26, 381, 6, 96, 670, 287, 15, 121, 1499, 6, 96, 29, 32, 535, 381, 6, 96, 1201, 121, 381, 6, 96, 17788, 12364, 2009, 121, 1499, 6, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1201, 121, 21680, 953, 834, 26363, 834, 519, 3264, 549, 17444, 427, 96, 670, 287, 15, 121, 3274, 3, 31, 3757, 687, 31, 4674, 11300, 272, 476, 96, 1201, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -...
Which opponent has a game larger than 61, february smaller than 28, and fewer points than 69?
CREATE TABLE table_name_73 ( opponent VARCHAR, points VARCHAR, game VARCHAR, february VARCHAR )
SELECT opponent FROM table_name_73 WHERE game > 61 AND february < 28 AND points < 69
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 15264, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 6, 29976, 76, 1208, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 467, 2490, 3, 4241, 3430, 29976, 76, 1208, 3, 2, 2059, 3430, 979, 3, 2, 3, 3951, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What player that has a Position of df, and Loaned to is Stoke City?
CREATE TABLE table_name_89 (player VARCHAR, position VARCHAR, loaned_to VARCHAR)
SELECT player FROM table_name_89 WHERE position = "df" AND loaned_to = "stoke city"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 20846, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 2289, 15, 26, 834, 235, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1959, 24, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 1102, 3274, 96, 26, 89, 121, 3430, 2289, 15, 26, 834, 235, 3274, 96, 7, 235, 1050, 690, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the cfl team for patrice denis
CREATE TABLE table_28059992_2 ( cfl_team VARCHAR, player VARCHAR )
SELECT cfl_team FROM table_28059992_2 WHERE player = "Patrice Denis"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 3076, 19446, 357, 834, 357, 41, 3, 75, 89, 40, 834, 11650, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 3, 75, 89, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 75, 89, 40, 834, 11650, 21680, 953, 834, 2577, 3076, 19446, 357, 834, 357, 549, 17444, 427, 1959, 3274, 96, 345, 11488, 3128, 159, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List the names of mountains that do not have any climber.
CREATE TABLE mountain ( Name VARCHAR, Mountain_ID VARCHAR ) CREATE TABLE climber ( Name VARCHAR, Mountain_ID VARCHAR )
SELECT Name FROM mountain WHERE NOT Mountain_ID IN (SELECT Mountain_ID FROM climber)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4180, 41, 5570, 584, 4280, 28027, 6, 5617, 834, 4309, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 8147, 49, 41, 5570, 584, 4280, 28027, 6, 5617, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5570, 21680, 4180, 549, 17444, 427, 4486, 5617, 834, 4309, 3388, 41, 23143, 14196, 5617, 834, 4309, 21680, 8147, 49, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many times was the overall attendance 17807?
CREATE TABLE table_2771237_1 ( overall_attendance VARCHAR, average_attendance VARCHAR )
SELECT COUNT(overall_attendance) FROM table_2771237_1 WHERE average_attendance = 17807
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4013, 2122, 4118, 834, 536, 41, 1879, 834, 15116, 663, 584, 4280, 28027, 6, 1348, 834, 15116, 663, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 648,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1890, 1748, 834, 15116, 663, 61, 21680, 953, 834, 357, 4013, 2122, 4118, 834, 536, 549, 17444, 427, 1348, 834, 15116, 663, 3274, 3, 27640, 4560, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
A bar chart about what are the nationalities and their average ages of journalists?
CREATE TABLE event ( Event_ID int, Date text, Venue text, Name text, Event_Attendance int ) CREATE TABLE journalist ( journalist_ID int, Name text, Nationality text, Age text, Years_working int ) CREATE TABLE news_report ( journalist_ID int, Event_ID int, Work_Type text )
SELECT Nationality, AVG(Age) FROM journalist GROUP BY Nationality
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 605, 41, 8042, 834, 4309, 16, 17, 6, 7678, 1499, 6, 29940, 1499, 6, 5570, 1499, 6, 8042, 834, 188, 17, 324, 26, 663, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 868, 485, 6, 71, 17217, 599, 188, 397, 61, 21680, 9994, 350, 4630, 6880, 272, 476, 868, 485, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients whose diagnoses long title is paroxysmal ventricular tachycardia and drug type is main?
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Paroxysmal ventricular tachycardia" AND prescriptions.drug_type = "MAIN"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
severe uncontrolled arterial hypertension ( hypertension defined as blood pressure 180 / 110 mm hg ( systolic bp > 180 mm hg and / or diastolic bp > 100 mm hg ) on one single reliable measurement during current admission prior to study enrolment
CREATE TABLE table_test_16 ( "id" int, "left_ventricular_ejection_fraction_lvef" int, "systolic_blood_pressure_sbp" int, "severe_hypertension" bool, "adrenaline" bool, "stroke" bool, "renal_disease" bool, "severe_uncontrolled_arterial_hypertension" bool, "hepatic_disease" bool, "dobutamine" bool, "temperature" float, "creatinine_clearance_cl" float, "estimated_glomerular_filtration_rate_egfr" int, "cardiogenic_shock" bool, "diastolic_blood_pressure_dbp" int, "liver_disease" bool, "intravenous_vasoactive_agents" bool, "kidney_disease" bool, "hypertension" bool, "age" float, "NOUSE" float )
SELECT * FROM table_test_16 WHERE severe_uncontrolled_arterial_hypertension = 1 OR (hypertension = 1 OR (systolic_blood_pressure_sbp > 180 OR diastolic_blood_pressure_dbp > 100))
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4377, 834, 2938, 41, 96, 23, 26, 121, 16, 17, 6, 96, 17068, 834, 31695, 834, 15, 21440, 834, 22513, 834, 40, 162, 89, 121, 16, 17, 6, 96, 7, 63, 7, 235, 2176, 834, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1429, 21680, 953, 834, 4377, 834, 2938, 549, 17444, 427, 5274, 834, 202, 20388, 834, 1408, 15, 12042, 834, 13397, 49, 13177, 3274, 209, 4674, 41, 13397, 49, 13177, 3274, 209, 4674, 41, 7, 63, 7, 235, 2176, 834, 2779...
Which Incumbent has a First elected larger than 1884?
CREATE TABLE table_name_58 (incumbent VARCHAR, first_elected INTEGER)
SELECT incumbent FROM table_name_58 WHERE first_elected > 1884
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 77, 75, 5937, 295, 584, 4280, 28027, 6, 166, 834, 19971, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 4073, 1542, 5937, 295, 65, 3, 9, 1485, 816...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28406, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 166, 834, 19971, 2490, 507, 4608, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which week has a result showing L 24-10?
CREATE TABLE table_name_82 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_82 WHERE result = "l 24-10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4613, 41, 8041, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 471, 65, 3, 9, 741, 2924, 301, 997, 4536, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 471, 21680, 953, 834, 4350, 834, 4613, 549, 17444, 427, 741, 3274, 96, 40, 997, 4536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Who was the winner of stage 12?
CREATE TABLE table_name_76 ( winner VARCHAR, stage VARCHAR )
SELECT winner FROM table_name_76 WHERE stage = "12"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3959, 41, 4668, 584, 4280, 28027, 6, 1726, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 4668, 13, 1726, 586, 58, 1, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4668, 21680, 953, 834, 4350, 834, 3959, 549, 17444, 427, 1726, 3274, 96, 2122, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What country had the car with the Jawa 350cc engine?
CREATE TABLE table_42312 ( "Country" text, "Automobile Name" text, "Manufacturer" text, "Engine Make/Capacity" text, "Year" text )
SELECT "Country" FROM table_42312 WHERE "Engine Make/Capacity" = 'jawa 350cc'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2773, 2122, 41, 96, 10628, 651, 121, 1499, 6, 96, 16204, 14814, 5570, 121, 1499, 6, 96, 7296, 76, 8717, 450, 49, 121, 1499, 6, 96, 31477, 1796, 87, 19566, 9, 6726, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 10628, 651, 121, 21680, 953, 834, 591, 2773, 2122, 549, 17444, 427, 96, 31477, 1796, 87, 19566, 9, 6726, 121, 3274, 3, 31, 354, 7396, 10239, 75, 75, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Market Share that has Assets of 25 Million and a rank of 23?
CREATE TABLE table_name_53 ( market_share VARCHAR, assets__usd__millions VARCHAR, rank VARCHAR )
SELECT market_share FROM table_name_53 WHERE assets__usd__millions = 25 AND rank = "23"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 512, 834, 12484, 584, 4280, 28027, 6, 4089, 834, 834, 302, 26, 834, 834, 17030, 7, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 512, 834, 12484, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 4089, 834, 834, 302, 26, 834, 834, 17030, 7, 3274, 944, 3430, 11003, 3274, 96, 2773, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the average of employee_id , and group by attribute job_id in a bar chart, list JOB_ID from low to high order.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE 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 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) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) )
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 71, 17217, 599, 6037, 345, 5017, 476, 5080, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 30085, 834, 567, 17683, 8729, 9914, 3, 31, 1454, 308, 1454, 31, 4674, 30085, 834, 567, 17683, 8729, ...
What is Winner, when Year is 2001?
CREATE TABLE table_name_34 (winner VARCHAR, year VARCHAR)
SELECT winner FROM table_name_34 WHERE year = 2001
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 3757, 687, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 18125, 6, 116, 2929, 19, 4402, 58, 1, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4668, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 215, 3274, 4402, 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...
With the Romaji title of Hanayome Wa Yakudoshi!, what is the Japanese title?
CREATE TABLE table_name_34 (japanese_title VARCHAR, romaji_title VARCHAR)
SELECT japanese_title FROM table_name_34 WHERE romaji_title = "hanayome wa yakudoshi!"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 1191, 2837, 15, 7, 15, 834, 21869, 584, 4280, 28027, 6, 3, 3522, 17815, 834, 21869, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 438, 8, 12583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2662, 2837, 15, 7, 15, 834, 21869, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 3, 3522, 17815, 834, 21869, 3274, 96, 2618, 9, 63, 7159, 8036, 3, 63, 16296, 26, 32, 5605, 4720, 1, -100, -100, -100, -100, -10...
What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?
CREATE TABLE table_name_85 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_85 WHERE date = "22 nov 1989" AND away_team = "bath city"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 5515, 834, 11650, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 1210, 227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 833, 3274, 96, 2884, 3, 5326, 9975, 121, 3430, 550, 834, 11650, 3274, 96, 3697, 107, 690, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
which year was the original title
CREATE TABLE table_22140 ( "Year [e ] (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Main Language(s)" text, "Result" text )
SELECT "Year [e ] (Ceremony)" FROM table_22140 WHERE "Original title" = 'გაღმა ნაპირი'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 22012, 41, 96, 476, 2741, 784, 15, 3, 908, 41, 254, 49, 15, 21208, 61, 121, 1499, 6, 96, 371, 173, 51, 2233, 261, 16, 13588, 121, 1499, 6, 96, 667, 3380, 10270, 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, 476, 2741, 784, 15, 3, 908, 41, 254, 49, 15, 21208, 61, 121, 21680, 953, 834, 2884, 22012, 549, 17444, 427, 96, 667, 3380, 10270, 2233, 121, 3274, 3, 31, 2, 3, 2, 31, 1, -100, -100, -100, -100, -100, -100, ...
Show me manager_id by last name in a histogram
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 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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT LAST_NAME, MANAGER_ID FROM employees
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 301, 12510, 834, 567, 17683, 6, 283, 15610, 17966, 834, 4309, 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, -100, -10...
With a date of May 1262 under elevated, Guillaume de Bray as the elector, what is the order and title?
CREATE TABLE table_47752 ( "Elector" text, "Nationality" text, "Order and title" text, "Elevated" text, "Elevator" text )
SELECT "Order and title" FROM table_47752 WHERE "Elevated" = 'may 1262' AND "Elector" = 'guillaume de bray'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 3072, 357, 41, 96, 21543, 127, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 7395, 588, 11, 2233, 121, 1499, 6, 96, 427, 10912, 920, 121, 1499, 6, 96, 427, 10912,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7395, 588, 11, 2233, 121, 21680, 953, 834, 4177, 3072, 357, 549, 17444, 427, 96, 427, 10912, 920, 121, 3274, 3, 31, 13726, 586, 4056, 31, 3430, 96, 21543, 127, 121, 3274, 3, 31, 7938, 195, 9, 440, 15, 20, 38...
how many white patients were diagnosed under icd9 code 7660?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE" AND diagnoses.icd9_code = "7660"
[ 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...
What game was in 2005?
CREATE TABLE table_name_85 (game VARCHAR, year VARCHAR)
SELECT game FROM table_name_85 WHERE year = 2005
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 7261, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 467, 47, 16, 3105, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 215, 3274, 3105, 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 airline has a IATA of BX?
CREATE TABLE table_40823 ( "AIRLINE" text, "ICAO" text, "IATA" text, "CALLSIGN" text, "COMMENCED OPERATIONS" text )
SELECT "AIRLINE" FROM table_40823 WHERE "IATA" = 'bx'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 4613, 519, 41, 96, 18375, 20006, 121, 1499, 6, 96, 15038, 667, 121, 1499, 6, 96, 196, 19282, 121, 1499, 6, 96, 21605, 7600, 196, 13738, 121, 1499, 6, 96, 6657, 329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18375, 20006, 121, 21680, 953, 834, 2445, 4613, 519, 549, 17444, 427, 96, 196, 19282, 121, 3274, 3, 31, 115, 226, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the least number for production code 3x6266
CREATE TABLE table_29329432_1 (no INTEGER, production_code VARCHAR)
SELECT MIN(no) FROM table_29329432_1 WHERE production_code = "3X6266"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 2668, 4240, 2668, 834, 536, 41, 29, 32, 3, 21342, 17966, 6, 999, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 709, 381, 21, 999, 1081, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 29, 32, 61, 21680, 953, 834, 3166, 2668, 4240, 2668, 834, 536, 549, 17444, 427, 999, 834, 4978, 3274, 96, 519, 4, 4056, 3539, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the venue for the friendly competition and score of 4-0?
CREATE TABLE table_name_53 (venue VARCHAR, score VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_53 WHERE score = "4-0" AND competition = "friendly"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 15098, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 6, 2259, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 5669, 21, 8, 2609, 2259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5669, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 2604, 3274, 96, 26814, 121, 3430, 2259, 3274, 96, 4905, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What the highest position when there is 28 against?
CREATE TABLE table_15331868_1 (position INTEGER, against VARCHAR)
SELECT MAX(position) FROM table_15331868_1 WHERE against = 28
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1808, 4201, 2606, 3651, 834, 536, 41, 4718, 3, 21342, 17966, 6, 581, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 8, 2030, 1102, 116, 132, 19, 2059, 581, 58, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 4718, 61, 21680, 953, 834, 1808, 4201, 2606, 3651, 834, 536, 549, 17444, 427, 581, 3274, 2059, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many different voivodenship have 747 900 citizes?
CREATE TABLE table_11656578_2 (voivodeship VARCHAR, population__1980_ VARCHAR)
SELECT COUNT(voivodeship) FROM table_11656578_2 WHERE population__1980_ = "747 900"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 4122, 4122, 3940, 834, 357, 41, 15682, 1621, 221, 2009, 584, 4280, 28027, 6, 2074, 834, 834, 2294, 2079, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 15682, 1621, 221, 2009, 61, 21680, 953, 834, 2596, 4122, 4122, 3940, 834, 357, 549, 17444, 427, 2074, 834, 834, 2294, 2079, 834, 3274, 96, 940, 4177, 3, 7015, 121, 1, -100, -100, -100, -100, -100, ...
Type of primary, and a Call letters of kbjs has what format?
CREATE TABLE table_5630 ( "Frequency (MHz)" real, "Call letters" text, "Licensed location" text, "Type" text, "Format" text )
SELECT "Format" FROM table_5630 WHERE "Type" = 'primary' AND "Call letters" = 'kbjs'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 1458, 41, 96, 371, 60, 835, 11298, 41, 20210, 61, 121, 490, 6, 96, 254, 1748, 5487, 121, 1499, 6, 96, 28492, 1128, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 3809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3809, 3357, 121, 21680, 953, 834, 4834, 1458, 549, 17444, 427, 96, 25160, 121, 3274, 3, 31, 8234, 1208, 31, 3430, 96, 254, 1748, 5487, 121, 3274, 3, 31, 157, 115, 354, 7, 31, 1, -100, -100, -100, -100, -100, ...
What's the 1991 census of the city of Carpi?
CREATE TABLE table_10138926_1 ( city VARCHAR )
SELECT MAX(1991 AS _census) FROM table_10138926_1 WHERE city = "Carpi"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1714, 2368, 3914, 2688, 834, 536, 41, 690, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 9957, 23087, 13, 8, 690, 13, 1184, 102, 23, 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, 4800, 4, 599, 2294, 4729, 6157, 3, 834, 75, 35, 7, 302, 61, 21680, 953, 834, 1714, 2368, 3914, 2688, 834, 536, 549, 17444, 427, 690, 3274, 96, 6936, 102, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
Plot the average of budget in billions over creation in a line chart, and order by the Creation in descending.
CREATE TABLE department ( Department_ID int, Name text, Creation text, Ranking int, Budget_in_Billions real, Num_Employees real ) CREATE TABLE head ( head_ID int, name text, born_state text, age real ) CREATE TABLE management ( department_ID int, head_ID int, temporary_acting text )
SELECT Creation, AVG(Budget_in_Billions) FROM department GROUP BY Creation ORDER BY Creation DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3066, 41, 1775, 834, 4309, 16, 17, 6, 5570, 1499, 6, 24589, 1499, 6, 29153, 16, 17, 6, 12532, 834, 77, 834, 279, 14916, 7, 490, 6, 1174, 51, 834, 427, 51, 7379, 63, 15, 15, 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, 24589, 6, 71, 17217, 599, 279, 13164, 17, 834, 77, 834, 279, 14916, 7, 61, 21680, 3066, 350, 4630, 6880, 272, 476, 24589, 4674, 11300, 272, 476, 24589, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
WHAT IS THE SIGN OF ZODIAC OF മീനം?
CREATE TABLE table_name_58 (sign_of_zodiac VARCHAR, in_malayalam VARCHAR)
SELECT sign_of_zodiac FROM table_name_58 WHERE in_malayalam = "മീനം"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 6732, 834, 858, 834, 172, 23193, 75, 584, 4280, 28027, 6, 16, 834, 51, 22858, 40, 265, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 21665, 6827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1320, 834, 858, 834, 172, 23193, 75, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 16, 834, 51, 22858, 40, 265, 3274, 96, 2, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find All_Home and Team_ID , and group by attribute ACC_Road, and visualize them by a bar chart, and order in desc by the x axis.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY All_Home DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8498, 834, 19515, 41, 2271, 834, 4309, 16, 17, 6, 1121, 834, 4309, 16, 17, 6, 2271, 834, 23954, 1499, 6, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 1499, 6, 3, 14775, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 432, 834, 19040, 6, 2271, 834, 4309, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 3, 14775, 834, 448, 32, 9, 26, 6, 432, 834, 19040, 4674, 11300, 272, 476, 432, 834, 19040, 309, 25067, 1, -100, -100, -100, ...
count the number of patients whose primary disease is sepsis and procedure icd9 code is 9960?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "SEPSIS" AND procedures.icd9_code = "9960"
[ 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, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
how many patients whose procedure icd9 code is 8968 and drug type is main?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "8968" AND prescriptions.drug_type = "MAIN"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 3388, 18206...
What are all the the participant ids, type code and details?
CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR, Participant_Details VARCHAR)
SELECT Participant_ID, Participant_Type_Code, Participant_Details FROM Participants
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 19204, 41, 13725, 23, 3389, 288, 834, 4309, 584, 4280, 28027, 6, 15077, 288, 834, 25160, 834, 22737, 584, 4280, 28027, 6, 15077, 288, 834, 2962, 5756, 7, 584, 4280, 28027, 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, 0, 0...
[ 3, 23143, 14196, 15077, 288, 834, 4309, 6, 15077, 288, 834, 25160, 834, 22737, 6, 15077, 288, 834, 2962, 5756, 7, 21680, 19204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.
CREATE TABLE editor ( editor_id number, name text, age number ) CREATE TABLE journal_committee ( editor_id number, journal_id number, work_type text ) CREATE TABLE journal ( journal_id number, date text, theme text, sales number )
SELECT date, theme, sales FROM journal EXCEPT SELECT T1.date, T1.theme, T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_id = T2.journal_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6005, 41, 6005, 834, 23, 26, 381, 6, 564, 1499, 6, 1246, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 6378, 834, 287, 1538, 17, 15, 15, 41, 6005, 834, 23, 26, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 833, 6, 3800, 6, 1085, 21680, 6378, 262, 4, 30416, 3, 23143, 14196, 332, 5411, 5522, 6, 332, 5411, 532, 526, 6, 332, 5411, 7, 4529, 21680, 6378, 6157, 332, 536, 3, 15355, 3162, 6378, 834, 287, 1538, 17, 15, 15, ...
What were the years active where Asian Cup played as a captain is Qatar 1988?
CREATE TABLE table_3729 ( "#" real, "Matches As Captain" text, "Player" text, "Asian Cup Played As A Captain" text, "Years Active" text, "Caps(Goals)" text )
SELECT "Years Active" FROM table_3729 WHERE "Asian Cup Played As A Captain" = 'Qatar 1988'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4118, 3166, 41, 96, 4663, 121, 490, 6, 96, 329, 144, 2951, 282, 12202, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 188, 10488, 3802, 2911, 15, 26, 282, 71, 12202, 121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 476, 2741, 7, 11383, 121, 21680, 953, 834, 4118, 3166, 549, 17444, 427, 96, 188, 10488, 3802, 2911, 15, 26, 282, 71, 12202, 121, 3274, 3, 31, 2247, 9, 2046, 10414, 31, 1, -100, -100, -100, -100, -100, -100, -1...
What is the name when the country is ESP and the transfer fee is € 7m?
CREATE TABLE table_name_20 (name VARCHAR, country VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_20 WHERE country = "esp" AND transfer_fee = "€ 7m"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 4350, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 2025, 834, 89, 15, 15, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 684, 3274, 96, 15, 7, 102, 121, 3430, 2025, 834, 89, 15, 15, 3274, 96, 3378, 489, 51, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the candidates for illinois 15
CREATE TABLE table_1341672_14 ( candidates VARCHAR, district VARCHAR )
SELECT candidates FROM table_1341672_14 WHERE district = "Illinois 15"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 27650, 357, 834, 2534, 41, 4341, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 4341, 21, 3, 1092, 77, 32, 159, 627, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4341, 21680, 953, 834, 23747, 27650, 357, 834, 2534, 549, 17444, 427, 3939, 3274, 96, 196, 195, 77, 32, 159, 627, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Visualize a bar chart for how films are produced by each studio?, could you show by the bars from high to low?
CREATE TABLE film_market_estimation ( Estimation_ID int, Low_Estimate real, High_Estimate real, Film_ID int, Type text, Market_ID int, Year int ) CREATE TABLE market ( Market_ID int, Country text, Number_cities int ) CREATE TABLE film ( Film_ID int, Title text, Studio text, Director text, Gross_in_dollar int )
SELECT Studio, COUNT(*) FROM film GROUP BY Studio ORDER BY Studio DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 814, 834, 8809, 834, 3340, 51, 257, 41, 23621, 23, 106, 834, 4309, 16, 17, 6, 5586, 834, 14997, 23, 5058, 490, 6, 1592, 834, 14997, 23, 5058, 490, 6, 3417, 834, 4309, 16, 17, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5929, 6, 2847, 17161, 599, 1935, 61, 21680, 814, 350, 4630, 6880, 272, 476, 5929, 4674, 11300, 272, 476, 5929, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2?
CREATE TABLE table_name_54 ( loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR )
SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 38
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 2615, 7, 3, 21342, 17966, 6, 1766, 834, 3523, 1271, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 6, 14924, 584, 4280, 28027, 6, 1766, 834, 11620, 221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10227, 7, 61, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 14924, 3, 2, 314, 3430, 1766, 834, 11620, 221, 26, 3, 2, 3, 12869, 3430, 1102, 2490, 204, 3430, 1766, 834, 3523, 1271, 3, 2, 6654, ...
Whats the name of segment in s08e21
CREATE TABLE table_15187735_16 (segment_a VARCHAR, netflix VARCHAR)
SELECT segment_a FROM table_15187735_16 WHERE netflix = "S08E21"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26578, 27697, 2469, 834, 2938, 41, 7, 15, 122, 297, 834, 9, 584, 4280, 28027, 6, 3134, 89, 17591, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 7, 8, 564, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5508, 834, 9, 21680, 953, 834, 26578, 27697, 2469, 834, 2938, 549, 17444, 427, 3134, 89, 17591, 3274, 96, 134, 4018, 427, 2658, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...