NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Show the number of transactions for different investors.
CREATE TABLE TRANSACTIONS ( investor_id VARCHAR )
SELECT investor_id, COUNT(*) FROM TRANSACTIONS GROUP BY investor_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 26585, 30518, 134, 41, 12024, 834, 23, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 3111, 8, 381, 13, 6413, 21, 315, 4367, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 12024, 834, 23, 26, 6, 2847, 17161, 599, 1935, 61, 21680, 26585, 30518, 134, 350, 4630, 6880, 272, 476, 12024, 834, 23, 26, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the companies of entrepreneurs in descending order of money requested.
CREATE TABLE entrepreneur ( Company VARCHAR, Money_Requested VARCHAR )
SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3, 12290, 41, 1958, 584, 4280, 28027, 6, 8833, 834, 1649, 835, 6265, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 6792, 8, 688, 13, 9970, 16, 3, 30960, 455, 13, 540, 6709,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1958, 21680, 3, 12290, 4674, 11300, 272, 476, 8833, 834, 1649, 835, 6265, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2?
CREATE TABLE table_name_76 ( total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR )
SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3959, 41, 792, 3, 21342, 17966, 6, 11003, 584, 4280, 28027, 6, 13467, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 3959, 549, 17444, 427, 13467, 3, 2, 505, 3430, 4294, 3274, 220, 3430, 11003, 3, 2, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the country of origin of the artist who is female and produced a song in Bangla, and count them by a bar chart
CREATE TABLE song ( song_name varchar2(50), artist_name varchar2(50), country varchar2(20), f_id number(10), genre_is varchar2(20), rating number(10), languages varchar2(20), releasedate Date, resolution number(10) ) CREATE TABLE genre ( g_name varchar2(20), rating varchar2(10), most_popular_in varchar2(50) ) CREATE TABLE artist ( artist_name varchar2(50), country varchar2(20), gender varchar2(20), preferred_genre varchar2(50) ) CREATE TABLE files ( f_id number(10), artist_name varchar2(50), file_size varchar2(20), duration varchar2(20), formats varchar2(20) )
SELECT T1.country, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla" GROUP BY T1.country
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2324, 41, 2324, 834, 4350, 3, 4331, 4059, 357, 599, 1752, 201, 2377, 834, 4350, 3, 4331, 4059, 357, 599, 1752, 201, 684, 3, 4331, 4059, 357, 599, 1755, 201, 3, 89, 834, 23, 26, 381...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 17529, 6, 332, 5411, 17529, 21680, 2377, 6157, 332, 536, 3, 15355, 3162, 2324, 6157, 332, 357, 9191, 332, 5411, 1408, 343, 834, 4350, 3274, 332, 4416, 1408, 343, 834, 4350, 549, 17444, 427, 332, 5411, 122, ...
What is the lowest silver for France with a rank less than 5 and a total larger than 19?
CREATE TABLE table_name_43 (silver INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT MIN(silver) FROM table_name_43 WHERE rank < 5 AND nation = "france" AND total > 19
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 7, 173, 624, 3, 21342, 17966, 6, 792, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 6, 2982, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 7, 173, 624, 61, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 11003, 3, 2, 305, 3430, 2982, 3274, 96, 89, 5219, 121, 3430, 792, 2490, 957, 1, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the winning span with the rank of 5?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, rank VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE rank = "5"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22464, 2469, 2938, 834, 536, 41, 8163, 834, 7, 2837, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3447, 8438, 28, 8, 11003, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3447, 834, 7, 2837, 21680, 953, 834, 22464, 2469, 2938, 834, 536, 549, 17444, 427, 11003, 3274, 96, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
A bar chart about what is the project id and detail for the project with at least two documents?, and list in ascending by the X-axis please.
CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) ) CREATE TABLE Documents_with_Expenses ( Document_ID INTEGER, Budget_Type_Code CHAR(15), Document_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) )
SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID ORDER BY T1.Project_Details
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 419, 89, 834, 279, 13164, 17, 834, 22737, 7, 41, 12532, 834, 25160, 834, 22737, 3, 28027, 599, 1808, 201, 12532, 834, 25160, 834, 2962, 11830, 584, 4280, 28027, 599, 25502, 61, 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, 332, 5411, 3174, 11827, 834, 2962, 5756, 7, 6, 332, 5411, 3174, 11827, 834, 4309, 21680, 2786, 7, 6157, 332, 536, 3, 15355, 3162, 11167, 7, 6157, 332, 357, 9191, 332, 5411, 3174, 11827, 834, 4309, 3274, 332, 4416, 3...
What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1?
CREATE TABLE table_name_48 (mate VARCHAR, animal_name VARCHAR, tv_seasons VARCHAR, last_appearance VARCHAR)
SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = "bully, bully, bully (3x13)" AND animal_name = "hollow/holly"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3707, 41, 5058, 584, 4280, 28027, 6, 2586, 834, 4350, 584, 4280, 28027, 6, 3, 17, 208, 834, 9476, 7, 584, 4280, 28027, 6, 336, 834, 3096, 2741, 663, 584, 4280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 5058, 21680, 953, 834, 4350, 834, 3707, 549, 17444, 427, 3, 17, 208, 834, 9476, 7, 2490, 209, 3430, 336, 834, 3096, 2741, 663, 3274, 96, 6724, 120, 6, 8434, 63, 6, 8434, 63, 6918, 226, 2368, 61, 121, 3430, 25...
Which Display size (in) has a Model of vaio pcg-u3?
CREATE TABLE table_name_29 (display_size__in_ VARCHAR, model VARCHAR)
SELECT COUNT(display_size__in_) FROM table_name_29 WHERE model = "vaio pcg-u3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 10475, 5595, 834, 7991, 834, 834, 77, 834, 584, 4280, 28027, 6, 825, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 11677, 812, 41, 77, 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, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 10475, 5595, 834, 7991, 834, 834, 77, 834, 61, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 825, 3274, 96, 900, 23, 32, 3, 102, 75, 122, 18, 76, 519, 121, 1, -100, -100, -100, -100, -100, ...
What is the highest w plyf with a first yr before 1960, a G plyf greater than 0, a G > .500 less than 43, and a w-l% less than 0.578?
CREATE TABLE table_44735 ( "Coach" text, "First Yr" real, "Last Yr" real, "W-L%" real, "G > .500" real, "Yr plyf" real, "G plyf" real, "W plyf" real, "L plyf" real )
SELECT MAX("W plyf") FROM table_44735 WHERE "First Yr" < '1960' AND "G plyf" > '0' AND "G > .500" < '43' AND "W-L%" < '0.578'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4177, 2469, 41, 96, 3881, 1836, 121, 1499, 6, 96, 25171, 3, 476, 52, 121, 490, 6, 96, 3612, 7, 17, 3, 476, 52, 121, 490, 6, 96, 518, 18, 434, 1454, 121, 490, 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, 4800, 4, 599, 121, 518, 3, 102, 120, 89, 8512, 21680, 953, 834, 591, 4177, 2469, 549, 17444, 427, 96, 25171, 3, 476, 52, 121, 3, 2, 3, 31, 2294, 3328, 31, 3430, 96, 517, 3, 102, 120, 89, 121, 2490, 3, 31, 63...
How many entries are there for founded when the location was springfield, ohio?
CREATE TABLE table_24195232_1 (founded VARCHAR, location VARCHAR)
SELECT COUNT(founded) FROM table_24195232_1 WHERE location = "Springfield, Ohio"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 22464, 23188, 834, 536, 41, 23329, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 10066, 33, 132, 21, 5710, 116, 8, 1128, 47,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 23329, 61, 21680, 953, 834, 2266, 22464, 23188, 834, 536, 549, 17444, 427, 1128, 3274, 96, 14562, 53, 1846, 6, 6167, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is Venue, when Balls is '148'?
CREATE TABLE table_name_22 ( venue VARCHAR, balls VARCHAR )
SELECT venue FROM table_name_22 WHERE balls = 148
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 5669, 584, 4280, 28027, 6, 11607, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 29940, 6, 116, 4155, 7, 19, 3, 31, 24748, 31, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5669, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 11607, 3274, 3, 24748, 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 year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named?
CREATE TABLE table_name_78 ( year_named INTEGER, latitude VARCHAR, diameter__km_ VARCHAR )
SELECT MAX(year_named) FROM table_name_78 WHERE latitude = "76.0n" AND diameter__km_ > 548
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 215, 834, 4350, 26, 3, 21342, 17966, 6, 50, 6592, 584, 4280, 28027, 6, 9260, 834, 834, 5848, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 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, 4800, 4, 599, 1201, 834, 4350, 26, 61, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 50, 6592, 3274, 96, 940, 22642, 29, 121, 3430, 9260, 834, 834, 5848, 834, 2490, 305, 3707, 1, -100, -100, -100, -100, -100, ...
Which participants won the silver medal for the Men's Doubles?
CREATE TABLE table_name_57 (name VARCHAR, medal VARCHAR, event VARCHAR)
SELECT name FROM table_name_57 WHERE medal = "silver" AND event = "men's doubles"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3436, 41, 4350, 584, 4280, 28027, 6, 9365, 584, 4280, 28027, 6, 605, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 3008, 751, 8, 4294, 9365, 21, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 3436, 549, 17444, 427, 9365, 3274, 96, 7, 173, 624, 121, 3430, 605, 3274, 96, 904, 31, 7, 1486, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What country has player Scott Verplank?
CREATE TABLE table_name_64 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_64 WHERE player = "scott verplank"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4389, 41, 17529, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 684, 65, 1959, 4972, 781, 3767, 157, 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, 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, 684, 21680, 953, 834, 4350, 834, 4389, 549, 17444, 427, 1959, 3274, 96, 7, 10405, 548, 3767, 157, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
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, return a scatter chart about the correlation between salary and manager_id .
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 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 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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) )
SELECT SALARY, MANAGER_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 613, 834, 10193, 10972, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 5097, 8241, 834, 308, 6048, 833, 6, 3, 14920, 834, 308, 6048, 833, 6, 446, 10539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4090, 24721, 6, 283, 15610, 17966, 834, 4309, 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, 382, 3, 2, 3155, 96, 2...
What band is the highest and has a System of gsm-450?
CREATE TABLE table_name_22 (band INTEGER, system VARCHAR)
SELECT MAX(band) FROM table_name_22 WHERE system = "gsm-450"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 3348, 3, 21342, 17966, 6, 358, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1928, 19, 8, 2030, 11, 65, 3, 9, 2149, 13, 3, 122, 7, 51, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 3348, 61, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 358, 3274, 96, 122, 7, 51, 18, 10593, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?
CREATE TABLE table_26148 ( "Copper Age" text, "Chalcolithic (4500 BC - 3300 BC)" text, "Early Chalcolithic" text, "4500 BC - 4000 BC" text, "Ubaid period in Mesopotamia" text )
SELECT "Copper Age" FROM table_26148 WHERE "Ubaid period in Mesopotamia" = 'Middle Assyrian Empire'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 24748, 41, 96, 3881, 8153, 7526, 121, 1499, 6, 96, 3541, 138, 9044, 189, 447, 8457, 2560, 9580, 3, 18, 220, 5426, 9580, 61, 121, 1499, 6, 96, 427, 291, 120, 20732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3881, 8153, 7526, 121, 21680, 953, 834, 2688, 24748, 549, 17444, 427, 96, 1265, 9441, 26, 1059, 16, 10162, 32, 3013, 3690, 9, 121, 3274, 3, 31, 329, 23, 8437, 282, 7, 63, 5288, 12187, 31, 1, -100, -100, -100, ...
What were the high rebounds on september 11?
CREATE TABLE table_name_35 ( high_rebounds VARCHAR, date VARCHAR )
SELECT high_rebounds FROM table_name_35 WHERE date = "september 11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 306, 834, 23768, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 130, 8, 306, 3, 23768, 30, 16022, 18247, 850, 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, 306, 834, 23768, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 833, 3274, 96, 7, 6707, 18247, 850, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Show me about the correlation between Height and Weight , and group by attribute Sex in a scatter chart.
CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real )
SELECT Height, Weight FROM people GROUP BY Sex
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4775, 41, 25833, 17, 15, 834, 4309, 16, 17, 6, 2449, 834, 4309, 16, 17, 6, 14457, 834, 23799, 1499, 6, 7678, 1499, 6, 4224, 834, 2206, 490, 6, 9151, 834, 2206, 490, 6, 4495, 2748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 24231, 6, 14230, 21680, 151, 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, -100, -100, -100, -100, -100, ...
What is Northern Colorado's Rnd.?
CREATE TABLE table_12639 ( "Rnd." real, "Pick #" text, "NFL team" text, "Pos." text, "College" text, "Conf." text )
SELECT "Rnd." FROM table_12639 WHERE "College" = 'northern colorado'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21976, 3288, 41, 96, 448, 727, 535, 490, 6, 96, 345, 3142, 1713, 121, 1499, 6, 96, 12619, 434, 372, 121, 1499, 6, 96, 345, 32, 7, 535, 1499, 6, 96, 9939, 7883, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 448, 727, 535, 21680, 953, 834, 21976, 3288, 549, 17444, 427, 96, 9939, 7883, 121, 3274, 3, 31, 29, 127, 189, 49, 29, 945, 9, 26, 32, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What year did the Capital City Giants have a game with the final score of 8-0?
CREATE TABLE table_name_54 ( year INTEGER, team VARCHAR, score VARCHAR )
SELECT AVG(year) FROM table_name_54 WHERE team = "capital city giants" AND score = "8-0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 215, 3, 21342, 17966, 6, 372, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 410, 8, 5826, 896, 3156, 236...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 1201, 61, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 372, 3274, 96, 4010, 9538, 690, 6079, 7, 121, 3430, 2604, 3274, 96, 927, 18, 632, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the original air date of the episode with a broadcast order s04 e01?
CREATE TABLE table_1231892_4 ( us_air_date VARCHAR, broadcast_order VARCHAR )
SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = "S04 E01"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 14574, 2606, 4508, 834, 591, 41, 178, 834, 2256, 834, 5522, 584, 4280, 28027, 6, 6878, 834, 9397, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 926...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 178, 834, 2256, 834, 5522, 21680, 953, 834, 14574, 2606, 4508, 834, 591, 549, 17444, 427, 6878, 834, 9397, 3274, 96, 134, 6348, 262, 4542, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which Terminus is on line 10?
CREATE TABLE table_name_1 (terminus VARCHAR, line VARCHAR)
SELECT terminus FROM table_name_1 WHERE line = "line 10"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 536, 41, 6544, 302, 584, 4280, 28027, 6, 689, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 10181, 302, 19, 30, 689, 335, 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, 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, 12089, 302, 21680, 953, 834, 4350, 834, 536, 549, 17444, 427, 689, 3274, 96, 747, 335, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who is the male partner for amy winehouse?
CREATE TABLE table_name_26 (male VARCHAR, female VARCHAR)
SELECT male FROM table_name_26 WHERE female = "amy winehouse"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2688, 41, 13513, 584, 4280, 28027, 6, 3955, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 5069, 2397, 21, 183, 63, 2013, 1840, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5069, 21680, 953, 834, 4350, 834, 2688, 549, 17444, 427, 3955, 3274, 96, 9, 2258, 2013, 1840, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the score of the away team at Junction Oval?
CREATE TABLE table_55739 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team score" FROM table_55739 WHERE "Venue" = 'junction oval'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3436, 3288, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 1343, 372, 2604, 121, 21680, 953, 834, 755, 3436, 3288, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 6959, 4985, 17986, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the 2nd runner-up for season 7
CREATE TABLE table_name_59 (season_number VARCHAR)
SELECT 2 AS nd_runner_up FROM table_name_59 WHERE season_number = "season 7"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 9476, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 204, 727, 3, 10806, 18, 413, 21, 774, 489, 1, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 204, 6157, 3, 727, 834, 10806, 834, 413, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 774, 834, 5525, 1152, 3274, 96, 9476, 489, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is diagnoses short title and diagnoses long title of diagnoses icd9 code 4275?
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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "4275"
[ 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, 18730, 7, 5, 7, 14184, 834, 21869, 6, 18730, 7, 5, 2961, 834, 21869, 21680, 18730, 7, 549, 17444, 427, 18730, 7, 5, 447, 26, 1298, 834, 4978, 3274, 96, 4165, 3072, 121, 1, -100, -100, -100, -100, -100, -100, -100,...
Which Current Club has a Rank of 4?
CREATE TABLE table_59993 ( "Rank" real, "Name" text, "Years" text, "Current Club" text, "Goals" real, "Apps" real, "Ratio" real )
SELECT "Current Club" FROM table_59993 WHERE "Rank" = '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3390, 3264, 519, 41, 96, 22557, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 476, 2741, 7, 121, 1499, 6, 96, 254, 450, 5320, 1949, 121, 1499, 6, 96, 6221, 5405, 121, 490, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 450, 5320, 1949, 121, 21680, 953, 834, 3390, 3264, 519, 549, 17444, 427, 96, 22557, 121, 3274, 3, 31, 591, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
what is the total when the rank is 4?
CREATE TABLE table_name_88 ( total VARCHAR, rank VARCHAR )
SELECT total FROM table_name_88 WHERE rank = "4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 792, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 792, 116, 8, 11003, 19, 314, 58, 1, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 792, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 11003, 3274, 96, 20364, 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's party with district being tennessee 3
CREATE TABLE table_18406 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "Party" FROM table_18406 WHERE "District" = 'Tennessee 3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25987, 5176, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 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, 13725, 63, 121, 21680, 953, 834, 25987, 5176, 549, 17444, 427, 96, 308, 23, 20066, 121, 3274, 3, 31, 382, 35, 655, 15, 15, 220, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the City with an IATA of MUC?
CREATE TABLE table_79541 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text )
SELECT "City" FROM table_79541 WHERE "IATA" = 'muc'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4440, 5062, 536, 41, 96, 254, 485, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 196, 19282, 121, 1499, 6, 96, 15038, 667, 121, 1499, 6, 96, 20162, 1493, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 96, 254, 485, 121, 21680, 953, 834, 4440, 5062, 536, 549, 17444, 427, 96, 196, 19282, 121, 3274, 3, 31, 51, 76, 75, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?
CREATE TABLE table_name_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = "hank pfister sherwood stewart"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3539, 41, 17, 1211, 20205, 17, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 6, 16383, 834, 77, 834, 532, 834, 12406, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5892, 21680, 953, 834, 4350, 834, 3539, 549, 17444, 427, 833, 2490, 17107, 3430, 16383, 834, 77, 834, 532, 834, 12406, 3274, 96, 2618, 157, 3, 102, 89, 5805, 255, 52, 2037, 21786, 1408, 121, 1, -100, -100, -100, -10...
What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?
CREATE TABLE table_67566 ( "Colt model no." text, "Name" text, "Stock" text, "Fire control" text, "Rear sight" text, "Forward assist" text, "Case deflector" text, "Barrel length" text, "Barrel profile" text, "Barrel twist" text, "Hand guards" text, "Bayonet Lug" text, "Muzzle device" text )
SELECT "Muzzle device" FROM table_67566 WHERE "Barrel twist" = '1:7' AND "Stock" = '4th generation'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 755, 3539, 41, 96, 9939, 17, 825, 150, 535, 1499, 6, 96, 23954, 121, 1499, 6, 96, 134, 17, 3961, 121, 1499, 6, 96, 3183, 60, 610, 121, 1499, 6, 96, 1649, 291, 639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 329, 76, 15133, 1407, 121, 21680, 953, 834, 3708, 755, 3539, 549, 17444, 427, 96, 14851, 60, 40, 9135, 121, 3274, 3, 31, 536, 10, 940, 31, 3430, 96, 134, 17, 3961, 121, 3274, 3, 31, 591, 189, 3381, 31, 1, ...
When was the callback audition date for the audition city from the episode aired on February 2, 2011?
CREATE TABLE table_29526 ( "Episode air date" text, "Audition city" text, "First audition date" text, "Audition venue" text, "Callback audition date" text, "Callback venue" text, "Golden tickets" text )
SELECT "Callback audition date" FROM table_29526 WHERE "Episode air date" = 'February 2, 2011'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3301, 2688, 41, 96, 427, 102, 159, 32, 221, 799, 833, 121, 1499, 6, 96, 188, 76, 10569, 690, 121, 1499, 6, 96, 25171, 21042, 833, 121, 1499, 6, 96, 188, 76, 10569, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 1748, 1549, 21042, 833, 121, 21680, 953, 834, 357, 3301, 2688, 549, 17444, 427, 96, 427, 102, 159, 32, 221, 799, 833, 121, 3274, 3, 31, 31122, 3547, 2722, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
Who won in mixed doubles in 2008?
CREATE TABLE table_name_53 (mixed_doubles VARCHAR, year VARCHAR)
SELECT mixed_doubles FROM table_name_53 WHERE year = "2008"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 13682, 15, 26, 834, 25761, 7, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 751, 16, 4838, 1486, 7, 16, 2628, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4838, 834, 25761, 7, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 215, 3274, 96, 16128, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the edition after 2003 when the Third was Tikve and Sileks was the runner-up?
CREATE TABLE table_58714 ( "Edition" real, "Year" real, "Winner" text, "Runner-up" text, "Third" text )
SELECT MIN("Edition") FROM table_58714 WHERE "Year" > '2003' AND "Third" = 'tikveš' AND "Runner-up" = 'sileks'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 4225, 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, 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, 3, 17684, 599, 121, 427, 10569, 8512, 21680, 953, 834, 755, 4225, 2534, 549, 17444, 427, 96, 476, 2741, 121, 2490, 3, 31, 23948, 31, 3430, 96, 382, 9288, 26, 121, 3274, 3, 31, 4414, 162, 2, 31, 3430, 96, 23572, ...
what was the total amount of points scored on november 4th ?
CREATE TABLE table_204_388 ( id number, "#" number, "date" text, "visitor" text, "score" text, "home" text, "record" text, "pts" number )
SELECT "score" + "score" FROM table_204_388 WHERE "date" = 'november 4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 519, 4060, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 5522, 121, 1499, 6, 96, 3466, 155, 127, 121, 1499, 6, 96, 7, 9022, 121, 1499, 6, 96, 5515, 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, 7, 9022, 121, 1768, 96, 7, 9022, 121, 21680, 953, 834, 26363, 834, 519, 4060, 549, 17444, 427, 96, 5522, 121, 3274, 3, 31, 5326, 18247, 314, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the status for unemployment rate being 6.7%
CREATE TABLE table_22815568_12 (status VARCHAR, unemployment_rate VARCHAR)
SELECT status FROM table_22815568_12 WHERE unemployment_rate = "6.7%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2577, 20896, 3651, 834, 2122, 41, 8547, 302, 584, 4280, 28027, 6, 17646, 834, 2206, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 2637, 21, 17646, 1080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2637, 21680, 953, 834, 357, 2577, 20896, 3651, 834, 2122, 549, 17444, 427, 17646, 834, 2206, 3274, 96, 29045, 1454, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the result when there's less than 2 goals?
CREATE TABLE table_name_46 (result VARCHAR, goal INTEGER)
SELECT result FROM table_name_46 WHERE goal < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4448, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 1288, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 741, 116, 132, 31, 7, 705, 145, 204, 1766, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 21680, 953, 834, 4350, 834, 4448, 549, 17444, 427, 1288, 3, 2, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
You can return a bar chart to show the employees' first name and the corresponding department's id, I want to list Y from high to low order.
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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) )
SELECT FIRST_NAME, DEPARTMENT_ID FROM employees ORDER BY DEPARTMENT_ID DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1440, 41, 2847, 17161, 11824, 834, 4309, 3, 4331, 4059, 16426, 6, 2847, 17161, 11824, 834, 567, 17683, 3, 4331, 4059, 599, 2445, 201, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 1714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 30085, 834, 567, 17683, 6, 3396, 19846, 11810, 834, 4309, 21680, 1652, 4674, 11300, 272, 476, 3396, 19846, 11810, 834, 4309, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many winners did Minas, which has 0 third places, have?
CREATE TABLE table_name_47 ( winners VARCHAR, third_place VARCHAR, team VARCHAR )
SELECT winners FROM table_name_47 WHERE third_place = "0" AND team = "minas"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 8969, 584, 4280, 28027, 6, 1025, 834, 4687, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 8969, 410, 4765, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8969, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 1025, 834, 4687, 3274, 96, 632, 121, 3430, 372, 3274, 96, 1109, 9, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
provide the number of elective hospital admission patients who have been diagnosed with other staphylococcus pneumonia.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.long_title = "Other Staphylococcus pneumonia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Which Death date has a Place of death or residence of united states, and an Age (as of 1 February 2014) of 111 years, 61 days?
CREATE TABLE table_12766 ( "Rank" real, "Name" text, "Birth date" text, "Death date" text, "Age (as of 1 February 2014)" text, "Place of death or residence" text )
SELECT "Death date" FROM table_12766 WHERE "Place of death or residence" = 'united states' AND "Age (as of 1 February 2014)" = '111 years, 61 days'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22367, 3539, 41, 96, 22557, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 279, 23, 52, 189, 833, 121, 1499, 6, 96, 2962, 9, 189, 833, 121, 1499, 6, 96, 188, 397, 41, 9, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 2962, 9, 189, 833, 121, 21680, 953, 834, 22367, 3539, 549, 17444, 427, 96, 345, 11706, 13, 1687, 42, 6198, 121, 3274, 3, 31, 15129, 15, 26, 2315, 31, 3430, 96, 188, 397, 41, 9, 7, 13, 209, 2083, 1412, 61, ...
What is the average total medals Egypt, who has less than 2 gold, has?
CREATE TABLE table_name_67 ( total INTEGER, nation VARCHAR, gold VARCHAR )
SELECT AVG(total) FROM table_name_67 WHERE nation = "egypt" AND gold < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3708, 41, 792, 3, 21342, 17966, 6, 2982, 584, 4280, 28027, 6, 2045, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 792, 9365, 7, 10438...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 17217, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 3708, 549, 17444, 427, 2982, 3274, 96, 15, 122, 63, 102, 17, 121, 3430, 2045, 3, 2, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
A bar chart showing how many representatives in each party, could you order in descending by the x-axis?
CREATE TABLE election ( Election_ID int, Representative_ID int, Date text, Votes real, Vote_Percent real, Seats real, Place real ) CREATE TABLE representative ( Representative_ID int, Name text, State text, Party text, Lifespan text )
SELECT Party, COUNT(Party) FROM representative GROUP BY Party ORDER BY Party DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4356, 41, 19488, 834, 4309, 16, 17, 6, 13517, 834, 4309, 16, 17, 6, 7678, 1499, 6, 3152, 1422, 490, 6, 3152, 17, 15, 834, 12988, 3728, 490, 6, 15915, 7, 490, 6, 3399, 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, 3450, 6, 2847, 17161, 599, 13725, 63, 61, 21680, 6978, 350, 4630, 6880, 272, 476, 3450, 4674, 11300, 272, 476, 3450, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Attendance has a Tie number of 5?
CREATE TABLE table_36001 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text )
SELECT "Attendance" FROM table_36001 WHERE "Tie no" = '5'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3420, 17465, 41, 96, 382, 23, 15, 150, 121, 1499, 6, 96, 19040, 372, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 188, 1343, 372, 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, 188, 17, 324, 26, 663, 121, 21680, 953, 834, 3420, 17465, 549, 17444, 427, 96, 382, 23, 15, 150, 121, 3274, 3, 31, 755, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the Station Name of Platform 5?
CREATE TABLE table_name_32 ( station_name VARCHAR, platform VARCHAR )
SELECT station_name FROM table_name_32 WHERE platform = "5"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 2478, 834, 4350, 584, 4280, 28027, 6, 1585, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 5939, 5570, 13, 12779, 305, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2478, 834, 4350, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 1585, 3274, 96, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which population has a GDP (nominal) of $6.4 billion?
CREATE TABLE table_name_63 (population VARCHAR, gdp__nominal_ VARCHAR)
SELECT population FROM table_name_63 WHERE gdp__nominal_ = "$6.4 billion"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 9791, 7830, 584, 4280, 28027, 6, 3, 122, 26, 102, 834, 834, 3114, 10270, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 2074, 65, 3, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2074, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 3, 122, 26, 102, 834, 834, 3114, 10270, 834, 3274, 96, 3229, 27869, 2108, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the serial numbers for the locomotives of Class 4-8-4 oooooooo northern?
CREATE TABLE table_name_28 ( serial_numbers VARCHAR, class VARCHAR )
SELECT serial_numbers FROM table_name_28 WHERE class = "4-8-4 — oooooooo — northern"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 10501, 834, 5525, 1152, 7, 584, 4280, 28027, 6, 853, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 10501, 2302, 21, 8, 31301, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 10501, 834, 5525, 1152, 7, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 853, 3274, 96, 591, 6039, 4278, 3, 318, 3, 16780, 16780, 3, 318, 8390, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
give me the number of patients whose insurance is medicare and diagnoses long title is acute respiratory failure?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.long_title = "Acute respiratory failure"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Who was No. 5 when No. 6 Mason and No. 10 Jackson?
CREATE TABLE table_9097 ( "Region (year)" text, "No. 1" text, "No. 2" text, "No. 3" text, "No. 4" text, "No. 5" text, "No. 6" text, "No. 7" text, "No. 8" text, "No. 9" text, "No. 10" text )
SELECT "No. 5" FROM table_9097 WHERE "No. 6" = 'mason' AND "No. 10" = 'jackson'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2394, 4327, 41, 96, 17748, 23, 106, 41, 1201, 61, 121, 1499, 6, 96, 4168, 5, 209, 121, 1499, 6, 96, 4168, 5, 204, 121, 1499, 6, 96, 4168, 5, 220, 121, 1499, 6, 96, 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, 96, 4168, 5, 3, 17395, 21680, 953, 834, 2394, 4327, 549, 17444, 427, 96, 4168, 5, 431, 121, 3274, 3, 31, 2754, 106, 31, 3430, 96, 4168, 5, 335, 121, 3274, 3, 31, 9325, 739, 31, 1, -100, -100, -100, -100, -100, ...
how many voted in the texas 6 section
CREATE TABLE table_1341884_45 ( first_elected VARCHAR, district VARCHAR )
SELECT first_elected FROM table_1341884_45 WHERE district = "Texas 6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2606, 4608, 834, 2128, 41, 166, 834, 19971, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 149, 186, 3, 11060, 16, 8, 3, 10354, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 166, 834, 19971, 21680, 953, 834, 23747, 2606, 4608, 834, 2128, 549, 17444, 427, 3939, 3274, 96, 13598, 9, 7, 431, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the label in the region of Argentina and had a format of CD?
CREATE TABLE table_name_82 (label VARCHAR, format VARCHAR, region VARCHAR)
SELECT label FROM table_name_82 WHERE format = "cd" AND region = "argentina"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4613, 41, 40, 10333, 584, 4280, 28027, 6, 1910, 584, 4280, 28027, 6, 1719, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 3783, 16, 8, 1719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3783, 21680, 953, 834, 4350, 834, 4613, 549, 17444, 427, 1910, 3274, 96, 75, 26, 121, 3430, 1719, 3274, 96, 9917, 77, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
In what place was the song that had a draw of 3?
CREATE TABLE table_50794 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" text )
SELECT "Place" FROM table_50794 WHERE "Draw" = '3'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 4440, 591, 41, 96, 308, 10936, 121, 490, 6, 96, 7754, 343, 121, 1499, 6, 96, 134, 2444, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 345, 11706, 121, 1499, 3, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 11706, 121, 21680, 953, 834, 1752, 4440, 591, 549, 17444, 427, 96, 308, 10936, 121, 3274, 3, 31, 519, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who did the Raptors play against when their record was 13-48?
CREATE TABLE table_18878 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Team" FROM table_18878 WHERE "Record" = '13-48'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25794, 3940, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, 3, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 18699, 121, 21680, 953, 834, 25794, 3940, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 2368, 18, 3707, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the branding for frequency 1233khz?
CREATE TABLE table_name_5 (branding VARCHAR, frequency VARCHAR)
SELECT branding FROM table_name_5 WHERE frequency = "1233khz"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 12164, 53, 584, 4280, 28027, 6, 7321, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 14282, 21, 7321, 586, 4201, 157, 107, 172, 58,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 14282, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 7321, 3274, 96, 14574, 519, 157, 107, 172, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who is the visitor from the game with 7,000 in attendance on January 1?
CREATE TABLE table_name_77 (visitor VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_77 WHERE attendance = "7,000" AND date = "january 1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4013, 41, 3466, 155, 127, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 7019, 45, 8, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7019, 21680, 953, 834, 4350, 834, 4013, 549, 17444, 427, 11364, 3274, 96, 18834, 121, 3430, 833, 3274, 96, 7066, 76, 1208, 209, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals?
CREATE TABLE table_39546 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MAX("Gold") FROM table_39546 WHERE "Total" < '171' AND "Nation" = 'united states' AND "Bronze" < '9'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3301, 4448, 41, 96, 22557, 121, 1499, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 23576, 8512, 21680, 953, 834, 519, 3301, 4448, 549, 17444, 427, 96, 3696, 1947, 121, 3, 2, 3, 31, 2517, 536, 31, 3430, 96, 567, 257, 121, 3274, 3, 31, 15129, 15, 26, 2315, 31, 3430, 96, 22780,...
What is the name when the local board is albert eden, and a Decile of 9?
CREATE TABLE table_name_36 ( name VARCHAR, local_board VARCHAR, decile VARCHAR )
SELECT name FROM table_name_36 WHERE local_board = "albert–eden" AND decile = "9"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 564, 584, 4280, 28027, 6, 415, 834, 1976, 584, 4280, 28027, 6, 7908, 109, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 116,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 415, 834, 1976, 3274, 96, 138, 7041, 104, 15, 537, 121, 3430, 7908, 109, 3274, 96, 1298, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What club had a score of 18.1?
CREATE TABLE table_68869 ( "Rank" text, "Score" text, "Player" text, "Club" text, "Opponent" text, "Year" text, "Round" text, "Venue" text )
SELECT "Club" FROM table_68869 WHERE "Score" = '18.1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3651, 927, 3951, 41, 96, 22557, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 254, 11158, 121, 1499, 6, 96, 667, 102, 9977, 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, 254, 11158, 121, 21680, 953, 834, 3651, 927, 3951, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 536, 20677, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
CREATE TABLE table_name_90 (wins VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR, team VARCHAR)
SELECT COUNT(wins) FROM table_name_90 WHERE points < 54 AND team = "yamaha" AND class = "250cc" AND year < 1977
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2394, 41, 3757, 7, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 853, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 3757, 7, 61, 21680, 953, 834, 4350, 834, 2394, 549, 17444, 427, 979, 3, 2, 10630, 3430, 372, 3274, 96, 22990, 1024, 121, 3430, 853, 3274, 96, 11434, 75, 75, 121, 3430, 215, 3, 2, 16433, 1, -100, ...
Who is the original artist of the 3:00 song?
CREATE TABLE table_63567 ( "Song" text, "Performer" text, "Original artist" text, "Length" text, "Recorded" text )
SELECT "Original artist" FROM table_63567 WHERE "Length" = '3:00'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 2469, 3708, 41, 96, 134, 2444, 121, 1499, 6, 96, 12988, 2032, 49, 121, 1499, 6, 96, 667, 3380, 10270, 2377, 121, 1499, 6, 96, 434, 4606, 189, 121, 1499, 6, 96, 1649,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 667, 3380, 10270, 2377, 121, 21680, 953, 834, 948, 2469, 3708, 549, 17444, 427, 96, 434, 4606, 189, 121, 3274, 3, 31, 519, 10, 1206, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the election for the percent of popular vote being 4.48%
CREATE TABLE table_286271_1 (election VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT election FROM table_286271_1 WHERE _percentage_of_popular_vote = "4.48%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 4056, 4450, 834, 536, 41, 15, 12252, 584, 4280, 28027, 6, 3, 834, 883, 3728, 545, 834, 858, 834, 27302, 834, 1621, 17, 15, 584, 4280, 28027, 61, 3, 32102, 32103, 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, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4356, 21680, 953, 834, 2577, 4056, 4450, 834, 536, 549, 17444, 427, 3, 834, 883, 3728, 545, 834, 858, 834, 27302, 834, 1621, 17, 15, 3274, 96, 23444, 5953, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the builder for serial number being 377
CREATE TABLE table_20236726_2 ( builder VARCHAR, serial_no VARCHAR )
SELECT builder FROM table_20236726_2 WHERE serial_no = 377
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1755, 2773, 3708, 2688, 834, 357, 41, 918, 49, 584, 4280, 28027, 6, 10501, 834, 29, 32, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 918, 49, 21, 10501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 49, 21680, 953, 834, 1755, 2773, 3708, 2688, 834, 357, 549, 17444, 427, 10501, 834, 29, 32, 3274, 220, 4013, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the web thickness if the flange width is 100?
CREATE TABLE table_2287 ( "Type" text, "Beam height (mm)" real, "Flange width (mm)" real, "Web thickness (mm)" text, "Flange thickness (mm)" text, "Weight (kg/m)" text, "Cross-section area (cm 2 )" text, "Moment of inertia in torsion (J) (cm 4 )" text )
SELECT "Web thickness (mm)" FROM table_2287 WHERE "Flange width (mm)" = '100'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 4225, 41, 96, 25160, 121, 1499, 6, 96, 2703, 265, 3902, 41, 635, 61, 121, 490, 6, 96, 371, 11327, 9400, 41, 635, 61, 121, 490, 6, 96, 15805, 14803, 41, 635, 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, 1...
[ 3, 23143, 14196, 96, 15805, 14803, 41, 635, 61, 121, 21680, 953, 834, 2884, 4225, 549, 17444, 427, 96, 371, 11327, 9400, 41, 635, 61, 121, 3274, 3, 31, 2915, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the outcome when the partner was Iryna Bremond?
CREATE TABLE table_name_13 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_13 WHERE partner = "iryna bremond"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 670, 287, 15, 584, 4280, 28027, 6, 2397, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 6138, 116, 8, 2397, 47, 27, 651, 29, 9, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6138, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 2397, 3274, 96, 23, 651, 29, 9, 3, 1999, 6764, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return me the papers by ' H. V. Jagadish ' .
CREATE TABLE domain_conference ( cid int, did int ) CREATE TABLE author ( aid int, homepage varchar, name varchar, oid int ) CREATE TABLE domain_publication ( did int, pid int ) CREATE TABLE cite ( cited int, citing int ) CREATE TABLE organization ( continent varchar, homepage varchar, name varchar, oid int ) CREATE TABLE keyword ( keyword varchar, kid int ) CREATE TABLE journal ( homepage varchar, jid int, name varchar ) CREATE TABLE writes ( aid int, pid int ) CREATE TABLE domain_keyword ( did int, kid int ) CREATE TABLE conference ( cid int, homepage varchar, name varchar ) CREATE TABLE publication_keyword ( kid int, pid int ) CREATE TABLE domain_author ( aid int, did int ) CREATE TABLE domain ( did int, name varchar ) CREATE TABLE publication ( abstract varchar, cid int, citation_num int, jid int, pid int, reference_num int, title varchar, year int ) CREATE TABLE domain_journal ( did int, jid int )
SELECT publication.title FROM author, publication, writes WHERE author.name = 'H. V. Jagadish' AND writes.aid = author.aid AND writes.pid = publication.pid
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3303, 834, 28496, 41, 3, 10812, 16, 17, 6, 410, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2291, 41, 3052, 16, 17, 6, 22844, 3, 4331, 4059, 6, 564, 3, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5707, 5, 21869, 21680, 2291, 6, 5707, 6, 11858, 549, 17444, 427, 2291, 5, 4350, 3274, 3, 31, 566, 5, 584, 5, 21520, 9, 26, 1273, 31, 3430, 11858, 5, 6146, 3274, 2291, 5, 6146, 3430, 11858, 5, 12417, 3274, 5707, ...
count the number of patients whose marital status is single and ethnicity is white?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.ethnicity = "WHITE"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 1635, 9538, 834, 8547, 302, 3274, 96, 134, 2365, 3765, 121, 3430, 14798, 5, 15, 189, 2532, 485, ...
How many bronze medals does the nation ranked number 1 have?
CREATE TABLE table_name_80 ( bronze VARCHAR, rank VARCHAR )
SELECT bronze FROM table_name_80 WHERE rank = "1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 13467, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 13467, 9365, 7, 405, 8, 2982, 3, 8232, 381, 209, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 13467, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 11003, 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, -100, -100,...
What is the lowst base pair with a Species of borrelia garinii, and a Genes larger than 832?
CREATE TABLE table_name_21 (base_pairs INTEGER, species VARCHAR, genes VARCHAR)
SELECT MIN(base_pairs) FROM table_name_21 WHERE species = "borrelia garinii" AND genes > 832
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 10925, 834, 102, 2256, 7, 3, 21342, 17966, 6, 3244, 584, 4280, 28027, 6, 13485, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 731, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 10925, 834, 102, 2256, 7, 61, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 3244, 3274, 96, 6693, 19459, 9, 5260, 77, 23, 23, 121, 3430, 13485, 2490, 505, 2668, 1, -100, -100, -100, -100, -100, ...
What Service Name has UTV as the owner?
CREATE TABLE table_78801 ( "Service name" text, "Owner" text, "Catch-up period" text, "Streamed" text, "Download" text, "Technology" text )
SELECT "Service name" FROM table_78801 WHERE "Owner" = 'utv'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 2079, 536, 41, 96, 15260, 564, 121, 1499, 6, 96, 667, 210, 687, 121, 1499, 6, 96, 254, 14547, 18, 413, 1059, 121, 1499, 6, 96, 10770, 15, 26, 121, 1499, 6, 96, 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, 96, 15260, 564, 121, 21680, 953, 834, 3940, 2079, 536, 549, 17444, 427, 96, 667, 210, 687, 121, 3274, 3, 31, 76, 17, 208, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is lab test name and lab test category of subject id 3343?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT lab.label, lab."CATEGORY" FROM lab WHERE lab.subject_id = "3343"
[ 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, 7690, 5, 40, 10333, 6, 7690, 535, 254, 6048, 5577, 11824, 121, 21680, 7690, 549, 17444, 427, 7690, 5, 7304, 11827, 834, 23, 26, 3274, 96, 4201, 4906, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?
CREATE TABLE table_name_94 ( draws INTEGER, goal_difference VARCHAR, losses VARCHAR )
SELECT MAX(draws) FROM table_name_94 WHERE goal_difference > 3 AND losses < 8
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 14924, 3, 21342, 17966, 6, 1288, 834, 26, 99, 11788, 584, 4280, 28027, 6, 8467, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 242, 3, 9, 1288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 19489, 7, 61, 21680, 953, 834, 4350, 834, 4240, 549, 17444, 427, 1288, 834, 26, 99, 11788, 2490, 220, 3430, 8467, 3, 2, 505, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the aggregate score for Montauban?
CREATE TABLE table_30160 ( "Proceed to Quarter-final" text, "Match points" text, "Aggregate score" text, "Points margin" real, "Eliminated from competition" text )
SELECT "Aggregate score" FROM table_30160 WHERE "Proceed to Quarter-final" = 'Montauban'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1458, 19129, 41, 96, 3174, 75, 6958, 12, 17610, 18, 12406, 121, 1499, 6, 96, 329, 14547, 979, 121, 1499, 6, 96, 188, 122, 18301, 342, 2604, 121, 1499, 6, 96, 22512, 7, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 122, 18301, 342, 2604, 121, 21680, 953, 834, 1458, 19129, 549, 17444, 427, 96, 3174, 75, 6958, 12, 17610, 18, 12406, 121, 3274, 3, 31, 9168, 17, 402, 3478, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
What is the high grid with 27 laps?
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR)
SELECT MAX(grid) FROM table_name_89 WHERE laps = 27
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 3496, 26, 3, 21342, 17966, 6, 14941, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 306, 8634, 28, 2307, 14941, 7, 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, 4800, 4, 599, 3496, 26, 61, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 14941, 7, 3274, 2307, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
On what Date was the Home team Detroit Red Wings with a Record of 10–41–6?
CREATE TABLE table_name_61 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_61 WHERE home = "detroit red wings" AND record = "10–41–6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 5522, 584, 4280, 28027, 6, 234, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 461, 125, 7678, 47, 8, 1210, 372, 11901, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 234, 3274, 96, 26, 15252, 155, 1131, 13943, 121, 3430, 1368, 3274, 96, 1714, 104, 4853, 104, 948, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
angiotensin ii receptor blocker (arb) - valsartan how much is that?
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 diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code 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 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 treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime 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 )
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'angiotensin ii receptor blocker (arb) - valsartan')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7757, 41, 7757, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2672, 4350, 1499, 6, 17166, 1499, 6, 2981, 20466, 29, 1499, 6, 2672, 10208, 715, 97, 6, 4845, 2916, 715, 97, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 583, 5, 11290, 21680, 583, 549, 17444, 427, 583, 5, 15, 2169, 6137, 3274, 3, 31, 26889, 31, 3430, 583, 5, 15, 2169, 23, 26, 3388, 41, 23143, 14196, 1058, 5, 26889, 23, 26, 21680, 1058, 549, ...
Where did Dennis Byrd go to college?
CREATE TABLE table_name_29 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_29 WHERE player = "dennis byrd"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 3297, 7883, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2840, 410, 18563, 938, 52, 26, 281, 12, 1900, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1900, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 1959, 3274, 96, 537, 29, 159, 57, 52, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many laps did the grid 1 engine have?
CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4314, 41, 8478, 7, 3, 21342, 17966, 6, 97, 834, 10682, 1271, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 14941, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 8478, 7, 61, 21680, 953, 834, 4350, 834, 4314, 549, 17444, 427, 97, 834, 10682, 1271, 3274, 96, 20165, 121, 3430, 8634, 3274, 209, 1, -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, find phone_number and department_id , and visualize them by a bar chart.
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 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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT PHONE_NUMBER, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 613, 834, 10193, 10972, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 5097, 8241, 834, 308, 6048, 833, 6, 3, 14920, 834, 308, 6048, 833, 6, 446, 10539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 8023, 7894, 834, 567, 6122, 12920, 6, 3396, 19846, 11810, 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, ...
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about the average of manager_id over the hire_date bin hire_date by weekday by a bar chart, I want to show by the y axis in desc.
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 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 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 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(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(MANAGER_ID) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 3396, 19846, 11810, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3396, 19846, 11810, 834, 567, 17683, 3, 4331, 4059, 599, 1458, 201, 283, 15610, 17966, 834, 4309, 7908, 1982, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 71, 17217, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 10521, 549...
let me know the number of emergency hospital admission patients who have lumbago diagnoses.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Lumbago"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What is the D43 associated with a D41 of r 16?
CREATE TABLE table_name_92 ( d_43 VARCHAR, d_41 VARCHAR )
SELECT d_43 FROM table_name_92 WHERE d_41 = "r 16"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4508, 41, 3, 26, 834, 4906, 584, 4280, 28027, 6, 3, 26, 834, 4853, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 309, 4906, 1968, 28, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 26, 834, 4906, 21680, 953, 834, 4350, 834, 4508, 549, 17444, 427, 3, 26, 834, 4853, 3274, 96, 52, 898, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the maximum Col (m) when 3,046 is the Prominence (m)?
CREATE TABLE table_49478 ( "Peak" text, "Location" text, "Height (m)" real, "Prominence (m)" real, "Col (m)" real, "Parent" text )
SELECT MAX("Col (m)") FROM table_49478 WHERE "Prominence (m)" = '3,046'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 591, 3940, 41, 96, 345, 15, 1639, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 3845, 2632, 41, 51, 61, 121, 490, 6, 96, 3174, 1109, 1433, 41, 51, 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, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 9939, 41, 51, 61, 8512, 21680, 953, 834, 3647, 591, 3940, 549, 17444, 427, 96, 3174, 1109, 1433, 41, 51, 61, 121, 3274, 3, 31, 6355, 632, 4448, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
What was the Termination of Mission date for the ambassador who was appointed by Barack Obama?
CREATE TABLE table_name_40 ( termination_of_mission VARCHAR, appointed_by VARCHAR )
SELECT termination_of_mission FROM table_name_40 WHERE appointed_by = "barack obama"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2445, 41, 18739, 834, 858, 834, 5451, 584, 4280, 28027, 6, 7817, 834, 969, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 10181, 257, 13, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18739, 834, 858, 834, 5451, 21680, 953, 834, 4350, 834, 2445, 549, 17444, 427, 7817, 834, 969, 3274, 96, 1047, 4365, 3, 32, 115, 265, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
give me the number of patients whose ethnicity is black/cape verdean and diagnoses icd9 code is 7810?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND diagnoses.icd9_code = "7810"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
how many patients aged below 56 years had the item id 51484?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "56" AND lab.itemid = "51484"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
How many NFL teams does Stevie Brown play for?
CREATE TABLE table_73245 ( "Round #" real, "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text )
SELECT COUNT("NFL Team") FROM table_73245 WHERE "Player" = 'Stevie Brown'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4552, 357, 2128, 41, 96, 448, 32, 1106, 1713, 121, 490, 6, 96, 345, 3142, 1713, 121, 490, 6, 96, 12619, 434, 2271, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 12619, 434, 2271, 8512, 21680, 953, 834, 4552, 357, 2128, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 14337, 5914, 3899, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?
CREATE TABLE table_name_52 (team VARCHAR, position_in_table VARCHAR, manner_of_departure VARCHAR)
SELECT team FROM table_name_52 WHERE position_in_table = "pre-season" AND manner_of_departure = "end of tenure as caretaker"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5373, 41, 11650, 584, 4280, 28027, 6, 1102, 834, 77, 834, 3869, 584, 4280, 28027, 6, 3107, 834, 858, 834, 221, 2274, 1462, 584, 4280, 28027, 61, 3, 32102, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 5373, 549, 17444, 427, 1102, 834, 77, 834, 3869, 3274, 96, 2026, 18, 9476, 121, 3430, 3107, 834, 858, 834, 221, 2274, 1462, 3274, 96, 989, 13, 20752, 38, 124, 4914, 52, 121, 1, -10...
What was the UK broadcast date for the episode presented by Buck Henry?
CREATE TABLE table_1209 ( "Episode No." text, "Episode Title" text, "UK Broadcast Date" text, "Presenter" text, "Countries Visited" text )
SELECT "UK Broadcast Date" FROM table_1209 WHERE "Presenter" = 'Buck Henry'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4198, 41, 96, 427, 102, 159, 32, 221, 465, 535, 1499, 6, 96, 427, 102, 159, 32, 221, 11029, 121, 1499, 6, 96, 15787, 13017, 5254, 7678, 121, 1499, 6, 96, 10572, 527...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15787, 13017, 5254, 7678, 121, 21680, 953, 834, 2122, 4198, 549, 17444, 427, 96, 10572, 5277, 49, 121, 3274, 3, 31, 279, 4636, 7780, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What Team has a Class of 350cc, with less than 13 points in 1959?
CREATE TABLE table_name_93 ( team VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR )
SELECT team FROM table_name_93 WHERE class = "350cc" AND points < 13 AND year = 1959
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 372, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 853, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 2271, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 853, 3274, 96, 16975, 75, 75, 121, 3430, 979, 3, 2, 1179, 3430, 215, 3274, 22471, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
which week had an attendance of 53,677?
CREATE TABLE table_5683 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Venue" text, "Attendance" text )
SELECT COUNT("Week") FROM table_5683 WHERE "Attendance" = '53,677'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 4591, 41, 96, 518, 10266, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 518, 10266, 8512, 21680, 953, 834, 4834, 4591, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 3274, 3, 31, 4867, 6, 3708, 940, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which vocal type has the band mate with first name 'Marianne' played the most?
CREATE TABLE band ( id VARCHAR ) CREATE TABLE vocals ( bandmate VARCHAR )
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1928, 41, 3, 23, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 1928, 5058, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 1928, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 549, 17444, 427, 166, 4350, 3274, 96, 7286, 23, 4515, 121, 350, 4630, 6880,...
What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?
CREATE TABLE orders ( order_id number, customer_id number, order_status text, date_order_placed time, order_details text ) CREATE TABLE shipment_items ( shipment_id number, order_item_id number ) CREATE TABLE products ( product_id number, product_name text, product_details text ) CREATE TABLE invoices ( invoice_number number, invoice_date time, invoice_details text ) CREATE TABLE shipments ( shipment_id number, order_id number, invoice_number number, shipment_tracking_number text, shipment_date time, other_shipment_details text ) CREATE TABLE customers ( customer_id number, customer_name text, customer_details text ) CREATE TABLE order_items ( order_item_id number, product_id number, order_id number, order_item_status text, order_item_details text )
SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5022, 41, 455, 834, 23, 26, 381, 6, 884, 834, 23, 26, 381, 6, 455, 834, 8547, 302, 1499, 6, 833, 834, 9397, 834, 4687, 26, 97, 6, 455, 834, 221, 5756, 7, 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, 3, 15438, 25424, 6227, 10921, 834, 221, 5756, 7, 21680, 10921, 7, 549, 17444, 427, 10921, 834, 5522, 3, 2, 96, 2294, 3914, 18, 4198, 18, 4928, 121, 4674, 10921, 834, 5522, 2490, 96, 20615, 5947, 14855, 121, 1, -100,...
provide the number of patients whose gender is m and diagnoses long title is cyst and pseudocyst of pancreas?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Cyst and pseudocyst of pancreas"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos
CREATE TABLE table_16662 ( "Round" real, "Grand Prix" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Constructor" text, "Report" text )
SELECT "Winning Constructor" FROM table_16662 WHERE "Fastest Lap" = 'Riccardo Patrese' AND "Location" = 'Interlagos'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26811, 4056, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 4744, 727, 12942, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 8931, 15, 14258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 518, 10503, 1193, 7593, 127, 121, 21680, 953, 834, 26811, 4056, 549, 17444, 427, 96, 371, 9, 7, 4377, 325, 102, 121, 3274, 3, 31, 448, 447, 6043, 32, 5192, 60, 7, 15, 31, 3430, 96, 434, 32, 75, 257, 121, 3...
What are the ids for courses in the Fall of 2009 or the Spring of 2010?
CREATE TABLE prereq ( course_id text, prereq_id text ) CREATE TABLE time_slot ( time_slot_id text, day text, start_hr number, start_min number, end_hr number, end_min number ) CREATE TABLE instructor ( id text, name text, dept_name text, salary number ) CREATE TABLE takes ( id text, course_id text, sec_id text, semester text, year number, grade text ) CREATE TABLE teaches ( id text, course_id text, sec_id text, semester text, year number ) CREATE TABLE classroom ( building text, room_number text, capacity number ) CREATE TABLE student ( id text, name text, dept_name text, tot_cred number ) CREATE TABLE section ( course_id text, sec_id text, semester text, year number, building text, room_number text, time_slot_id text ) CREATE TABLE advisor ( s_id text, i_id text ) CREATE TABLE course ( course_id text, title text, dept_name text, credits number ) CREATE TABLE department ( dept_name text, building text, budget number )
SELECT course_id FROM section WHERE semester = 'Fall' AND year = 2009 UNION SELECT course_id FROM section WHERE semester = 'Spring' AND year = 2010
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 554, 60, 1824, 41, 503, 834, 23, 26, 1499, 6, 554, 60, 1824, 834, 23, 26, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 97, 834, 7, 3171, 41, 97, 834, 7, 3171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 503, 834, 23, 26, 21680, 1375, 549, 17444, 427, 10542, 3274, 3, 31, 371, 1748, 31, 3430, 215, 3274, 2464, 4417, 9215, 3, 23143, 14196, 503, 834, 23, 26, 21680, 1375, 549, 17444, 427, 10542, 3274, 3, 31, 14562, 53, ...
What kind of Tongan has a North Marquesan of /ha e/?
CREATE TABLE table_name_89 ( tongan VARCHAR, north_marquesan VARCHAR )
SELECT tongan FROM table_name_89 WHERE north_marquesan = "/haʔe/"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 12, 29, 2565, 584, 4280, 28027, 6, 3457, 834, 1635, 7771, 152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 773, 13, 8475, 2565, 65, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 12, 29, 2565, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 3457, 834, 1635, 7771, 152, 3274, 96, 87, 1024, 2, 15, 87, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is Score, when Tie No is "109"?
CREATE TABLE table_name_67 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_67 WHERE tie_no = "109"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3708, 41, 7, 9022, 584, 4280, 28027, 6, 6177, 834, 29, 32, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 17763, 6, 116, 2262, 15, 465, 19, 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, 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, 3708, 549, 17444, 427, 6177, 834, 29, 32, 3274, 96, 17304, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...