NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
How many rating/share values does the episode aired on Saturday, May 9, 2009?
CREATE TABLE table_17525955_2 (rating VARCHAR, us_air_date VARCHAR)
SELECT COUNT(rating) / SHARE(18 AS –49) FROM table_17525955_2 WHERE us_air_date = "Saturday, May 9, 2009"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 5373, 3390, 3769, 834, 357, 41, 52, 1014, 584, 4280, 28027, 6, 178, 834, 2256, 834, 5522, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 5773, 87, 12484...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 52, 1014, 61, 3, 87, 10046, 7451, 599, 2606, 6157, 3, 104, 3647, 61, 21680, 953, 834, 2517, 5373, 3390, 3769, 834, 357, 549, 17444, 427, 178, 834, 2256, 834, 5522, 3274, 96, 134, 6010, 1135, 6, 9...
What Winning constructor has a Name of grand prix de la marne?
CREATE TABLE table_62006 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text )
SELECT "Winning constructor" FROM table_62006 WHERE "Name" = 'grand prix de la marne'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 21196, 41, 96, 23954, 121, 1499, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 518, 10503, 2535, 121, 1499, 6, 96, 518, 10503, 6774, 127, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 518, 10503, 6774, 127, 121, 21680, 953, 834, 948, 21196, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 15448, 3407, 20, 50, 3157, 29, 15, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show the name of track and the number of races in each track by a bar chart, rank from low to high by the bar.
CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real ) CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text )
SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY T2.Name
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1463, 41, 8799, 834, 4309, 16, 17, 6, 5570, 1499, 6, 10450, 1499, 6, 15915, 53, 490, 6, 2929, 834, 22696, 15, 26, 490, 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, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 2847, 17161, 599, 1935, 61, 21680, 1964, 6157, 332, 536, 3, 15355, 3162, 1463, 6157, 332, 357, 9191, 332, 5411, 382, 16729, 834, 4309, 3274, 332, 4416, 382, 16729, 834, 4309, 350, 4630, 6880, 272,...
What is the maximum week that 69,372 people attended the game?
CREATE TABLE table_12996 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT MAX("Week") FROM table_12996 WHERE "Attendance" = '69,372'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22174, 4314, 41, 96, 518, 10266, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 188, 17, 324, 26, 663, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 518, 10266, 8512, 21680, 953, 834, 22174, 4314, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 3274, 3, 31, 3951, 6, 4118, 357, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
If the year is 2007, what is the top ten?
CREATE TABLE table_25431 ( "Year" real, "Tournaments played" real, "Cuts made" real, "Wins" real, "2nd" real, "Top 10s" real, "Best finish" text, "Earnings ($)" real, "Money list rank" real, "Scoring average" text, "Scoring rank" real )
SELECT "Top 10s" FROM table_25431 WHERE "Year" = '2007'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 591, 3341, 41, 96, 476, 2741, 121, 490, 6, 96, 382, 1211, 29, 9, 4128, 1944, 121, 490, 6, 96, 15784, 17, 7, 263, 121, 490, 6, 96, 18455, 7, 121, 490, 6, 96, 357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22481, 335, 7, 121, 21680, 953, 834, 1828, 591, 3341, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 20615, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What round was in canberra stadium?
CREATE TABLE table_60153 ( "Team" text, "Opponent" text, "Score" text, "Venue" text, "Round" text )
SELECT "Round" FROM table_60153 WHERE "Venue" = 'canberra stadium'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 27025, 41, 96, 18699, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 448, 32, 1106, 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, 0, 0...
[ 3, 23143, 14196, 96, 448, 32, 1106, 121, 21680, 953, 834, 3328, 27025, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 1608, 115, 16841, 14939, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Tell me the launch date with Institutional authority of ndc and launch vehicle of hatf-xi
CREATE TABLE table_name_58 ( launch_date VARCHAR, institutional_authority VARCHAR, launch_vehicle VARCHAR )
SELECT launch_date FROM table_name_58 WHERE institutional_authority = "ndc" AND launch_vehicle = "hatf-xi"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 3289, 834, 5522, 584, 4280, 28027, 6, 13533, 834, 17415, 485, 584, 4280, 28027, 6, 3289, 834, 162, 107, 23, 2482, 584, 4280, 28027, 3, 61, 3, 32102, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3289, 834, 5522, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 13533, 834, 17415, 485, 3274, 96, 727, 75, 121, 3430, 3289, 834, 162, 107, 23, 2482, 3274, 96, 547, 89, 18, 226, 23, 121, 1, -100, -100, -100, -1...
What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?
CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Fault_Log (recorded_by_staff_id VARCHAR)
SELECT T1.staff_name, T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name, T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 11597, 834, 553, 159, 7085, 41, 27608, 834, 26416, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 10071, 41, 26416, 834, 4350, 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, 5411, 26416, 834, 4350, 6, 332, 5411, 26416, 834, 23, 26, 21680, 10071, 6157, 332, 536, 3, 15355, 3162, 377, 10335, 834, 22084, 6157, 332, 357, 9191, 332, 5411, 26416, 834, 23, 26, 3274, 332, 4416, 60, 7621, 15...
What is the name of the boat that was built by Chatham and Laid down of 25 april 1887?
CREATE TABLE table_name_75 (name VARCHAR, builder VARCHAR, laid_down VARCHAR)
SELECT name FROM table_name_75 WHERE builder = "chatham" AND laid_down = "25 april 1887"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3072, 41, 4350, 584, 4280, 28027, 6, 918, 49, 584, 4280, 28027, 6, 7245, 834, 3035, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 21680, 953, 834, 4350, 834, 3072, 549, 17444, 427, 918, 49, 3274, 96, 16842, 1483, 121, 3430, 7245, 834, 3035, 3274, 96, 1828, 3, 9, 2246, 40, 507, 4225, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the result for week 16?
CREATE TABLE table_name_36 ( result VARCHAR, week VARCHAR )
SELECT result FROM table_name_36 WHERE week = 16
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3420, 41, 741, 584, 4280, 28027, 6, 471, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 741, 21, 471, 898, 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, 3420, 549, 17444, 427, 471, 3274, 898, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest week when the game site was Verizon Wireless Arena, and the result was w 59 42?
CREATE TABLE table_name_69 ( week INTEGER, game_site VARCHAR, result VARCHAR )
SELECT MAX(week) FROM table_name_69 WHERE game_site = "verizon wireless arena" AND result = "w 59–42"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3951, 41, 471, 3, 21342, 17966, 6, 467, 834, 3585, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 471, 116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 8041, 61, 21680, 953, 834, 4350, 834, 3951, 549, 17444, 427, 467, 834, 3585, 3274, 96, 624, 23, 8892, 5419, 15134, 121, 3430, 741, 3274, 96, 210, 3, 3390, 104, 4165, 121, 1, -100, -100, -100, -100, -...
What's the highest series number ?
CREATE TABLE table_27823058_1 (series__number INTEGER)
SELECT MAX(series__number) FROM table_27823058_1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4613, 1458, 3449, 834, 536, 41, 10833, 7, 834, 834, 5525, 1152, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 2030, 939, 381, 3, 58, 3, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 10833, 7, 834, 834, 5525, 1152, 61, 21680, 953, 834, 2555, 4613, 1458, 3449, 834, 536, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the sum of draws with 274-357 goals?
CREATE TABLE table_53853 ( "Rank" real, "Club 1" text, "Seasons" real, "Spells" real, "Played 2" real, "Drawn" real, "Lost" real, "Goals" text, "Points 3" text )
SELECT SUM("Drawn") FROM table_53853 WHERE "Goals" = '274-357'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 4433, 519, 41, 96, 22557, 121, 490, 6, 96, 254, 11158, 209, 121, 1499, 6, 96, 134, 15, 9, 6577, 121, 490, 6, 96, 134, 19510, 7, 121, 490, 6, 96, 15800, 15, 26, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 308, 10936, 29, 8512, 21680, 953, 834, 4867, 4433, 519, 549, 17444, 427, 96, 6221, 5405, 121, 3274, 3, 31, 2555, 591, 3486, 3436, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
WHAT IS THE RATING THAT HAD A SHARE SMALLER THAN 4, AND 2.47 MILLION VIEWERS?
CREATE TABLE table_76680 ( "Episode number" real, "Episode" text, "Rating" real, "Share" real, "Rating/Share (18-49)" text, "Viewers (millions)" real, "Rank (Overall)" text )
SELECT COUNT("Rating") FROM table_76680 WHERE "Share" < '4' AND "Viewers (millions)" > '2.47'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3539, 2079, 41, 96, 427, 102, 159, 32, 221, 381, 121, 490, 6, 96, 427, 102, 159, 32, 221, 121, 1499, 6, 96, 448, 1014, 121, 490, 6, 96, 24501, 121, 490, 6, 96, 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, 2847, 17161, 599, 121, 448, 1014, 8512, 21680, 953, 834, 940, 3539, 2079, 549, 17444, 427, 96, 24501, 121, 3, 2, 3, 31, 591, 31, 3430, 96, 15270, 277, 41, 17030, 7, 61, 121, 2490, 3, 31, 4416, 4177, 31, 1, -100,...
What is the laops of marcis auto racing?
CREATE TABLE table_12001616_4 ( laps VARCHAR, entrant VARCHAR )
SELECT laps FROM table_12001616_4 WHERE entrant = "Marcis Auto Racing"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 536, 3632, 2938, 2938, 834, 591, 41, 14941, 7, 584, 4280, 28027, 6, 3, 295, 3569, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 50, 9280, 13, 14124, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14941, 7, 21680, 953, 834, 536, 3632, 2938, 2938, 834, 591, 549, 17444, 427, 3, 295, 3569, 3274, 96, 329, 9, 21645, 2040, 16046, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many songs made it into the top 10 us charts ?
CREATE TABLE table_203_830 ( id number, "year" number, "song" text, "chart positions\nus country" number, "chart positions\ncan country" number, "album" text )
SELECT COUNT("song") FROM table_203_830 WHERE "chart positions\nus country" <= 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 927, 1458, 41, 3, 23, 26, 381, 6, 96, 1201, 121, 381, 6, 96, 7, 2444, 121, 1499, 6, 96, 4059, 17, 4655, 2, 29, 302, 684, 121, 381, 6, 96, 4059, 17, 4655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7, 2444, 8512, 21680, 953, 834, 23330, 834, 927, 1458, 549, 17444, 427, 96, 4059, 17, 4655, 2, 29, 302, 684, 121, 3, 2, 2423, 335, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Give me the comparison about ACC_Percent over the ACC_Regular_Season .
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT ACC_Regular_Season, ACC_Percent FROM basketball_match
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8498, 834, 19515, 41, 2271, 834, 4309, 16, 17, 6, 1121, 834, 4309, 16, 17, 6, 2271, 834, 23954, 1499, 6, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 1499, 6, 3, 14775, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 6, 3, 14775, 834, 12988, 3728, 21680, 8498, 834, 19515, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the rank of the 1983 team in the 250cc class?
CREATE TABLE table_name_51 ( rank VARCHAR, class VARCHAR, year VARCHAR )
SELECT rank FROM table_name_51 WHERE class = "250cc" AND year = 1983
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5553, 41, 11003, 584, 4280, 28027, 6, 853, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 11003, 13, 8, 15041, 372...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11003, 21680, 953, 834, 4350, 834, 5553, 549, 17444, 427, 853, 3274, 96, 11434, 75, 75, 121, 3430, 215, 3274, 15041, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
On what date was Patty Fendick an opponent?
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_95 WHERE opponent = "patty fendick"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 5522, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 461, 125, 833, 47, 276, 22648, 377, 989, 3142, 46, 15264, 58, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 15264, 3274, 96, 102, 22648, 3, 89, 989, 3142, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the total number of seasons with more than 0 wins and a 1st final placing?
CREATE TABLE table_55606 ( "Season" real, "Series" text, "Team Name" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Final Placing" text )
SELECT COUNT("Season") FROM table_55606 WHERE "Wins" > '0' AND "Final Placing" = '1st'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 3328, 948, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 12106, 7, 121, 1499, 6, 96, 18699, 5570, 121, 1499, 6, 96, 448, 9, 2319, 121, 490, 6, 96, 18455, 7, 121, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 134, 15, 9, 739, 8512, 21680, 953, 834, 3769, 3328, 948, 549, 17444, 427, 96, 18455, 7, 121, 2490, 3, 31, 632, 31, 3430, 96, 371, 10270, 8422, 75, 53, 121, 3274, 3, 31, 536, 7, 17, 31, 1...
Name the candidates for l. mendel rivers
CREATE TABLE table_1341930_40 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1341930_40 WHERE incumbent = "L. Mendel Rivers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2294, 1458, 834, 2445, 41, 1608, 12416, 6203, 584, 4280, 28027, 6, 28406, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 4341, 21, 3, 40, 5, 140, 8893, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 1608, 12416, 6203, 61, 21680, 953, 834, 23747, 2294, 1458, 834, 2445, 549, 17444, 427, 28406, 3274, 96, 434, 5, 1212, 8893, 2473, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
what is primary disease and procedure long title of subject id 15061?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT demographic.diagnosis, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "15061"
[ 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, 14798, 5, 25930, 4844, 159, 6, 4293, 5, 2961, 834, 21869, 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, 427, 14798, 5, 73...
what is the average dynamo when draw is more than 0, played is less than 15 and spartak is more than 1?
CREATE TABLE table_name_25 ( dynamo INTEGER, spartak VARCHAR, draw VARCHAR, played VARCHAR )
SELECT AVG(dynamo) FROM table_name_25 WHERE draw > 0 AND played < 15 AND spartak > 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 3, 24805, 51, 32, 3, 21342, 17966, 6, 3, 7, 2274, 1639, 584, 4280, 28027, 6, 3314, 584, 4280, 28027, 6, 1944, 584, 4280, 28027, 3, 61, 3, 32102, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 24805, 51, 32, 61, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 3314, 2490, 3, 632, 3430, 1944, 3, 2, 627, 3430, 3, 7, 2274, 1639, 2490, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100...
when did patient 030-60126 receive a procedure for the last time until 2104?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) 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 ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime 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 medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
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 = '030-60126')) AND STRFTIME('%y', treatment.treatmenttime) <= '2104' ORDER BY treatment.treatmenttime DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 11963, 670, 2562, 41, 11963, 670, 2562, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2358, 8292, 1499, 6, 2358, 40, 10333, 1499, 6, 2358, 7480, 35, 76, 17552, 381, 6, 11963, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
Who was the director of Chaser on the Rocks?
CREATE TABLE table_name_74 ( director VARCHAR, title VARCHAR )
SELECT director FROM table_name_74 WHERE title = "chaser on the rocks"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4581, 41, 2090, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 2090, 13, 17096, 52, 30, 8, 3120, 7, 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, 2090, 21680, 953, 834, 4350, 834, 4581, 549, 17444, 427, 2233, 3274, 96, 3441, 7, 49, 30, 8, 12288, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When London Bridge is the destination, how many lines are there?
CREATE TABLE table_1569516_1 (line VARCHAR, destination VARCHAR)
SELECT COUNT(line) FROM table_1569516_1 WHERE destination = "London Bridge"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25463, 3301, 2938, 834, 536, 41, 747, 584, 4280, 28027, 6, 3954, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 366, 1524, 6132, 19, 8, 3954, 6, 149, 186, 2356, 33, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2847, 17161, 599, 747, 61, 21680, 953, 834, 25463, 3301, 2938, 834, 536, 549, 17444, 427, 3954, 3274, 96, 29712, 6132, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the runner-up for the intercontinental cup
CREATE TABLE table_6232 ( "Team" text, "Copa Libertadores 1998" text, "Copa Mercosur 1998" text, "Copa CONMEBOL 1998" text, "Copa Interamericana 1998" text, "Recopa Sudamericana 1998" text, "Intercontinental Cup 1998" text )
SELECT "Intercontinental Cup 1998" FROM table_6232 WHERE "Copa Mercosur 1998" = 'runner-up'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4056, 2668, 41, 96, 18699, 121, 1499, 6, 96, 3881, 102, 9, 12774, 17, 10097, 7, 6260, 121, 1499, 6, 96, 3881, 102, 9, 4039, 509, 3042, 6260, 121, 1499, 6, 96, 3881, 102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 17555, 27339, 138, 3802, 6260, 121, 21680, 953, 834, 4056, 2668, 549, 17444, 427, 96, 3881, 102, 9, 4039, 509, 3042, 6260, 121, 3274, 3, 31, 10806, 18, 413, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
how many patients whose primary disease is chest pain?
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 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CHEST PAIN"
[ 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, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 8360, 6038, 276, 13570, 121, 1, -100, -100, -100, -100, -100, -100, -1...
What is the GDP % of EU in 2012 of the country with a GDP in billions of USD in 2012 of 256.3?
CREATE TABLE table_name_19 (gdp__percentage_of_eu__2012_ VARCHAR, gdp_in_s_billion_of_usd__2012_ VARCHAR)
SELECT gdp__percentage_of_eu__2012_ FROM table_name_19 WHERE gdp_in_s_billion_of_usd__2012_ = 256.3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2294, 41, 122, 26, 102, 834, 834, 883, 3728, 545, 834, 858, 834, 15, 76, 834, 834, 12172, 834, 584, 4280, 28027, 6, 3, 122, 26, 102, 834, 77, 834, 7, 834, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 122, 26, 102, 834, 834, 883, 3728, 545, 834, 858, 834, 15, 76, 834, 834, 12172, 834, 21680, 953, 834, 4350, 834, 2294, 549, 17444, 427, 3, 122, 26, 102, 834, 77, 834, 7, 834, 115, 14916, 834, 858, 834, 302, ...
What is the highest Total for Australia?
CREATE TABLE table_name_78 ( total INTEGER, country VARCHAR )
SELECT MAX(total) FROM table_name_78 WHERE country = "australia"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 792, 3, 21342, 17966, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 9273, 21, 2051, 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, 4800, 4, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 684, 3274, 96, 2064, 8792, 23, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Draw a bar chart about the distribution of Name and Height , and rank y-axis in descending order.
CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real )
SELECT Name, Height FROM people ORDER BY Height DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4775, 41, 25833, 17, 15, 834, 4309, 16, 17, 6, 2449, 834, 4309, 16, 17, 6, 14457, 834, 23799, 1499, 6, 7678, 1499, 6, 4224, 834, 2206, 490, 6, 9151, 834, 2206, 490, 6, 4495, 2748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5570, 6, 24231, 21680, 151, 4674, 11300, 272, 476, 24231, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
provide the number of patients whose admission year is less than 2139 and lab test name is bilirubin, indirect?
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 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2139" AND lab.label = "Bilirubin, Indirect"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
How many muslims have a jewish of 112,803, and a year after 2008?
CREATE TABLE table_35410 ( "Year" real, "Jewish" real, "Muslim" real, "Christian" real, "Druze" real, "Total" real )
SELECT SUM("Muslim") FROM table_35410 WHERE "Jewish" = '112,803' AND "Year" > '2008'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2469, 24175, 41, 96, 476, 2741, 121, 490, 6, 96, 7851, 210, 1273, 121, 490, 6, 96, 329, 302, 4941, 121, 490, 6, 96, 28412, 121, 490, 6, 96, 14561, 10953, 121, 490, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 329, 302, 4941, 8512, 21680, 953, 834, 2469, 24175, 549, 17444, 427, 96, 7851, 210, 1273, 121, 3274, 3, 31, 2596, 4482, 2079, 519, 31, 3430, 96, 476, 2741, 121, 2490, 3, 31, 16128, 31, 1, -100...
What is the points when played is less than 38?
CREATE TABLE table_47403 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real )
SELECT SUM("Points") FROM table_47403 WHERE "Played" < '38'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 2445, 519, 41, 96, 345, 32, 7, 4749, 121, 490, 6, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 490, 6, 96, 22512, 7, 121, 490, 6, 96, 18455, 7, 121, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22512, 7, 8512, 21680, 953, 834, 4177, 2445, 519, 549, 17444, 427, 96, 15800, 15, 26, 121, 3, 2, 3, 31, 3747, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What Position has a Player named kenneth udjus?
CREATE TABLE table_6508 ( "Position" text, "Player" text, "Premiership" text, "Norwegian Cup" text, "UEFA" text, "Total" text )
SELECT "Position" FROM table_6508 WHERE "Player" = 'kenneth udjus'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4122, 4018, 41, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10572, 51, 972, 2009, 121, 1499, 6, 96, 567, 127, 1123, 22898, 3802, 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, 345, 32, 7, 4749, 121, 21680, 953, 834, 4122, 4018, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 9376, 15, 189, 3, 76, 26, 2047, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the average minimum and price of the rooms for each different decor.
CREATE TABLE reservations ( code number, room text, checkin text, checkout text, rate number, lastname text, firstname text, adults number, kids number ) CREATE TABLE rooms ( roomid text, roomname text, beds number, bedtype text, maxoccupancy number, baseprice number, decor text )
SELECT decor, AVG(baseprice), MIN(baseprice) FROM rooms GROUP BY decor
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 17653, 41, 1081, 381, 6, 562, 1499, 6, 691, 77, 1499, 6, 15912, 1499, 6, 1080, 381, 6, 336, 4350, 1499, 6, 166, 4350, 1499, 6, 3513, 381, 6, 1082, 381, 3, 61, 3, 32102, 32103, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4469, 6, 71, 17217, 599, 10925, 102, 4920, 201, 3, 17684, 599, 10925, 102, 4920, 61, 21680, 2801, 350, 4630, 6880, 272, 476, 4469, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the lowest league cup with a premier League of 1, and the total is less than 5?
CREATE TABLE table_name_71 ( league_cup INTEGER, premier_league VARCHAR, total VARCHAR )
SELECT MIN(league_cup) FROM table_name_71 WHERE premier_league = 1 AND total < 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4450, 41, 5533, 834, 4658, 3, 21342, 17966, 6, 2761, 834, 29512, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 29512, 834, 4658, 61, 21680, 953, 834, 4350, 834, 4450, 549, 17444, 427, 2761, 834, 29512, 3274, 209, 3430, 792, 3, 2, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the least amount of league of communists where municipality is mojkovac
CREATE TABLE table_15306124_1 (league_of_communists INTEGER, municipality VARCHAR)
SELECT MIN(league_of_communists) FROM table_15306124_1 WHERE municipality = "Mojkovac"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27025, 5176, 22504, 834, 536, 41, 29512, 834, 858, 834, 18782, 343, 7, 3, 21342, 17966, 6, 27597, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 709, 866, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 29512, 834, 858, 834, 18782, 343, 7, 61, 21680, 953, 834, 27025, 5176, 22504, 834, 536, 549, 17444, 427, 27597, 3274, 96, 329, 32, 354, 9789, 9, 75, 121, 1, -100, -100, -100, -100, -100, -100, -100, ...
Which Touchdowns have an Extra points of 0, and Points larger than 5, and a Player of curtis redden?
CREATE TABLE table_name_47 ( touchdowns INTEGER, player VARCHAR, extra_points VARCHAR, points VARCHAR )
SELECT AVG(touchdowns) FROM table_name_47 WHERE extra_points = 0 AND points > 5 AND player = "curtis redden"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 19396, 7, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 6, 996, 834, 2700, 7, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 17681, 3035, 7, 61, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 996, 834, 2700, 7, 3274, 3, 632, 3430, 979, 2490, 305, 3430, 1959, 3274, 96, 3663, 17, 159, 1131, 537, 121, 1, -100, -100, -10...
Which Residence has a Party of dem, and a Representative of linda lawson?
CREATE TABLE table_name_20 (residence VARCHAR, party VARCHAR, representative VARCHAR)
SELECT residence FROM table_name_20 WHERE party = "dem" AND representative = "linda lawson"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 60, 1583, 3772, 584, 4280, 28027, 6, 1088, 584, 4280, 28027, 6, 6978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 23369, 65, 3, 9, 3450, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6198, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 1088, 3274, 96, 1778, 121, 3430, 6978, 3274, 96, 9230, 9, 3786, 106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What were the bowling figures for the competition at Pietermaritzburg?
CREATE TABLE table_56380 ( "Bowling figures Wickets-Runs (Overs)" text, "Bowler" text, "Versus" text, "Venue" text, "Date" text )
SELECT "Bowling figures Wickets-Runs (Overs)" FROM table_56380 WHERE "Venue" = 'pietermaritzburg'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 22671, 41, 96, 279, 2381, 697, 5638, 18602, 15, 17, 7, 18, 448, 202, 7, 41, 23847, 7, 61, 121, 1499, 6, 96, 279, 2381, 1171, 121, 1499, 6, 96, 5000, 7, 302, 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, 279, 2381, 697, 5638, 18602, 15, 17, 7, 18, 448, 202, 7, 41, 23847, 7, 61, 121, 21680, 953, 834, 4834, 22671, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 8082, 1987, 291, 5615, 4824, 31, 1, -10...
What is the sum of the draws with less than 2284 against, 8 losses, and more than 10 wins?
CREATE TABLE table_name_61 ( draws INTEGER, wins VARCHAR, against VARCHAR, losses VARCHAR )
SELECT SUM(draws) FROM table_name_61 WHERE against < 2284 AND losses = 8 AND wins > 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 14924, 3, 21342, 17966, 6, 9204, 584, 4280, 28027, 6, 581, 584, 4280, 28027, 6, 8467, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 19489, 7, 61, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 581, 3, 2, 1630, 4608, 3430, 8467, 3274, 505, 3430, 9204, 2490, 335, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
I want the result for goals which has goals of deacon 6/6
CREATE TABLE table_52638 ( "Date" text, "Competition" text, "Venue" text, "Result" text, "Score" text, "Goals" text )
SELECT "Result" FROM table_52638 WHERE "Goals" = 'deacon 6/6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 2688, 3747, 41, 96, 308, 342, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 134, 9022, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 20119, 121, 21680, 953, 834, 755, 2688, 3747, 549, 17444, 427, 96, 6221, 5405, 121, 3274, 3, 31, 221, 9, 1018, 431, 18656, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What Driver has 28 Laps and a Grid greater than 5?
CREATE TABLE table_name_91 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_91 WHERE grid > 5 AND laps = 28
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4729, 41, 13739, 52, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 10546, 65, 2059, 325, 102,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2535, 21680, 953, 834, 4350, 834, 4729, 549, 17444, 427, 8634, 2490, 305, 3430, 14941, 7, 3274, 2059, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
In the fight against Brandon Bledsoe, how many rounds did the fight last?
CREATE TABLE table_name_91 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_91 WHERE opponent = "brandon bledsoe"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4729, 41, 7775, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 86, 8, 2870, 581, 20446, 11805, 26, 7, 32, 15, 6, 149, 186, 1441...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1751, 21680, 953, 834, 4350, 834, 4729, 549, 17444, 427, 15264, 3274, 96, 12164, 106, 3, 2296, 26, 7, 32, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who wrote the episode with e4515 as the production code?
CREATE TABLE table_25750635_2 ( written_by VARCHAR, production_code VARCHAR )
SELECT written_by FROM table_25750635_2 WHERE production_code = "E4515"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 9979, 948, 2469, 834, 357, 41, 1545, 834, 969, 584, 4280, 28027, 6, 999, 834, 4978, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 2832, 8, 5640, 28, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1545, 834, 969, 21680, 953, 834, 1828, 9979, 948, 2469, 834, 357, 549, 17444, 427, 999, 834, 4978, 3274, 96, 427, 2128, 1808, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For those employees who do not work in departments with managers that have ids between 100 and 200, return a scatter chart about the correlation between employee_id and manager_id .
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) )
SELECT EMPLOYEE_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1440, 41, 2847, 17161, 11824, 834, 4309, 3, 4331, 4059, 16426, 6, 2847, 17161, 11824, 834, 567, 17683, 3, 4331, 4059, 599, 2445, 201, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 1714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 262, 5244, 5017, 476, 5080, 834, 4309, 6, 283, 15610, 17966, 834, 4309, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 10521, 549, 17444, ...
What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?
CREATE TABLE table_name_88 ( average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR )
SELECT AVG(average) FROM table_name_88 WHERE swimsuit < 9.109 AND country = "pennsylvania" AND evening_gown < 9.163
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 1348, 3, 21342, 17966, 6, 2272, 834, 122, 9197, 584, 4280, 28027, 6, 9728, 7628, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 28951, 61, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 9728, 7628, 3, 2, 5835, 17304, 3430, 684, 3274, 96, 3208, 29, 7, 63, 40, 16658, 9, 121, 3430, 2272, 834, 122, 9197, 3, 2, 5835, 2938, ...
how many male patients have undergone the procedure transfusion of packed cells?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.long_title = "Transfusion of packed cells"
[ 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 Japanese title with an average rating of 11.6%?
CREATE TABLE table_18540104_1 (japanese_title VARCHAR, average_ratings VARCHAR)
SELECT japanese_title FROM table_18540104_1 WHERE average_ratings = "11.6%"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21594, 2445, 15442, 834, 536, 41, 1191, 2837, 15, 7, 15, 834, 21869, 584, 4280, 28027, 6, 1348, 834, 52, 1014, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2662, 2837, 15, 7, 15, 834, 21869, 21680, 953, 834, 21594, 2445, 15442, 834, 536, 549, 17444, 427, 1348, 834, 52, 1014, 7, 3274, 96, 10032, 6370, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
get the number of patients with american indian/alaska native ethnic background who were born before the year 2197.
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 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.dob_year < "2197"
[ 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, 549, 17444, 427, 14798, 5, 15, 189, 2532, 485, 3274, 96, 17683, 5593, 11425, 3, 13885, 21758, 87, 23634, 134, 12048, 3, 25271...
What was the date of appointment for the manager that replaced Simon Davies?
CREATE TABLE table_22615 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text, "Position in table" text )
SELECT "Date of appointment" FROM table_22615 WHERE "Outgoing manager" = 'Simon Davies'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2688, 1808, 41, 96, 18699, 121, 1499, 6, 96, 15767, 9545, 2743, 121, 1499, 6, 96, 7296, 687, 13, 12028, 121, 1499, 6, 96, 308, 342, 13, 3, 29685, 121, 1499, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 13, 4141, 121, 21680, 953, 834, 357, 2688, 1808, 549, 17444, 427, 96, 15767, 9545, 2743, 121, 3274, 3, 31, 134, 23, 2157, 28571, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many played have 8 wins and more than 58 goals against?
CREATE TABLE table_name_20 (played VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT COUNT(played) FROM table_name_20 WHERE wins = 8 AND goals_against > 58
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 4895, 15, 26, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 6, 1766, 834, 9, 16720, 7, 17, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 4895, 15, 26, 61, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 9204, 3274, 505, 3430, 1766, 834, 9, 16720, 7, 17, 2490, 3, 3449, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What was the score on March 4?
CREATE TABLE table_name_22 ( score VARCHAR, date VARCHAR )
SELECT score FROM table_name_22 WHERE date = "march 4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 2604, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 30, 1332, 314, 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, 2604, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 833, 3274, 96, 51, 7064, 3, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed?
CREATE TABLE table_name_79 ( touchdowns INTEGER, receptions VARCHAR, games_started VARCHAR )
SELECT MIN(touchdowns) FROM table_name_79 WHERE receptions = 51 AND games_started < 16
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4440, 41, 19396, 7, 3, 21342, 17966, 6, 6839, 7, 584, 4280, 28027, 6, 1031, 834, 3624, 1054, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 438, 1031, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 17681, 3035, 7, 61, 21680, 953, 834, 4350, 834, 4440, 549, 17444, 427, 6839, 7, 3274, 11696, 3430, 1031, 834, 3624, 1054, 3, 2, 898, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
among patients diagnosed with wegener's granulomatosis, how many of them received sl therapy?
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Wegener's granulomatosis" AND prescriptions.route = "SL"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
How many tries were for the 7 lost?
CREATE TABLE table_4939 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text )
SELECT "Tries for" FROM table_4939 WHERE "Lost" = '7'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 3288, 41, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 1499, 6, 96, 308, 10936, 29, 121, 1499, 6, 96, 434, 3481, 121, 1499, 6, 96, 22512, 7, 21, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 382, 2593, 21, 121, 21680, 953, 834, 3647, 3288, 549, 17444, 427, 96, 434, 3481, 121, 3274, 3, 31, 940, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Who was drafted from the school Mountain Pointe High School?
CREATE TABLE table_11677100_16 ( mlb_draft VARCHAR, school VARCHAR )
SELECT mlb_draft FROM table_11677100_16 WHERE school = "Mountain Pointe High school"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20159, 4013, 2915, 834, 2938, 41, 3, 51, 40, 115, 834, 26, 10913, 584, 4280, 28027, 6, 496, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 3, 23505, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 51, 40, 115, 834, 26, 10913, 21680, 953, 834, 20159, 4013, 2915, 834, 2938, 549, 17444, 427, 496, 3274, 96, 329, 32, 14016, 77, 4564, 15, 1592, 496, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by weekday.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) )
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 3396, 19846, 11810, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3396, 19846, 11810, 834, 567, 17683, 3, 4331, 4059, 599, 1458, 201, 283, 15610, 17966, 834, 4309, 7908, 1982, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 2847, 17161, 599, 566, 14132, 834, 308, 6048, 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, ...
what is the average drawn when the points is more than 15, lost is 1 and played is less than 14?
CREATE TABLE table_name_22 ( drawn INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR )
SELECT AVG(drawn) FROM table_name_22 WHERE points > 15 AND lost = 1 AND played < 14
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 6796, 3, 21342, 17966, 6, 1944, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 6, 1513, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 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, 71, 17217, 599, 19489, 29, 61, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 979, 2490, 627, 3430, 1513, 3274, 209, 3430, 1944, 3, 2, 968, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which Year has a Category of best original song ( )?
CREATE TABLE table_77297 ( "Year" real, "Award" text, "Category" text, "Country" text, "Result" text )
SELECT MAX("Year") FROM table_77297 WHERE "Category" = 'best original song (รอเธอหันมา – โฟกัส จิระกุล)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4013, 357, 4327, 41, 96, 476, 2741, 121, 490, 6, 96, 188, 2239, 121, 1499, 6, 96, 18610, 6066, 651, 121, 1499, 6, 96, 10628, 651, 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, 4800, 4, 599, 121, 476, 2741, 8512, 21680, 953, 834, 4013, 357, 4327, 549, 17444, 427, 96, 18610, 6066, 651, 121, 3274, 3, 31, 9606, 926, 2324, 41, 2, 3, 104, 3, 2, 3, 2, 61, 31, 1, -100, -100, -100, -100, -10...
Which Club has a League Cup goals of 0, and a FA Cup goals of 1, and a Total larger than 11, and a League goals of 13?
CREATE TABLE table_name_99 (club VARCHAR, league_goals VARCHAR, total VARCHAR, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT club FROM table_name_99 WHERE league_cup_goals = "0" AND fa_cup_goals = "1" AND total > 11 AND league_goals = "13"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3264, 41, 13442, 584, 4280, 28027, 6, 5533, 834, 839, 5405, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 5533, 834, 4658, 834, 839, 5405, 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, 1886, 21680, 953, 834, 4350, 834, 3264, 549, 17444, 427, 5533, 834, 4658, 834, 839, 5405, 3274, 96, 632, 121, 3430, 3, 89, 9, 834, 4658, 834, 839, 5405, 3274, 96, 536, 121, 3430, 792, 2490, 850, 3430, 5533, 834, 8...
How many earnings values are associated with players who had a best finish of T38?
CREATE TABLE table_74296 ( "Player" text, "Starts" real, "Cuts made" real, "Best finish" text, "Money list rank" real, "Earnings (\u20ac)" real )
SELECT COUNT("Earnings (\u20ac)") FROM table_74296 WHERE "Best finish" = 'T38'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4581, 357, 4314, 41, 96, 15800, 49, 121, 1499, 6, 96, 7681, 17, 7, 121, 490, 6, 96, 15784, 17, 7, 263, 121, 490, 6, 96, 17278, 1992, 121, 1499, 6, 96, 9168, 15, 63, 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, 2847, 17161, 599, 121, 427, 291, 29, 53, 7, 41, 2, 76, 1755, 9, 75, 61, 8512, 21680, 953, 834, 4581, 357, 4314, 549, 17444, 427, 96, 17278, 1992, 121, 3274, 3, 31, 382, 3747, 31, 1, -100, -100, -100, -100, -100,...
Who was the opponent in week 6?
CREATE TABLE table_65044 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT "Opponent" FROM table_65044 WHERE "Week" = '6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15348, 3628, 41, 96, 518, 10266, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 188, 17, 324, 26, 663, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 667, 102, 9977, 121, 21680, 953, 834, 15348, 3628, 549, 17444, 427, 96, 518, 10266, 121, 3274, 3, 31, 948, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the performance order for 2.15%
CREATE TABLE table_28565 ( "Finished" text, "Performance Order" real, "Percentage of votes" text, "Artist" text, "Act" text, "Semi Finals Result" text )
SELECT "Performance Order" FROM table_28565 WHERE "Percentage of votes" = '2.15%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4433, 4122, 41, 96, 31135, 121, 1499, 6, 96, 12988, 2032, 663, 5197, 121, 490, 6, 96, 12988, 3728, 545, 13, 11839, 121, 1499, 6, 96, 7754, 343, 121, 1499, 6, 96, 233...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12988, 2032, 663, 5197, 121, 21680, 953, 834, 357, 4433, 4122, 549, 17444, 427, 96, 12988, 3728, 545, 13, 11839, 121, 3274, 3, 31, 14489, 2712, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
From what country did someone score 71?
CREATE TABLE table_44390 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Country" FROM table_44390 WHERE "Score" = '71'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3628, 519, 2394, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 490, 6, 96, 3696, 260, 121, 1499, 3, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 96, 10628, 651, 121, 21680, 953, 834, 3628, 519, 2394, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 4450, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
age < 18 or > 80 years
CREATE TABLE table_train_275 ( "id" int, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "hba1c" float, "body_mass_index_bmi" float, "triglyceride_tg" float, "age" float, "NOUSE" float )
SELECT * FROM table_train_275 WHERE age < 18 OR age > 80
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9719, 834, 25988, 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, 6015, 32, 14063, 77, 834, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1429, 21680, 953, 834, 9719, 834, 25988, 549, 17444, 427, 1246, 3, 2, 507, 4674, 1246, 2490, 2775, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Name the owners for prairie public
CREATE TABLE table_14623167_1 (owner VARCHAR, branding VARCHAR)
SELECT COUNT(owner) FROM table_14623167_1 WHERE branding = "Prairie Public"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24300, 2773, 27650, 834, 536, 41, 13238, 584, 4280, 28027, 6, 14282, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 2713, 21, 30631, 452, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 13238, 61, 21680, 953, 834, 24300, 2773, 27650, 834, 536, 549, 17444, 427, 14282, 3274, 96, 345, 7253, 1753, 2575, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
provide the number of patients whose marital status is divorced and ethnicity is asian?
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 WHERE demographic.marital_status = "DIVORCED" AND demographic.ethnicity = "ASIAN"
[ 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, 549, 17444, 427, 14798, 5, 1635, 9538, 834, 8547, 302, 3274, 96, 308, 7589, 2990, 254, 2326, 121, 3430, 14798, 5, 15, 189, ...
What is the average react of the athlete with a time less than 22.29 and a rank greater than 1?
CREATE TABLE table_name_11 ( react INTEGER, time VARCHAR, rank VARCHAR )
SELECT AVG(react) FROM table_name_11 WHERE time < 22.29 AND rank > 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2596, 41, 8922, 3, 21342, 17966, 6, 97, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 8922, 13, 8, 17893,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 60, 2708, 61, 21680, 953, 834, 4350, 834, 2596, 549, 17444, 427, 97, 3, 2, 1630, 5, 3166, 3430, 11003, 2490, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What was the venue when the home team scored 9.22 (76)?
CREATE TABLE table_4539 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_4539 WHERE "Home team score" = '9.22 (76)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2128, 3288, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 2128, 3288, 549, 17444, 427, 96, 19040, 372, 2604, 121, 3274, 3, 31, 8797, 2884, 41, 3959, 61, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the position in 2010 with team notes?
CREATE TABLE table_7780 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text )
SELECT "Position" FROM table_7780 WHERE "Year" = '2010' AND "Notes" = 'team'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4013, 2079, 41, 96, 476, 2741, 121, 490, 6, 96, 5890, 4995, 4749, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 10358, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 32, 7, 4749, 121, 21680, 953, 834, 4013, 2079, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 14926, 31, 3430, 96, 10358, 15, 7, 121, 3274, 3, 31, 11650, 31, 1, -100, -100, -100, -100, -100, -100, -1...
Which rank has a 2009 revenue of $296,000,000?
CREATE TABLE table_26296 ( "Rank" real, "Company Name" text, "2008 Rank" text, "2009 Revenue" text, "North American Brands" text, "World Headquarters" text, "Country" text )
SELECT "Rank" FROM table_26296 WHERE "2009 Revenue" = '$296,000,000'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 357, 4314, 41, 96, 22557, 121, 490, 6, 96, 5890, 2837, 63, 5570, 121, 1499, 6, 96, 16128, 3, 22557, 121, 1499, 6, 96, 16660, 19764, 121, 1499, 6, 96, 22969, 797, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 22557, 121, 21680, 953, 834, 2688, 357, 4314, 549, 17444, 427, 96, 16660, 19764, 121, 3274, 3, 31, 3229, 357, 4314, 23916, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the day 1 when day 5 is math?
CREATE TABLE table_77120 ( "Day 1" text, "Day 2" text, "Day 3" text, "Day 4" text, "Day 5" text, "Wednesday" text )
SELECT "Day 1" FROM table_77120 WHERE "Day 5" = 'math'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4013, 15518, 41, 96, 16803, 209, 121, 1499, 6, 96, 16803, 204, 121, 1499, 6, 96, 16803, 220, 121, 1499, 6, 96, 16803, 3, 20364, 1499, 6, 96, 16803, 3, 17395, 1499, 6, 96,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 16803, 209, 121, 21680, 953, 834, 4013, 15518, 549, 17444, 427, 96, 16803, 3, 17395, 3274, 3, 31, 3357, 107, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the 35mm EFL and the equivalent aperture of the lens(es) with a maximum aperture of f /2.5?
CREATE TABLE table_name_67 (max_aperture VARCHAR)
SELECT 35 AS mm_efl_and_equivalent_aperture FROM table_name_67 WHERE max_aperture = "f /2.5"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3708, 41, 9128, 834, 9, 883, 2693, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3097, 635, 262, 10765, 11, 8, 7072, 28931, 13, 8, 6888, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3097, 6157, 3, 635, 834, 15, 89, 40, 834, 232, 834, 15, 1169, 15592, 834, 9, 883, 2693, 21680, 953, 834, 4350, 834, 3708, 549, 17444, 427, 9858, 834, 9, 883, 2693, 3274, 96, 89, 3, 87, 15967, 121, 1, -100, -100,...
What is Joanne Carner's average score in Canadian Women's Open games that she has won?
CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR)
SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2518, 41, 7, 9022, 3, 21342, 17966, 6, 6336, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 2194, 4515, 1184, 687, 31, 7, 1348, 2604, 16, 4151, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 7, 9022, 61, 21680, 953, 834, 4350, 834, 2518, 549, 17444, 427, 6336, 3274, 96, 1927, 4515, 443, 687, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what's the result with opponent being at oakland raiders
CREATE TABLE table_14102379_4 ( result VARCHAR, opponent VARCHAR )
SELECT result FROM table_14102379_4 WHERE opponent = "at Oakland Raiders"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2534, 1714, 2773, 4440, 834, 591, 41, 741, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 31, 7, 8, 741, 28, 15264, 271, 44, 11586...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 21680, 953, 834, 2534, 1714, 2773, 4440, 834, 591, 549, 17444, 427, 15264, 3274, 96, 144, 19837, 13016, 588, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
provide the number of patients whose admission year is less than 2197 and lab test fluid is urine?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2197" AND lab.fluid = "Urine"
[ 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, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
How many laps were driven in 2009?
CREATE TABLE table_2175858_1 ( laps VARCHAR, year VARCHAR )
SELECT laps FROM table_2175858_1 WHERE year = 2009
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2517, 3449, 3449, 834, 536, 41, 14941, 7, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 14941, 7, 130, 6737, 16, 2464, 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, 14941, 7, 21680, 953, 834, 357, 2517, 3449, 3449, 834, 536, 549, 17444, 427, 215, 3274, 2464, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the names, color descriptions, and product descriptions for products in the 'Herbs' category?
CREATE TABLE characteristics ( characteristic_id number, characteristic_type_code text, characteristic_data_type text, characteristic_name text, other_characteristic_details text ) CREATE TABLE products ( product_id number, color_code text, product_category_code text, product_name text, typical_buying_price text, typical_selling_price text, product_description text, other_product_details text ) CREATE TABLE ref_colors ( color_code text, color_description text ) CREATE TABLE product_characteristics ( product_id number, characteristic_id number, product_characteristic_value text ) CREATE TABLE ref_characteristic_types ( characteristic_type_code text, characteristic_type_description text ) CREATE TABLE ref_product_categories ( product_category_code text, product_category_description text, unit_of_measure text )
SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6803, 41, 16115, 834, 23, 26, 381, 6, 16115, 834, 6137, 834, 4978, 1499, 6, 16115, 834, 6757, 834, 6137, 1499, 6, 16115, 834, 4350, 1499, 6, 119, 834, 31886, 3040, 834, 221, 5756, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 15892, 834, 4350, 6, 332, 4416, 9910, 834, 221, 11830, 6, 332, 5411, 15892, 834, 221, 11830, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 6273, 834, 9910, 7, 6157, 332, 357, 9191, 332, 5411, 9910, 834, 497...
count the number of patients whose age is less than 70 and diagnoses short title is hemochromatos-rbc trans?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "70" AND diagnoses.short_title = "Hemochromatos-rbc trans"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What was the attendance of the Blue Jays' game when their record was 47-43?
CREATE TABLE table_name_7 ( attendance INTEGER, record VARCHAR )
SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 940, 41, 11364, 3, 21342, 17966, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 11364, 13, 8, 2419, 9373, 7, 31, 467, 116, 70, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 15116, 663, 61, 21680, 953, 834, 4350, 834, 940, 549, 17444, 427, 1368, 3274, 96, 4177, 18, 4906, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
When Type was rowexit what was the Category?
CREATE TABLE table_name_88 (category VARCHAR, type VARCHAR)
SELECT category FROM table_name_88 WHERE type = "rowexit"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 8367, 839, 651, 584, 4280, 28027, 6, 686, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 366, 6632, 47, 7358, 994, 155, 125, 47, 8, 17459, 58, 1,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3295, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 686, 3274, 96, 3623, 994, 155, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who was the opposing team when the scorers were jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'?
CREATE TABLE table_45082 ( "Match" real, "Date" text, "Round" text, "Home/Away" text, "Opponent team" text, "Score" text, "Scorers" text )
SELECT "Opponent team" FROM table_45082 WHERE "Scorers" = 'jong-a-pin 19''( o.g. ) , gattuso 23'' , inzaghi 69'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 10593, 4613, 41, 96, 329, 14547, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 448, 32, 1106, 121, 1499, 6, 96, 19040, 87, 188, 1343, 121, 1499, 6, 96, 667, 102, 9977, 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, 667, 102, 9977, 372, 121, 21680, 953, 834, 10593, 4613, 549, 17444, 427, 96, 134, 5715, 277, 121, 3274, 3, 31, 354, 2444, 18, 9, 18, 3180, 957, 31, 31, 599, 3, 32, 5, 122, 5, 3, 61, 3, 6, 3, 5497, 17, ...
What is the championsleague when the total was greater than 1, the coppa italia was more than 2, and the Serie A was 1?
CREATE TABLE table_name_40 ( champions_league INTEGER, coppa_italia VARCHAR, serie_a VARCHAR, total VARCHAR )
SELECT SUM(champions_league) FROM table_name_40 WHERE serie_a = 1 AND total > 1 AND coppa_italia > 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2445, 41, 6336, 7, 834, 29512, 3, 21342, 17966, 6, 7326, 102, 9, 834, 155, 5434, 584, 4280, 28027, 6, 12480, 834, 9, 584, 4280, 28027, 6, 792, 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, 180, 6122, 599, 17788, 12364, 7, 834, 29512, 61, 21680, 953, 834, 4350, 834, 2445, 549, 17444, 427, 12480, 834, 9, 3274, 209, 3430, 792, 2490, 209, 3430, 7326, 102, 9, 834, 155, 5434, 2490, 204, 1, -100, -100, -100,...
Opponent of Philadelphia eagles had what attendance?
CREATE TABLE table_name_38 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_38 WHERE opponent = "philadelphia eagles"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3747, 41, 15116, 663, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4495, 9977, 13, 9511, 3, 15, 9, 3537, 7, 141, 125, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 11364, 21680, 953, 834, 4350, 834, 3747, 549, 17444, 427, 15264, 3274, 96, 18118, 15311, 11692, 9, 3, 15, 9, 3537, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the name of the show that airs Friday at 5:55pm?
CREATE TABLE table_20125 ( "Time" text, "12:00 PM" text, "01:00 PM" text, "02:00 PM" text, "03:00 PM" text, "04:00 PM" text, "05:00 PM" text, "05:55 PM" text )
SELECT "05:55 PM" FROM table_20125 WHERE "Time" = 'Friday'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 12172, 755, 41, 96, 13368, 121, 1499, 6, 96, 536, 24112, 3246, 121, 1499, 6, 96, 632, 24294, 3246, 121, 1499, 6, 96, 632, 24112, 3246, 121, 1499, 6, 96, 4928, 10, 1206, 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, 3076, 10, 3769, 3246, 121, 21680, 953, 834, 12172, 755, 549, 17444, 427, 96, 13368, 121, 3274, 3, 31, 31157, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's Dorain Anneck's pick number?
CREATE TABLE table_11 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT "Pick" FROM table_11 WHERE "Player" = 'Dorain Anneck'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2596, 41, 96, 345, 3142, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 15743, 434, 372, 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, 345, 3142, 121, 21680, 953, 834, 2596, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 4135, 6559, 389, 14694, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many campuses are there in Los Angeles county?
CREATE TABLE degrees ( year number, campus number, degrees number ) CREATE TABLE enrollments ( campus number, year number, totalenrollment_ay number, fte_ay number ) CREATE TABLE faculty ( campus number, year number, faculty number ) CREATE TABLE campuses ( id number, campus text, location text, county text, year number ) CREATE TABLE discipline_enrollments ( campus number, discipline number, year number, undergraduate number, graduate number ) CREATE TABLE csu_fees ( campus number, year number, campusfee number )
SELECT COUNT(*) FROM campuses WHERE county = "Los Angeles"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4526, 41, 215, 381, 6, 4730, 381, 6, 4526, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 17938, 7, 41, 4730, 381, 6, 215, 381, 6, 792, 35, 4046, 297, 834, 9, 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, 1935, 61, 21680, 25784, 549, 17444, 427, 5435, 3274, 96, 434, 32, 7, 4975, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?
CREATE TABLE table_62311 ( "Year" real, "Award Ceremony" text, "Category" text, "Nominee" text, "Result" text )
SELECT COUNT("Year") FROM table_62311 WHERE "Award Ceremony" = 'laurence olivier award' AND "Result" = 'won' AND "Nominee" = 'imelda staunton'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4056, 519, 2596, 41, 96, 476, 2741, 121, 490, 6, 96, 188, 2239, 31188, 121, 1499, 6, 96, 18610, 6066, 651, 121, 1499, 6, 96, 4168, 8695, 15, 121, 1499, 6, 96, 20119, 121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 476, 2741, 8512, 21680, 953, 834, 4056, 519, 2596, 549, 17444, 427, 96, 188, 2239, 31188, 121, 3274, 3, 31, 521, 450, 1433, 3, 4172, 5144, 2760, 31, 3430, 96, 20119, 121, 3274, 3, 31, 210, 1...
Which candidates are associated with the Georgia 7 district?
CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342233_11 WHERE district = "Georgia 7"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2368, 4165, 20879, 834, 2596, 41, 1608, 12416, 6203, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 4341, 33, 1968, 28, 8, 5664, 489, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4341, 21680, 953, 834, 2368, 4165, 20879, 834, 2596, 549, 17444, 427, 3939, 3274, 96, 517, 15, 1677, 23, 9, 489, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was the incumbent in the Ohio 16 district?
CREATE TABLE table_1434788_5 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1434788_5 WHERE district = "Ohio 16"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25133, 4177, 4060, 834, 755, 41, 77, 75, 5937, 295, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 28406, 16, 8, 6167, 898, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28406, 21680, 953, 834, 25133, 4177, 4060, 834, 755, 549, 17444, 427, 3939, 3274, 96, 15046, 23, 32, 898, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
I want the constructor for grid less than 20 and Laps of 6
CREATE TABLE table_name_68 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_68 WHERE grid < 20 AND laps = 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 15982, 5317, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 27, 241, 8, 6774, 127, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6774, 127, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 8634, 3, 2, 460, 3430, 14941, 7, 3274, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many car models are produced in the usa?
CREATE TABLE CAR_MAKERS (Id VARCHAR, Country VARCHAR); CREATE TABLE COUNTRIES (CountryId VARCHAR, CountryName VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR)
SELECT COUNT(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 205, 4280, 834, 4148, 439, 9984, 41, 196, 26, 584, 4280, 28027, 6, 6993, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2847, 17161, 25858, 134, 41, 10628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1935, 61, 21680, 24259, 3577, 834, 434, 13582, 6157, 332, 536, 3, 15355, 3162, 205, 4280, 834, 4148, 439, 9984, 6157, 332, 357, 9191, 332, 5411, 22638, 52, 3274, 332, 4416, 196, 26, 3, 15355, 3162, ...
How many persons are not body builders?
CREATE TABLE body_builder ( people_id VARCHAR, People_ID VARCHAR ) CREATE TABLE people ( people_id VARCHAR, People_ID VARCHAR )
SELECT COUNT(*) FROM people WHERE NOT People_ID IN (SELECT People_ID FROM body_builder)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 643, 834, 16422, 49, 41, 151, 834, 23, 26, 584, 4280, 28027, 6, 2449, 834, 4309, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 151, 41, 151, 834, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 151, 549, 17444, 427, 4486, 2449, 834, 4309, 3388, 41, 23143, 14196, 2449, 834, 4309, 21680, 643, 834, 16422, 49, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
The match played July 8, 2007 had what outcome?
CREATE TABLE table_66199 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT "Outcome" FROM table_66199 WHERE "Date" = 'july 8, 2007'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3539, 19479, 41, 96, 15767, 287, 15, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 134, 450, 4861, 121, 1499, 6, 96, 667, 102, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 15767, 287, 15, 121, 21680, 953, 834, 3539, 19479, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 2047, 120, 9478, 4101, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
How many total gold are less than 4?
CREATE TABLE table_name_14 (gold VARCHAR, total INTEGER)
SELECT COUNT(gold) FROM table_name_14 WHERE total < 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 14910, 584, 4280, 28027, 6, 792, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 792, 2045, 33, 705, 145, 314, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 14910, 61, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 792, 3, 2, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
what is the number of patients whose insurance is medicaid and primary disease is bradycardia?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "BRADYCARDIA"
[ 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, 549, 17444, 427, 14798, 5, 29441, 3274, 96, 15789, 6146, 121, 3430, 14798, 5, 25930, 4844, 159, 3274, 96, 22899, 19409, 254, ...
What nominative has mis as the dative?
CREATE TABLE table_50519 ( "Nominative" text, "Ergative" text, "Dative" text, "Genitive" text, "Instrumental" text, "Adverbial" text )
SELECT "Nominative" FROM table_50519 WHERE "Dative" = 'mis'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1752, 755, 2294, 41, 96, 4168, 1109, 1528, 121, 1499, 6, 96, 10575, 122, 1528, 121, 1499, 6, 96, 308, 1528, 121, 1499, 6, 96, 13714, 23, 3268, 121, 1499, 6, 96, 1570, 615...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 4168, 1109, 1528, 121, 21680, 953, 834, 1752, 755, 2294, 549, 17444, 427, 96, 308, 1528, 121, 3274, 3, 31, 51, 159, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What's the average pct for George Felton when he had losses greater than 7?
CREATE TABLE table_name_4 ( pct INTEGER, lost VARCHAR, name VARCHAR )
SELECT AVG(pct) FROM table_name_4 WHERE lost > 7 AND name = "george felton"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 591, 41, 3, 102, 75, 17, 3, 21342, 17966, 6, 1513, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 1348, 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, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 102, 75, 17, 61, 21680, 953, 834, 4350, 834, 591, 549, 17444, 427, 1513, 2490, 489, 3430, 564, 3274, 96, 397, 1677, 15, 1800, 106, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...