NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Find the names of the items that did not receive any review.
CREATE TABLE item ( i_id number, title text ) CREATE TABLE review ( a_id number, u_id number, i_id number, rating number, rank number ) CREATE TABLE useracct ( u_id number, name text ) CREATE TABLE trust ( source_u_id number, target_u_id number, trust number )
SELECT title FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2118, 41, 3, 23, 834, 23, 26, 381, 6, 2233, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1132, 41, 3, 9, 834, 23, 26, 381, 6, 3, 76, 834, 23, 26, 381, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2233, 21680, 2118, 549, 17444, 427, 4486, 3, 23, 834, 23, 26, 3388, 41, 23143, 14196, 3, 23, 834, 23, 26, 21680, 1132, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the name of the person with a courtesy title of sanuki-no-kami/jiju?
CREATE TABLE table_name_32 ( name VARCHAR, courtesy_title VARCHAR )
SELECT name FROM table_name_32 WHERE courtesy_title = "sanuki-no-kami/jiju"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 564, 584, 4280, 28027, 6, 3, 14726, 834, 21869, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 568, 28, 3, 9, 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, 1...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 3, 14726, 834, 21869, 3274, 96, 7, 152, 1598, 23, 18, 29, 32, 18, 157, 3690, 87, 354, 23, 2047, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the average bronze for less than 0 gold?
CREATE TABLE table_60715 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Bronze") FROM table_60715 WHERE "Gold" < '0'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 940, 1808, 41, 96, 22557, 121, 490, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 22780, 29, 776, 8512, 21680, 953, 834, 3328, 940, 1808, 549, 17444, 427, 96, 23576, 121, 3, 2, 3, 31, 632, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How much did the home team Geelong score?
CREATE TABLE table_name_50 ( home_team VARCHAR )
SELECT home_team AS score FROM table_name_50 WHERE home_team = "geelong"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1752, 41, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 231, 410, 8, 234, 372, 961, 15, 2961, 2604, 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, 234, 834, 11650, 6157, 2604, 21680, 953, 834, 4350, 834, 1752, 549, 17444, 427, 234, 834, 11650, 3274, 96, 397, 15, 2961, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many years had fewer than 2089.2 pigs?
CREATE TABLE table_60643 ( "Year" real, "Total Horses" real, "Working Horses" text, "Total Cattle" real, "Oxen" real, "Bulls" text, "Cows" real, "Pigs" real, "Sheep and Goats" real )
SELECT COUNT("Year") FROM table_60643 WHERE "Pigs" < '2089.2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 4389, 519, 41, 96, 476, 2741, 121, 490, 6, 96, 3696, 1947, 13538, 7, 121, 490, 6, 96, 12492, 53, 13538, 7, 121, 1499, 6, 96, 3696, 1947, 1336, 8692, 121, 490, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 476, 2741, 8512, 21680, 953, 834, 3328, 4389, 519, 549, 17444, 427, 96, 345, 23, 122, 7, 121, 3, 2, 3, 31, 1755, 3914, 5, 357, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which movie originated in Bulgaria?
CREATE TABLE table_name_9 (film_title_used_in_nomination VARCHAR, country VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_9 WHERE country = "bulgaria"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1298, 41, 9988, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1974, 238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 814, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 21680, 953, 834, 4350, 834, 1298, 549, 17444, 427, 684, 3274, 96, 6724, 122, 6286, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the only nation to receive three gold medals ?
CREATE TABLE table_204_775 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT "nation" FROM table_204_775 WHERE "gold" = 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 940, 3072, 41, 3, 23, 26, 381, 6, 96, 6254, 121, 381, 6, 96, 29, 257, 121, 1499, 6, 96, 14910, 121, 381, 6, 96, 7, 173, 624, 121, 381, 6, 96, 13711, 776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29, 257, 121, 21680, 953, 834, 26363, 834, 940, 3072, 549, 17444, 427, 96, 14910, 121, 3274, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the theme and artist name for the exhibition with a ticket price higher than the average?
CREATE TABLE exhibition ( exhibition_id number, year number, theme text, artist_id number, ticket_price number ) CREATE TABLE exhibition_record ( exhibition_id number, date text, attendance number ) CREATE TABLE artist ( artist_id number, name text, country text, year_join number, age number )
SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4473, 41, 4473, 834, 23, 26, 381, 6, 215, 381, 6, 3800, 1499, 6, 2377, 834, 23, 26, 381, 6, 4142, 834, 102, 4920, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 532, 526, 6, 332, 4416, 4350, 21680, 4473, 6157, 332, 536, 3, 15355, 3162, 2377, 6157, 332, 357, 9191, 332, 5411, 1408, 343, 834, 23, 26, 3274, 332, 4416, 1408, 343, 834, 23, 26, 549, 17444, 427, 332, 5...
Which constructor was present at the Redex Trophy race?
CREATE TABLE table_1140114_5 (constructor VARCHAR, race_name VARCHAR)
SELECT constructor FROM table_1140114_5 WHERE race_name = "RedeX Trophy"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 2445, 18959, 834, 755, 41, 15982, 5317, 584, 4280, 28027, 6, 1964, 834, 4350, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 6774, 127, 47, 915, 44, 8, 1624...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6774, 127, 21680, 953, 834, 2596, 2445, 18959, 834, 755, 549, 17444, 427, 1964, 834, 4350, 3274, 96, 1649, 221, 4, 26912, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many vacators were in the Pennsylvania 33rd district?
CREATE TABLE table_224794_3 ( vacator VARCHAR, district VARCHAR )
SELECT COUNT(vacator) FROM table_224794_3 WHERE district = "Pennsylvania 33rd"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 4177, 4240, 834, 519, 41, 3, 8938, 1016, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 3, 8938, 6230, 130, 16, 8, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 8938, 1016, 61, 21680, 953, 834, 2884, 4177, 4240, 834, 519, 549, 17444, 427, 3939, 3274, 96, 345, 35, 29, 7, 63, 40, 16658, 9, 5400, 52, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -10...
List all winning scores from 1982.
CREATE TABLE table_73388 ( "Year" real, "Champion" text, "Country" text, "Venue" text, "Location of venue" text, "Winners Score" text, "Winners share ( $ )" real )
SELECT "Winners Score" FROM table_73388 WHERE "Year" = '1982'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4552, 519, 4060, 41, 96, 476, 2741, 121, 490, 6, 96, 254, 1483, 12364, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 434, 32, 75, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18455, 687, 7, 17763, 121, 21680, 953, 834, 4552, 519, 4060, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 2294, 4613, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the monounsaturated fat with a smoke point of c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?
CREATE TABLE table_name_85 ( monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR )
SELECT monounsaturated_fat FROM table_name_85 WHERE smoke_point = "°c ()" AND total_fat = "100g" AND polyunsaturated_fat = "11g" AND saturated_fat = "14g"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4433, 41, 7414, 202, 7, 6010, 920, 834, 6589, 584, 4280, 28027, 6, 25703, 834, 6589, 584, 4280, 28027, 6, 4251, 202, 7, 6010, 920, 834, 6589, 584, 4280, 28027, 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, 7414, 202, 7, 6010, 920, 834, 6589, 21680, 953, 834, 4350, 834, 4433, 549, 17444, 427, 7269, 834, 2700, 3274, 96, 1956, 75, 41, 61, 121, 3430, 792, 834, 6589, 3274, 96, 2915, 122, 121, 3430, 4251, 202, 7, 6010, 92...
Which Result F-A has Opponents of rosenborg?
CREATE TABLE table_name_8 ( result_f___a VARCHAR, opponents VARCHAR )
SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 741, 834, 89, 834, 834, 834, 9, 584, 4280, 28027, 6, 16383, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 3, 20119, 377, 18, 188, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 834, 89, 834, 834, 834, 9, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 16383, 3274, 96, 1859, 35, 23685, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Nanquan has a Nandao smaller than 9.44, and a Rank smaller than 9, and a Total larger than 18.68?
CREATE TABLE table_78858 ( "Rank" real, "Athlete" text, "Nandao" real, "Nanquan" real, "Total" real )
SELECT MIN("Nanquan") FROM table_78858 WHERE "Nandao" < '9.44' AND "Rank" < '9' AND "Total" > '18.68'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 927, 3449, 41, 96, 22557, 121, 490, 6, 96, 188, 189, 1655, 15, 121, 1499, 6, 96, 567, 232, 9, 32, 121, 490, 6, 96, 567, 152, 4960, 29, 121, 490, 6, 96, 3696, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 567, 152, 4960, 29, 8512, 21680, 953, 834, 3940, 927, 3449, 549, 17444, 427, 96, 567, 232, 9, 32, 121, 3, 2, 3, 31, 8797, 3628, 31, 3430, 96, 22557, 121, 3, 2, 3, 31, 1298, 31, 3430, 96, ...
When the power kw is 5kw, what is the frequency?
CREATE TABLE table_24418525_1 ( frequency VARCHAR, power_kw VARCHAR )
SELECT frequency FROM table_24418525_1 WHERE power_kw = "5kW"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3628, 21594, 1828, 834, 536, 41, 7321, 584, 4280, 28027, 6, 579, 834, 157, 210, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 8, 579, 3, 157, 210, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7321, 21680, 953, 834, 357, 3628, 21594, 1828, 834, 536, 549, 17444, 427, 579, 834, 157, 210, 3274, 96, 755, 21729, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How much Overall has a Pick # of 26?
CREATE TABLE table_name_25 (overall INTEGER, pick__number VARCHAR)
SELECT SUM(overall) FROM table_name_25 WHERE pick__number = 26
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 1890, 1748, 3, 21342, 17966, 6, 1432, 834, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 231, 9126, 65, 3, 9, 8356, 1713, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 1890, 1748, 61, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 1432, 834, 834, 5525, 1152, 3274, 2208, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
List the status shared by more than two roller coaster.
CREATE TABLE roller_coaster ( roller_coaster_id number, name text, park text, country_id number, length number, height number, speed text, opened text, status text ) CREATE TABLE country ( country_id number, name text, population number, area number, languages text )
SELECT status FROM roller_coaster GROUP BY status HAVING COUNT(*) > 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10866, 834, 25500, 49, 41, 10866, 834, 25500, 49, 834, 23, 26, 381, 6, 564, 1499, 6, 2447, 1499, 6, 684, 834, 23, 26, 381, 6, 2475, 381, 6, 3902, 381, 6, 1634, 1499, 6, 2946, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2637, 21680, 10866, 834, 25500, 49, 350, 4630, 6880, 272, 476, 2637, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Grid for Rider Ruben Xaus?
CREATE TABLE table_name_22 ( grid INTEGER, rider VARCHAR )
SELECT MIN(grid) FROM table_name_22 WHERE rider = "ruben xaus"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 8634, 3, 21342, 17966, 6, 2564, 52, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 23644, 21, 25218, 15612, 35, 3, 4, 2064, 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, 3, 17684, 599, 3496, 26, 61, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 2564, 52, 3274, 96, 14446, 35, 3, 226, 2064, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21
CREATE TABLE Timed_Status_of_Things ( thing_id VARCHAR, Status_of_Thing_Code VARCHAR, Date_and_Date VARCHAR ) CREATE TABLE Things ( thing_id VARCHAR, Type_of_Thing_Code VARCHAR )
SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2900, 26, 834, 134, 17, 144, 302, 834, 858, 834, 8991, 53, 7, 41, 589, 834, 23, 26, 584, 4280, 28027, 6, 19318, 834, 858, 834, 8991, 53, 834, 22737, 584, 4280, 28027, 6, 7678, 834,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 4416, 8052, 834, 23, 26, 6, 332, 4416, 25160, 834, 858, 834, 8991, 53, 834, 22737, 21680, 2900, 26, 834, 134, 17, 144, 302, 834, 858, 834, 8991, 53, 7, 6157, 332, 536, 3, 15355, 3162, ...
what is the drug type of the drug hydrocerin?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Hydrocerin"
[ 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, 7744, 7, 5, 26, 13534, 834, 6137, 21680, 7744, 7, 549, 17444, 427, 7744, 7, 5, 26, 13534, 3274, 96, 566, 63, 26, 7818, 6655, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the name of the Guest Host for Episode Number of 5?
CREATE TABLE table_name_73 ( guest_host VARCHAR, episode_number VARCHAR )
SELECT guest_host FROM table_name_73 WHERE episode_number = 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 3886, 834, 12675, 584, 4280, 28027, 6, 5640, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 14252, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3886, 834, 12675, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 5640, 834, 5525, 1152, 3274, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the least season number for two marriage proposals
CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR)
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "Two marriage proposals"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 3420, 3288, 6348, 834, 357, 41, 9476, 834, 834, 5525, 1152, 3, 21342, 17966, 6, 2233, 834, 4606, 40, 1273, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 9476, 834, 834, 5525, 1152, 61, 21680, 953, 834, 1828, 3420, 3288, 6348, 834, 357, 549, 17444, 427, 2233, 834, 4606, 40, 1273, 3274, 96, 382, 210, 32, 5281, 12152, 121, 1, -100, -100, -100, -100, -100...
Which venues were closed because they were replaced?
CREATE TABLE table_name_5 ( location VARCHAR, reason VARCHAR )
SELECT location FROM table_name_5 WHERE reason = "replaced"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 1128, 584, 4280, 28027, 6, 1053, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 11778, 130, 3168, 250, 79, 130, 5821, 58, 1, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 1053, 3274, 96, 60, 4687, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the worst (highest) score?
CREATE TABLE table_1506950_4 (score INTEGER)
SELECT MAX(score) FROM table_1506950_4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12278, 3951, 1752, 834, 591, 41, 7, 9022, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 6025, 41, 6739, 222, 61, 2604, 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, 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, 4800, 4, 599, 7, 9022, 61, 21680, 953, 834, 12278, 3951, 1752, 834, 591, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the production code of the episode written by Cathryn Humphris?
CREATE TABLE table_27236 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text )
SELECT "Production code" FROM table_27236 WHERE "Written by" = 'Cathryn Humphris'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 357, 3420, 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, 96, 3174, 8291, 1081, 121, 21680, 953, 834, 2555, 357, 3420, 549, 17444, 427, 96, 24965, 324, 57, 121, 3274, 3, 31, 18610, 107, 651, 29, 3455, 7656, 52, 159, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the total against for opposing team scotland at twickenham, london venue with a status of five nations?
CREATE TABLE table_name_6 ( against VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR )
SELECT COUNT(against) FROM table_name_6 WHERE status = "five nations" AND venue = "twickenham, london" AND opposing_teams = "scotland"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 948, 41, 581, 584, 4280, 28027, 6, 10720, 53, 834, 11650, 7, 584, 4280, 28027, 6, 2637, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 9, 16720, 7, 17, 61, 21680, 953, 834, 4350, 834, 948, 549, 17444, 427, 2637, 3274, 96, 16443, 9352, 121, 3430, 5669, 3274, 96, 17, 5981, 35, 1483, 6, 3, 40, 106, 2029, 121, 3430, 10720, 53, 834, ...
How many people were in the crowd at collingwood's home game?
CREATE TABLE table_58128 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT SUM("Crowd") FROM table_58128 WHERE "Home team" = 'collingwood'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3449, 536, 2577, 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, 180, 6122, 599, 121, 254, 3623, 26, 8512, 21680, 953, 834, 3449, 536, 2577, 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...
Which constituency number has a name of Timarni?
CREATE TABLE table_name_99 ( constituency_number VARCHAR, name VARCHAR )
SELECT constituency_number FROM table_name_99 WHERE name = "timarni"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 6439, 4392, 834, 5525, 1152, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 6439, 4392, 381, 65, 3, 9, 564, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6439, 4392, 834, 5525, 1152, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 564, 3274, 96, 2998, 23403, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
which school has placed fourth the most times ?
CREATE TABLE table_203_502 ( id number, "team" text, "titles" number, "runner-up" number, "third place" number, "fourth place" number, "years participated" number )
SELECT "team" FROM table_203_502 ORDER BY "fourth place" DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 1752, 357, 41, 3, 23, 26, 381, 6, 96, 11650, 121, 1499, 6, 96, 21869, 7, 121, 381, 6, 96, 10806, 18, 413, 121, 381, 6, 96, 14965, 286, 121, 381, 6, 96, 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, 11650, 121, 21680, 953, 834, 23330, 834, 1752, 357, 4674, 11300, 272, 476, 96, 12521, 189, 286, 121, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the attendance when the opposing team was the Ottawa Senators and the record was 24-35-17?
CREATE TABLE table_17360840_9 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT MAX(attendance) FROM table_17360840_9 WHERE opponent = "Ottawa Senators" AND record = "24-35-17"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 19208, 26311, 834, 1298, 41, 15116, 663, 3, 21342, 17966, 6, 15264, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 11364, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 15116, 663, 61, 21680, 953, 834, 2517, 19208, 26311, 834, 1298, 549, 17444, 427, 15264, 3274, 96, 667, 17, 17, 7396, 13644, 7, 121, 3430, 1368, 3274, 96, 2266, 18, 2469, 10794, 121, 1, -100, -100, -100...
What county has less than $188 and a score of 74-76-73-75=298?
CREATE TABLE table_name_3 (country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT country FROM table_name_3 WHERE money___$__ < 188 AND score = 74 - 76 - 73 - 75 = 298
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 17529, 584, 4280, 28027, 6, 540, 834, 834, 834, 3229, 834, 834, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 5435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 684, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 540, 834, 834, 834, 3229, 834, 834, 3, 2, 3, 25794, 3430, 2604, 3274, 3, 4581, 3, 18, 3, 3959, 3, 18, 3, 4552, 3, 18, 6374, 3274, 204, 3916, 1, -100, -100...
When curtis strange had a to par +1, what was his score?
CREATE TABLE table_50055 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Score" FROM table_50055 WHERE "To par" = '+1' AND "Player" = 'curtis strange'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2560, 3769, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 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, 96, 134, 9022, 121, 21680, 953, 834, 2560, 3769, 549, 17444, 427, 96, 3696, 260, 121, 3274, 3, 31, 18446, 31, 3430, 96, 15800, 49, 121, 3274, 3, 31, 3663, 17, 159, 6765, 31, 1, -100, -100, -100, -100, -100, -100, ...
What was the total crowd of the Carlton game?
CREATE TABLE table_55600 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT COUNT("Crowd") FROM table_55600 WHERE "Home team" = 'carlton'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 6007, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 254, 3623, 26, 8512, 21680, 953, 834, 3769, 6007, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 1720, 7377, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the series ep for s02e08
CREATE TABLE table_15187735_3 (series_ep VARCHAR, netflix VARCHAR)
SELECT series_ep FROM table_15187735_3 WHERE netflix = "S02E08"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26578, 27697, 2469, 834, 519, 41, 10833, 7, 834, 15, 102, 584, 4280, 28027, 6, 3134, 89, 17591, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 939, 3, 15, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 939, 834, 15, 102, 21680, 953, 834, 26578, 27697, 2469, 834, 519, 549, 17444, 427, 3134, 89, 17591, 3274, 96, 134, 4305, 427, 4018, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the issue date for the single with a Volume:Issue of 47:8-9?
CREATE TABLE table_35439 ( "Volume:Issue" text, "Issue Date(s)" text, "Weeks on Top" real, "Song" text, "Artist" text )
SELECT "Issue Date(s)" FROM table_35439 WHERE "Volume:Issue" = '47:8-9'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2469, 591, 3288, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 196, 7, 7, 76, 15, 7678, 599, 7, 61, 121, 21680, 953, 834, 2469, 591, 3288, 549, 17444, 427, 96, 22803, 440, 15, 10, 196, 7, 7, 76, 15, 121, 3274, 3, 31, 4177, 10, 927, 7141, 31, 1, -100, -100, -100, -10...
who got the first position when fujieda city government got the fourth position?
CREATE TABLE table_24517 ( "Regional" text, "Champions" text, "Runners-up" text, "Third place" text, "Fourth place" text )
SELECT "Champions" FROM table_24517 WHERE "Fourth place" = 'Fujieda City Government'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2128, 2517, 41, 96, 17748, 6318, 121, 1499, 6, 96, 3541, 4624, 2865, 121, 1499, 6, 96, 23572, 7, 18, 413, 121, 1499, 6, 96, 382, 9288, 26, 286, 121, 1499, 6, 96, 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, 3541, 4624, 2865, 121, 21680, 953, 834, 357, 2128, 2517, 549, 17444, 427, 96, 371, 1211, 189, 286, 121, 3274, 3, 31, 371, 76, 354, 5973, 9, 896, 3141, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many original Australian performers are there when the Original West End Performer is Jordan Dunne?
CREATE TABLE table_22749 ( "Character" text, "Original Broadway performer" text, "Original Australian performer" text, "Original West End performer" text, "2005 World AIDS Day Benefit Dream Cast" text )
SELECT COUNT("Original Australian performer") FROM table_22749 WHERE "Original West End performer" = 'Jordan Dunne'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2555, 3647, 41, 96, 18947, 2708, 49, 121, 1499, 6, 96, 667, 3380, 10270, 17963, 1912, 49, 121, 1499, 6, 96, 667, 3380, 10270, 3746, 1912, 49, 121, 1499, 6, 96, 667, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 667, 3380, 10270, 3746, 1912, 49, 8512, 21680, 953, 834, 357, 2555, 3647, 549, 17444, 427, 96, 667, 3380, 10270, 1244, 3720, 1912, 49, 121, 3274, 3, 31, 683, 127, 3768, 6393, 29, 15, 31, 1, ...
how many drivers participated in the 8th glover trophy race ?
CREATE TABLE table_203_670 ( id number, "pos" text, "driver" text, "entrant" text, "constructor" text, "time/retired" text, "grid" number )
SELECT COUNT("driver") FROM table_203_670
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 3708, 632, 41, 3, 23, 26, 381, 6, 96, 2748, 121, 1499, 6, 96, 13739, 52, 121, 1499, 6, 96, 295, 3569, 121, 1499, 6, 96, 15982, 5317, 121, 1499, 6, 96, 715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13739, 52, 8512, 21680, 953, 834, 23330, 834, 3708, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which first match had a final position/round in the third qualifying round?
CREATE TABLE table_name_72 ( first_match VARCHAR, final_position___round VARCHAR )
SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying round"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5865, 41, 166, 834, 19515, 584, 4280, 28027, 6, 804, 834, 4718, 834, 834, 834, 7775, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 166, 1588, 141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 166, 834, 19515, 21680, 953, 834, 4350, 834, 5865, 549, 17444, 427, 804, 834, 4718, 834, 834, 834, 7775, 3274, 96, 14965, 18002, 1751, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the result of the election with 3,871 total votes?
CREATE TABLE table_name_89 ( results VARCHAR, total_votes INTEGER )
SELECT results FROM table_name_89 WHERE total_votes > 3 OFFSET 871
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 772, 584, 4280, 28027, 6, 792, 834, 1621, 1422, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 741, 13, 8, 4356, 28, 6180, 4225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 772, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 792, 834, 1621, 1422, 2490, 220, 3, 15316, 20788, 505, 4450, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what is maximum age of patients whose primary disease is newborn and year of death is less than 2138?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "NEWBORN" AND demographic.dod_year < "2138.0"
[ 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, 4800, 4, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 4171, 518, 8471, 14151, 121, 3430, 14798, 5, 26, 32, 26, 834, 1201, 3, 2, 96, 357, 2368, 27376, 121, 1, ...
who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = "piercarlo ghinzani"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3539, 41, 15982, 5317, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 113, 19, 8, 6774, 127, 116, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 6774, 127, 21680, 953, 834, 4350, 834, 3539, 549, 17444, 427, 8634, 2490, 1902, 3430, 2535, 3274, 96, 8343, 1720, 40, 32, 3, 5649, 29, 10241, 23, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who was the winner in the event with a runner-up of Alberto Mancini?
CREATE TABLE table_name_1 ( winner VARCHAR, runner_up VARCHAR )
SELECT winner FROM table_name_1 WHERE runner_up = "alberto mancini"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 536, 41, 4668, 584, 4280, 28027, 6, 3, 10806, 834, 413, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 4668, 16, 8, 605, 28, 3, 9, 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, 0...
[ 3, 23143, 14196, 4668, 21680, 953, 834, 4350, 834, 536, 549, 17444, 427, 3, 10806, 834, 413, 3274, 96, 138, 7041, 32, 388, 20694, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the 2012 for 2011 being qf
CREATE TABLE table_name_58 ( Id VARCHAR )
SELECT 2012 FROM table_name_58 WHERE 2011 = "qf"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 27, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1673, 21, 2722, 271, 3, 1824, 89, 1, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1673, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 2722, 3274, 96, 1824, 89, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What team does Seth Sinovic play for?
CREATE TABLE table_27717 ( "Pick #" real, "MLS Team" text, "Player" text, "Position" text, "Affiliation" text )
SELECT "MLS Team" FROM table_27717 WHERE "Player" = 'Seth Sinovic'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4013, 2517, 41, 96, 345, 3142, 1713, 121, 490, 6, 96, 17976, 2271, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 188, 89, 8027...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17976, 2271, 121, 21680, 953, 834, 357, 4013, 2517, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 17175, 107, 8271, 13388, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
provide the number of patients whose ethnicity is asian and procedure long title is colonoscopy?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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.ethnicity = "ASIAN" AND procedures.long_title = "Colonoscopy"
[ 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,...
Name the series ep for s02e08
CREATE TABLE table_19936 ( "Series Ep." text, "Episode" real, "Netflix" text, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text )
SELECT "Series Ep." FROM table_19936 WHERE "Netflix" = 'S02E08'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19479, 3420, 41, 96, 12106, 7, 10395, 535, 1499, 6, 96, 427, 102, 159, 32, 221, 121, 490, 6, 96, 9688, 89, 17591, 121, 1499, 6, 96, 134, 15, 122, 297, 71, 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, 12106, 7, 10395, 535, 21680, 953, 834, 19479, 3420, 549, 17444, 427, 96, 9688, 89, 17591, 121, 3274, 3, 31, 134, 4305, 427, 4018, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the stadium that held that game after week 15?
CREATE TABLE table_name_28 ( stadium VARCHAR, week INTEGER )
SELECT stadium FROM table_name_28 WHERE week > 15
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 14939, 584, 4280, 28027, 6, 471, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 14939, 24, 1213, 24, 467, 227, 471, 627, 58, 1, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 14939, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 471, 2490, 627, 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 Malaysia Satellite tournaments were played after 1998?
CREATE TABLE table_name_52 (outcome VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_52 WHERE year > 1998 AND tournament = "malaysia satellite"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5373, 41, 670, 287, 15, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 5892, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 10155, 24552, 5892, 7, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6138, 21680, 953, 834, 4350, 834, 5373, 549, 17444, 427, 215, 2490, 6260, 3430, 5892, 3274, 96, 51, 9, 20244, 23, 9, 7605, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what was the first air date of season 1 ?
CREATE TABLE table_203_685 ( id number, "no. in\nseries" number, "no. in\nseason" number, "title" text, "directed by" text, "written by" text, "original air date" text )
SELECT "original air date" FROM table_203_685 WHERE "no. in\nseason" = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 3651, 755, 41, 3, 23, 26, 381, 6, 96, 29, 32, 5, 16, 2, 29, 10833, 7, 121, 381, 6, 96, 29, 32, 5, 16, 2, 29, 9476, 121, 381, 6, 96, 21869, 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, 21878, 799, 833, 121, 21680, 953, 834, 23330, 834, 3651, 755, 549, 17444, 427, 96, 29, 32, 5, 16, 2, 29, 9476, 121, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
uncontrolled diabetes defined as a fpg level of > 240 mg / dl at screening
CREATE TABLE table_train_179 ( "id" int, "systolic_blood_pressure_sbp" int, "fasting_plasma_glucose_fpg" float, "diastolic_blood_pressure_dbp" int, "diabetes" bool, "body_mass_index_bmi" float, "triglyceride_tg" float, "hypertension" bool, "age" float, "NOUSE" float )
SELECT * FROM table_train_179 WHERE diabetes = 1 OR fasting_plasma_glucose_fpg > 240
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9719, 834, 26593, 41, 96, 23, 26, 121, 16, 17, 6, 96, 7, 63, 7, 235, 2176, 834, 27798, 834, 26866, 834, 7, 115, 102, 121, 16, 17, 6, 96, 11584, 53, 834, 21178, 9, 834...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1429, 21680, 953, 834, 9719, 834, 26593, 549, 17444, 427, 8363, 3274, 209, 4674, 1006, 53, 834, 21178, 9, 834, 13492, 509, 7, 15, 834, 89, 102, 122, 2490, 3, 11944, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the length of the highway with remarks that it was replaced by lp 20?
CREATE TABLE table_name_28 ( length VARCHAR, remarks VARCHAR )
SELECT length FROM table_name_28 WHERE remarks = "replaced by lp 20"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2577, 41, 2475, 584, 4280, 28027, 6, 21029, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2475, 13, 8, 10367, 28, 21029, 24, 34, 47, 5821, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2475, 21680, 953, 834, 4350, 834, 2577, 549, 17444, 427, 21029, 3274, 96, 60, 4687, 26, 57, 3, 40, 102, 460, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Name the number of number in series for production code of 06-04-621
CREATE TABLE table_1876825_7 (no_in_series VARCHAR, production_code VARCHAR)
SELECT COUNT(no_in_series) FROM table_1876825_7 WHERE production_code = "06-04-621"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25828, 3651, 1828, 834, 940, 41, 29, 32, 834, 77, 834, 10833, 7, 584, 4280, 28027, 6, 999, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 29, 32, 834, 77, 834, 10833, 7, 61, 21680, 953, 834, 25828, 3651, 1828, 834, 940, 549, 17444, 427, 999, 834, 4978, 3274, 96, 5176, 18083, 5783, 2658, 121, 1, -100, -100, -100, -100, -100, -100, -10...
What is the sum of the game with a PWin% of , Term [c] of 1987 1988, and Win% less than 0.506?
CREATE TABLE table_69972 ( "Name [b ]" text, "Term [c ]" text, "Games" real, "Win%" real, "PWin%" text )
SELECT SUM("Games") FROM table_69972 WHERE "PWin%" = '—' AND "Term [c ]" = '1987–1988' AND "Win%" < '0.506'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3951, 4327, 357, 41, 96, 23954, 784, 115, 3, 908, 121, 1499, 6, 96, 11679, 784, 75, 3, 908, 121, 1499, 6, 96, 23055, 7, 121, 490, 6, 96, 18455, 1454, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 23055, 7, 8512, 21680, 953, 834, 3951, 4327, 357, 549, 17444, 427, 96, 345, 18455, 1454, 121, 3274, 3, 31, 318, 31, 3430, 96, 11679, 784, 75, 3, 908, 121, 3274, 3, 31, 2294, 4225, 104, 2294, ...
known allergy to nuts
CREATE TABLE table_train_267 ( "id" int, "pregnancy_or_lactation" bool, "smoking" bool, "allergy_to_nuts" bool, "body_mass_index_bmi" float, "age" float, "NOUSE" float )
SELECT * FROM table_train_267 WHERE allergy_to_nuts = 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9719, 834, 357, 3708, 41, 96, 23, 26, 121, 16, 17, 6, 96, 2026, 11260, 11298, 834, 127, 834, 9700, 6821, 121, 3, 12840, 40, 6, 96, 7, 51, 32, 1765, 121, 3, 12840, 40, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1429, 21680, 953, 834, 9719, 834, 357, 3708, 549, 17444, 427, 23886, 834, 235, 834, 4796, 7, 3274, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which team plays their home matches at the mcg Venue?
CREATE TABLE table_51761 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team" FROM table_51761 WHERE "Venue" = 'mcg'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2517, 4241, 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, 19040, 372, 121, 21680, 953, 834, 755, 2517, 4241, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 51, 75, 122, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the highest FIPS code for coordinates of 41.827547, -74.118478 and land less than 1.196
CREATE TABLE table_58437 ( "CDP name" text, "County" text, "Pop. (2010)" real, "Land ( sq mi )" real, "Water (sq mi)" real, "Coordinates" text, "FIPS code" real, "ANSI code" real )
SELECT MAX("FIPS code") FROM table_58437 WHERE "Coordinates" = '41.827547, -74.118478' AND "Land ( sq mi )" < '1.196'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3449, 591, 4118, 41, 96, 254, 7410, 564, 121, 1499, 6, 96, 10628, 63, 121, 1499, 6, 96, 27773, 5, 26118, 121, 490, 6, 96, 434, 232, 41, 11820, 1337, 3, 61, 121, 490, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 371, 21563, 1081, 8512, 21680, 953, 834, 3449, 591, 4118, 549, 17444, 427, 96, 3881, 21122, 7, 121, 3274, 3, 31, 591, 16253, 25988, 4177, 6, 3, 6832, 19708, 25987, 3940, 31, 3430, 96, 434, 232, ...
How many runs did mahela jayawardene and thilan samaraweera have?
CREATE TABLE table_46541 ( "Wicket" text, "Runs" real, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Season" text )
SELECT SUM("Runs") FROM table_46541 WHERE "Batting partners" = 'mahela jayawardene and thilan samaraweera'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4122, 4853, 41, 96, 518, 447, 8044, 121, 1499, 6, 96, 448, 202, 7, 121, 490, 6, 96, 279, 9, 6031, 3222, 121, 1499, 6, 96, 279, 9, 6031, 372, 121, 1499, 6, 96, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 448, 202, 7, 8512, 21680, 953, 834, 591, 4122, 4853, 549, 17444, 427, 96, 279, 9, 6031, 3222, 121, 3274, 3, 31, 51, 9, 88, 521, 2662, 63, 9, 2239, 35, 15, 11, 3, 7436, 1618, 3, 7, 9, 163...
Name the Spike which has a Name of senna u i -jogunica category:articles with hcards?
CREATE TABLE table_name_84 ( spike VARCHAR, name VARCHAR )
SELECT spike FROM table_name_84 WHERE name = "senna ušić-jogunica category:articles with hcards"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 22440, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 2526, 5208, 84, 65, 3, 9, 5570, 13, 3, 7, 35, 29, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 22440, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 564, 3274, 96, 7, 35, 29, 9, 3, 76, 2, 23, 2, 18, 1927, 8765, 2617, 3295, 10, 8372, 7, 28, 3, 107, 6043, 7, 121, 1, -100, -100, -100, -100, -100, -100,...
What is the y = 2011 when the y = 2010 is 22 march 2010?
CREATE TABLE table_73293 ( "Expression" text, "Y = 2008" text, "Y = 2009" text, "Y = 2010" text, "Y = 2011" text )
SELECT "Y = 2011" FROM table_73293 WHERE "Y = 2010" = '22 March 2010'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4552, 357, 4271, 41, 96, 5420, 8243, 121, 1499, 6, 96, 476, 3274, 2628, 121, 1499, 6, 96, 476, 3274, 2464, 121, 1499, 6, 96, 476, 3274, 2735, 121, 1499, 6, 96, 476, 3274,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 476, 3274, 2722, 121, 21680, 953, 834, 4552, 357, 4271, 549, 17444, 427, 96, 476, 3274, 2735, 121, 3274, 3, 31, 2884, 1332, 2735, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the average points that have a December less than 6, with a game greater than 26?
CREATE TABLE table_35019 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT AVG("Points") FROM table_35019 WHERE "December" < '6' AND "Game" > '26'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 16975, 2294, 41, 96, 23055, 121, 490, 6, 96, 29835, 121, 490, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 22512, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 22512, 7, 8512, 21680, 953, 834, 16975, 2294, 549, 17444, 427, 96, 29835, 121, 3, 2, 3, 31, 948, 31, 3430, 96, 23055, 121, 2490, 3, 31, 2688, 31, 1, -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, show me about the distribution of job_id and the average of manager_id , and group by attribute job_id in a bar chart, and could you rank in asc by the Y-axis?
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 446, 10539, 834, 4309, 6, 71, 17217, 599, 9312, 188, 17966, 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, ...
What is the result of week 5?
CREATE TABLE table_name_33 ( result VARCHAR, week VARCHAR )
SELECT result FROM table_name_33 WHERE week = 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 741, 584, 4280, 28027, 6, 471, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 741, 13, 471, 305, 58, 1, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 471, 3274, 305, 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, ...
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the average of manager_id bin hire_date by weekday in a bar chart.
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), 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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1652, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 30085, 834, 567, 17683, 3, 4331, 4059, 599, 1755, 201, 301, 12510, 834, 567, 17683, 3, 4331, 4059, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 71, 17217, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 454, 14132, 834, 308, 6048, 3, 2, 3, 31, 24898, 18, 5176, 16539, 31, 1, -100, -100, -100, -100, -100, -...
Scatterplot of all_games_percent vs acc percent by Team_Name
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY Team_Name
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14775, 834, 12988, 3728, 6, 432, 834, 23055, 7, 834, 12988, 3728, 21680, 8498, 834, 19515, 350, 4630, 6880, 272, 476, 2271, 834, 23954, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What was the Result on 11/02/1946?
CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_84 WHERE date = "11/02/1946"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 3, 20119, 30, 850, 87, 4305, 13523, 4448, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 833, 3274, 96, 2596, 87, 4305, 13523, 4448, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the highest bronze for less than 2 total trophies?
CREATE TABLE table_name_16 ( bronze INTEGER, total INTEGER )
SELECT MAX(bronze) FROM table_name_16 WHERE total < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 13467, 3, 21342, 17966, 6, 792, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 13467, 21, 705, 145, 204, 792, 3, 14618, 725, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 13711, 776, 61, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 792, 3, 2, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
For all employees who have the letters D or S in their first name, visualize a scatter chart about the correlation between employee_id and manager_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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT EMPLOYEE_ID, MANAGER_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
[ 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, 283, 15610, 17966, 834, 4309, 21680, 1652, 549, 17444, 427, 30085, 834, 567, 17683, 8729, 9914, 3, 31, 1454, 308, 1454, 31, 4674, 30085, 834, 567, 17683, 8729, 9914, 3, 31, ...
Which entrant had a constructor of benetton - playlife?
CREATE TABLE table_11740 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine \u2020" text, "Tyre" text, "Driver" text, "Rounds" text )
SELECT "Entrant" FROM table_11740 WHERE "Constructor" = 'benetton - playlife'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20275, 2445, 41, 96, 16924, 3569, 121, 1499, 6, 96, 4302, 7593, 127, 121, 1499, 6, 96, 3541, 6500, 7, 121, 1499, 6, 96, 31477, 3, 2, 76, 22224, 121, 1499, 6, 96, 382, 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, 16924, 3569, 121, 21680, 953, 834, 20275, 2445, 549, 17444, 427, 96, 4302, 7593, 127, 121, 3274, 3, 31, 346, 10544, 106, 3, 18, 577, 4597, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the name of the person with a 1:10.771 qual 2?
CREATE TABLE table_name_60 ( name VARCHAR, qual_2 VARCHAR )
SELECT name FROM table_name_60 WHERE qual_2 = "1:10.771"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 564, 584, 4280, 28027, 6, 3, 11433, 834, 357, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 568, 28, 3, 9, 19520, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 564, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 3, 11433, 834, 357, 3274, 96, 536, 10, 10415, 4013, 536, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many numbers were recorded under miles for the 3:00:46 race time?
CREATE TABLE table_2196127_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = "3:00:46"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2658, 4314, 22367, 834, 536, 41, 8770, 7, 834, 834, 5848, 834, 584, 4280, 28027, 6, 1964, 834, 715, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 2302, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 8770, 7, 834, 834, 5848, 834, 61, 21680, 953, 834, 2658, 4314, 22367, 834, 536, 549, 17444, 427, 1964, 834, 715, 3274, 96, 519, 10, 1206, 10, 4448, 121, 1, -100, -100, -100, -100, -100, -100, -100,...
List the total points of gymnasts in descending order.
CREATE TABLE gymnast (Total_Points VARCHAR)
SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 23379, 17, 41, 3696, 1947, 834, 22512, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 6792, 8, 792, 979, 13, 23379, 17, 7, 16, 3, 30960, 455, 5, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9273, 834, 22512, 7, 21680, 23379, 17, 4674, 11300, 272, 476, 9273, 834, 22512, 7, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How man 'other' millions of smartphones were shipped when 181.1 million total were shipped?
CREATE TABLE table_976 ( "Quarter" text, "Android" text, "iOS" text, "Symbian" text, "BlackBerry OS" text, "Linux" text, "Windows Phone" text, "Other" text, "Total" text )
SELECT COUNT("Other") FROM table_976 WHERE "Total" = '181.1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4327, 948, 41, 96, 5991, 1408, 49, 121, 1499, 6, 96, 7175, 8184, 121, 1499, 6, 96, 23, 3638, 121, 1499, 6, 96, 134, 63, 51, 12032, 121, 1499, 6, 96, 20096, 279, 49, 651...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 667, 189, 49, 8512, 21680, 953, 834, 4327, 948, 549, 17444, 427, 96, 3696, 1947, 121, 3274, 3, 31, 2606, 11039, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what is the number of patients whose admission type is elective and procedure long title is fiber-optic bronchoscopy?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Fiber-optic bronchoscopy"
[ 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, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?
CREATE TABLE table_name_15 ( judaism VARCHAR, other VARCHAR, buddhism VARCHAR )
SELECT judaism FROM table_name_15 WHERE other = "0.13%" AND buddhism = "0.01%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1808, 41, 3, 14312, 9, 159, 51, 584, 4280, 28027, 6, 119, 584, 4280, 28027, 6, 3, 11073, 26, 10193, 51, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14312, 9, 159, 51, 21680, 953, 834, 4350, 834, 1808, 549, 17444, 427, 119, 3274, 96, 16029, 5170, 121, 3430, 3, 11073, 26, 10193, 51, 3274, 96, 11739, 4704, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
What machine did Keith T. Gawler ride?
CREATE TABLE table_79849 ( "Rider" text, "Date" text, "Place" text, "Race" text, "Event" text, "Machine" text )
SELECT "Machine" FROM table_79849 WHERE "Rider" = 'keith t. gawler'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3916, 3647, 41, 96, 448, 23, 588, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 345, 11706, 121, 1499, 6, 96, 448, 3302, 121, 1499, 6, 96, 427, 2169, 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, 329, 1836, 630, 121, 21680, 953, 834, 940, 3916, 3647, 549, 17444, 427, 96, 448, 23, 588, 121, 3274, 3, 31, 5754, 107, 3, 17, 5, 7922, 210, 1171, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Position of the person with a birthplace of phoenix, new york?
CREATE TABLE table_7407 ( "Position" text, "Name" text, "Birthdate" text, "Birthplace" text, "Team" text )
SELECT "Position" FROM table_7407 WHERE "Birthplace" = 'phoenix, new york'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4581, 4560, 41, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 23954, 121, 1499, 6, 96, 279, 23, 52, 189, 5522, 121, 1499, 6, 96, 279, 23, 52, 189, 4687, 121, 1499, 6, 96, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 32, 7, 4749, 121, 21680, 953, 834, 4581, 4560, 549, 17444, 427, 96, 279, 23, 52, 189, 4687, 121, 3274, 3, 31, 9553, 35, 2407, 6, 126, 25453, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what was the first operation time in their last hospital visit for patient 015-67291?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-67291' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) ORDER BY treatment.treatmenttime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2179, 9339, 41, 2179, 521, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 1543, 3585, 1499, 6, 9329, 1499, 6, 1543, 4914, 29, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1058, 5, 26889, 715, 21680, 1058, 549, 17444, 427, 1058, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15878, 3734, 21545, ...
Show the names of artworks in ascending order of the year they are nominated in.
CREATE TABLE artwork (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR)
SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7924, 41, 23954, 584, 4280, 28027, 6, 1261, 1981, 834, 4309, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 13588, 41, 7754, 1981, 834, 4309, 584, 4280, 28027...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 21680, 13588, 6157, 332, 536, 3, 15355, 3162, 7924, 6157, 332, 357, 9191, 332, 5411, 7754, 1981, 834, 4309, 3274, 332, 4416, 7754, 1981, 834, 4309, 3, 15355, 3162, 3994, 834, 221, 5756, 6157, 332, 51...
What is the id and market share of the browser Safari?
CREATE TABLE web_client_accelerator ( id number, name text, operating_system text, client text, connection text ) CREATE TABLE browser ( id number, name text, market_share number ) CREATE TABLE accelerator_compatible_browser ( accelerator_id number, browser_id number, compatible_since_year number )
SELECT id, market_share FROM browser WHERE name = 'Safari'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 765, 834, 26693, 834, 6004, 15, 1171, 1016, 41, 3, 23, 26, 381, 6, 564, 1499, 6, 2699, 834, 3734, 1499, 6, 1188, 1499, 6, 2135, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 23, 26, 6, 512, 834, 12484, 21680, 3509, 549, 17444, 427, 564, 3274, 3, 31, 134, 9, 5544, 23, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is every party with a winner of P. Chidambaram?
CREATE TABLE table_22753439_1 (party VARCHAR, winner VARCHAR)
SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2884, 3072, 3710, 3288, 834, 536, 41, 8071, 584, 4280, 28027, 6, 4668, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 334, 1088, 28, 3, 9, 4668, 13, 276, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1088, 6157, 3, 9, 21680, 953, 834, 2884, 3072, 3710, 3288, 834, 536, 549, 17444, 427, 4668, 3274, 96, 345, 5, 2695, 26, 14303, 2375, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is 02-03, when School Year is % Learning In Latvian?
CREATE TABLE table_40388 ( "School year" text, "95-96" text, "99-00" text, "00-01" text, "01-02" text, "02-03" text, "03-04" text, "04-05" text, "05-06" text, "06-07" text )
SELECT "02-03" FROM table_40388 WHERE "School year" = '% learning in latvian'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 519, 4060, 41, 96, 29364, 215, 121, 1499, 6, 96, 3301, 18, 4314, 121, 1499, 6, 96, 3264, 18, 1206, 121, 1499, 6, 96, 1206, 14772, 121, 1499, 6, 96, 4542, 18, 4305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4305, 18, 4928, 121, 21680, 953, 834, 2445, 519, 4060, 549, 17444, 427, 96, 29364, 215, 121, 3274, 3, 31, 1454, 1036, 16, 50, 17, 5907, 29, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Return the low and high estimates for all film markets in a scatter chart
CREATE TABLE film_market_estimation ( Estimation_ID int, Low_Estimate real, High_Estimate real, Film_ID int, Type text, Market_ID int, Year int ) CREATE TABLE film ( Film_ID int, Title text, Studio text, Director text, Gross_in_dollar int ) CREATE TABLE market ( Market_ID int, Country text, Number_cities int )
SELECT Low_Estimate, High_Estimate FROM film_market_estimation
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 814, 834, 8809, 834, 3340, 51, 257, 41, 23621, 23, 106, 834, 4309, 16, 17, 6, 5586, 834, 14997, 23, 5058, 490, 6, 1592, 834, 14997, 23, 5058, 490, 6, 3417, 834, 4309, 16, 17, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5586, 834, 14997, 23, 5058, 6, 1592, 834, 14997, 23, 5058, 21680, 814, 834, 8809, 834, 3340, 51, 257, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the average hoop when the all around is less than 9.7?
CREATE TABLE table_name_37 (hoop INTEGER, all_around INTEGER)
SELECT AVG(hoop) FROM table_name_37 WHERE all_around < 9.7
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 107, 6631, 3, 21342, 17966, 6, 66, 834, 15590, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 3, 107, 6631, 116, 8, 66, 300, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 107, 6631, 61, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 66, 834, 15590, 3, 2, 5835, 940, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who was the team who played home team woking?
CREATE TABLE table_60695 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Away team" FROM table_60695 WHERE "Home team" = 'woking'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 3951, 755, 41, 96, 382, 23, 15, 150, 121, 1499, 6, 96, 19040, 372, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 308, 342, 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, 188, 1343, 372, 121, 21680, 953, 834, 3328, 3951, 755, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 210, 32, 1765, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which Att has a Time of 2:14?
CREATE TABLE table_34816 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text )
SELECT "Att." FROM table_34816 WHERE "Time" = '2:14'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3707, 2938, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 13368, 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, 188, 17, 17, 535, 21680, 953, 834, 519, 3707, 2938, 549, 17444, 427, 96, 13368, 121, 3274, 3, 31, 357, 10, 2534, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the largest crowd when Collingwood was the away team?
CREATE TABLE table_name_67 ( crowd INTEGER, away_team VARCHAR )
SELECT MAX(crowd) FROM table_name_67 WHERE away_team = "collingwood"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3708, 41, 4374, 3, 21342, 17966, 6, 550, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2015, 4374, 116, 9919, 53, 2037, 47, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 75, 3623, 26, 61, 21680, 953, 834, 4350, 834, 3708, 549, 17444, 427, 550, 834, 11650, 3274, 96, 3297, 697, 2037, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Display a bar chart for what are the names of the technicians and how many machines are they assigned to repair?, rank names in desc order.
CREATE TABLE repair ( repair_ID int, name text, Launch_Date text, Notes text ) CREATE TABLE machine ( Machine_ID int, Making_Year int, Class text, Team text, Machine_series text, value_points real, quality_rank int ) CREATE TABLE repair_assignment ( technician_id int, repair_ID int, Machine_ID int ) CREATE TABLE technician ( technician_id real, Name text, Team text, Starting_Year real, Age int )
SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name ORDER BY Name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2096, 41, 2096, 834, 4309, 16, 17, 6, 564, 1499, 6, 17113, 834, 308, 342, 1499, 6, 2507, 7, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1437, 41, 5879, 834, 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, 5570, 6, 2847, 17161, 599, 1935, 61, 21680, 2096, 834, 9, 7, 6732, 297, 6157, 332, 536, 3, 15355, 3162, 17730, 6157, 332, 357, 9191, 332, 5411, 3470, 7742, 152, 834, 23, 26, 3274, 332, 4416, 3470, 7742, 152, 834, ...
What is the lowest value for Draws, when Losses is '0', and when Byes is greater than 4?
CREATE TABLE table_name_12 ( draws INTEGER, losses VARCHAR, byes VARCHAR )
SELECT MIN(draws) FROM table_name_12 WHERE losses = 0 AND byes > 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2122, 41, 14924, 3, 21342, 17966, 6, 8467, 584, 4280, 28027, 6, 57, 15, 7, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 701, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 19489, 7, 61, 21680, 953, 834, 4350, 834, 2122, 549, 17444, 427, 8467, 3274, 3, 632, 3430, 57, 15, 7, 2490, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the least games played for 6 points
CREATE TABLE table_30011 ( "Shirt Number" real, "Player Name" text, "Games Played" real, "Total Points" real, "2-Points" real, "3-Points" real, "Free Throw" real )
SELECT MIN("Games Played") FROM table_30011 WHERE "Total Points" = '6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5426, 2596, 41, 96, 16671, 7720, 121, 490, 6, 96, 15800, 49, 5570, 121, 1499, 6, 96, 23055, 7, 2911, 15, 26, 121, 490, 6, 96, 3696, 1947, 4564, 7, 121, 490, 6, 96, 7412...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 23055, 7, 2911, 15, 26, 8512, 21680, 953, 834, 5426, 2596, 549, 17444, 427, 96, 3696, 1947, 4564, 7, 121, 3274, 3, 31, 948, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What year was The Horn Blows at Midnight, directed by Raoul Walsh?
CREATE TABLE table_name_96 (year INTEGER, director VARCHAR, title VARCHAR)
SELECT AVG(year) FROM table_name_96 WHERE director = "raoul walsh" AND title = "the horn blows at midnight"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4314, 41, 1201, 3, 21342, 17966, 6, 2090, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 215, 47, 37, 14715, 272, 3216, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 1201, 61, 21680, 953, 834, 4350, 834, 4314, 549, 17444, 427, 2090, 3274, 96, 52, 9, 7115, 3, 5380, 7, 107, 121, 3430, 2233, 3274, 96, 532, 3, 6293, 6019, 7, 44, 17633, 121, 1, -100, -100, -100, -...
Who is the voice actor of the character with the Japanese voice actor Yoku Shioya?
CREATE TABLE table_5644 ( "Gatchaman" text, "Battle of the Planets" text, "G-Force" text, "Eagle Riders" text, "OVA (Harmony Gold Dub)" text, "Rank" text, "Bird Uniform" text, "Weapon" text, "Mecha" text, "Japanese voice actor" text, "Voice actor (BOTP)" text, "Voice actor (G-Force)" text, "Voice actor (Harmony Gold OVA Dub)" text, "Voice actor (Eagle Riders)" text, "Voice actor (ADV TV/Sentai OVA dub)" text )
SELECT "Voice actor (Harmony Gold OVA Dub)" FROM table_5644 WHERE "Japanese voice actor" = 'yoku shioya'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 3628, 41, 96, 517, 14547, 9, 348, 121, 1499, 6, 96, 279, 9, 8692, 13, 8, 12601, 7, 121, 1499, 6, 96, 517, 18, 3809, 565, 121, 1499, 6, 96, 427, 9, 3537, 25218, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 32, 867, 7556, 41, 15537, 21208, 2540, 411, 8230, 970, 115, 61, 121, 21680, 953, 834, 4834, 3628, 549, 17444, 427, 96, 683, 9750, 1496, 15, 2249, 7556, 121, 3274, 3, 31, 63, 18512, 3, 5605, 32, 63, 9, 3...
How many goals were scored by the player who played 17 matches?
CREATE TABLE table_17612 ( "Country" text, "Player name" text, "Period" text, "Position" text, "Matches" text, "Goals" text )
SELECT "Goals" FROM table_17612 WHERE "Matches" = '17'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26782, 2122, 41, 96, 10628, 651, 121, 1499, 6, 96, 15800, 49, 564, 121, 1499, 6, 96, 12988, 23, 32, 26, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 329, 144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6221, 5405, 121, 21680, 953, 834, 26782, 2122, 549, 17444, 427, 96, 329, 144, 2951, 121, 3274, 3, 31, 2517, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Points is the lowest one that has a Position larger than 5?
CREATE TABLE table_name_36 (points INTEGER, position INTEGER)
SELECT MIN(points) FROM table_name_36 WHERE position > 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 2700, 7, 3, 21342, 17966, 6, 1102, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 4073, 4564, 7, 19, 8, 7402, 80, 24, 65, 3, 9, 14258, 2186, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 3420, 549, 17444, 427, 1102, 2490, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
give the number of patients who are of black/haitian ethnicity and their drug route is id.
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 ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND prescriptions.route = "ID"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
Who is the Director of the Olsen Gang Sees Red?
CREATE TABLE table_46107 ( "Year" real, "English title" text, "Danish title" text, "Director" text, "Result" text )
SELECT "Director" FROM table_46107 WHERE "English title" = 'the olsen gang sees red'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4448, 18057, 41, 96, 476, 2741, 121, 490, 6, 96, 26749, 2233, 121, 1499, 6, 96, 308, 152, 1273, 2233, 121, 1499, 6, 96, 23620, 127, 121, 1499, 6, 96, 20119, 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, 23620, 127, 121, 21680, 953, 834, 4448, 18057, 549, 17444, 427, 96, 26749, 2233, 121, 3274, 3, 31, 532, 3, 32, 40, 7, 35, 3, 3810, 217, 7, 1131, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
calculate the average age of newborn admitted male patients.
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 ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.admission_type = "NEWBORN"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 122, 3868, 3274, 96, 329, 121, 3430, 14798, 5, 9, 26, 5451, 834, 6137, 3274, 96, 4171, 518, 8471, 14151, 121, 1, -100, -100, -100, ...
What does the Circuit of caen report?
CREATE TABLE table_name_98 ( report VARCHAR, circuit VARCHAR )
SELECT report FROM table_name_98 WHERE circuit = "caen"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 934, 584, 4280, 28027, 6, 4558, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 405, 8, 17007, 13, 212, 35, 934, 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, 934, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 4558, 3274, 96, 658, 35, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is thea year the road closed April 13?
CREATE TABLE table_12791809_1 (year INTEGER, road_closed VARCHAR)
SELECT MAX(year) FROM table_12791809_1 WHERE road_closed = "April 13"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2122, 4440, 2606, 4198, 834, 536, 41, 1201, 3, 21342, 17966, 6, 1373, 834, 16221, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 9, 215, 8, 1373, 3168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 1201, 61, 21680, 953, 834, 2122, 4440, 2606, 4198, 834, 536, 549, 17444, 427, 1373, 834, 16221, 26, 3274, 96, 23323, 1179, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the third place of the performance in 2006 with the host Japan?
CREATE TABLE table_name_79 ( third_place VARCHAR, host VARCHAR, season VARCHAR )
SELECT third_place FROM table_name_79 WHERE host = "japan" AND season < 2006
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4440, 41, 1025, 834, 4687, 584, 4280, 28027, 6, 2290, 584, 4280, 28027, 6, 774, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1025, 286, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1025, 834, 4687, 21680, 953, 834, 4350, 834, 4440, 549, 17444, 427, 2290, 3274, 96, 1191, 2837, 121, 3430, 774, 3, 2, 3581, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...