NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
How many are directed by episodes with the production code 3T5009?
CREATE TABLE table_28790 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Patient Portrayer" text, "Original air date" text, "Production code" text )
SELECT COUNT("Directed by") FROM table_28790 WHERE "Production code" = '3T5009'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4225, 2394, 41, 96, 4168, 535, 490, 6, 96, 4663, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965, 324, 57, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23620, 15, 26, 57, 8512, 21680, 953, 834, 357, 4225, 2394, 549, 17444, 427, 96, 3174, 8291, 1081, 121, 3274, 3, 31, 519, 382, 2560, 1298, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
How many different end dates are there for the series seen by 4.2 million people?
CREATE TABLE table_24057191_2 (end_date VARCHAR, average_viewers__millions_ VARCHAR)
SELECT COUNT(end_date) FROM table_24057191_2 WHERE average_viewers__millions_ = "4.2"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11944, 3436, 2294, 536, 834, 357, 41, 989, 834, 5522, 584, 4280, 28027, 6, 1348, 834, 4576, 277, 834, 834, 17030, 7, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 989, 834, 5522, 61, 21680, 953, 834, 11944, 3436, 2294, 536, 834, 357, 549, 17444, 427, 1348, 834, 4576, 277, 834, 834, 17030, 7, 834, 3274, 96, 19765, 121, 1, -100, -100, -100, -100, -100, -100, -...
Which channel comes out of Israel?
CREATE TABLE table_name_83 (channel VARCHAR, country VARCHAR)
SELECT channel FROM table_name_83 WHERE country = "israel"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 19778, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 4245, 639, 91, 13, 3352, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4245, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 684, 3274, 96, 30178, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Country has a To par smaller than 7, and a Total of 148?
CREATE TABLE table_name_38 ( country VARCHAR, to_par VARCHAR, total VARCHAR )
SELECT country FROM table_name_38 WHERE to_par < 7 AND total = 148
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3747, 41, 684, 584, 4280, 28027, 6, 12, 834, 1893, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 6993, 65, 3, 9, 304, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 21680, 953, 834, 4350, 834, 3747, 549, 17444, 427, 12, 834, 1893, 3, 2, 489, 3430, 792, 3274, 3, 24748, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is Time, when Lyricist(s) is Giorgos Moukidis, and when English Translation is 'Nowhere'?
CREATE TABLE table_60618 ( "English translation" text, "Original album" text, "Lyricist(s)" text, "Composer(s)" text, "Time" text )
SELECT "Time" FROM table_60618 WHERE "Lyricist(s)" = 'giorgos moukidis' AND "English translation" = 'nowhere'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 948, 2606, 41, 96, 26749, 7314, 121, 1499, 6, 96, 667, 3380, 10270, 2306, 121, 1499, 6, 96, 434, 63, 2234, 343, 599, 7, 61, 121, 1499, 6, 96, 5890, 2748, 49, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 13368, 121, 21680, 953, 834, 3328, 948, 2606, 549, 17444, 427, 96, 434, 63, 2234, 343, 599, 7, 61, 121, 3274, 3, 31, 10253, 52, 839, 7, 13102, 2168, 26, 159, 31, 3430, 96, 26749, 7314, 121, 3274, 3, 31, 29, ...
How many high schoolers are there?
CREATE TABLE Highschooler (Id VARCHAR)
SELECT COUNT(*) FROM Highschooler
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1592, 6646, 49, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 306, 496, 277, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 1592, 6646, 49, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many draws for avia band with over 22 points?
CREATE TABLE table_10542 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" real )
SELECT COUNT("Draw") FROM table_10542 WHERE "Points" > '22' AND "Artist" = 'avia band'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12869, 4165, 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, 490, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 308, 10936, 8512, 21680, 953, 834, 12869, 4165, 549, 17444, 427, 96, 22512, 7, 121, 2490, 3, 31, 2884, 31, 3430, 96, 7754, 343, 121, 3274, 3, 31, 2960, 9, 1928, 31, 1, -100, -100, -100, -100...
Who was the centerfold model when the issue's pictorial was amanda beard, reby sky , girls of montauk ?
CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR)
SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Amanda Beard, Reby Sky , Girls of Montauk"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25463, 3651, 5373, 834, 927, 41, 13866, 10533, 834, 21770, 584, 4280, 28027, 6, 6686, 17, 11929, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 1530, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1530, 10533, 834, 21770, 21680, 953, 834, 25463, 3651, 5373, 834, 927, 549, 17444, 427, 6686, 17, 11929, 7, 3274, 96, 8123, 232, 9, 9034, 26, 6, 419, 969, 5643, 3, 6, 13312, 13, 5788, 9, 1598, 121, 1, -100, -100, ...
What are the Colt model numbers of the models named GAU-5A/A, with no bayonet lug, no case deflector and stock of 2nd generation?
CREATE TABLE table_12834315_1 ( colt_model_no VARCHAR, name VARCHAR, case_deflector VARCHAR, bayonet_lug VARCHAR, stock VARCHAR )
SELECT colt_model_no FROM table_12834315_1 WHERE bayonet_lug = "No" AND stock = "2nd Generation" AND case_deflector = "No" AND name = "GAU-5A/A"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4591, 4906, 1808, 834, 536, 41, 7632, 17, 834, 21770, 834, 29, 32, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 6, 495, 834, 221, 26303, 127, 584, 4280, 28027, 6, 1021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7632, 17, 834, 21770, 834, 29, 32, 21680, 953, 834, 2122, 4591, 4906, 1808, 834, 536, 549, 17444, 427, 10210, 782, 17, 834, 8076, 3274, 96, 4168, 121, 3430, 1519, 3274, 96, 357, 727, 11946, 121, 3430, 495, 834, 221,...
What score did the Green Bay Packers get as visitor?
CREATE TABLE table_36591 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text, "Attendance" real )
SELECT "Score" FROM table_36591 WHERE "Visitor" = 'green bay packers'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 10402, 4729, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 159, 155, 127, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 19040, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 9022, 121, 21680, 953, 834, 10402, 4729, 549, 17444, 427, 96, 553, 159, 155, 127, 121, 3274, 3, 31, 9423, 10210, 4153, 277, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What's the method for a record of 4-2 and round smaller than 3?
CREATE TABLE table_68305 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" real, "Time" text, "Location" text )
SELECT "Method" FROM table_68305 WHERE "Round" < '3' AND "Record" = '4-2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3651, 26724, 41, 96, 1649, 7, 535, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 23351, 107, 32, 26, 121, 1499, 6, 96, 448, 32, 1106, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 23351, 107, 32, 26, 121, 21680, 953, 834, 3651, 26724, 549, 17444, 427, 96, 448, 32, 1106, 121, 3, 2, 3, 31, 519, 31, 3430, 96, 1649, 7621, 121, 3274, 3, 31, 591, 4949, 31, 1, -100, -100, -100, -100, -100, ...
What was the population in 2011 of banatski karlovac?
CREATE TABLE table_27881 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text )
SELECT "Population (2011)" FROM table_27881 WHERE "Settlement" = 'Banatski Karlovac'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4060, 536, 41, 96, 17175, 17, 3335, 121, 1499, 6, 96, 254, 63, 52, 173, 2176, 5570, 2502, 5570, 7, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 27773, 7830, 25163, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 27773, 7830, 25163, 121, 21680, 953, 834, 2555, 4060, 536, 549, 17444, 427, 96, 17175, 17, 3335, 121, 3274, 3, 31, 279, 152, 144, 4009, 12345, 32, 8938, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Find the dates of the tests taken with result 'Pass', and count them by a bar chart
CREATE TABLE Students ( student_id INTEGER, date_of_registration DATETIME, date_of_latest_logon DATETIME, login_name VARCHAR(40), password VARCHAR(10), personal_name VARCHAR(40), middle_name VARCHAR(40), family_name VARCHAR(40) ) CREATE TABLE Course_Authors_and_Tutors ( author_id INTEGER, author_tutor_ATB VARCHAR(3), login_name VARCHAR(40), password VARCHAR(40), personal_name VARCHAR(80), middle_name VARCHAR(80), family_name VARCHAR(80), gender_mf VARCHAR(1), address_line_1 VARCHAR(80) ) CREATE TABLE Student_Course_Enrolment ( registration_id INTEGER, student_id INTEGER, course_id INTEGER, date_of_enrolment DATETIME, date_of_completion DATETIME ) CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_description VARCHAR(255) ) CREATE TABLE Student_Tests_Taken ( registration_id INTEGER, date_test_taken DATETIME, test_result VARCHAR(255) ) CREATE TABLE Subjects ( subject_id INTEGER, subject_name VARCHAR(120) )
SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" GROUP BY date_test_taken
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4375, 41, 1236, 834, 23, 26, 3, 21342, 17966, 6, 833, 834, 858, 834, 5200, 257, 309, 6048, 382, 15382, 6, 833, 834, 858, 834, 521, 4377, 834, 2152, 106, 309, 6048, 382, 15382, 6, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 833, 834, 4377, 834, 4914, 29, 6, 2847, 17161, 599, 5522, 834, 4377, 834, 4914, 29, 61, 21680, 6341, 834, 382, 222, 7, 834, 29468, 29, 549, 17444, 427, 794, 834, 60, 7, 83, 17, 3274, 96, 20192, 121, 350, 4630, 6...
What is the Base Fare in the senior/disabled category?
CREATE TABLE table_name_18 ( base_fares VARCHAR, fare_categories VARCHAR )
SELECT base_fares FROM table_name_18 WHERE fare_categories = "senior/disabled"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 1247, 834, 28919, 584, 4280, 28027, 6, 623, 15, 834, 8367, 839, 2593, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 8430, 5186, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1247, 834, 28919, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 623, 15, 834, 8367, 839, 2593, 3274, 96, 7, 35, 23, 127, 87, 26, 159, 179, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
get me the number of elective hospital admission patients who have drug code abac300.
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.formulary_drug_cd = "ABAC300"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
Return the results of all music festivals using a pie chart.
CREATE TABLE music_festival ( ID int, Music_Festival text, Date_of_ceremony text, Category text, Volume int, Result text ) CREATE TABLE volume ( Volume_ID int, Volume_Issue text, Issue_Date text, Weeks_on_Top real, Song text, Artist_ID int ) CREATE TABLE artist ( Artist_ID int, Artist text, Age int, Famous_Title text, Famous_Release_date text )
SELECT Result, COUNT(Result) FROM music_festival GROUP BY Result
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 723, 834, 89, 24742, 41, 4699, 16, 17, 6, 3057, 834, 371, 24742, 1499, 6, 7678, 834, 858, 834, 2110, 15, 21208, 1499, 6, 17459, 1499, 6, 14816, 16, 17, 6, 3, 20119, 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, 3, 20119, 6, 2847, 17161, 599, 20119, 61, 21680, 723, 834, 89, 24742, 350, 4630, 6880, 272, 476, 3, 20119, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which race had a distance of 4 miles where the runner-up was not known?
CREATE TABLE table_name_22 ( race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR )
SELECT race_name FROM table_name_22 WHERE dist__miles_ = "4" AND runner_up = "not known"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 1964, 834, 4350, 584, 4280, 28027, 6, 1028, 17, 834, 834, 8770, 7, 834, 584, 4280, 28027, 6, 3, 10806, 834, 413, 584, 4280, 28027, 3, 61, 3, 32102, 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, 1964, 834, 4350, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 1028, 17, 834, 834, 8770, 7, 834, 3274, 96, 20364, 3430, 3, 10806, 834, 413, 3274, 96, 2264, 801, 121, 1, -100, -100, -100, -100, -100, -100, -100,...
What is the format for the MHCP-66 Catalog?
CREATE TABLE table_name_24 ( format VARCHAR, catalog VARCHAR )
SELECT format FROM table_name_24 WHERE catalog = "mhcp-66"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2266, 41, 1910, 584, 4280, 28027, 6, 10173, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1910, 21, 8, 3, 20131, 4184, 18, 3539, 22424, 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, 1910, 21680, 953, 834, 4350, 834, 2266, 549, 17444, 427, 10173, 3274, 96, 51, 107, 75, 102, 18, 3539, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many episodes were written by seth hoffman, russel friend & garrett lerner?
CREATE TABLE table_28026156_1 (rank__week_ VARCHAR, written_by VARCHAR)
SELECT COUNT(rank__week_) FROM table_28026156_1 WHERE written_by = "Seth Hoffman, Russel Friend & Garrett Lerner"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 17518, 2688, 25463, 834, 536, 41, 6254, 834, 834, 8041, 834, 584, 4280, 28027, 6, 1545, 834, 969, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 13562, 130, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 6254, 834, 834, 8041, 834, 61, 21680, 953, 834, 17518, 2688, 25463, 834, 536, 549, 17444, 427, 1545, 834, 969, 3274, 96, 17175, 107, 27014, 6, 2770, 9816, 3, 17701, 3, 184, 27099, 14572, 49, 121, 1...
How people attended Victoria Park?
CREATE TABLE table_name_60 (crowd INTEGER, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_60 WHERE venue = "victoria park"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 75, 3623, 26, 3, 21342, 17966, 6, 5669, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 151, 5526, 7488, 1061, 58, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 17217, 599, 75, 3623, 26, 61, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 5669, 3274, 96, 7287, 3600, 9, 2447, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the average earnings of a United States player who had a score of 72-68-74-72=286?
CREATE TABLE table_name_58 ( earnings___ INTEGER, country VARCHAR, score VARCHAR )
SELECT AVG(earnings___) AS $__ FROM table_name_58 WHERE country = "united states" AND score = 72 - 68 - 74 - 72 = 286
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 8783, 834, 834, 834, 3, 21342, 17966, 6, 684, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 8783...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2741, 29, 53, 7, 834, 834, 834, 61, 6157, 1514, 834, 834, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 684, 3274, 96, 15129, 15, 26, 2315, 121, 3430, 2604, 3274, 9455, 3, 18, 3, 3651, 3, 18...
How many have been played for 362 points?
CREATE TABLE table_21779 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Bonus Points" text, "Points" text )
SELECT "Played" FROM table_21779 WHERE "Points for" = '362'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2517, 4440, 41, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 1499, 6, 96, 518, 106, 121, 1499, 6, 96, 308, 10936, 29, 121, 1499, 6, 96, 434, 3481, 121, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15800, 15, 26, 121, 21680, 953, 834, 357, 2517, 4440, 549, 17444, 427, 96, 22512, 7, 21, 121, 3274, 3, 31, 3420, 357, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What secondary class of Winter Series champion Andrew Bentley?
CREATE TABLE table_5291 ( "Season" text, "Champion" text, "Constructor" text, "Teams' Champion" text, "Secondary Class" text, "Nations Cup" text, "Winter Series Champion" text )
SELECT "Secondary Class" FROM table_5291 WHERE "Winter Series Champion" = 'andrew bentley'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5373, 4729, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 254, 1483, 12364, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 18699, 7, 31, 16127, 121, 1499, 6, 96, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 134, 15, 1018, 26, 1208, 4501, 121, 21680, 953, 834, 5373, 4729, 549, 17444, 427, 96, 518, 3870, 4531, 16127, 121, 3274, 3, 31, 232, 60, 210, 21222, 1306, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Tyne and Wear County has what total membership for their metropolitan area?
CREATE TABLE table_2273738_1 (metropolitan_area VARCHAR, county VARCHAR)
SELECT metropolitan_area FROM table_2273738_1 WHERE county = "Tyne and Wear"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 27931, 3747, 834, 536, 41, 51, 15252, 21631, 29, 834, 498, 584, 4280, 28027, 6, 5435, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 10352, 29, 15, 11, 16883, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25233, 834, 498, 21680, 953, 834, 2884, 27931, 3747, 834, 536, 549, 17444, 427, 5435, 3274, 96, 382, 63, 29, 15, 11, 16883, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
With a subjunctive of du m chast what is the imperative?
CREATE TABLE table_name_37 ( imperative VARCHAR, subjunctive VARCHAR )
SELECT imperative FROM table_name_37 WHERE subjunctive = "du måchast"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 18158, 584, 4280, 28027, 6, 769, 6959, 75, 3268, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 438, 3, 9, 769, 6959, 75, 3268, 13, 146, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 18158, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 769, 6959, 75, 3268, 3274, 96, 1259, 3, 51, 2, 3441, 7, 17, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the To Par score for player Justin Leonard?
CREATE TABLE table_name_14 ( to_par VARCHAR, player VARCHAR )
SELECT to_par FROM table_name_14 WHERE player = "justin leonard"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 12, 834, 1893, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 304, 2180, 2604, 21, 1959, 12446, 17342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 834, 1893, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 1959, 3274, 96, 4998, 77, 90, 106, 986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What engine did Scuderia Ambrosiana with fewer than 4 points have?
CREATE TABLE table_name_85 (engine VARCHAR, entrant VARCHAR, points VARCHAR)
SELECT engine FROM table_name_85 WHERE entrant = "scuderia ambrosiana" AND points < 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 20165, 584, 4280, 28027, 6, 3, 295, 3569, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1948, 410, 180, 1071, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1948, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 3, 295, 3569, 3274, 96, 7, 1071, 26, 4476, 183, 5702, 10488, 9, 121, 3430, 979, 3, 2, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the venue of season 1983, which had alianza lima as the home team?
CREATE TABLE table_name_7 ( venue VARCHAR, home_team VARCHAR, season VARCHAR )
SELECT venue FROM table_name_7 WHERE home_team = "alianza lima" AND season = 1983
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 940, 41, 5669, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 5669, 13, 774,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5669, 21680, 953, 834, 4350, 834, 940, 549, 17444, 427, 234, 834, 11650, 3274, 96, 9, 9928, 1629, 3, 4941, 9, 121, 3430, 774, 3274, 15041, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the highest gold with 1 silver, and more than 1 altogether?
CREATE TABLE table_12468 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MAX("Gold") FROM table_12468 WHERE "Silver" = '1' AND "Total" > '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22504, 3651, 41, 96, 22557, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, 3696, 1947, 121, 490, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 23576, 8512, 21680, 953, 834, 22504, 3651, 549, 17444, 427, 96, 134, 173, 624, 121, 3274, 3, 31, 536, 31, 3430, 96, 3696, 1947, 121, 2490, 3, 31, 536, 31, 1, -100, -100, -100, -100, -100, -100, ...
Class of 125cc, and a Year smaller than 1966 had what lowest wins?
CREATE TABLE table_name_95 (wins INTEGER, class VARCHAR, year VARCHAR)
SELECT MIN(wins) FROM table_name_95 WHERE class = "125cc" AND year < 1966
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 3757, 7, 3, 21342, 17966, 6, 853, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4501, 13, 3, 10124, 75, 75, 6, 11, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 3757, 7, 61, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 853, 3274, 96, 10124, 75, 75, 121, 3430, 215, 3, 2, 20658, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills?
CREATE TABLE table_name_88 (dolphins_points INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT AVG(dolphins_points) FROM table_name_88 WHERE opponent = "buffalo bills" AND attendance < 69 OFFSET 313
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 26, 23589, 77, 7, 834, 2700, 7, 3, 21342, 17966, 6, 15264, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 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, 71, 17217, 599, 26, 23589, 77, 7, 834, 2700, 7, 61, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 15264, 3274, 96, 115, 2999, 138, 32, 7200, 121, 3430, 11364, 3, 2, 3, 3951, 3, 15316, 20788, 220, 2368, 1, -...
When belgrano is the home (1st leg) what is the home (2nd leg)?
CREATE TABLE table_14219514_2 ( home__2nd_leg_ VARCHAR, home__1st_leg_ VARCHAR )
SELECT home__2nd_leg_ FROM table_14219514_2 WHERE home__1st_leg_ = "Belgrano"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24978, 22464, 2534, 834, 357, 41, 234, 834, 834, 357, 727, 834, 5772, 834, 584, 4280, 28027, 6, 234, 834, 834, 536, 7, 17, 834, 5772, 834, 584, 4280, 28027, 3, 61, 3, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 234, 834, 834, 357, 727, 834, 5772, 834, 21680, 953, 834, 24978, 22464, 2534, 834, 357, 549, 17444, 427, 234, 834, 834, 536, 7, 17, 834, 5772, 834, 3274, 96, 2703, 40, 7662, 32, 121, 1, -100, -100, -100, -100, -10...
what is the number of relapsing fever when malaria is 3000
CREATE TABLE table_1007688_1 ( relapsing_fever INTEGER, malaria VARCHAR )
SELECT MIN(relapsing_fever) FROM table_1007688_1 WHERE malaria = "3000"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2915, 3959, 4060, 834, 536, 41, 3, 60, 8478, 7, 53, 834, 89, 3258, 3, 21342, 17966, 6, 29466, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 381, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 60, 8478, 7, 53, 834, 89, 3258, 61, 21680, 953, 834, 2915, 3959, 4060, 834, 536, 549, 17444, 427, 29466, 3274, 96, 519, 2313, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?
CREATE TABLE table_1473672_2 ( nhl_team VARCHAR, college_junior_club_team VARCHAR )
SELECT nhl_team FROM table_1473672_2 WHERE college_junior_club_team = "Oshawa Generals (OMJHL)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24719, 3420, 5865, 834, 357, 41, 3, 29, 107, 40, 834, 11650, 584, 4280, 28027, 6, 1900, 834, 6959, 23, 127, 834, 13442, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 29, 107, 40, 834, 11650, 21680, 953, 834, 24719, 3420, 5865, 834, 357, 549, 17444, 427, 1900, 834, 6959, 23, 127, 834, 13442, 834, 11650, 3274, 96, 667, 15622, 9, 2146, 7, 41, 8638, 683, 13641, 61, 121, 1, -100...
After 1996, what is the average position?
CREATE TABLE table_78572 ( "Year" real, "Single" text, "Chart" text, "Position" real, "Appeared on album" text )
SELECT AVG("Position") FROM table_78572 WHERE "Year" > '1996'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 3436, 357, 41, 96, 476, 2741, 121, 490, 6, 96, 134, 53, 109, 121, 1499, 6, 96, 18947, 17, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 9648, 15, 9, 1271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 345, 32, 7, 4749, 8512, 21680, 953, 834, 3940, 3436, 357, 549, 17444, 427, 96, 476, 2741, 121, 2490, 3, 31, 2294, 4314, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What club has a league/division of fourth division?
CREATE TABLE table_14097 ( "Club" text, "League/Division" text, "Home Ground" text, "Location" text, "Position in 2012-13" text )
SELECT "Club" FROM table_14097 WHERE "League/Division" = 'fourth division'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22012, 4327, 41, 96, 254, 11158, 121, 1499, 6, 96, 2796, 9, 5398, 87, 308, 23, 6610, 121, 1499, 6, 96, 19040, 13908, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 11158, 121, 21680, 953, 834, 22012, 4327, 549, 17444, 427, 96, 2796, 9, 5398, 87, 308, 23, 6610, 121, 3274, 3, 31, 12521, 189, 4889, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which home team plays at the Western Oval?
CREATE TABLE table_name_50 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_50 WHERE venue = "western oval"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1752, 41, 5515, 834, 11650, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 234, 372, 4805, 44, 8, 3782, 411, 2165, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 1752, 549, 17444, 427, 5669, 3274, 96, 24411, 17986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Find the total number of instructors for each department with a bar chart, show by the total number in asc.
CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) )
SELECT T1.dept_name, COUNT(DISTINCT T3.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY COUNT(DISTINCT T3.ID)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 4699, 3, 4331, 4059, 15757, 6, 564, 3, 4331, 4059, 599, 1755, 201, 20, 102, 17, 834, 4350, 3, 4331, 4059, 599, 1755, 201, 12, 17, 834, 17216, 206, 17552, 599, 6355, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 26, 6707, 834, 4350, 6, 2847, 17161, 599, 15438, 25424, 6227, 332, 5787, 4309, 61, 21680, 3066, 6157, 332, 536, 3, 15355, 3162, 1236, 6157, 332, 357, 9191, 332, 5411, 26, 6707, 834, 4350, 3274, 332, 4416, ...
For the Persian Title میم مثل مادر, what were the results?
CREATE TABLE table_19625976_1 (result VARCHAR, persian_title VARCHAR)
SELECT result FROM table_19625976_1 WHERE persian_title = "میم مثل مادر"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 4056, 3390, 3959, 834, 536, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 399, 10488, 834, 21869, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 242, 8, 25518, 11029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 21680, 953, 834, 2294, 4056, 3390, 3959, 834, 536, 549, 17444, 427, 399, 10488, 834, 21869, 3274, 96, 2, 3, 2, 3, 2, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the order ids and the number of items in each order.
CREATE TABLE Order_items ( order_id VARCHAR )
SELECT order_id, COUNT(*) FROM Order_items GROUP BY order_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5197, 834, 23, 3524, 7, 41, 455, 834, 23, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 3111, 8, 455, 3, 23, 26, 7, 11, 8, 381, 13, 1173, 16, 284, 455, 5, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 455, 834, 23, 26, 6, 2847, 17161, 599, 1935, 61, 21680, 5197, 834, 23, 3524, 7, 350, 4630, 6880, 272, 476, 455, 834, 23, 26, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which round is the player from Oregon from?
CREATE TABLE table_name_32 (round VARCHAR, college VARCHAR)
SELECT round FROM table_name_32 WHERE college = "oregon"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 7775, 584, 4280, 28027, 6, 1900, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1751, 19, 8, 1959, 45, 8687, 45, 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, 1751, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 1900, 3274, 96, 127, 15, 5307, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the result in the election where the incumbent was Finis J. Garrett?
CREATE TABLE table_18692 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT "Result" FROM table_18692 WHERE "Incumbent" = 'Finis J. Garrett'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25398, 4508, 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, 20119, 121, 21680, 953, 834, 25398, 4508, 549, 17444, 427, 96, 1570, 75, 5937, 295, 121, 3274, 3, 31, 371, 77, 159, 446, 5, 27099, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the age of Fred Gibson?
CREATE TABLE table_50513 ( "Rank" real, "Name" text, "Team(s)" text, "Birth date" text, "Death date" text, "Age (as of 1 February 2014)" text, "Nationality" text )
SELECT "Age (as of 1 February 2014)" FROM table_50513 WHERE "Name" = 'fred gibson'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 755, 2368, 41, 96, 22557, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 18699, 599, 7, 61, 121, 1499, 6, 96, 279, 23, 52, 189, 833, 121, 1499, 6, 96, 2962, 9, 189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 188, 397, 41, 9, 7, 13, 209, 2083, 1412, 61, 121, 21680, 953, 834, 1752, 755, 2368, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 89, 1271, 31257, 739, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the average transaction amount for different transaction types with a bar chart, sort from low to high by the y axis.
CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Transactions_Lots ( transaction_id INTEGER, lot_id INTEGER ) CREATE TABLE Investors ( investor_id INTEGER, Investor_details VARCHAR(255) ) CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( transaction_type_code VARCHAR(10), transaction_type_description VARCHAR(80) ) CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) )
SELECT transaction_type_code, AVG(amount_of_transaction) FROM Transactions GROUP BY transaction_type_code ORDER BY AVG(amount_of_transaction)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14839, 7, 41, 1242, 834, 7031, 4787, 834, 23, 26, 3, 21342, 17966, 6, 1242, 834, 221, 5756, 7, 584, 4280, 28027, 599, 25502, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5878, 834, 6137, 834, 4978, 6, 71, 17217, 599, 9, 11231, 834, 858, 834, 7031, 4787, 61, 21680, 21469, 7, 350, 4630, 6880, 272, 476, 5878, 834, 6137, 834, 4978, 4674, 11300, 272, 476, 71, 17217, 599, 9, 11231, 834, ...
count the number of patients whose marital status is widowed and diagnoses long title is cardiac arrest?
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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "WIDOWED" AND diagnoses.long_title = "Cardiac arrest"
[ 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...
What ship size had a cargo value of $46,000 in 2006?
CREATE TABLE table_name_89 ( ship_size VARCHAR )
SELECT ship_size FROM table_name_89 WHERE 2006 = "$46,000"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 4383, 834, 7991, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 4383, 812, 141, 3, 9, 15470, 701, 13, 7514, 14835, 16, 3581, 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, 4383, 834, 7991, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 3581, 3274, 96, 3229, 591, 14835, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is Collingwood's home venue?
CREATE TABLE table_33502 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_33502 WHERE "Home team" = 'collingwood'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4201, 1752, 357, 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, 553, 35, 76, 15, 121, 21680, 953, 834, 4201, 1752, 357, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 3297, 697, 2037, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What nominated work has seattle international film festival as the award?
CREATE TABLE table_34927 ( "Year" real, "Award" text, "Nominated work" text, "Category" text, "Result" text )
SELECT "Nominated work" FROM table_34927 WHERE "Award" = 'seattle international film festival'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3647, 2555, 41, 96, 476, 2741, 121, 490, 6, 96, 188, 2239, 121, 1499, 6, 96, 4168, 1109, 920, 161, 121, 1499, 6, 96, 18610, 6066, 651, 121, 1499, 6, 96, 20119, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4168, 1109, 920, 161, 121, 21680, 953, 834, 519, 3647, 2555, 549, 17444, 427, 96, 188, 2239, 121, 3274, 3, 31, 7, 15, 9, 8692, 1038, 814, 3994, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the date of the game where Footscray was the away team?
CREATE TABLE table_name_2 ( date VARCHAR, away_team VARCHAR )
SELECT date FROM table_name_2 WHERE away_team = "footscray"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 357, 41, 833, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 13, 8, 467, 213, 15213, 7, 2935, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 357, 549, 17444, 427, 550, 834, 11650, 3274, 96, 6259, 7, 2935, 63, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest extra total before 2003 at the Meeting of all africa games?
CREATE TABLE table_name_51 (extra INTEGER, meeting VARCHAR, year VARCHAR)
SELECT MAX(extra) FROM table_name_51 WHERE meeting = "all africa games" AND year < 2003
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 25666, 3, 21342, 17966, 6, 1338, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 996, 792, 274, 3888, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 25666, 61, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 1338, 3274, 96, 1748, 24040, 1031, 121, 3430, 215, 3, 2, 3888, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the rank for the competitor from Bulgaria?
CREATE TABLE table_name_16 ( rank INTEGER, country VARCHAR )
SELECT MIN(rank) FROM table_name_16 WHERE country = "bulgaria"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 11003, 3, 21342, 17966, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 11003, 21, 8, 18766, 45, 15536, 58, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 6254, 61, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 684, 3274, 96, 6724, 122, 6286, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
what is the team that played in 2006?
CREATE TABLE table_37060 ( "Player" text, "Team" text, "Score" text, "Versus" text, "Year" real )
SELECT "Team" FROM table_37060 WHERE "Year" = '2006'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22520, 3328, 41, 96, 15800, 49, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 5000, 7, 302, 121, 1499, 6, 96, 476, 2741, 121, 490, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 96, 18699, 121, 21680, 953, 834, 22520, 3328, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 21196, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the Result of new zealand Nationality / Opponent?
CREATE TABLE table_name_56 (result VARCHAR, nationality___opponent VARCHAR)
SELECT result FROM table_name_56 WHERE nationality___opponent = "new zealand"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4834, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 1157, 485, 834, 834, 834, 32, 102, 9977, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 3, 20119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 21680, 953, 834, 4350, 834, 4834, 549, 17444, 427, 1157, 485, 834, 834, 834, 32, 102, 9977, 3274, 96, 5534, 3, 776, 138, 232, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the title of ahaziah?
CREATE TABLE table_name_16 (title VARCHAR, name VARCHAR)
SELECT title FROM table_name_16 WHERE name = "ahaziah"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 21869, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2233, 13, 3, 9, 10557, 23, 9, 107, 58, 1, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2233, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 564, 3274, 96, 9, 10557, 23, 9, 107, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest value for race?
CREATE TABLE table_1348 ( "Season" real, "Series" text, "Team Name" text, "Races" real, "Podiums" real, "Poles" real, "Wins" real, "Points" real, "Final Placing" text )
SELECT MAX("Races") FROM table_1348
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2368, 3707, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 12106, 7, 121, 1499, 6, 96, 18699, 5570, 121, 1499, 6, 96, 448, 9, 2319, 121, 490, 6, 96, 16665, 2552, 7, 121, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 448, 9, 2319, 8512, 21680, 953, 834, 2368, 3707, 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, -1...
Compute the number of times Dennis Rodman recordedhigh rebounds given a regular season
CREATE TABLE table_25696729_8 ( rebounding_high VARCHAR, season VARCHAR )
SELECT COUNT(rebounding_high) FROM table_25696729_8 WHERE season = "Regular season"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 3951, 3708, 3166, 834, 927, 41, 20756, 53, 834, 6739, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4961, 2810, 8, 381, 13, 648, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 60, 6115, 53, 834, 6739, 61, 21680, 953, 834, 1828, 3951, 3708, 3166, 834, 927, 549, 17444, 427, 774, 3274, 96, 17748, 4885, 774, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
provide the number of patients whose diagnoses long title is anemia, unspecified and lab test fluid is cerebrospinal fluid (csf)?
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Anemia, unspecified" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
What is the song name with a Volume:Issue was 70:8-9?
CREATE TABLE table_47052 ( "Volume:Issue" text, "Issue Date(s)" text, "Weeks on Top" text, "Song" text, "Artist" text )
SELECT "Song" FROM table_47052 WHERE "Volume:Issue" = '70:8-9'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27760, 5373, 41, 96, 22803, 440, 15, 10, 196, 7, 7, 76, 15, 121, 1499, 6, 96, 196, 7, 7, 76, 15, 7678, 599, 7, 61, 121, 1499, 6, 96, 1326, 16789, 30, 2224, 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, 134, 2444, 121, 21680, 953, 834, 27760, 5373, 549, 17444, 427, 96, 22803, 440, 15, 10, 196, 7, 7, 76, 15, 121, 3274, 3, 31, 2518, 10, 927, 7141, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What country is ranked smaller than 2?
CREATE TABLE table_name_16 ( country VARCHAR, rank INTEGER )
SELECT country FROM table_name_16 WHERE rank < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 684, 584, 4280, 28027, 6, 11003, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 684, 19, 3, 8232, 2755, 145, 204, 58, 1, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 11003, 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, -1...
Who directed the episode that had 0.57 million U.S. viewers?
CREATE TABLE table_3674 ( "No." real, "#" real, "Title" text, "Directed by" text, "Story by" text, "Teleplay by" text, "Original air date" text, "U.S. viewers (millions)" text )
SELECT "Directed by" FROM table_3674 WHERE "U.S. viewers (millions)" = '0.57'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3420, 4581, 41, 96, 4168, 535, 490, 6, 96, 4663, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 134, 10972, 57, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 23620, 15, 26, 57, 121, 21680, 953, 834, 3420, 4581, 549, 17444, 427, 96, 1265, 5, 134, 5, 13569, 41, 17030, 7, 61, 121, 3274, 3, 31, 12100, 940, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the amount of job_id over the job_id , and group by attribute job_id.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 2847, 17161, 599, 15355, 279, 834, 4309, 61, 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,...
What time/retired has a Grid larger than 3, and a Driver of kimi räikkönen?
CREATE TABLE table_name_65 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_65 WHERE grid > 3 AND driver = "kimi räikkönen"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4122, 41, 715, 834, 10682, 1271, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 97, 87, 10682, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 97, 834, 10682, 1271, 21680, 953, 834, 4350, 834, 4122, 549, 17444, 427, 8634, 2490, 220, 3430, 2535, 3274, 96, 19754, 23, 3, 7921, 23, 8511, 11431, 35, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the name of the racer that had a first qualification time of 1:22.085?
CREATE TABLE table_name_5 ( name VARCHAR, qual_1 VARCHAR )
SELECT name FROM table_name_5 WHERE qual_1 = "1:22.085"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 564, 584, 4280, 28027, 6, 3, 11433, 834, 536, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 1964, 52, 24, 141, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 3, 11433, 834, 536, 3274, 96, 536, 10, 2884, 5, 4018, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Name of the Gabeca Montichiari Club?
CREATE TABLE table_66334 ( "Name" text, "Height" text, "Weight" text, "Spike" text, "2008 club" text )
SELECT "Name" FROM table_66334 WHERE "2008 club" = 'gabeca montichiari'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3539, 519, 3710, 41, 96, 23954, 121, 1499, 6, 96, 3845, 2632, 121, 1499, 6, 96, 1326, 2632, 121, 1499, 6, 96, 134, 102, 5208, 121, 1499, 6, 96, 16128, 1886, 121, 1499, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 23954, 121, 21680, 953, 834, 3539, 519, 3710, 549, 17444, 427, 96, 16128, 1886, 121, 3274, 3, 31, 6172, 658, 6278, 362, 23, 1665, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many races did the Formula Three Euroseries signature team have?
CREATE TABLE table_name_2 (races INTEGER, series VARCHAR, team VARCHAR)
SELECT SUM(races) FROM table_name_2 WHERE series = "formula three euroseries" AND team = "signature"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 357, 41, 12614, 7, 3, 21342, 17966, 6, 939, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 10879, 410, 8, 13786, 5245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12614, 7, 61, 21680, 953, 834, 4350, 834, 357, 549, 17444, 427, 939, 3274, 96, 2032, 83, 9, 386, 10186, 4074, 7, 121, 3430, 372, 3274, 96, 13658, 27440, 121, 1, -100, -100, -100, -100, -100, -100, ...
Please draw a histogram to show the total number of participants in each type code, and I want to show by the y-axis from low to high please.
CREATE TABLE Participants_in_Events ( Event_ID INTEGER, Participant_ID INTEGER ) CREATE TABLE Events ( Event_ID INTEGER, Service_ID INTEGER, Event_Details VARCHAR(255) ) CREATE TABLE Services ( Service_ID INTEGER, Service_Type_Code CHAR(15) ) CREATE TABLE Participants ( Participant_ID INTEGER, Participant_Type_Code CHAR(15), Participant_Details VARCHAR(255) )
SELECT Participant_Type_Code, COUNT(Participant_Type_Code) FROM Participants GROUP BY Participant_Type_Code ORDER BY COUNT(Participant_Type_Code)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 19204, 834, 77, 834, 427, 2169, 7, 41, 8042, 834, 4309, 3, 21342, 17966, 6, 15077, 288, 834, 4309, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 11137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 15077, 288, 834, 25160, 834, 22737, 6, 2847, 17161, 599, 13725, 23, 3389, 288, 834, 25160, 834, 22737, 61, 21680, 19204, 350, 4630, 6880, 272, 476, 15077, 288, 834, 25160, 834, 22737, 4674, 11300, 272, 476, 2847, 17161,...
For those employees who do not work in departments with managers that have ids between 100 and 200, return a scatter chart about the correlation between employee_id and department_id .
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) )
SELECT EMPLOYEE_ID, 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, 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, 262, 5244, 5017, 476, 5080, 834, 4309, 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, ...
In which year were most of ships built?
CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text )
SELECT built_year FROM ship GROUP BY built_year ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4383, 41, 4383, 834, 23, 26, 381, 6, 564, 1499, 6, 686, 1499, 6, 1192, 834, 1201, 381, 6, 853, 1499, 6, 5692, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1426...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1192, 834, 1201, 21680, 4383, 350, 4630, 6880, 272, 476, 1192, 834, 1201, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which English has German of leben?
CREATE TABLE table_59084 ( "German" text, "Low German" text, "Plautdietsch" text, "Dutch" text, "English" text )
SELECT "English" FROM table_59084 WHERE "German" = 'leben'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3390, 4018, 591, 41, 96, 24518, 121, 1499, 6, 96, 434, 2381, 2968, 121, 1499, 6, 96, 345, 28734, 2498, 10904, 121, 1499, 6, 96, 12998, 17, 524, 121, 1499, 6, 96, 26749, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 96, 26749, 121, 21680, 953, 834, 3390, 4018, 591, 549, 17444, 427, 96, 24518, 121, 3274, 3, 31, 8766, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of patients whose admission location is trsf within this facility and procedure icd9 code is 3723?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND procedures.icd9_code = "3723"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Which player's runs are 270?
CREATE TABLE table_name_43 (player VARCHAR, runs VARCHAR)
SELECT player FROM table_name_43 WHERE runs = "270"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4906, 41, 20846, 584, 4280, 28027, 6, 3154, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1959, 31, 7, 3154, 33, 3, 17485, 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, 1959, 21680, 953, 834, 4350, 834, 4906, 549, 17444, 427, 3154, 3274, 96, 17485, 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 was the result of the Award of Drama desk award nominee Tom Hewitt.
CREATE TABLE table_name_37 (result VARCHAR, award VARCHAR, nominee VARCHAR)
SELECT result FROM table_name_37 WHERE award = "drama desk award" AND nominee = "tom hewitt"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 2760, 584, 4280, 28027, 6, 21077, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 741, 13, 8, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 2760, 3274, 96, 26, 10819, 4808, 2760, 121, 3430, 21077, 3274, 96, 235, 51, 3, 88, 7820, 17, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
what is the average days of hospital stay of patients whose primary disease is aortic insufficiency\re-do sternotomy; aortic valve replacement?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT "
[ 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, 71, 17217, 599, 1778, 16587, 5, 1135, 7, 834, 21545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 188, 2990, 18679, 3388, 4138, 9089, 18316, 5332, 17063, 2, 4386, 18, 9857, 3, 20727, 567, ...
Find the names of all the customers and staff members.
CREATE TABLE customers ( customer_details VARCHAR, staff_details VARCHAR ) CREATE TABLE staff ( customer_details VARCHAR, staff_details VARCHAR )
SELECT customer_details FROM customers UNION SELECT staff_details FROM staff
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 722, 41, 884, 834, 221, 5756, 7, 584, 4280, 28027, 6, 871, 834, 221, 5756, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 871, 41, 884, 834, 221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 884, 834, 221, 5756, 7, 21680, 722, 4417, 9215, 3, 23143, 14196, 871, 834, 221, 5756, 7, 21680, 871, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the minimum score given in judging panel points?
CREATE TABLE table_26485957_1 (judging_panel_points INTEGER)
SELECT MIN(judging_panel_points) FROM table_26485957_1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 3707, 3390, 3436, 834, 536, 41, 24331, 834, 28726, 834, 2700, 7, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2559, 2604, 787, 16, 3, 24331, 2952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 24331, 834, 28726, 834, 2700, 7, 61, 21680, 953, 834, 2688, 3707, 3390, 3436, 834, 536, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Find the first name of the band mate that has performed in most songs.
CREATE TABLE Songs ( SongId VARCHAR ) CREATE TABLE Band ( firstname VARCHAR, id VARCHAR ) CREATE TABLE Performance ( bandmate VARCHAR )
SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18142, 41, 11263, 196, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4483, 41, 166, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 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, 3, 17, 4416, 14672, 4350, 21680, 8233, 6157, 3, 17, 536, 3, 15355, 3162, 4483, 6157, 3, 17, 357, 9191, 3, 17, 5411, 3348, 5058, 3274, 3, 17, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, 332, 5787, ...
What was the date of the game that had a goal of 4?
CREATE TABLE table_name_58 ( date VARCHAR, goal VARCHAR )
SELECT date FROM table_name_58 WHERE goal = 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 833, 584, 4280, 28027, 6, 1288, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 833, 13, 8, 467, 24, 141, 3, 9, 1288, 13, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 1288, 3274, 314, 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,...
Which team won at winton motor raceway?
CREATE TABLE table_61211 ( "Date" text, "Series" text, "Circuit" text, "City / State" text, "Winner" text, "Team" text )
SELECT "Team" FROM table_61211 WHERE "Circuit" = 'winton motor raceway'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4241, 27278, 41, 96, 308, 342, 121, 1499, 6, 96, 12106, 7, 121, 1499, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 254, 485, 3, 87, 1015, 121, 1499, 6, 96, 18455, 687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 18699, 121, 21680, 953, 834, 4241, 27278, 549, 17444, 427, 96, 254, 23, 52, 21560, 121, 3274, 3, 31, 3757, 17, 106, 2340, 1964, 1343, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the proportion of the minimum price of the rooms for each different decor? Show me a pie chart!
CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT ) CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER )
SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4181, 7, 41, 4181, 196, 26, 3, 3463, 4, 382, 6, 562, 23954, 3, 3463, 4, 382, 6, 8326, 3, 21342, 17966, 6, 1953, 25160, 3, 3463, 4, 382, 6, 9858, 667, 75, 4658, 6833, 3, 21342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4469, 6, 3, 17684, 599, 10925, 345, 4920, 61, 21680, 4181, 7, 350, 4630, 6880, 272, 476, 4469, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the location/state of the race on 16 Jun?
CREATE TABLE table_57765 ( "Heat." real, "Race Title" text, "Circuit" text, "Location / State" text, "Date" text, "Winner" text, "Team" text )
SELECT "Location / State" FROM table_57765 WHERE "Date" = '16 jun'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3436, 3959, 755, 41, 96, 3845, 144, 535, 490, 6, 96, 448, 3302, 11029, 121, 1499, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 434, 32, 75, 257, 3, 87, 1015, 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, 434, 32, 75, 257, 3, 87, 1015, 121, 21680, 953, 834, 3436, 3959, 755, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 2938, 3, 6959, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many player eliminated an opponent within the time frame of 32:32?
CREATE TABLE table_18598175_2 (eliminated_by VARCHAR, time VARCHAR)
SELECT COUNT(eliminated_by) FROM table_18598175_2 WHERE time = "32:32"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 3390, 4959, 3072, 834, 357, 41, 15, 4941, 77, 920, 834, 969, 584, 4280, 28027, 6, 97, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1959, 17809, 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, 2847, 17161, 599, 15, 4941, 77, 920, 834, 969, 61, 21680, 953, 834, 2606, 3390, 4959, 3072, 834, 357, 549, 17444, 427, 97, 3274, 96, 2668, 10, 2668, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which species has 3,441 genes?
CREATE TABLE table_58062 ( "Species" text, "Strain" text, "Type" text, "Base Pairs" text, "Genes" text )
SELECT "Species" FROM table_58062 WHERE "Genes" = '3,441'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3449, 5176, 357, 41, 96, 7727, 725, 121, 1499, 6, 96, 134, 9719, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 14885, 15, 25072, 7, 121, 1499, 6, 96, 13714, 15, 7, 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, 0, 0, 0...
[ 3, 23143, 14196, 96, 7727, 725, 121, 21680, 953, 834, 3449, 5176, 357, 549, 17444, 427, 96, 13714, 15, 7, 121, 3274, 3, 31, 6355, 3628, 536, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the notes of Cardinal-Deacon of S. Maria in Portico?
CREATE TABLE table_name_95 ( notes VARCHAR, cardinalatial_order_and_title VARCHAR )
SELECT notes FROM table_name_95 WHERE cardinalatial_order_and_title = "cardinal-deacon of s. maria in portico"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 3358, 584, 4280, 28027, 6, 895, 10270, 9, 10646, 834, 9397, 834, 232, 834, 21869, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 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, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3358, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 895, 10270, 9, 10646, 834, 9397, 834, 232, 834, 21869, 3274, 96, 6043, 10270, 18, 221, 9, 1018, 13, 3, 7, 5, 2774, 9, 16, 2147, 5807, 121, 1, -100, -100, ...
What is the 2002 statistic for the product that had 452,000 tonnes in 2001?
CREATE TABLE table_name_7 (Id VARCHAR)
SELECT 2002 FROM table_name_7 WHERE 2001 = "452,000 tonnes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 940, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4407, 19720, 21, 8, 556, 24, 141, 3479, 8630, 19637, 16, 4402, 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, 4407, 21680, 953, 834, 4350, 834, 940, 549, 17444, 427, 4402, 3274, 96, 2128, 8630, 19637, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the last year someone was elected to the 14th district?
CREATE TABLE table_72455 ( "District" text, "Incumbent" text, "Party" text, "Elected" real, "Status" text, "2007 Result" text )
SELECT MAX("Elected") FROM table_72455 WHERE "District" = '14th'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2266, 3769, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 21543, 15, 26, 121, 490, 6, 96, 134, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21543, 15, 26, 8512, 21680, 953, 834, 940, 2266, 3769, 549, 17444, 427, 96, 308, 23, 20066, 121, 3274, 3, 31, 2534, 189, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the opponent for week 10?
CREATE TABLE table_name_17 ( opponent VARCHAR, week VARCHAR )
SELECT opponent FROM table_name_17 WHERE week = 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 15264, 584, 4280, 28027, 6, 471, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 19, 8, 15264, 21, 471, 335, 58, 1, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 471, 3274, 335, 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...
List the number of departments for each building with a bar chart, and show X in ascending order.
CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) )
SELECT building, COUNT(building) FROM department GROUP BY building ORDER BY building
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 503, 41, 503, 834, 23, 26, 3, 4331, 4059, 28007, 6, 2233, 3, 4331, 4059, 599, 1752, 201, 20, 102, 17, 834, 4350, 3, 4331, 4059, 599, 1755, 201, 11893, 206, 17552, 599, 4482, 632, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 740, 6, 2847, 17161, 599, 10905, 61, 21680, 3066, 350, 4630, 6880, 272, 476, 740, 4674, 11300, 272, 476, 740, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Create a bar chart showing the number of city across city, order in asc by the bars.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT CITY, COUNT(CITY) FROM locations GROUP BY CITY ORDER BY CITY
[ 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, 205, 15296, 6, 2847, 17161, 599, 254, 15296, 61, 21680, 3248, 350, 4630, 6880, 272, 476, 205, 15296, 4674, 11300, 272, 476, 205, 15296, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is procedure icd9 code of subject id 10317?
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 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 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 procedures.icd9_code FROM procedures WHERE procedures.subject_id = "10317"
[ 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, 4293, 5, 447, 26, 1298, 834, 4978, 21680, 4293, 549, 17444, 427, 4293, 5, 7304, 11827, 834, 23, 26, 3274, 96, 17864, 2517, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What county has 2053 households?
CREATE TABLE table_1447085_1 (county VARCHAR, number_of_households VARCHAR)
SELECT county FROM table_1447085_1 WHERE number_of_households = 2053
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20885, 2518, 4433, 834, 536, 41, 13362, 63, 584, 4280, 28027, 6, 381, 834, 858, 834, 1840, 6134, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 5435, 65, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5435, 21680, 953, 834, 20885, 2518, 4433, 834, 536, 549, 17444, 427, 381, 834, 858, 834, 1840, 6134, 7, 3274, 460, 4867, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which Supercopa Sudamericana 1992 has a Team of santos?
CREATE TABLE table_name_83 (supercopa_sudamericana_1992 VARCHAR, team VARCHAR)
SELECT supercopa_sudamericana_1992 FROM table_name_83 WHERE team = "santos"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 21771, 10845, 9, 834, 7, 76, 26, 23064, 29, 9, 834, 19479, 357, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1355, 10845, 9, 834, 7, 76, 26, 23064, 29, 9, 834, 19479, 357, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 372, 3274, 96, 7, 288, 32, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who were the candidates in districk Pennsylvania 12?
CREATE TABLE table_2668199_2 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_2668199_2 WHERE district = "Pennsylvania 12"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 3651, 19479, 834, 357, 41, 1608, 12416, 6203, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 130, 8, 4341, 16, 18814, 3142, 8913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4341, 21680, 953, 834, 2688, 3651, 19479, 834, 357, 549, 17444, 427, 3939, 3274, 96, 345, 35, 29, 7, 63, 40, 16658, 9, 586, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which party has a voting total greater than 4,478?
CREATE TABLE table_name_51 ( party VARCHAR, votes INTEGER )
SELECT party FROM table_name_51 WHERE votes > 4 OFFSET 478
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 1088, 584, 4280, 28027, 6, 11839, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 1088, 65, 3, 9, 10601, 792, 2123, 145, 6464, 591, 3940, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1088, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 11839, 2490, 314, 3, 15316, 20788, 314, 3940, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For those records from the products and each product's manufacturer, find name and the average of manufacturer , and group by attribute name, and visualize them by a bar chart, sort mean manufacturer in ascending order.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Manufacturer
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15248, 7, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 3642, 19973, 584, 4280, 28027, 599, 25502, 201, 3, 19145, 584, 4280, 28027, 599, 25502, 201, 19764, 17833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 332, 5411, 7296, 76, 8717, 450, 49, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272,...
what is the total number of rounds ?
CREATE TABLE table_204_234 ( id number, "round" text, "100 yd (91 m)" text, "80 yd (73 m)" text, "60 yd (55 m)" text, "50 yd (46 m)" text, "40 yd (37 m)" text )
SELECT COUNT("round") FROM table_204_234
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 357, 3710, 41, 3, 23, 26, 381, 6, 96, 7775, 121, 1499, 6, 96, 2915, 3, 63, 26, 41, 4729, 3, 51, 61, 121, 1499, 6, 96, 2079, 3, 63, 26, 41, 4552, 3, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 7775, 8512, 21680, 953, 834, 26363, 834, 357, 3710, 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...
Return a pie on how many students are older than average for each gender?
CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) )
SELECT Sex, COUNT(*) FROM Student WHERE Age > (SELECT AVG(Age) FROM Student) GROUP BY Sex
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4498, 834, 9, 904, 485, 41, 103, 52, 6983, 3, 21342, 17966, 6, 183, 35, 23, 26, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3306, 7, 834, 77, 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, 679, 226, 6, 2847, 17161, 599, 1935, 61, 21680, 6341, 549, 17444, 427, 7526, 2490, 41, 23143, 14196, 71, 17217, 599, 188, 397, 61, 21680, 6341, 61, 350, 4630, 6880, 272, 476, 679, 226, 1, -100, -100, -100, -100, -10...
What chassis did the porsche flat-4 use before 1958?
CREATE TABLE table_name_44 ( chassis VARCHAR, engine VARCHAR, year VARCHAR )
SELECT chassis FROM table_name_44 WHERE engine = "porsche flat-4" AND year < 1958
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 22836, 584, 4280, 28027, 6, 1948, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 22836, 410, 8, 5569, 3992, 2667,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22836, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 1948, 3274, 96, 102, 127, 3992, 2667, 18, 20364, 3430, 215, 3, 2, 22306, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who was the opponent at the League Cup competition with a score of 3-1?
CREATE TABLE table_35890 ( "Date" text, "Competition" text, "Opponents" text, "Venue" text, "Score" text )
SELECT "Opponents" FROM table_35890 WHERE "Competition" = 'league cup' AND "Score" = '3-1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3449, 2394, 41, 96, 308, 342, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 1499, 6, 96, 667, 102, 9977, 7, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 667, 102, 9977, 7, 121, 21680, 953, 834, 519, 3449, 2394, 549, 17444, 427, 96, 5890, 4995, 4749, 121, 3274, 3, 31, 29512, 4119, 31, 3430, 96, 134, 9022, 121, 3274, 3, 31, 519, 2292, 31, 1, -100, -100, -100, ...
What was the passenger fare for Lansing, when the passenger fare for Kalamazoo was $599.39?
CREATE TABLE table_9690 ( "Year" real, "Lansing (LAN)" text, "Detroit (DTW)" text, "Grand Rapids (GRR)" text, "Flint (FNT)" text, "Kalamazoo (AZO)" text, "Saginaw (MBS)" text )
SELECT "Lansing (LAN)" FROM table_9690 WHERE "Kalamazoo (AZO)" = '$599.39'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4314, 2394, 41, 96, 476, 2741, 121, 490, 6, 96, 434, 3247, 53, 41, 12303, 61, 121, 1499, 6, 96, 308, 15252, 155, 41, 12111, 518, 61, 121, 1499, 6, 96, 4744, 727, 13836, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 3247, 53, 41, 12303, 61, 121, 21680, 953, 834, 4314, 2394, 549, 17444, 427, 96, 439, 138, 265, 17694, 32, 41, 10491, 667, 61, 121, 3274, 3, 31, 3229, 3390, 8797, 3288, 31, 1, -100, -100, -100, -100, -100,...
Find the number of different product types.
CREATE TABLE products (product_type_code VARCHAR)
SELECT COUNT(DISTINCT product_type_code) FROM products
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 15892, 834, 6137, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2588, 8, 381, 13, 315, 556, 1308, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 556, 834, 6137, 834, 4978, 61, 21680, 494, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...