NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Original title of das leben der anderen had what director?
CREATE TABLE table_name_28 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_name_28 WHERE original_title = "das leben der anderen"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 25982, 584, 4280, 28027, 6, 926, 834, 21869, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 8465, 2233, 13, 211, 13180, 74, 2778, 141, 125, 2090, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2090, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 926, 834, 21869, 3274, 96, 7664, 13180, 74, 2778, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What date did the International Gold Cup take place?
CREATE TABLE table_4640 ( "Round" real, "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning car" text )
SELECT "Date" FROM table_4640 WHERE "Name" = 'international gold cup'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4448, 2445, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 518, 10503, 2535, 121, 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, 96, 308, 342, 121, 21680, 953, 834, 4448, 2445, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 27817, 2045, 4119, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the 2002 dominant religion when the largest ethnic group (2002) was slovaks and type is village?
CREATE TABLE table_27875 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text )
SELECT "Dominant religion (2002)" FROM table_27875 WHERE "Largest ethnic group (2002)" = 'Slovaks' AND "Type" = 'village'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3940, 3072, 41, 96, 17175, 17, 3335, 121, 1499, 6, 96, 254, 63, 52, 173, 2176, 5570, 2502, 5570, 7, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 27773, 7830, 25163, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4135, 1109, 288, 5562, 3, 31444, 121, 21680, 953, 834, 357, 3940, 3072, 549, 17444, 427, 96, 434, 8240, 222, 11655, 563, 3, 31444, 121, 3274, 3, 31, 134, 5850, 1639, 7, 31, 3430, 96, 25160, 121, 3274, 3, 31, ...
what is the date when saros is more than 124, the type is total, the magnitude is more than 1.0535 and the time (greatest) is 20:55:28?
CREATE TABLE table_13934 ( "Date" text, "Type" text, "Time (greatest)" text, "Saros" real, "Member" real, "Gamma" real, "Magnitude" real )
SELECT "Date" FROM table_13934 WHERE "Saros" > '124' AND "Type" = 'total' AND "Magnitude" > '1.0535' AND "Time (greatest)" = '20:55:28'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24090, 3710, 41, 96, 308, 342, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 13368, 41, 20288, 222, 61, 121, 1499, 6, 96, 134, 9, 1859, 121, 490, 6, 96, 329, 18247, 121, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 24090, 3710, 549, 17444, 427, 96, 134, 9, 1859, 121, 2490, 3, 31, 22504, 31, 3430, 96, 25160, 121, 3274, 3, 31, 235, 1947, 31, 3430, 96, 22909, 29, 20341, 121, 2490, 3, 31, 12...
What was the Rebuildjahr(e) for the T2AA class?
CREATE TABLE table_79439 ( "Class" text, "Railway number(s)" text, "Quantity rebuilt" real, "Rebuildjahr(e)" text, "Type" text )
SELECT "Rebuildjahr(e)" FROM table_79439 WHERE "Class" = 't2aa'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4440, 591, 3288, 41, 96, 21486, 121, 1499, 6, 96, 448, 9, 173, 1343, 381, 599, 7, 61, 121, 1499, 6, 96, 5991, 288, 485, 26935, 121, 490, 6, 96, 1649, 16422, 8375, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 16422, 8375, 599, 15, 61, 121, 21680, 953, 834, 4440, 591, 3288, 549, 17444, 427, 96, 21486, 121, 3274, 3, 31, 17, 357, 9, 9, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the post poles for 4 podiums
CREATE TABLE table_27582888_1 (poles INTEGER, podiums VARCHAR)
SELECT MAX(poles) FROM table_27582888_1 WHERE podiums = 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25988, 4613, 10927, 834, 536, 41, 14332, 7, 3, 21342, 17966, 6, 22828, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 442, 11148, 7, 21, 314, 22828, 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, 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, 14332, 7, 61, 21680, 953, 834, 25988, 4613, 10927, 834, 536, 549, 17444, 427, 22828, 7, 3274, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the frequency of number 3 with a bus station origin?
CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR)
SELECT frequency FROM table_name_33 WHERE origin = "bus station" AND number = 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 30989, 584, 4280, 28027, 6, 5233, 584, 4280, 28027, 6, 381, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7321, 13, 381, 220, 28, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7321, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 5233, 3274, 96, 3465, 2478, 121, 3430, 381, 3274, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the candidates for result of lost renomination democratic loss
CREATE TABLE table_1342149_24 (candidates VARCHAR, result VARCHAR)
SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2658, 3647, 834, 2266, 41, 1608, 12416, 6203, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 4341, 21, 741, 13, 1513, 3, 1536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4341, 21680, 953, 834, 23747, 2658, 3647, 834, 2266, 549, 17444, 427, 741, 3274, 96, 434, 3481, 3, 1536, 32, 14484, 10021, 1453, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which Date has a Record of 19 16 8?
CREATE TABLE table_64405 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text, "Arena" text, "Points" real )
SELECT "Date" FROM table_64405 WHERE "Record" = '19–16–8'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4389, 591, 3076, 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, 308, 342, 121, 21680, 953, 834, 4389, 591, 3076, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 2294, 104, 2938, 104, 927, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?
CREATE TABLE table_name_21 (draws VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT COUNT(draws) FROM table_name_21 WHERE losses < 4 AND wins < 16
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 19489, 7, 584, 4280, 28027, 6, 8467, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 242, 8, 2323, 24, 141, 3, 10643, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19489, 7, 61, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 8467, 3, 2, 314, 3430, 9204, 3, 2, 898, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?
CREATE TABLE table_name_27 ( gold VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR )
SELECT COUNT(gold) FROM table_name_27 WHERE bronze > 1 AND nation = "total" AND silver < 18
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2555, 41, 2045, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 6, 13467, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14910, 61, 21680, 953, 834, 4350, 834, 2555, 549, 17444, 427, 13467, 2490, 209, 3430, 2982, 3274, 96, 235, 1947, 121, 3430, 4294, 3, 2, 507, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
WHAT IS THE TO PAR FOR NUMBER 1?
CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_18 WHERE place = "1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 235, 834, 1893, 584, 4280, 28027, 6, 286, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 21665, 6827, 1853, 3001, 17917, 5652, 445, 6122, 12920, 209,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 834, 1893, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 286, 3274, 96, 536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
count the number of patients whose diagnosis icd9 code is v1251 and lab test fluid is other body fluid.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "V1251" AND lab.fluid = "Other Body Fluid"
[ 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...
What is the minimum 1930 when 1990 is 6,883 and 1920 is more than 6,215?
CREATE TABLE table_11001 ( "1910" real, "1920" real, "1930" real, "1940" real, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real )
SELECT MIN("1930") FROM table_11001 WHERE "1990" = '6,883' AND "1920" > '6,215'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 17465, 41, 96, 2294, 1714, 121, 490, 6, 96, 2294, 1755, 121, 490, 6, 96, 2294, 1458, 121, 490, 6, 96, 2294, 2445, 121, 490, 6, 96, 2294, 1752, 121, 490, 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, 3, 17684, 599, 121, 2294, 1458, 8512, 21680, 953, 834, 2596, 17465, 549, 17444, 427, 96, 2294, 2394, 121, 3274, 3, 31, 11071, 4060, 519, 31, 3430, 96, 2294, 1755, 121, 2490, 3, 31, 11071, 357, 1808, 31, 1, -100, -...
Which order #1 has a result of bottom 2
CREATE TABLE table_2469 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text )
SELECT "Order #" FROM table_2469 WHERE "Result" = 'Bottom 2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 3951, 41, 96, 518, 10266, 1713, 121, 1499, 6, 96, 634, 526, 121, 1499, 6, 96, 134, 2444, 1160, 121, 1499, 6, 96, 667, 3380, 10270, 2377, 121, 1499, 6, 96, 7395, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1713, 121, 21680, 953, 834, 2266, 3951, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 26465, 235, 51, 204, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which Venue has a Result of 5-1, and a Score of 1-0?
CREATE TABLE table_name_72 (venue VARCHAR, result VARCHAR, score VARCHAR)
SELECT venue FROM table_name_72 WHERE result = "5-1" AND score = "1-0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5865, 41, 15098, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 29940, 65, 3, 9, 3, 20119, 13, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5669, 21680, 953, 834, 4350, 834, 5865, 549, 17444, 427, 741, 3274, 96, 755, 2292, 121, 3430, 2604, 3274, 96, 18930, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What date was the release when the format was lp?
CREATE TABLE table_name_21 ( date VARCHAR, format VARCHAR )
SELECT date FROM table_name_21 WHERE format = "lp"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 833, 584, 4280, 28027, 6, 1910, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 833, 47, 8, 1576, 116, 8, 1910, 47, 3, 40, 102, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 1910, 3274, 96, 40, 102, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08?
CREATE TABLE table_19589113_5 (total_population_2001 INTEGER, growth_rate_1991_01 VARCHAR)
SELECT MIN(total_population_2001) FROM table_19589113_5 WHERE growth_rate_1991_01 = "33.08"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22464, 3914, 20522, 834, 755, 41, 235, 1947, 834, 9791, 7830, 834, 23658, 3, 21342, 17966, 6, 1170, 834, 2206, 834, 2294, 4729, 834, 4542, 584, 4280, 28027, 61, 3, 32102, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 235, 1947, 834, 9791, 7830, 834, 23658, 61, 21680, 953, 834, 22464, 3914, 20522, 834, 755, 549, 17444, 427, 1170, 834, 2206, 834, 2294, 4729, 834, 4542, 3274, 96, 4201, 5, 4018, 121, 1, -100, -100, -1...
how many patients on miconazole powder 2% prescription have been hospitalized for more than 29 days?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "29" AND prescriptions.drug = "Miconazole Powder 2%"
[ 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, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
How many song titles belong to the artist Ratt?
CREATE TABLE table_21500850_1 ( song_title VARCHAR, artist VARCHAR )
SELECT COUNT(song_title) FROM table_21500850_1 WHERE artist = "Ratt"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 2560, 17246, 834, 536, 41, 2324, 834, 21869, 584, 4280, 28027, 6, 2377, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 2324, 8342, 13000, 12, 8, 2377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 7, 2444, 834, 21869, 61, 21680, 953, 834, 2658, 2560, 17246, 834, 536, 549, 17444, 427, 2377, 3274, 96, 448, 144, 17, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total number of patients who had their calcium urine tested by lab and remained admitted in hospital for more than 15 days?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Calcium, Urine"
[ 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, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?
CREATE TABLE table_name_2 (years_in_competition VARCHAR, premiership_years VARCHAR)
SELECT years_in_competition FROM table_name_2 WHERE premiership_years = "1982, 1984, 1999, 2002-03, 2008-09-10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 357, 41, 1201, 7, 834, 77, 834, 287, 4995, 4749, 584, 4280, 28027, 6, 2761, 2009, 834, 1201, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 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, 203, 834, 77, 834, 287, 4995, 4749, 21680, 953, 834, 4350, 834, 357, 549, 17444, 427, 2761, 2009, 834, 1201, 7, 3274, 96, 24151, 4482, 13480, 6, 5247, 6, 4407, 18, 4928, 6, 2628, 18, 4198, 4536, 121, 1, -100, -100...
I want the sum of year for edition more than 4 and winners of new york red bulls
CREATE TABLE table_10514 ( "Edition" real, "Year" real, "Winner" text, "Runner-up" text, "Third" text, "Fourth" text )
SELECT SUM("Year") FROM table_10514 WHERE "Edition" > '4' AND "Winner" = 'new york red bulls'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12869, 2534, 41, 96, 427, 10569, 121, 490, 6, 96, 476, 2741, 121, 490, 6, 96, 18455, 687, 121, 1499, 6, 96, 23572, 18, 413, 121, 1499, 6, 96, 382, 9288, 26, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 476, 2741, 8512, 21680, 953, 834, 12869, 2534, 549, 17444, 427, 96, 427, 10569, 121, 2490, 3, 31, 591, 31, 3430, 96, 18455, 687, 121, 3274, 3, 31, 5534, 25453, 1131, 8434, 7, 31, 1, -100, -100...
what were the top three most frequently prescribed drugs for patients of age 50s?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 50, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 7690, 4350, 1499, 6, 50, 1999, 7, 83, 17, 381, 6, 50, 1999, 7, 83, 17, 715, 97, 3, 61, 3, 32102, 32103, 32102, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 5411, 26, 13534, 4350, 21680, 41, 23143, 14196, 7757, 5, 26, 13534, 4350, 6, 3, 22284, 4132, 834, 16375, 439, 9960, 3, 23288, 41, 2990, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 61, 6157, 3, ...
When was the away team burnley?
CREATE TABLE table_name_31 ( date VARCHAR, away_team VARCHAR )
SELECT date FROM table_name_31 WHERE away_team = "burnley"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 833, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 47, 8, 550, 372, 5958, 1306, 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, 833, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 550, 834, 11650, 3274, 96, 7223, 1306, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show me about the distribution of All_Road and All_Games_Percent in a bar chart, and I want to show by the names in desc please.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT All_Road, All_Games_Percent FROM basketball_match ORDER BY All_Road DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 432, 834, 448, 32, 9, 26, 6, 432, 834, 23055, 7, 834, 12988, 3728, 21680, 8498, 834, 19515, 4674, 11300, 272, 476, 432, 834, 448, 32, 9, 26, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which name had 6 goals?
CREATE TABLE table_name_49 ( name VARCHAR, goals VARCHAR )
SELECT name FROM table_name_49 WHERE goals = 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3647, 41, 564, 584, 4280, 28027, 6, 1766, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 564, 141, 431, 1766, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 3647, 549, 17444, 427, 1766, 3274, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the average population for an area less than 433.7km and a 23013 code?
CREATE TABLE table_name_17 ( population INTEGER, area__km_2__ VARCHAR, code VARCHAR )
SELECT AVG(population) FROM table_name_17 WHERE area__km_2__ < 433.7 AND code = 23013
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 2074, 3, 21342, 17966, 6, 616, 834, 834, 5848, 834, 357, 834, 834, 584, 4280, 28027, 6, 1081, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 9791, 7830, 61, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 616, 834, 834, 5848, 834, 357, 834, 834, 3, 2, 8838, 25168, 3430, 1081, 3274, 3, 13427, 2368, 1, -100, -100, -100, -100, -100, -100,...
What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47?
CREATE TABLE table_name_41 ( ties INTEGER, goals_for VARCHAR, goals_against VARCHAR, team VARCHAR )
SELECT AVG(ties) FROM table_name_41 WHERE goals_against < 56 AND team = "ottawa hockey club" AND goals_for > 47
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 3, 3010, 3, 21342, 17966, 6, 1766, 834, 1161, 584, 4280, 28027, 6, 1766, 834, 9, 16720, 7, 17, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 3010, 61, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 1766, 834, 9, 16720, 7, 17, 3, 2, 11526, 3430, 372, 3274, 96, 32, 17, 17, 7396, 16528, 1886, 121, 3430, 1766, 834, 1161, 2490, 10635, 1,...
Show the average salary by each hire date of employees, and please bin the hire date into the day of week interval for showing a bar chart, could you order by the Y from high to low?
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE 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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) )
SELECT HIRE_DATE, AVG(SALARY) FROM employees ORDER BY AVG(SALARY) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 301, 5618, 8015, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3, 13733, 26418, 834, 24604, 12200, 134, 3, 4331, 4059, 599, 2445, 201, 3, 16034, 16359, 834, 5911, 5596, 3, 4331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 134, 4090, 24721, 61, 21680, 1652, 4674, 11300, 272, 476, 71, 17217, 599, 134, 4090, 24721, 61, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Bar chart of total number of credits from each dept name, and show from high to low by the total number of credits.
CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) 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 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) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) )
SELECT dept_name, SUM(credits) FROM course GROUP BY dept_name ORDER BY SUM(credits) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8815, 41, 3, 7, 834, 4309, 3, 4331, 4059, 15757, 6, 3, 23, 834, 4309, 3, 4331, 4059, 15757, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 4699, 3, 4331, 405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 15547, 7, 61, 21680, 503, 350, 4630, 6880, 272, 476, 20, 102, 17, 834, 4350, 4674, 11300, 272, 476, 180, 6122, 599, 15547, 7, 61, 309, 25067, 1, -100, -100, -100, -100, ...
What is every value for Italian when the part is English?
CREATE TABLE table_25401_15 ( italian VARCHAR, english VARCHAR )
SELECT italian FROM table_25401_15 WHERE english = "part"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 20016, 834, 1808, 41, 24168, 584, 4280, 28027, 6, 22269, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 334, 701, 21, 4338, 116, 8, 294, 19, 1566, 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, 24168, 21680, 953, 834, 1828, 20016, 834, 1808, 549, 17444, 427, 22269, 3274, 96, 2274, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the loaction attendance that has a game greater than 35, with January 30 as the date?
CREATE TABLE table_50988 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text )
SELECT "Location Attendance" FROM table_50988 WHERE "Game" > '35' AND "Date" = 'january 30'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 3916, 927, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 32, 75, 257, 22497, 663, 121, 21680, 953, 834, 1752, 3916, 927, 549, 17444, 427, 96, 23055, 121, 2490, 3, 31, 2469, 31, 3430, 96, 308, 342, 121, 3274, 3, 31, 7066, 76, 1208, 604, 31, 1, -100, -100, -100...
Which Construction is named of fu-hsing?
CREATE TABLE table_name_89 (construction VARCHAR, name__wade_giles_ VARCHAR)
SELECT construction FROM table_name_89 WHERE name__wade_giles_ = "fu-hsing"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 26471, 584, 4280, 28027, 6, 564, 834, 834, 210, 9, 221, 834, 122, 699, 7, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 8663, 19, 265...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1449, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 564, 834, 834, 210, 9, 221, 834, 122, 699, 7, 834, 3274, 96, 89, 76, 18, 107, 7, 53, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the position for delaware
CREATE TABLE table_27373 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text )
SELECT "Position" FROM table_27373 WHERE "College" = 'Delaware'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4118, 519, 41, 96, 345, 3142, 1713, 121, 490, 6, 96, 12619, 434, 2271, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 9939, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 96, 345, 32, 7, 4749, 121, 21680, 953, 834, 2555, 4118, 519, 549, 17444, 427, 96, 9939, 7883, 121, 3274, 3, 31, 2962, 4207, 355, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is minimum age for different job title?
CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT )
SELECT job, MIN(age) FROM Person GROUP BY job
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5780, 17701, 41, 564, 3, 4331, 4059, 599, 1755, 201, 1565, 3, 4331, 4059, 599, 1755, 201, 215, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 5780, 41, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 613, 6, 3, 17684, 599, 545, 61, 21680, 5780, 350, 4630, 6880, 272, 476, 613, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What type has a scratch of 750 GB?
CREATE TABLE table_52007 ( "Number" real, "Type" text, "Clock" text, "Scratch" text, "Memory" text, "Cache" text )
SELECT "Type" FROM table_52007 WHERE "Scratch" = '750 gb'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 20615, 41, 96, 567, 5937, 49, 121, 490, 6, 96, 25160, 121, 1499, 6, 96, 254, 4029, 121, 1499, 6, 96, 134, 2935, 17, 524, 121, 1499, 6, 96, 329, 15, 2528, 63, 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, 25160, 121, 21680, 953, 834, 755, 20615, 549, 17444, 427, 96, 134, 2935, 17, 524, 121, 3274, 3, 31, 9979, 3, 122, 115, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the categoria when E.E.U.U was the country?
CREATE TABLE table_27501971_2 ( categoría VARCHAR, country VARCHAR )
SELECT categoría FROM table_27501971_2 WHERE country = "E.E.U.U"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 9979, 2294, 4450, 834, 357, 41, 9624, 122, 127, 2, 9, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 18146, 116, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9624, 122, 127, 2, 9, 21680, 953, 834, 357, 9979, 2294, 4450, 834, 357, 549, 17444, 427, 684, 3274, 96, 427, 5, 427, 5, 1265, 5, 1265, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
count the number of patients under the age of 47 whose lab test fluid is pleural.
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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "47" AND lab.fluid = "Pleural"
[ 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, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
wrestler junior fatu was eliminated by a total of how many wrestlers ?
CREATE TABLE table_203_277 ( id number, "entered" number, "wrestler" text, "place" text, "eliminated by" text, "time" text )
SELECT "eliminated by" FROM table_203_277 WHERE "wrestler" = 'junior fatu'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 357, 4013, 41, 3, 23, 26, 381, 6, 96, 35, 11196, 121, 381, 6, 96, 210, 6216, 1171, 121, 1499, 6, 96, 4687, 121, 1499, 6, 96, 15, 4941, 77, 920, 57, 121, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15, 4941, 77, 920, 57, 121, 21680, 953, 834, 23330, 834, 357, 4013, 549, 17444, 427, 96, 210, 6216, 1171, 121, 3274, 3, 31, 6959, 23, 127, 2886, 76, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What's the Japanese title when the Romaji Title was Atsu-Hime?
CREATE TABLE table_14092 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" text, "Average Ratings" text )
SELECT "Japanese Title" FROM table_14092 WHERE "Romaji Title" = 'atsu-hime'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22012, 4508, 41, 96, 683, 9750, 1496, 15, 11029, 121, 1499, 6, 96, 448, 32, 16547, 23, 11029, 121, 1499, 6, 96, 4562, 5939, 121, 1499, 6, 96, 427, 102, 159, 32, 1395, 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, 683, 9750, 1496, 15, 11029, 121, 21680, 953, 834, 22012, 4508, 549, 17444, 427, 96, 448, 32, 16547, 23, 11029, 121, 3274, 3, 31, 23766, 18, 10813, 15, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the Opponents at the Schenectady, U.S. Tournament?
CREATE TABLE table_name_51 (opponents_in_the_final VARCHAR, tournament VARCHAR)
SELECT opponents_in_the_final FROM table_name_51 WHERE tournament = "schenectady, u.s."
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 32, 102, 9977, 7, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 6, 5892, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 4495, 9977...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 16383, 834, 77, 834, 532, 834, 12406, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 5892, 3274, 96, 3992, 20902, 9, 26, 63, 6, 3, 76, 5, 7, 535, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the abbreviation for the month whose transcription is Kumphaphan?
CREATE TABLE table_2239 ( "English name" text, "Thai name" text, "Abbr." text, "Transcription" text, "Sanskrit word" text, "Zodiac sign" text )
SELECT "Abbr." FROM table_2239 WHERE "Transcription" = 'kumphaphan'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 3288, 41, 96, 26749, 564, 121, 1499, 6, 96, 8991, 9, 23, 564, 121, 1499, 6, 96, 8952, 115, 52, 535, 1499, 6, 96, 9402, 29, 11830, 121, 1499, 6, 96, 134, 3247, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8952, 115, 52, 535, 21680, 953, 834, 2884, 3288, 549, 17444, 427, 96, 9402, 29, 11830, 121, 3274, 3, 31, 2729, 7656, 9, 8237, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
who was the first runner to place from kenya ?
CREATE TABLE table_204_849 ( id number, "rank" number, "name" text, "nationality" text, "time" text )
SELECT "name" FROM table_204_849 WHERE "nationality" = 'kenya' ORDER BY "rank" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 927, 3647, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 4350, 121, 1499, 6, 96, 16557, 485, 121, 1499, 6, 96, 715, 121, 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, 0...
[ 3, 23143, 14196, 96, 4350, 121, 21680, 953, 834, 26363, 834, 927, 3647, 549, 17444, 427, 96, 16557, 485, 121, 3274, 3, 31, 2217, 63, 9, 31, 4674, 11300, 272, 476, 96, 6254, 121, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -...
Which Year is the highest one that has a Venue of blackwolf run, composite course, and a Score of 281?
CREATE TABLE table_name_48 ( year INTEGER, venue VARCHAR, score VARCHAR )
SELECT MAX(year) FROM table_name_48 WHERE venue = "blackwolf run, composite course" AND score = "281"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3707, 41, 215, 3, 21342, 17966, 6, 5669, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 2929, 19, 8, 2030, 80, 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, 1, 1, 1, 0...
[ 3, 23143, 14196, 4800, 4, 599, 1201, 61, 21680, 953, 834, 4350, 834, 3707, 549, 17444, 427, 5669, 3274, 96, 19699, 19747, 661, 6, 13723, 503, 121, 3430, 2604, 3274, 96, 2577, 536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -1...
Which island is in the United Kingdom?
CREATE TABLE table_name_43 (island VARCHAR, country VARCHAR)
SELECT island FROM table_name_43 WHERE country = "united kingdom"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 159, 40, 232, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 3368, 19, 16, 8, 907, 6524, 58, 1, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3368, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 684, 3274, 96, 15129, 15, 26, 14740, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the Set 3 when the Set 2 is 21 25, and a Set 1 is 25 21?
CREATE TABLE table_7297 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text, "Report" text )
SELECT "Set 3" FROM table_7297 WHERE "Set 2" = '21–25' AND "Set 1" = '25–21'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5865, 4327, 41, 96, 308, 342, 121, 1499, 6, 96, 13368, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 17175, 209, 121, 1499, 6, 96, 17175, 204, 121, 1499, 6, 96, 17175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17175, 220, 121, 21680, 953, 834, 5865, 4327, 549, 17444, 427, 96, 17175, 204, 121, 3274, 3, 31, 2658, 104, 1828, 31, 3430, 96, 17175, 209, 121, 3274, 3, 31, 1828, 104, 2658, 31, 1, -100, -100, -100, -100, -10...
How many picks does Matt Moran have altogether after round 6?
CREATE TABLE table_52092 ( "Round" real, "Pick" real, "Name" text, "Position" text, "School" text )
SELECT COUNT("Pick") FROM table_52092 WHERE "Name" = 'matt moran' AND "Round" > '6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25356, 4508, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 345, 3142, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 29364, 121, 1499, 3, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 345, 3142, 8512, 21680, 953, 834, 25356, 4508, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 3357, 17, 8030, 152, 31, 3430, 96, 448, 32, 1106, 121, 2490, 3, 31, 948, 31, 1, -100, -100, -100,...
How many faculty members do we have for each gender? Draw a bar chart.
CREATE TABLE Activity ( actid INTEGER, activity_name varchar(25) ) CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE 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 GROUP BY Sex
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 22536, 41, 1810, 23, 26, 3, 21342, 17966, 6, 1756, 834, 4350, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 16896, 834, 13725, 23, 3389, 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, 679, 226, 6, 2847, 17161, 599, 1935, 61, 21680, 16896, 350, 4630, 6880, 272, 476, 679, 226, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the 2010 value with A in 2009 and A in 2008 in the Australian Open?
CREATE TABLE table_name_43 ( tournament VARCHAR )
SELECT 2010 FROM table_name_43 WHERE 2009 = "a" AND 2008 = "a" AND tournament = "australian open"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 5892, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2735, 701, 28, 71, 16, 2464, 11, 71, 16, 2628, 16, 8, 3746, 2384, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2735, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 2464, 3274, 96, 9, 121, 3430, 2628, 3274, 96, 9, 121, 3430, 5892, 3274, 96, 402, 3109, 9928, 539, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129?
CREATE TABLE table_name_61 (opponent VARCHAR, game VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_61 WHERE game > 51 AND score = "99-129"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 32, 102, 9977, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4878, 163, 44, 6407, 16198, 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, 15264, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 467, 2490, 11696, 3430, 2604, 3274, 96, 3264, 18, 22174, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show all book categories and the number of books in each category, I want to list in desc by the bars.
CREATE TABLE book_club ( book_club_id int, Year int, Author_or_Editor text, Book_Title text, Publisher text, Category text, Result text ) CREATE TABLE culture_company ( Company_name text, Type text, Incorporated_in text, Group_Equity_Shareholding real, book_club_id text, movie_id text ) CREATE TABLE movie ( movie_id int, Title text, Year int, Director text, Budget_million real, Gross_worldwide int )
SELECT Category, COUNT(*) FROM book_club GROUP BY Category ORDER BY Category DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 484, 834, 13442, 41, 484, 834, 13442, 834, 23, 26, 16, 17, 6, 2929, 16, 17, 6, 10236, 834, 127, 834, 26527, 127, 1499, 6, 3086, 834, 382, 155, 109, 1499, 6, 19816, 1499, 6, 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, 17459, 6, 2847, 17161, 599, 1935, 61, 21680, 484, 834, 13442, 350, 4630, 6880, 272, 476, 17459, 4674, 11300, 272, 476, 17459, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the score for the game on February 29?
CREATE TABLE table_name_10 ( score VARCHAR, date VARCHAR )
SELECT score FROM table_name_10 WHERE date = "february 29"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1714, 41, 2604, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 21, 8, 467, 30, 2083, 2838, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 1714, 549, 17444, 427, 833, 3274, 96, 89, 15, 9052, 1208, 2838, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Look up the birth date and ICU stay id for the patient Troy Friedman.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT demographic.dob, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Troy Friedman"
[ 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, 14798, 5, 26, 32, 115, 6, 7744, 7, 5, 23, 1071, 21545, 834, 23, 26, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549, 1744...
What's the odds for draw on Bet365 for the game Swindon v.s. Millwall for 2016/2017 season?
CREATE TABLE betfront ( year number, datetime time, country text, competion text, match text, home_opening number, draw_opening number, away_opening number, home_closing number, draw_closing number, away_closing number ) CREATE TABLE football_data ( season text, datetime time, div text, country text, league text, referee text, hometeam text, awayteam text, fthg number, ftag number, ftr text, hthg number, htag number, htr text, psh number, psd number, psa number, b365h number, b365d number, b365a number, lbh number, lbd number, lba number, bwh number, bwd number, bwa number )
SELECT b365d FROM football_data WHERE hometeam = "Swindon" AND awayteam = "Millwall" AND season = "2016/2017"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 36, 17, 6849, 41, 215, 381, 6, 833, 715, 97, 6, 684, 1499, 6, 2890, 15, 1575, 1499, 6, 1588, 1499, 6, 234, 834, 8751, 53, 381, 6, 3314, 834, 8751, 53, 381, 6, 550, 834, 8751, 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, 3, 115, 10402, 26, 21680, 3370, 834, 6757, 549, 17444, 427, 234, 11650, 3274, 96, 134, 5165, 106, 121, 3430, 550, 11650, 3274, 96, 329, 1092, 10279, 121, 3430, 774, 3274, 96, 11505, 24396, 121, 1, -100, -100, -100, ...
Which music is jive?
CREATE TABLE table_name_20 (music VARCHAR, style VARCHAR)
SELECT music FROM table_name_20 WHERE style = "jive"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 22170, 584, 4280, 28027, 6, 869, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 723, 19, 3, 354, 757, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 723, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 869, 3274, 96, 354, 757, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
provide the number of patients whose marital status is single and procedure short title is abdominal wall incision?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.short_title = "Abdominal wall incision"
[ 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,...
What is the minimum MotoGP/500cc ranking?
CREATE TABLE table_2889810_1 ( motogp_500cc INTEGER )
SELECT MIN(motogp_500cc) FROM table_2889810_1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4060, 3916, 1714, 834, 536, 41, 3, 11188, 122, 102, 834, 2560, 75, 75, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2559, 18668, 8049, 87, 2560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 17684, 599, 11188, 122, 102, 834, 2560, 75, 75, 61, 21680, 953, 834, 357, 4060, 3916, 1714, 834, 536, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is every entry for epoch if periselene is 5,454.925?
CREATE TABLE table_206217_2 ( epoch__utc_ VARCHAR, periselene__km_ VARCHAR )
SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "5,454.925"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1755, 4056, 2517, 834, 357, 41, 3, 15, 102, 6322, 834, 834, 76, 17, 75, 834, 584, 4280, 28027, 6, 158, 7854, 14205, 834, 834, 5848, 834, 584, 4280, 28027, 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, 3, 15, 102, 6322, 834, 834, 76, 17, 75, 834, 21680, 953, 834, 1755, 4056, 2517, 834, 357, 549, 17444, 427, 158, 7854, 14205, 834, 834, 5848, 834, 3274, 96, 11116, 2128, 27336, 1828, 121, 1, -100, -100, -100, -100, ...
Televoting of 9, and a Jury smaller than 10 had what sum of draw?
CREATE TABLE table_name_24 ( draw INTEGER, televoting VARCHAR, jury VARCHAR )
SELECT SUM(draw) FROM table_name_24 WHERE televoting = 9 AND jury < 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 3314, 3, 21342, 17966, 6, 3, 1931, 1621, 1222, 584, 4280, 28027, 6, 12730, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 7338, 1621, 1222, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 19489, 61, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 3, 1931, 1621, 1222, 3274, 668, 3430, 12730, 3, 2, 335, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
give me the number of patients with aortic valve insufficiency/aortic valve replacement/sda who had other incision with drainage of skin and subcutaneous tissue.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" AND procedures.short_title = "Other skin & subq i & d"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What was the game of the game against the White Sox with a record of 81-48?
CREATE TABLE table_67290 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT "Date" FROM table_67290 WHERE "Opponent" = 'white sox' AND "Record" = '81-48'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 23838, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 1649, 7621, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 3708, 23838, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 13698, 78, 226, 31, 3430, 96, 1649, 7621, 121, 3274, 3, 31, 4959, 18, 3707, 31, 1, -100, -100, -100, -100, ...
What is the rank for 1961?
CREATE TABLE table_71925 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT "Rank" FROM table_71925 WHERE "Year" = '1961'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4450, 28456, 41, 96, 476, 2741, 121, 1499, 6, 96, 7681, 17, 121, 1499, 6, 96, 5991, 138, 121, 1499, 6, 96, 22557, 121, 1499, 6, 96, 371, 77, 1273, 121, 1499, 6, 96, 361...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22557, 121, 21680, 953, 834, 4450, 28456, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 2294, 4241, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which player played for the Boston Patriots?
CREATE TABLE table_name_61 ( player VARCHAR, team VARCHAR )
SELECT player FROM table_name_61 WHERE team = "boston patriots"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 1959, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 1959, 1944, 21, 8, 5053, 20109, 7, 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, 1959, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 372, 3274, 96, 115, 32, 4411, 6234, 12884, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
known systemic allergy to insulin;
CREATE TABLE table_train_31 ( "id" int, "allergy_to_insulin" bool, "active_infection" bool, "periodic_paralysis" bool, "receiving_continuous_intravenous_inotropic_support" bool, "age" float, "NOUSE" float )
SELECT * FROM table_train_31 WHERE allergy_to_insulin = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9719, 834, 3341, 41, 96, 23, 26, 121, 16, 17, 6, 96, 11211, 122, 63, 834, 235, 834, 15953, 77, 121, 3, 12840, 40, 6, 96, 6645, 834, 77, 17856, 121, 3, 12840, 40, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1429, 21680, 953, 834, 9719, 834, 3341, 549, 17444, 427, 23886, 834, 235, 834, 15953, 77, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
In episode Top 16 (8 Men), what are the themes?
CREATE TABLE table_73926 ( "Episode" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text )
SELECT "Theme" FROM table_73926 WHERE "Episode" = 'Top 16 (8 Men)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3288, 2688, 41, 96, 427, 102, 159, 32, 221, 121, 1499, 6, 96, 634, 526, 121, 1499, 6, 96, 134, 2444, 1160, 121, 1499, 6, 96, 667, 3380, 10270, 2377, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 634, 526, 121, 21680, 953, 834, 940, 3288, 2688, 549, 17444, 427, 96, 427, 102, 159, 32, 221, 121, 3274, 3, 31, 22481, 898, 13642, 3137, 61, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which company started the earliest the maintenance contract? Show the company name.
CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_start_date VARCHAR)
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 9879, 834, 13725, 63, 834, 5890, 2837, 725, 41, 29179, 834, 4350, 584, 4280, 28027, 6, 349, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 29179, 834, 4350, 21680, 9879, 834, 13725, 63, 834, 5890, 2837, 725, 6157, 332, 536, 3, 15355, 3162, 18192, 834, 4302, 6471, 17, 7, 6157, 332, 357, 9191, 332, 5411, 29179, 834, 23, 26, 3274, 332, 4416, 74...
Which round is the player from Oregon from?
CREATE TABLE table_56329 ( "Round" text, "Pick" text, "Player" text, "Position" text, "Nationality" text, "Team" text, "College" text )
SELECT "Round" FROM table_56329 WHERE "College" = 'oregon'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 519, 3166, 41, 96, 448, 32, 1106, 121, 1499, 6, 96, 345, 3142, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 24732, 485, 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, 448, 32, 1106, 121, 21680, 953, 834, 4834, 519, 3166, 549, 17444, 427, 96, 9939, 7883, 121, 3274, 3, 31, 127, 15, 5307, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is Home Team, when Date is "28 January 1984", and when Tie No is "4"?
CREATE TABLE table_name_65 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_65 WHERE date = "28 january 1984" AND tie_no = "4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4122, 41, 5515, 834, 11650, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 6177, 834, 29, 32, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 1210, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 234, 834, 11650, 21680, 953, 834, 4350, 834, 4122, 549, 17444, 427, 833, 3274, 96, 2577, 3, 7066, 76, 1208, 13480, 121, 3430, 6177, 834, 29, 32, 3274, 96, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
who is the top -lrb- most wins overall -rrb- winning school in class aaaa ?
CREATE TABLE table_204_133 ( id number, "school year" text, "class a" text, "class aa" text, "class aaa" text, "class aaaa" text, "class aaaaa" text )
SELECT "class aaaa" FROM table_204_133 GROUP BY "class aaaa" ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 22974, 41, 3, 23, 26, 381, 6, 96, 6646, 215, 121, 1499, 6, 96, 4057, 3, 9, 121, 1499, 6, 96, 4057, 3, 9, 9, 121, 1499, 6, 96, 4057, 3, 9, 9, 9, 121, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4057, 3, 9, 9, 9, 9, 121, 21680, 953, 834, 26363, 834, 22974, 350, 4630, 6880, 272, 476, 96, 4057, 3, 9, 9, 9, 9, 121, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -1...
Find the id and name of customers whose address contains WY state and do not use credit card for payment.
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR, customer_address VARCHAR, payment_method_code VARCHAR)
SELECT customer_id, customer_name FROM customers WHERE customer_address LIKE "%WY%" AND payment_method_code <> "Credit Card"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 722, 41, 25697, 49, 834, 23, 26, 584, 4280, 28027, 6, 884, 834, 4350, 584, 4280, 28027, 6, 884, 834, 9, 26, 12039, 584, 4280, 28027, 6, 1942, 834, 23152, 834, 4978, 584, 4280, 28027,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 884, 834, 23, 26, 6, 884, 834, 4350, 21680, 722, 549, 17444, 427, 884, 834, 9, 26, 12039, 8729, 9914, 96, 1454, 518, 476, 1454, 121, 3430, 1942, 834, 23152, 834, 4978, 3, 2, 3155, 96, 254, 1271, 155, 4955, 121, ...
When london irish was eliminated from competition who proceeded to quarter final?
CREATE TABLE table_27987767_3 (proceed_to_quarter_final VARCHAR, eliminated_from_competition VARCHAR)
SELECT proceed_to_quarter_final FROM table_27987767_3 WHERE eliminated_from_competition = "London Irish"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 3916, 4013, 3708, 834, 519, 41, 1409, 75, 6958, 834, 235, 834, 19973, 834, 12406, 584, 4280, 28027, 6, 17809, 834, 7152, 834, 287, 4995, 4749, 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, 8669, 834, 235, 834, 19973, 834, 12406, 21680, 953, 834, 2555, 3916, 4013, 3708, 834, 519, 549, 17444, 427, 17809, 834, 7152, 834, 287, 4995, 4749, 3274, 96, 29712, 7262, 121, 1, -100, -100, -100, -100, -100, -100, -1...
What socialist workers ticket has malcolm wilson as the Republican ticket?
CREATE TABLE table_name_71 ( socialist_workers_ticket VARCHAR, republican_ticket VARCHAR )
SELECT socialist_workers_ticket FROM table_name_71 WHERE republican_ticket = "malcolm wilson"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4450, 41, 23737, 834, 1981, 277, 834, 26639, 584, 4280, 28027, 6, 20237, 152, 834, 26639, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 23737, 2765, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23737, 834, 1981, 277, 834, 26639, 21680, 953, 834, 4350, 834, 4450, 549, 17444, 427, 20237, 152, 834, 26639, 3274, 96, 1982, 3297, 51, 3, 210, 173, 739, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which player has an A-League of 113 (0)?
CREATE TABLE table_name_6 ( name VARCHAR, a_league VARCHAR )
SELECT name FROM table_name_6 WHERE a_league = "113 (0)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 564, 584, 4280, 28027, 6, 3, 9, 834, 29512, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 1959, 65, 46, 71, 18, 2796, 9, 5398, 13, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 3, 9, 834, 29512, 3274, 96, 20522, 3, 31862, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many periods had 15 goals?
CREATE TABLE table_26945 ( "Name" text, "Position" text, "Period" text, "Appearances\u00b9" real, "Goals\u00b9" real, "Nationality\u00b2" text )
SELECT COUNT("Period") FROM table_26945 WHERE "Goals\u00b9" = '15'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3951, 2128, 41, 96, 23954, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 12988, 23, 32, 26, 121, 1499, 6, 96, 9648, 2741, 663, 7, 2, 76, 1206, 115, 1298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12988, 23, 32, 26, 8512, 21680, 953, 834, 357, 3951, 2128, 549, 17444, 427, 96, 6221, 5405, 2, 76, 1206, 115, 1298, 121, 3274, 3, 31, 1808, 31, 1, -100, -100, -100, -100, -100, -100, -100, -...
What Player is from the Southern Illinois team?
CREATE TABLE table_name_96 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_96 WHERE school_club_team = "southern illinois"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4314, 41, 20846, 584, 4280, 28027, 6, 496, 834, 13442, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 12387, 19, 45, 8, 5193, 7659, 372, 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, 1959, 21680, 953, 834, 4350, 834, 4314, 549, 17444, 427, 496, 834, 13442, 834, 11650, 3274, 96, 7, 670, 760, 29, 3, 1092, 77, 32, 159, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
which city had a higher population in 2007 , ghimbav or prejmer ?
CREATE TABLE table_203_465 ( id number, "name" text, "population (2002 census)" number, "population (2007 estimation)" number, "population (2011 census)" number, "area (km2)" number, "density (pop/km2)" number )
SELECT "name" FROM table_203_465 WHERE "name" IN ('ghimbav', 'prejmer') ORDER BY "population (2007 estimation)" DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 591, 4122, 41, 3, 23, 26, 381, 6, 96, 4350, 121, 1499, 6, 96, 9791, 7830, 41, 24898, 23087, 61, 121, 381, 6, 96, 9791, 7830, 41, 20615, 22781, 61, 121, 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, 96, 4350, 121, 21680, 953, 834, 23330, 834, 591, 4122, 549, 17444, 427, 96, 4350, 121, 3388, 41, 31, 5649, 18015, 208, 31, 6, 3, 31, 2026, 354, 935, 31, 61, 4674, 11300, 272, 476, 96, 9791, 7830, 41, 20615, 22781,...
what is round1 when round3 is less than 51, total points is less than 273, round2 is less than 98 and round5 is less than 24?
CREATE TABLE table_name_62 (round1 INTEGER, round5 VARCHAR, round2 VARCHAR, round3 VARCHAR, total_points VARCHAR)
SELECT AVG(round1) FROM table_name_62 WHERE round3 < 51 AND total_points < 273 AND round2 < 98 AND round5 < 24
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4056, 41, 7775, 536, 3, 21342, 17966, 6, 1751, 755, 584, 4280, 28027, 6, 1751, 357, 584, 4280, 28027, 6, 1751, 519, 584, 4280, 28027, 6, 792, 834, 2700, 7, 584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 7775, 6982, 21680, 953, 834, 4350, 834, 4056, 549, 17444, 427, 1751, 519, 3, 2, 11696, 3430, 792, 834, 2700, 7, 3, 2, 204, 4552, 3430, 1751, 357, 3, 2, 3, 3916, 3430, 1751, 755, 3, 2, 997, 1, -...
What was the earlier round where Takashi Kogure got the fastest lap?
CREATE TABLE table_73381 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text )
SELECT MIN("Round") FROM table_73381 WHERE "Fastest Lap" = 'Takashi Kogure'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4552, 3747, 536, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 8931, 15, 14258, 121, 1499, 6, 96, 371, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 448, 32, 1106, 8512, 21680, 953, 834, 4552, 3747, 536, 549, 17444, 427, 96, 371, 9, 7, 4377, 325, 102, 121, 3274, 3, 31, 382, 5667, 5605, 1793, 7840, 15, 31, 1, -100, -100, -100, -100, -100, ...
What is the LMS number of the trains built by G&SWR Kilmarnock?
CREATE TABLE table_20062 ( "Class" text, "Wheels" real, "Date" text, "Builder" text, "No. built" real, "1919 nos." text, "LMS Class" text, "LMS nos." text )
SELECT "LMS nos." FROM table_20062 WHERE "Builder" = 'G&SWR Kilmarnock'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21196, 357, 41, 96, 21486, 121, 1499, 6, 96, 518, 88, 3573, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 24752, 49, 121, 1499, 6, 96, 4168, 5, 1192, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 11160, 134, 2844, 535, 21680, 953, 834, 21196, 357, 549, 17444, 427, 96, 24752, 49, 121, 3274, 3, 31, 517, 184, 134, 15472, 12672, 1635, 29, 3961, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the title with presentation of credentials of april 10, 1907
CREATE TABLE table_67425 ( "Representative" text, "Title" text, "Presentation of Credentials" text, "Termination of Mission" text, "Appointed by" text )
SELECT "Title" FROM table_67425 WHERE "Presentation of Credentials" = 'april 10, 1907'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 591, 1828, 41, 96, 1649, 12640, 1528, 121, 1499, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 10572, 5277, 257, 13, 14301, 7220, 7, 121, 1499, 6, 96, 11679, 77, 257, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 382, 155, 109, 121, 21680, 953, 834, 3708, 591, 1828, 549, 17444, 427, 96, 10572, 5277, 257, 13, 14301, 7220, 7, 121, 3274, 3, 31, 9, 2246, 40, 10372, 957, 4560, 31, 1, -100, -100, -100, -100, -100, -100, -100...
How many date of appointment entries are there when the team is khazar lankaran?
CREATE TABLE table_27057070_3 ( date_of_appointment VARCHAR, team VARCHAR )
SELECT COUNT(date_of_appointment) FROM table_27057070_3 WHERE team = "Khazar Lankaran"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 17485, 28363, 2518, 834, 519, 41, 833, 834, 858, 834, 9, 102, 2700, 297, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 833, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 5522, 834, 858, 834, 9, 102, 2700, 297, 61, 21680, 953, 834, 17485, 28363, 2518, 834, 519, 549, 17444, 427, 372, 3274, 96, 439, 10557, 291, 13877, 2002, 121, 1, -100, -100, -100, -100, -100, -100, ...
Which away team's Venue is western oval?
CREATE TABLE table_10284 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team" FROM table_10284 WHERE "Venue" = 'western oval'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 14388, 4608, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 121, 21680, 953, 834, 14388, 4608, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 24411, 17986, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which swimmer completed the 700m within 6:57.69?
CREATE TABLE table_33420 ( "Lane" real, "Swimmer" text, "Nationality" text, "100m" real, "200m" text, "300m" text, "400m" text, "500m" text, "600m" text, "700m" text, "Time" text )
SELECT "Swimmer" FROM table_33420 WHERE "700m" = '6:57.69'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4201, 21899, 41, 96, 434, 152, 15, 121, 490, 6, 96, 134, 210, 12174, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 2915, 51, 121, 490, 6, 96, 3632, 51, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 210, 12174, 121, 21680, 953, 834, 4201, 21899, 549, 17444, 427, 96, 9295, 51, 121, 3274, 3, 31, 948, 10, 3436, 5, 3951, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the country when the money ($) is more than 3,600 and player is tom watson?
CREATE TABLE table_49335 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
SELECT "Country" FROM table_49335 WHERE "Money ( $ )" > '3,600' AND "Player" = 'tom watson'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 519, 2469, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 10628, 651, 121, 21680, 953, 834, 3647, 519, 2469, 549, 17444, 427, 96, 9168, 15, 63, 41, 1514, 3, 61, 121, 2490, 3, 31, 6355, 6007, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31, 235, 51, 8036, 17, 739, 31, 1...
tell me the intake method for diphenhydramine?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'diphenhydramine'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8209, 41, 8209, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 8209, 4350, 1499, 6, 8209, 715, 97, 6, 3, 447, 26, 1298, 4978, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 7757, 5, 20300, 20466, 29, 21680, 7757, 549, 17444, 427, 7757, 5, 26, 13534, 4350, 3274, 3, 31, 21981, 3225, 10656, 8721, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which Opponent has a Round larger than 4 and the Event, Draka V?
CREATE TABLE table_name_78 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_78 WHERE round > 4 AND event = "draka v"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 32, 102, 9977, 584, 4280, 28027, 6, 1751, 584, 4280, 28027, 6, 605, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 4495, 9977, 65, 3, 9, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 1751, 2490, 314, 3430, 605, 3274, 96, 3515, 1258, 3, 208, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Who are the members of the club named 'Hopkins Student Enterprises'? Show the last name.
CREATE TABLE member_of_club ( stuid number, clubid number, position text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE club ( clubid number, clubname text, clubdesc text, clublocation text )
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1144, 834, 858, 834, 13442, 41, 21341, 23, 26, 381, 6, 1886, 23, 26, 381, 6, 1102, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 21341, 23, 26, 381, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 5787, 40, 4350, 21680, 1886, 6157, 3, 17, 536, 3, 15355, 3162, 1144, 834, 858, 834, 13442, 6157, 3, 17, 357, 9191, 3, 17, 5411, 13442, 23, 26, 3274, 3, 17, 4416, 13442, 23, 26, 3, 15355, 3162, 1236, 6157,...
Which game has a number lower than 57 and more than 50 points?
CREATE TABLE table_name_25 ( location VARCHAR, game VARCHAR, points VARCHAR )
SELECT location FROM table_name_25 WHERE game < 57 AND points > 50
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 1128, 584, 4280, 28027, 6, 467, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 467, 65, 3, 9, 381, 1364, 145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 467, 3, 2, 3, 3436, 3430, 979, 2490, 943, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of patients with clin300l drug code who are less than 71 years of age.
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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "71" AND prescriptions.formulary_drug_cd = "CLIN300L"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What is the date of vacancy when the manner of departure is sacked and the team is nejapa?
CREATE TABLE table_name_45 ( date_of_vacancy VARCHAR, manner_of_departure VARCHAR, team VARCHAR )
SELECT date_of_vacancy FROM table_name_45 WHERE manner_of_departure = "sacked" AND team = "nejapa"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2128, 41, 833, 834, 858, 834, 29685, 584, 4280, 28027, 6, 3107, 834, 858, 834, 221, 2274, 1462, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 833, 834, 858, 834, 29685, 21680, 953, 834, 4350, 834, 2128, 549, 17444, 427, 3107, 834, 858, 834, 221, 2274, 1462, 3274, 96, 7, 13365, 121, 3430, 372, 3274, 96, 29, 15, 354, 9750, 121, 1, -100, -100, -100, -100, ...
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a line chart about the change of commission_pct over hire_date , and sort X-axis from low to high order.
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 301, 5618, 8015, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3, 13733, 26418, 834, 24604, 12200, 134, 3, 4331, 4059, 599, 2445, 201, 3, 16034, 16359, 834, 5911, 5596, 3, 4331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 3, 6657, 329, 16994, 9215, 834, 4051, 382, 21680, 1652, 549, 17444, 427, 180, 4090, 24721, 272, 7969, 518, 23394, 3, 25129, 3430, 586, 2313, 3430, 3, 6657, 329, 16994, 9215, 834, 4051, ...
What is the first day cover cancellation for the Karen Smith Design stamp?
CREATE TABLE table_58446 ( "Date of Issue" text, "Denomination" text, "Design" text, "Paper Type" text, "First Day Cover Cancellation" text )
SELECT "First Day Cover Cancellation" FROM table_58446 WHERE "Design" = 'karen smith design'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3449, 591, 4448, 41, 96, 308, 342, 13, 13235, 121, 1499, 6, 96, 308, 35, 32, 14484, 121, 1499, 6, 96, 19103, 121, 1499, 6, 96, 15182, 49, 6632, 121, 1499, 6, 96, 25171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25171, 1430, 5620, 1072, 8725, 257, 121, 21680, 953, 834, 3449, 591, 4448, 549, 17444, 427, 96, 19103, 121, 3274, 3, 31, 4031, 35, 3, 16331, 408, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Who is the trophy presentation in the year 1987?
CREATE TABLE table_25075 ( "Year" real, "Network" text, "Race caller" text, "s Host" text, "s Analyst" text, "Reporters" text, "Trophy presentation" text )
SELECT "Trophy presentation" FROM table_25075 WHERE "Year" = '1987'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11434, 3072, 41, 96, 476, 2741, 121, 490, 6, 96, 9688, 1981, 121, 1499, 6, 96, 448, 3302, 580, 49, 121, 1499, 6, 96, 7, 1546, 7, 17, 121, 1499, 6, 96, 7, 25224, 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, 382, 29006, 3831, 121, 21680, 953, 834, 11434, 3072, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 2294, 4225, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Total, when To Par is less than 14, when Finish is T12, and when Player is 'Julius Boros'?
CREATE TABLE table_45855 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text )
SELECT "Total" FROM table_45855 WHERE "To par" < '14' AND "Finish" = 't12' AND "Player" = 'julius boros'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2128, 4433, 755, 41, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 476, 2741, 599, 7, 61, 751, 121, 1499, 6, 96, 3696, 1947, 121, 490, 6, 96, 3696, 260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 3696, 1947, 121, 21680, 953, 834, 2128, 4433, 755, 549, 17444, 427, 96, 3696, 260, 121, 3, 2, 3, 31, 2534, 31, 3430, 96, 371, 77, 1273, 121, 3274, 3, 31, 17, 2122, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31...
Does the city of moline have stereo?
CREATE TABLE table_25034983_2 ( stereo VARCHAR, city VARCHAR )
SELECT stereo FROM table_25034983_2 WHERE city = "Moline"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11434, 3710, 3916, 519, 834, 357, 41, 16687, 584, 4280, 28027, 6, 690, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 3520, 8, 690, 13, 2288, 747, 43, 16687, 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, 16687, 21680, 953, 834, 11434, 3710, 3916, 519, 834, 357, 549, 17444, 427, 690, 3274, 96, 329, 32, 747, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what is the highest draw when the place is less than 3 and the percentage is 30.71%?
CREATE TABLE table_name_61 ( draw INTEGER, place VARCHAR, percentage VARCHAR )
SELECT MAX(draw) FROM table_name_61 WHERE place < 3 AND percentage = "30.71%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 3314, 3, 21342, 17966, 6, 286, 584, 4280, 28027, 6, 5294, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 2030, 3314, 116, 8, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 19489, 61, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 286, 3, 2, 220, 3430, 5294, 3274, 96, 519, 22426, 4704, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Bar chart x axis sportname y axis the total number
CREATE TABLE Plays_Games ( StuID INTEGER, GameID INTEGER, Hours_Played INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Video_Games ( GameID INTEGER, GName VARCHAR(40), GType VARCHAR(40) ) CREATE TABLE SportsInfo ( StuID INTEGER, SportName VARCHAR(32), HoursPerWeek INTEGER, GamesPlayed INTEGER, OnScholarship VARCHAR(1) )
SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2911, 7, 834, 23055, 7, 41, 3, 13076, 4309, 3, 21342, 17966, 6, 4435, 4309, 3, 21342, 17966, 6, 10768, 7, 834, 15800, 15, 26, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3349, 23954, 6, 2847, 17161, 599, 1935, 61, 21680, 5716, 29381, 350, 4630, 6880, 272, 476, 3349, 23954, 1, -100, -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, draw a bar chart about the distribution of first_name and manager_id , could you list in descending by the y axis?
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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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 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) )
SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 301, 5618, 8015, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3, 13733, 26418, 834, 24604, 12200, 134, 3, 4331, 4059, 599, 2445, 201, 3, 16034, 16359, 834, 5911, 5596, 3, 4331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 30085, 834, 567, 17683, 6, 283, 15610, 17966, 834, 4309, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 10521, 549, 17444, 427, 283, 15610,...
What is the average number of goals for players ranked above 9 and playing more than 205 matches?
CREATE TABLE table_40846 ( "Rank" real, "Name" text, "Years" text, "Matches" real, "Goals" real )
SELECT AVG("Goals") FROM table_40846 WHERE "Matches" = '205' AND "Rank" > '9'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 927, 4448, 41, 96, 22557, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 476, 2741, 7, 121, 1499, 6, 96, 329, 144, 2951, 121, 490, 6, 96, 6221, 5405, 121, 490, 3, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 6221, 5405, 8512, 21680, 953, 834, 2445, 927, 4448, 549, 17444, 427, 96, 329, 144, 2951, 121, 3274, 3, 31, 23201, 31, 3430, 96, 22557, 121, 2490, 3, 31, 1298, 31, 1, -100, -100, -100, -100, -1...