NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
What date has an against of pohang steelers?
CREATE TABLE table_name_2 ( date VARCHAR, against VARCHAR )
SELECT date FROM table_name_2 WHERE against = "pohang steelers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 357, 41, 833, 584, 4280, 28027, 6, 581, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 833, 65, 46, 581, 13, 1977, 9270, 2470, 277, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 357, 549, 17444, 427, 581, 3274, 96, 102, 32, 9270, 2470, 277, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Tell me the school with a height of 6-9
CREATE TABLE table_name_82 (school VARCHAR, height VARCHAR)
SELECT school FROM table_name_82 WHERE height = "6-9"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4613, 41, 6646, 584, 4280, 28027, 6, 3902, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 8779, 140, 8, 496, 28, 3, 9, 3902, 13, 431, 7141, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 496, 21680, 953, 834, 4350, 834, 4613, 549, 17444, 427, 3902, 3274, 96, 948, 7141, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the qualification in 1932?
CREATE TABLE table_71482 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT "Qual" FROM table_71482 WHERE "Year" = '1932'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4450, 3707, 357, 41, 96, 476, 2741, 121, 1499, 6, 96, 7681, 17, 121, 1499, 6, 96, 5991, 138, 121, 1499, 6, 96, 22557, 121, 1499, 6, 96, 371, 77, 1273, 121, 1499, 6, 96,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5991, 138, 121, 21680, 953, 834, 4450, 3707, 357, 549, 17444, 427, 96, 476, 2741, 121, 3274, 3, 31, 2294, 2668, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.
CREATE TABLE table_56878 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text )
SELECT "Circuit" FROM table_56878 WHERE "Fastest lap" = 'john surtees' AND "Winning driver" = 'john surtees'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3651, 3940, 41, 96, 448, 3302, 121, 1499, 6, 96, 254, 23, 52, 21560, 121, 1499, 6, 96, 308, 342, 121, 1499, 6, 96, 8931, 15, 1102, 121, 1499, 6, 96, 371, 9, 7, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 254, 23, 52, 21560, 121, 21680, 953, 834, 755, 3651, 3940, 549, 17444, 427, 96, 371, 9, 7, 4377, 14941, 121, 3274, 3, 31, 27341, 244, 17, 15, 15, 7, 31, 3430, 96, 518, 10503, 2535, 121, 3274, 3, 31, 27341, ...
What is the human development index for the year 2000 where the ingei code is 10?
CREATE TABLE table_1480455_1 (human_development_index__2000_ VARCHAR, inegi_code VARCHAR)
SELECT human_development_index__2000_ FROM table_1480455_1 WHERE inegi_code = 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24748, 6348, 3769, 834, 536, 41, 12450, 834, 19677, 834, 18288, 834, 834, 13527, 834, 584, 4280, 28027, 6, 16, 11097, 834, 4978, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 936, 834, 19677, 834, 18288, 834, 834, 13527, 834, 21680, 953, 834, 24748, 6348, 3769, 834, 536, 549, 17444, 427, 16, 11097, 834, 4978, 3274, 335, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many points did the song with a draw number 3 get?
CREATE TABLE table_20183474_1 ( total_points VARCHAR, draw VARCHAR )
SELECT total_points FROM table_20183474_1 WHERE draw = 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 9457, 3710, 4581, 834, 536, 41, 792, 834, 2700, 7, 584, 4280, 28027, 6, 3314, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 979, 410, 8, 2324, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 792, 834, 2700, 7, 21680, 953, 834, 9457, 3710, 4581, 834, 536, 549, 17444, 427, 3314, 3274, 220, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What margin was in after 1981, and was Roberto De Vicenzo runner-up?
CREATE TABLE table_name_88 ( margin VARCHAR, year VARCHAR, runner_s__up VARCHAR )
SELECT margin FROM table_name_88 WHERE year > 1981 AND runner_s__up = "roberto de vicenzo"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 6346, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 3, 10806, 834, 7, 834, 834, 413, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 6346...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6346, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 215, 2490, 15465, 3430, 3, 10806, 834, 7, 834, 834, 413, 3274, 96, 5840, 49, 235, 20, 6444, 20547, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the average of revenue , and group by attribute name, I want to sort Y in descending order.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Revenue DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 332, 4416, 1649, 15098, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 332, 4...
which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?
CREATE TABLE table_64080 ( "Year" real, "Category" text, "Film" text, "Result" text, "Lost to" text )
SELECT "Category" FROM table_64080 WHERE "Result" = 'nominated' AND "Lost to" = 'jennifer westfeldt ( kissing jessica stein )'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23714, 2079, 41, 96, 476, 2741, 121, 490, 6, 96, 18610, 6066, 651, 121, 1499, 6, 96, 371, 173, 51, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 434, 3481, 12, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 18610, 6066, 651, 121, 21680, 953, 834, 23714, 2079, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 3114, 77, 920, 31, 3430, 96, 434, 3481, 12, 121, 3274, 3, 31, 354, 35, 29, 99, 49, 4653, 5003, 17, 41, 17387...
What was the date of the game with an attendance of 20,874 fans?
CREATE TABLE table_name_23 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_23 WHERE attendance = "20,874"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 5522, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 833, 13, 8, 467, 28, 46, 11364, 13, 16047, 4225, 591...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 11364, 3274, 96, 1755, 6, 4225, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what was the purse ($) in illinois?
CREATE TABLE table_name_80 (purse__ INTEGER, location VARCHAR)
SELECT MAX(purse__) AS $__ FROM table_name_80 WHERE location = "illinois"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 3791, 7, 15, 834, 834, 3, 21342, 17966, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 47, 8, 20717, 8785, 61, 16, 3, 1092, 77, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 3791, 7, 15, 834, 834, 61, 6157, 1514, 834, 834, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 1128, 3274, 96, 1092, 77, 32, 159, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the finish of player Hale Irwin?
CREATE TABLE table_name_25 (finish VARCHAR, player VARCHAR)
SELECT finish FROM table_name_25 WHERE player = "hale irwin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1828, 41, 25535, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1992, 13, 1959, 5648, 15, 27, 52, 3757, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1992, 21680, 953, 834, 4350, 834, 1828, 549, 17444, 427, 1959, 3274, 96, 3828, 15, 3, 23, 52, 3757, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Can you give me the age of the Significant Relationship of Family?
CREATE TABLE table_name_41 ( approximate_age VARCHAR, significant_relationship VARCHAR )
SELECT approximate_age FROM table_name_41 WHERE significant_relationship = "family"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4853, 41, 24672, 834, 545, 584, 4280, 28027, 6, 1516, 834, 60, 6105, 2009, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 1072, 25, 428, 140, 8, 1246, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24672, 834, 545, 21680, 953, 834, 4350, 834, 4853, 549, 17444, 427, 1516, 834, 60, 6105, 2009, 3274, 96, 15474, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the character name for the film with a release date of July 29, 1938?
CREATE TABLE table_6590 ( "Release date" text, "Length" text, "Director(s)" text, "Character name" text, "Character type" text, "Leading lady" text )
SELECT "Character name" FROM table_6590 WHERE "Release date" = 'july 29, 1938'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4122, 2394, 41, 96, 1649, 40, 14608, 833, 121, 1499, 6, 96, 434, 4606, 189, 121, 1499, 6, 96, 23620, 127, 599, 7, 61, 121, 1499, 6, 96, 18947, 2708, 49, 564, 121, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 18947, 2708, 49, 564, 121, 21680, 953, 834, 4122, 2394, 549, 17444, 427, 96, 1649, 40, 14608, 833, 121, 3274, 3, 31, 2047, 120, 14405, 25745, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the name of each user and number of tweets tweeted by each of them Visualize by bar chart, and order Y-axis from low to high order please.
CREATE TABLE follows ( f1 int(11), f2 int(11) ) CREATE TABLE tweets ( id bigint(20), uid int(11), text char(140), createdate datetime ) CREATE TABLE user_profiles ( uid int(11), name varchar(255), email varchar(255), partitionid int(11), followers int(11) )
SELECT name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid ORDER BY COUNT(*)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6963, 41, 3, 89, 536, 16, 17, 599, 2596, 201, 3, 89, 357, 16, 17, 599, 2596, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 10657, 7, 41, 3, 23, 26, 600, 77, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6, 2847, 17161, 599, 1935, 61, 21680, 1139, 834, 18816, 7, 6157, 332, 536, 3, 15355, 3162, 10657, 7, 6157, 332, 357, 9191, 332, 5411, 76, 23, 26, 3274, 332, 4416, 76, 23, 26, 350, 4630, 6880, 272, 476, 332, ...
How many points did the ATS Wheels entrant with an ATS D2 chassis have?
CREATE TABLE table_name_14 (points VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_14 WHERE entrant = "ats wheels" AND chassis = "ats d2"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2534, 41, 2700, 7, 584, 4280, 28027, 6, 3, 295, 3569, 584, 4280, 28027, 6, 22836, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 979, 410, 8, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 979, 21680, 953, 834, 4350, 834, 2534, 549, 17444, 427, 3, 295, 3569, 3274, 96, 144, 7, 8277, 121, 3430, 22836, 3274, 96, 144, 7, 3, 26, 357, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
provide the number of patients whose drug name is neo*iv*clindamycin?
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 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "NEO*IV*Clindamycin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14798, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 564, 1499, 6, 2774, 1947, 834, 8547, 302, 1499, 6, 1246, 1499, 6, 103, 115, 1499, 6, 7285, 1499, 6, 1612, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What is the sum of 1886(s), when 1886 is greater than 1070, and when 1891 is less than 1946?
CREATE TABLE table_name_19 ( Id VARCHAR )
SELECT SUM(1886) FROM table_name_19 WHERE 1866 > 1070 AND 1891 < 1946
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2294, 41, 27, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 4505, 13, 507, 3840, 599, 7, 201, 116, 507, 3840, 19, 2123, 145, 335, 251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180, 6122, 599, 25794, 10938, 21680, 953, 834, 4350, 834, 2294, 549, 17444, 427, 507, 3539, 2490, 335, 2518, 3430, 507, 4729, 3, 2, 25021, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the capital for the state that has the largest city of Burlington?
CREATE TABLE table_14519 ( "State" text, "Abbr." text, "Capital" text, "Largest city" text, "Statehood" text, "Population est. (2012)" real, "House seat(s)" real )
SELECT "Capital" FROM table_14519 WHERE "Largest city" = 'burlington'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20987, 2294, 41, 96, 134, 4748, 121, 1499, 6, 96, 8952, 115, 52, 535, 1499, 6, 96, 19566, 9538, 121, 1499, 6, 96, 434, 8240, 222, 690, 121, 1499, 6, 96, 134, 4748, 4500, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19566, 9538, 121, 21680, 953, 834, 20987, 2294, 549, 17444, 427, 96, 434, 8240, 222, 690, 121, 3274, 3, 31, 5808, 40, 6029, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the premiere rating associated with an average of 35 ranked above 1?
CREATE TABLE table_53291 ( "Rank" real, "English title" text, "Chinese title" text, "Average" real, "Peak" real, "Premiere" real, "Finale" real, "HK viewers" text )
SELECT MIN("Premiere") FROM table_53291 WHERE "Average" = '35' AND "Rank" > '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 357, 4729, 41, 96, 22557, 121, 490, 6, 96, 26749, 2233, 121, 1499, 6, 96, 3541, 4477, 15, 2233, 121, 1499, 6, 96, 188, 624, 545, 121, 490, 6, 96, 345, 15, 1639, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 10572, 2720, 60, 8512, 21680, 953, 834, 4867, 357, 4729, 549, 17444, 427, 96, 188, 624, 545, 121, 3274, 3, 31, 2469, 31, 3430, 96, 22557, 121, 2490, 3, 31, 536, 31, 1, -100, -100, -100, -100, ...
what is the number of patients with chemistry lab test category who had thoracentesis procedure?
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 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Thoracentesis" AND lab."CATEGORY" = "Chemistry"
[ 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, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 3388, 18206...
What is the season finale for season 4?
CREATE TABLE table_10819266_8 (season VARCHAR)
SELECT season AS finale FROM table_10819266_8 WHERE season = 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 16169, 19978, 3539, 834, 927, 41, 9476, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 774, 13604, 21, 774, 314, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 774, 6157, 13604, 21680, 953, 834, 16169, 19978, 3539, 834, 927, 549, 17444, 427, 774, 3274, 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 home team of the game with Warriors as the visitor team?
CREATE TABLE table_41656 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Record" text )
SELECT "Home" FROM table_41656 WHERE "Visitor" = 'warriors'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 2938, 4834, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 159, 155, 127, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 19040, 121, 1499, 6, 96, 2796, 9, 26, 53, 2604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 19040, 121, 21680, 953, 834, 591, 2938, 4834, 549, 17444, 427, 96, 553, 159, 155, 127, 121, 3274, 3, 31, 210, 10269, 127, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When the home attendance is 3.123, what's the highest away attendance?
CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR)
SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = "3.123"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 27096, 4177, 834, 357, 41, 6739, 222, 834, 15116, 663, 834, 8006, 584, 4280, 28027, 6, 1348, 834, 15116, 663, 834, 5515, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2030, 834, 15116, 663, 834, 8006, 21680, 953, 834, 2606, 27096, 4177, 834, 357, 549, 17444, 427, 1348, 834, 15116, 663, 834, 5515, 3274, 96, 18495, 2773, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who was the club having less than 22 apps and ranked less than 2?
CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR)
SELECT club FROM table_name_72 WHERE apps < 22 AND rank < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5865, 41, 13442, 584, 4280, 28027, 6, 4050, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 1886, 578, 705, 145, 1630...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1886, 21680, 953, 834, 4350, 834, 5865, 549, 17444, 427, 4050, 3, 2, 1630, 3430, 11003, 3, 2, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the least 10,000+ places for louisville
CREATE TABLE table_22916979_5 (_places VARCHAR, principal_city VARCHAR)
SELECT MIN(10), 000 + _places FROM table_22916979_5 WHERE principal_city = "Louisville"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3166, 27096, 4440, 834, 755, 41, 834, 4687, 7, 584, 4280, 28027, 6, 3218, 834, 6726, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 709, 13923, 1220, 1747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 16968, 6, 6078, 1768, 3, 834, 4687, 7, 21680, 953, 834, 357, 3166, 27096, 4440, 834, 755, 549, 17444, 427, 3218, 834, 6726, 3274, 96, 28365, 1420, 121, 1, -100, -100, -100, -100, -100, -100, -100, -10...
until 12/2103, how much did patient 027-186593 weigh for the first 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 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 cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time )
SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-186593') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2103-12' ORDER BY patient.unitadmittime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3362, 4267, 32, 4370, 41, 3362, 4267, 32, 26, 1294, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2912, 381, 6, 3, 7, 9, 32, 357, 381, 6, 842, 2206, 381, 6, 14114, 257, 381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1868, 5, 9, 26, 5451, 9378, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15878, 3734, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15878, 3734, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1...
What is the nt identity when the species is drosophilia melanogaster?
CREATE TABLE table_26708105_5 ( nt_identity VARCHAR, species VARCHAR )
SELECT nt_identity FROM table_26708105_5 WHERE species = "Drosophilia melanogaster"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3708, 4018, 12869, 834, 755, 41, 3, 29, 17, 834, 4215, 485, 584, 4280, 28027, 6, 3244, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3, 29, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 3, 29, 17, 834, 4215, 485, 21680, 953, 834, 357, 3708, 4018, 12869, 834, 755, 549, 17444, 427, 3244, 3274, 96, 308, 1859, 21144, 23, 9, 140, 1618, 19914, 1370, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
what is drug type and drug code of drug name tacrolimus?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT prescriptions.drug_type, prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Tacrolimus"
[ 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, 7744, 7, 5, 26, 13534, 834, 6137, 6, 7744, 7, 5, 20128, 63, 834, 26, 13534, 834, 75, 26, 21680, 7744, 7, 549, 17444, 427, 7744, 7, 5, 26, 13534, 3274, 96, 382, 9, 2771, 4941, 302, 121, 1, -100, -100, -100, -10...
which team had the most points ?
CREATE TABLE table_203_30 ( id number, "place" number, "team" text, "played" number, "won" number, "draw" number, "lost" number, "goals\nscored" number, "goals\nconceded" number, "+/-" number, "points" number )
SELECT "team" FROM table_203_30 ORDER BY "points" DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 1458, 41, 3, 23, 26, 381, 6, 96, 4687, 121, 381, 6, 96, 11650, 121, 1499, 6, 96, 4895, 15, 26, 121, 381, 6, 96, 210, 106, 121, 381, 6, 96, 19489, 121, 381...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 11650, 121, 21680, 953, 834, 23330, 834, 1458, 4674, 11300, 272, 476, 96, 2700, 7, 121, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
provide the number of patients whose primary disease is morbid obesity/sda and age is less than 62?
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 ) 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 )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "MORBID OBESITY/SDA" AND demographic.age < "62"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 25930, 4844, 159, 3274, 96, 5365, 12108, 4309, 3, 10539, 3205, 15296, 87, 134, 4296, 121, 3430, 14...
Give me a bar chart for the total number of each class
CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text ) CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real )
SELECT Class, COUNT(*) FROM race GROUP BY Class
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1964, 41, 10949, 834, 4309, 16, 17, 6, 5570, 1499, 6, 4501, 1499, 6, 7678, 1499, 6, 8799, 834, 4309, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1463, 41, 8799,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4501, 6, 2847, 17161, 599, 1935, 61, 21680, 1964, 350, 4630, 6880, 272, 476, 4501, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
papers using WordNet or Dbpedia
CREATE TABLE field ( fieldid int ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE paperdataset ( paperid int, datasetid int )
SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname IN ('WordNet', 'Dbpedia') AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid GROUP BY paper.paperid
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1057, 41, 1057, 23, 26, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 1040, 1846, 41, 1057, 23, 26, 16, 17, 6, 1040, 23, 26, 16, 17, 3, 61, 3, 32102, 32103,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 1040, 5, 19587, 23, 26, 21680, 17953, 6, 1040, 6, 1040, 6757, 2244, 549, 17444, 427, 17953, 5, 6757, 2244, 4350, 3388, 41, 31, 518, 127, 26, 9688, 31, 6, 3, 31, 308, 115, 24477, 31, 61, 34...
Show the id and details for the investors who have the top 3 number of transactions.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)
SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 26585, 30518, 134, 41, 15601, 127, 834, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 27, 17058, 6038, 22500, 41, 13898, 127, 834, 221, 5756, 7, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 15601, 127, 834, 23, 26, 6, 332, 5411, 13898, 127, 834, 221, 5756, 7, 21680, 27, 17058, 6038, 22500, 6157, 332, 536, 3, 15355, 3162, 26585, 30518, 134, 6157, 332, 357, 9191, 332, 5411, 15601, 127, 834, 23...
tell me the sex of patient 006-40255.
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE 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 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '006-40255'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8209, 41, 8209, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 8209, 4350, 1499, 6, 8209, 715, 97, 6, 3, 447, 26, 1298, 4978, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 1868, 5, 122, 3868, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 1206, 25618, 4305, 3769, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Week number on October 5, 2003?
CREATE TABLE table_64796 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT MIN("Week") FROM table_64796 WHERE "Date" = 'october 5, 2003'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 948, 4177, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 518, 10266, 8512, 21680, 953, 834, 948, 4177, 4314, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 32, 75, 235, 1152, 7836, 3888, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the number of nominations for natalia raskokoha?
CREATE TABLE table_10236830_1 ( nomination VARCHAR, actors_name VARCHAR )
SELECT COUNT(nomination) FROM table_10236830_1 WHERE actors_name = "Natalia Raskokoha"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1714, 2773, 3651, 1458, 834, 536, 41, 13588, 584, 4280, 28027, 6, 10485, 834, 4350, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 381, 13, 13588, 7, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 29, 32, 14484, 61, 21680, 953, 834, 1714, 2773, 3651, 1458, 834, 536, 549, 17444, 427, 10485, 834, 4350, 3274, 96, 567, 144, 5434, 9053, 157, 12948, 1024, 121, 1, -100, -100, -100, -100, -100, -100, ...
What is the per capita of Greece?
CREATE TABLE table_name_42 ( per_capita VARCHAR, region VARCHAR )
SELECT per_capita FROM table_name_42 WHERE region = "greece"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 399, 834, 4010, 155, 9, 584, 4280, 28027, 6, 1719, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 399, 23219, 13, 12263, 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, 399, 834, 4010, 155, 9, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 1719, 3274, 96, 3584, 15, 565, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What alumni had noor jehangir as their fresh meat partner?
CREATE TABLE table_26419467_1 ( alumni VARCHAR, fresh_meat_partner VARCHAR )
SELECT alumni FROM table_26419467_1 WHERE fresh_meat_partner = "Noor Jehangir"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2688, 4853, 4240, 3708, 834, 536, 41, 10644, 584, 4280, 28027, 6, 1434, 834, 51, 1544, 834, 12300, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 10644, 141, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 10644, 21680, 953, 834, 2688, 4853, 4240, 3708, 834, 536, 549, 17444, 427, 1434, 834, 51, 1544, 834, 12300, 3274, 96, 4168, 127, 1022, 2618, 9427, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
what is the least tonnage for the ship(s) that entered service on 11 february 1983?
CREATE TABLE table_55401 ( "Ship's name" text, "Date entered service" text, "Date withdrawn" text, "Tonnage" real, "Type of Ship" text )
SELECT MIN("Tonnage") FROM table_55401 WHERE "Date entered service" = '11 february 1983'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3769, 20016, 41, 96, 134, 10462, 31, 7, 564, 121, 1499, 6, 96, 308, 342, 5136, 313, 121, 1499, 6, 96, 308, 342, 3, 28032, 121, 1499, 6, 96, 382, 106, 9761, 121, 490, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 382, 106, 9761, 8512, 21680, 953, 834, 3769, 20016, 549, 17444, 427, 96, 308, 342, 5136, 313, 121, 3274, 3, 31, 2596, 29976, 76, 1208, 15041, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100...
What's the Time/Retired of Ivan Capelli?
CREATE TABLE table_name_61 ( time_retired VARCHAR, driver VARCHAR )
SELECT time_retired FROM table_name_61 WHERE driver = "ivan capelli"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 97, 834, 10682, 1271, 584, 4280, 28027, 6, 2535, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 2900, 87, 1649, 11809, 26, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 97, 834, 10682, 1271, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 2535, 3274, 96, 23, 2132, 2468, 7999, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the competition when the score was 3-0?
CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_33 WHERE score = "3-0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4201, 41, 287, 4995, 4749, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2259, 116, 8, 2604, 47, 3, 22773, 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, 2259, 21680, 953, 834, 4350, 834, 4201, 549, 17444, 427, 2604, 3274, 96, 22773, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Can you tell me the average December rhat has the Opponent of @ toronto maple leafs?
CREATE TABLE table_49874 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text )
SELECT AVG("December") FROM table_49874 WHERE "Opponent" = '@ toronto maple leafs'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 4225, 591, 41, 96, 23055, 121, 490, 6, 96, 29835, 121, 490, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 3, 61, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 29835, 8512, 21680, 953, 834, 3647, 4225, 591, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 1741, 12, 4438, 32, 22007, 8384, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which is the earliest year that had mixed doubles for wang wei lu ying?
CREATE TABLE table_name_40 (year INTEGER, mixed_doubles VARCHAR)
SELECT MIN(year) FROM table_name_40 WHERE mixed_doubles = "wang wei lu ying"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2445, 41, 1201, 3, 21342, 17966, 6, 4838, 834, 25761, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 19, 8, 3, 16454, 215, 24, 141, 4838, 1486, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 1201, 61, 21680, 953, 834, 4350, 834, 2445, 549, 17444, 427, 4838, 834, 25761, 7, 3274, 96, 17789, 62, 23, 3, 40, 76, 3, 8149, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of revenue , and group by attribute name, I want to show Y-axis from high to low order.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Revenue DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15248, 7, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 3642, 19973, 584, 4280, 28027, 599, 25502, 201, 3, 19145, 584, 4280, 28027, 599, 25502, 201, 19764, 17833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 23954, 6, 332, 4416, 1649, 15098, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 332, 4...
what is the last discipline listed on this chart ?
CREATE TABLE table_204_345 ( id number, "discipline" text, "amanda" number, "bernie" number, "javine h" number, "julia" number, "michelle" number )
SELECT "discipline" FROM table_204_345 ORDER BY id DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 519, 2128, 41, 3, 23, 26, 381, 6, 96, 26, 159, 3389, 747, 121, 1499, 6, 96, 265, 232, 9, 121, 381, 6, 96, 346, 23752, 121, 381, 6, 96, 1191, 8402, 3, 107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26, 159, 3389, 747, 121, 21680, 953, 834, 26363, 834, 519, 2128, 4674, 11300, 272, 476, 3, 23, 26, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the least amount of silver medals won by Total with more than 1 bronze and more than 18 total medals won?
CREATE TABLE table_42928 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MIN("Silver") FROM table_42928 WHERE "Bronze" > '1' AND "Nation" = 'total' AND "Total" > '18'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 3166, 2577, 41, 96, 22557, 121, 1499, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17684, 599, 121, 134, 173, 624, 8512, 21680, 953, 834, 591, 3166, 2577, 549, 17444, 427, 96, 22780, 29, 776, 121, 2490, 3, 31, 536, 31, 3430, 96, 567, 257, 121, 3274, 3, 31, 235, 1947, 31, 3430, 96, 3696, 194...
What is the average pick number for jerry hackenbruck who was overall pick less than 282?
CREATE TABLE table_name_78 ( pick INTEGER, name VARCHAR, overall VARCHAR )
SELECT AVG(pick) FROM table_name_78 WHERE name = "jerry hackenbruck" AND overall < 282
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3940, 41, 1432, 3, 21342, 17966, 6, 564, 584, 4280, 28027, 6, 1879, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 1432, 381, 21, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 17967, 61, 21680, 953, 834, 4350, 834, 3940, 549, 17444, 427, 564, 3274, 96, 12488, 651, 8093, 35, 9052, 2406, 121, 3430, 1879, 3, 2, 2059, 357, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Which opponent led to a 5-2 record?
CREATE TABLE table_26937 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Wildcats points" real, "Opponents" real, "Record" text )
SELECT "Opponent" FROM table_26937 WHERE "Record" = '5-2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3951, 4118, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 518, 173, 26, 2138, 7, 979, 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, 667, 102, 9977, 121, 21680, 953, 834, 357, 3951, 4118, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 24279, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Episode has requested 150,000?
CREATE TABLE table_66774 ( "Episode" text, "First aired" text, "Entrepreneur(s)" text, "Company or product name" text, "Money requested (\u00a3)" text, "Investing Dragon(s)" text )
SELECT "Episode" FROM table_66774 WHERE "Money requested (\u00a3)" = '150,000'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3539, 4013, 591, 41, 96, 427, 102, 159, 32, 221, 121, 1499, 6, 96, 25171, 3, 2378, 26, 121, 1499, 6, 96, 16924, 60, 2026, 29, 1238, 599, 7, 61, 121, 1499, 6, 96, 5890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 427, 102, 159, 32, 221, 121, 21680, 953, 834, 3539, 4013, 591, 549, 17444, 427, 96, 9168, 15, 63, 6709, 41, 2, 76, 1206, 9, 5268, 121, 3274, 3, 31, 536, 9286, 31, 1, -100, -100, -100, -100, -100, -100, -100,...
What is the Position of the Level 3 winner from Saint Kitts and Nevis?
CREATE TABLE table_5328 ( "Season" text, "Level" real, "Position" text, "Nationality" text, "Apps" real, "Goals" real )
SELECT "Position" FROM table_5328 WHERE "Level" = '3' AND "Nationality" = 'saint kitts and nevis'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4867, 2577, 41, 96, 134, 15, 9, 739, 121, 1499, 6, 96, 25465, 121, 490, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 9648, 7, 121, 490, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 32, 7, 4749, 121, 21680, 953, 834, 4867, 2577, 549, 17444, 427, 96, 25465, 121, 3274, 3, 31, 519, 31, 3430, 96, 24732, 485, 121, 3274, 3, 31, 7, 9, 77, 17, 3650, 17, 7, 11, 3, 15482, 159, 31, 1, -10...
What team did Derek Black Play for prior to being drafted?
CREATE TABLE table_1473672_6 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_1473672_6 WHERE player = "Derek Black"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24719, 3420, 5865, 834, 948, 41, 3297, 7883, 834, 6959, 23, 127, 834, 13442, 834, 11650, 584, 4280, 28027, 6, 1959, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1900, 834, 6959, 23, 127, 834, 13442, 834, 11650, 21680, 953, 834, 24719, 3420, 5865, 834, 948, 549, 17444, 427, 1959, 3274, 96, 2962, 60, 157, 1589, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many games played for teams with 277 points?
CREATE TABLE table_20099 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Tries For" text, "Tries Against" text, "Try Bonus" text, "Losing Bonus" text, "Points" text )
SELECT "Played" FROM table_20099 WHERE "Points for" = '277'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3632, 3264, 41, 96, 254, 11158, 121, 1499, 6, 96, 15800, 15, 26, 121, 1499, 6, 96, 518, 106, 121, 1499, 6, 96, 308, 10936, 29, 121, 1499, 6, 96, 434, 3481, 121, 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, 15800, 15, 26, 121, 21680, 953, 834, 3632, 3264, 549, 17444, 427, 96, 22512, 7, 21, 121, 3274, 3, 31, 357, 4013, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what team did the badgers play after ohio state ?
CREATE TABLE table_204_180 ( id number, "date" text, "opponent#" text, "rank#" text, "site" text, "result" text, "attendance" number )
SELECT "opponent#" FROM table_204_180 WHERE "date" > (SELECT "date" FROM table_204_180 WHERE "opponent#" = 'ohio state') ORDER BY "date" LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 20829, 41, 3, 23, 26, 381, 6, 96, 5522, 121, 1499, 6, 96, 32, 102, 9977, 4663, 121, 1499, 6, 96, 6254, 4663, 121, 1499, 6, 96, 3585, 121, 1499, 6, 96, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 32, 102, 9977, 4663, 121, 21680, 953, 834, 26363, 834, 20829, 549, 17444, 427, 96, 5522, 121, 2490, 41, 23143, 14196, 96, 5522, 121, 21680, 953, 834, 26363, 834, 20829, 549, 17444, 427, 96, 32, 102, 9977, 4663, ...
How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?
CREATE TABLE table_name_84 ( round VARCHAR, event VARCHAR )
SELECT round FROM table_name_84 WHERE event = "strikeforce: shamrock vs. diaz"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 1751, 584, 4280, 28027, 6, 605, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 14419, 410, 21203, 281, 21, 8, 5500, 5208, 10880, 10, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1751, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 605, 3274, 96, 7, 1788, 1050, 10880, 10, 3, 7, 1483, 6133, 3, 208, 7, 5, 1227, 9, 172, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is average age of patients whose language is span and primary disease is angioedema?
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT AVG(demographic.age) FROM demographic WHERE demographic.language = "SPAN" AND demographic.diagnosis = "ANGIOEDEMA"
[ 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, 71, 17217, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 24925, 3274, 96, 21215, 567, 121, 3430, 14798, 5, 25930, 4844, 159, 3274, 96, 19775, 7550, 2326, 20211, 121, 1, -100, -100, -100, -100,...
What is the date for Europe?
CREATE TABLE table_name_32 (date VARCHAR, region VARCHAR)
SELECT date FROM table_name_32 WHERE region = "europe"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2668, 41, 5522, 584, 4280, 28027, 6, 1719, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 21, 1740, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 2668, 549, 17444, 427, 1719, 3274, 96, 28188, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200?
CREATE TABLE table_54945 ( "Year" real, "Artist" text, "Composition" text, "Mintage" real, "Issue Price" text )
SELECT AVG("Year") FROM table_54945 WHERE "Artist" = 'royal canadian mint engravers' AND "Mintage" < '200'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3647, 2128, 41, 96, 476, 2741, 121, 490, 6, 96, 7754, 343, 121, 1499, 6, 96, 5890, 4718, 121, 1499, 6, 96, 12858, 6505, 121, 490, 6, 96, 196, 7, 7, 76, 15, 5312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 476, 2741, 8512, 21680, 953, 834, 755, 3647, 2128, 549, 17444, 427, 96, 7754, 343, 121, 3274, 3, 31, 8170, 138, 54, 9, 8603, 13983, 3, 35, 15299, 277, 31, 3430, 96, 12858, 6505, 121, 3, 2, 3...
What was the date of the Mariners game that had an attendance of 6,707?
CREATE TABLE table_56304 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Date" FROM table_56304 WHERE "Attendance" = '6,707'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4834, 23702, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 434, 32, 7, 7, 121, 1499, 6, 96, 188, 17, 324, 26, 663...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 4834, 23702, 549, 17444, 427, 96, 188, 17, 324, 26, 663, 121, 3274, 3, 31, 11071, 2518, 940, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total number of rounds of the end player with a pick number greater than 303?
CREATE TABLE table_name_21 (round VARCHAR, pick VARCHAR, position VARCHAR)
SELECT COUNT(round) FROM table_name_21 WHERE pick > 303 AND position = "end"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 7775, 584, 4280, 28027, 6, 1432, 584, 4280, 28027, 6, 1102, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 792, 381, 13, 14419, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 7775, 61, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 1432, 2490, 3, 23335, 3430, 1102, 3274, 96, 989, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12?
CREATE TABLE table_39741 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT COUNT("Top-5") FROM table_39741 WHERE "Top-25" = '6' AND "Cuts made" < '12'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3288, 4581, 536, 41, 96, 382, 1211, 20205, 17, 121, 1499, 6, 96, 18455, 7, 121, 490, 6, 96, 22481, 18, 17395, 490, 6, 96, 22481, 4536, 121, 490, 6, 96, 22481, 14855, 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, 22481, 4525, 8512, 21680, 953, 834, 3288, 4581, 536, 549, 17444, 427, 96, 22481, 14855, 121, 3274, 3, 31, 948, 31, 3430, 96, 15784, 17, 7, 263, 121, 3, 2, 3, 31, 2122, 31, 1, -100, -100, -...
What is the rank for the person with time 11.14?
CREATE TABLE table_name_54 (rank INTEGER, time___sec__ VARCHAR)
SELECT AVG(rank) FROM table_name_54 WHERE time___sec__ = 11.14
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 6254, 3, 21342, 17966, 6, 97, 834, 834, 834, 7549, 834, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 11003, 21, 8, 568, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 6254, 61, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 97, 834, 834, 834, 7549, 834, 834, 3274, 7806, 2534, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the highest number on money list rank for Angela Stanford's career?
CREATE TABLE table_19596 ( "Year" real, "Tournaments played" real, "Cuts made*" real, "Wins" real, "2nd" real, "3rd" real, "Top 10s" real, "Best finish" text, "Earnings ($)" real, "Money list rank" real, "Scoring average" text, "Scoring rank" text )
SELECT MAX("Money list rank") FROM table_19596
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 22464, 4314, 41, 96, 476, 2741, 121, 490, 6, 96, 382, 1211, 29, 9, 4128, 1944, 121, 490, 6, 96, 15784, 17, 7, 263, 1935, 121, 490, 6, 96, 18455, 7, 121, 490, 6, 96, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 9168, 15, 63, 570, 11003, 8512, 21680, 953, 834, 22464, 4314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was bruce baldwin's pick #?
CREATE TABLE table_2508633_5 ( pick__number VARCHAR, player VARCHAR )
SELECT pick__number FROM table_2508633_5 WHERE player = "Bruce Baldwin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 11434, 3840, 4201, 834, 755, 41, 1432, 834, 834, 5525, 1152, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 3, 9052, 565, 3, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1432, 834, 834, 5525, 1152, 21680, 953, 834, 11434, 3840, 4201, 834, 755, 549, 17444, 427, 1959, 3274, 96, 9465, 565, 29467, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
In 1937, what was the finish?
CREATE TABLE table_name_37 (finish VARCHAR, year VARCHAR)
SELECT finish FROM table_name_37 WHERE year = "1937"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 25535, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 86, 27456, 6, 125, 47, 8, 1992, 58, 1, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1992, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 215, 3274, 96, 2294, 4118, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Tell me the 3rd component for bp azeo of 62.1
CREATE TABLE table_32096 ( "2nd component" text, "b.p. 2nd comp. (\u02daC)" real, "3rd component" text, "b.p. 3rd comp. (\u02daC)" text, "b.p. azeo. (\u02daC)" text, "% wt 1st" text, "% wt 2nd" text, "% wt 3rd" text )
SELECT "3rd component" FROM table_32096 WHERE "b.p. azeo. (\u02daC)" = '62.1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15003, 4314, 41, 96, 357, 727, 3876, 121, 1499, 6, 96, 115, 5, 102, 5, 204, 727, 2890, 5, 41, 2, 76, 4305, 26, 9, 254, 61, 121, 490, 6, 96, 519, 52, 26, 3876, 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, 519, 52, 26, 3876, 121, 21680, 953, 834, 15003, 4314, 549, 17444, 427, 96, 115, 5, 102, 5, 3, 9, 776, 32, 5, 41, 2, 76, 4305, 26, 9, 254, 61, 121, 3274, 3, 31, 948, 14489, 31, 1, -100, -100, -100, -100, ...
Name the most founded for enrollment 2005 being 1285
CREATE TABLE table_2076533_1 (founded INTEGER, enrollment__2005_ VARCHAR)
SELECT MAX(founded) FROM table_2076533_1 WHERE enrollment__2005_ = 1285
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26426, 4122, 4201, 834, 536, 41, 23329, 3, 21342, 17966, 6, 17938, 834, 834, 22594, 834, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 167, 5710, 21, 17938, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 23329, 61, 21680, 953, 834, 26426, 4122, 4201, 834, 536, 549, 17444, 427, 17938, 834, 834, 22594, 834, 3274, 586, 4433, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which Record has a Result of loss, and an Opponent of @ la clippers?
CREATE TABLE table_name_53 ( record VARCHAR, result VARCHAR, opponent VARCHAR )
SELECT record FROM table_name_53 WHERE result = "loss" AND opponent = "@ la clippers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 1368, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 11392, 65, 3, 9, 3, 20119, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1368, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 741, 3274, 96, 2298, 7, 121, 3430, 15264, 3274, 96, 1741, 50, 5516, 4660, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total number of deaths of the attack with 0 Israelis or foreigners wounded, 0 other deaths, and a total casualty of 1?
CREATE TABLE table_59894 ( "Israeli deaths" real, "Other deaths" text, "Total deaths" text, "Israeli and/or foreigner wounded" text, "Total casualties" text )
SELECT "Total deaths" FROM table_59894 WHERE "Israeli and/or foreigner wounded" = '0' AND "Other deaths" = '0' AND "Total casualties" = '1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3390, 3914, 591, 41, 96, 30387, 23, 14319, 121, 490, 6, 96, 667, 189, 49, 14319, 121, 1499, 6, 96, 3696, 1947, 14319, 121, 1499, 6, 96, 30387, 23, 11, 87, 127, 2959, 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, 96, 3696, 1947, 14319, 121, 21680, 953, 834, 3390, 3914, 591, 549, 17444, 427, 96, 30387, 23, 11, 87, 127, 2959, 49, 21372, 121, 3274, 3, 31, 632, 31, 3430, 96, 667, 189, 49, 14319, 121, 3274, 3, 31, 632, 31, 34...
Where was the game held that resulted in a draw?
CREATE TABLE table_14487 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Venue" FROM table_14487 WHERE "Result" = 'draw'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20885, 4225, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 1499, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 20885, 4225, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 19489, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What country was the series finale present and was shown Monday to Sunday at 18:45-21:00?
CREATE TABLE table_name_70 (country VARCHAR, timeslot VARCHAR, series_finale VARCHAR, weekly_schedule VARCHAR)
SELECT country FROM table_name_70 WHERE series_finale = "present" AND weekly_schedule = "monday to sunday" AND timeslot = "18:45-21:00"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2518, 41, 17529, 584, 4280, 28027, 6, 648, 3171, 584, 4280, 28027, 6, 939, 834, 12406, 15, 584, 4280, 28027, 6, 5547, 834, 7, 4513, 83, 15, 584, 4280, 28027, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 684, 21680, 953, 834, 4350, 834, 2518, 549, 17444, 427, 939, 834, 12406, 15, 3274, 96, 12640, 121, 3430, 5547, 834, 7, 4513, 83, 15, 3274, 96, 2157, 1135, 12, 1997, 1135, 121, 3430, 648, 3171, 3274, 96, 2606, 10, ...
What school is in Richmond?
CREATE TABLE table_2076608_3 ( school VARCHAR, location_s_ VARCHAR )
SELECT school FROM table_2076608_3 WHERE location_s_ = "Richmond"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26426, 3539, 4018, 834, 519, 41, 496, 584, 4280, 28027, 6, 1128, 834, 7, 834, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 496, 19, 16, 17247, 58, 1, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 496, 21680, 953, 834, 26426, 3539, 4018, 834, 519, 549, 17444, 427, 1128, 834, 7, 834, 3274, 96, 448, 362, 6764, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose lab test category is blood gas?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab."CATEGORY" = "Blood Gas"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What is Brian Gay's place?
CREATE TABLE table_60634 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Place" FROM table_60634 WHERE "Player" = 'brian gay'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3328, 3891, 591, 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, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 96, 345, 11706, 121, 21680, 953, 834, 3328, 3891, 591, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 2160, 152, 16998, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what project was initially started before september 20, 1968
CREATE TABLE table_291768_1 (commissioned VARCHAR, launched VARCHAR)
SELECT commissioned FROM table_291768_1 WHERE launched = "September 20, 1968"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 2517, 3651, 834, 536, 41, 17183, 584, 4280, 28027, 6, 3759, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 516, 47, 7513, 708, 274, 16022, 18247, 16047, 16506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 17183, 21680, 953, 834, 3166, 2517, 3651, 834, 536, 549, 17444, 427, 3759, 3274, 96, 27652, 16047, 16506, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which team is the kit manufacturer Umbro, and the captain Gary Mabbutt?
CREATE TABLE table_name_83 ( team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR )
SELECT team FROM table_name_83 WHERE kit_manufacturer = "umbro" AND captain = "gary mabbutt"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 372, 584, 4280, 28027, 6, 3650, 834, 348, 76, 8717, 450, 49, 584, 4280, 28027, 6, 14268, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 3650, 834, 348, 76, 8717, 450, 49, 3274, 96, 440, 5702, 121, 3430, 14268, 3274, 96, 1478, 63, 954, 115, 2780, 17, 121, 1, -100, -100, -100, -100, -100, -100, ...
What is the highest points total scored by Dan Clarke in a grid higher than 10?
CREATE TABLE table_name_61 (points INTEGER, driver VARCHAR, grid VARCHAR)
SELECT MAX(points) FROM table_name_61 WHERE driver = "dan clarke" AND grid > 10
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 2700, 7, 3, 21342, 17966, 6, 2535, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 979, 792, 5799, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4800, 4, 599, 2700, 7, 61, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 2535, 3274, 96, 3768, 6860, 1050, 121, 3430, 8634, 2490, 335, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which year has has a Engine of maserati straight-6?
CREATE TABLE table_71846 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" text )
SELECT COUNT("Year") FROM table_71846 WHERE "Engine" = 'maserati straight-6'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 2606, 4448, 41, 96, 476, 2741, 121, 490, 6, 96, 16924, 3569, 121, 1499, 6, 96, 3541, 6500, 7, 121, 1499, 6, 96, 31477, 121, 1499, 6, 96, 22512, 7, 121, 1499, 3, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 476, 2741, 8512, 21680, 953, 834, 940, 2606, 4448, 549, 17444, 427, 96, 31477, 121, 3274, 3, 31, 2754, 15, 6850, 2541, 5783, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the surface of the match against bethanie mattek-sands?
CREATE TABLE table_name_83 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_83 WHERE opponent = "bethanie mattek-sands"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 26899, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1774, 13, 8, 1588, 581, 36, 6736, 23, 15, 21880, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1774, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 15264, 3274, 96, 346, 6736, 23, 15, 21880, 157, 18, 7, 232, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the date of the away game in week 8?
CREATE TABLE table_57326 ( "Week" real, "Date" text, "Opponent" text, "Home/Away Game" text, "Result" text )
SELECT "Date" FROM table_57326 WHERE "Home/Away Game" = 'away' AND "Week" = '8'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3436, 519, 2688, 41, 96, 518, 10266, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 19040, 87, 188, 1343, 4435, 121, 1499, 6, 96, 20119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 3436, 519, 2688, 549, 17444, 427, 96, 19040, 87, 188, 1343, 4435, 121, 3274, 3, 31, 8006, 31, 3430, 96, 518, 10266, 121, 3274, 3, 31, 927, 31, 1, -100, -100, -100, -100, -100, ...
What is the name of the episode written by Ross Brown?
CREATE TABLE table_2468961_2 ( title VARCHAR, written_by VARCHAR )
SELECT title FROM table_2468961_2 WHERE written_by = "Ross Brown"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 3651, 4314, 536, 834, 357, 41, 2233, 584, 4280, 28027, 6, 1545, 834, 969, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 5640, 1545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2233, 21680, 953, 834, 2266, 3651, 4314, 536, 834, 357, 549, 17444, 427, 1545, 834, 969, 3274, 96, 448, 32, 7, 7, 3899, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
what ACL papers have less than 5 citations ?
CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE field ( fieldid int )
SELECT DISTINCT cite.citingpaperid FROM cite, paper, venue WHERE paper.paperid = cite.citedpaperid AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' GROUP BY cite.citingpaperid HAVING COUNT(DISTINCT cite.citedpaperid) < 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5669, 41, 5669, 23, 26, 16, 17, 6, 5669, 4350, 3, 4331, 4059, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3, 8464, 41, 3, 17994, 19587, 23, 26, 16, 17, 6, 3, 1167...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 3, 8464, 5, 17994, 19587, 23, 26, 21680, 3, 8464, 6, 1040, 6, 5669, 549, 17444, 427, 1040, 5, 19587, 23, 26, 3274, 3, 8464, 5, 11675, 19587, 23, 26, 3430, 5669, 5, 15098, 23, 26, 3274, 104...
What was the record for the game on April 9, 2008?
CREATE TABLE table_name_9 ( record VARCHAR, date VARCHAR )
SELECT record FROM table_name_9 WHERE date = "april 9, 2008"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1298, 41, 1368, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1368, 21, 8, 467, 30, 1186, 9902, 2628, 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, 1368, 21680, 953, 834, 4350, 834, 1298, 549, 17444, 427, 833, 3274, 96, 9, 2246, 40, 9902, 2628, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the Musical Guest/Song with an original airdate of january 2008?
CREATE TABLE table_40938 ( "Pilot" text, "Original Airdate" text, "Musical Guest/Song performed" text, "YouTube Hero" text, "MySpace Band" text )
SELECT "Musical Guest/Song performed" FROM table_40938 WHERE "Original Airdate" = 'january 2008'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 4198, 3747, 41, 96, 345, 23, 3171, 121, 1499, 6, 96, 667, 3380, 10270, 1761, 5522, 121, 1499, 6, 96, 29035, 138, 14252, 87, 134, 2444, 3032, 121, 1499, 6, 96, 3774, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29035, 138, 14252, 87, 134, 2444, 3032, 121, 21680, 953, 834, 591, 4198, 3747, 549, 17444, 427, 96, 667, 3380, 10270, 1761, 5522, 121, 3274, 3, 31, 7066, 76, 1208, 2628, 31, 1, -100, -100, -100, -100, -100, -100...
give me the number of patients whose year of birth is less than 2041 and drug route is sc?
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2041" AND prescriptions.route = "SC"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7744, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7744, 7, 5, 8399, 51, 834, 23, 26, 549...
What was david ferrer seeded?
CREATE TABLE table_24431264_16 (seed INTEGER, player VARCHAR)
SELECT MAX(seed) FROM table_24431264_16 WHERE player = "David Ferrer"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2266, 4906, 2122, 4389, 834, 2938, 41, 7, 6958, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 836, 6961, 25007, 49, 6677, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 7, 6958, 61, 21680, 953, 834, 2266, 4906, 2122, 4389, 834, 2938, 549, 17444, 427, 1959, 3274, 96, 308, 9, 6961, 12762, 49, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?
CREATE TABLE table_40059 ( "Club" text, "Wins" real, "Loses" real, "Points For" real, "Points Against" real, "Percentage" text, "Points" real )
SELECT "Loses" FROM table_40059 WHERE "Points For" < '1175' AND "Wins" > '2' AND "Points Against" > '894' AND "Points" = '24'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5548, 3390, 41, 96, 254, 11158, 121, 1499, 6, 96, 18455, 7, 121, 490, 6, 96, 434, 32, 2260, 121, 490, 6, 96, 22512, 7, 242, 121, 490, 6, 96, 22512, 7, 3, 20749, 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, 434, 32, 2260, 121, 21680, 953, 834, 5548, 3390, 549, 17444, 427, 96, 22512, 7, 242, 121, 3, 2, 3, 31, 2596, 3072, 31, 3430, 96, 18455, 7, 121, 2490, 3, 31, 357, 31, 3430, 96, 22512, 7, 3, 20749, 121, 2490...
Tell me the position of chris clark
CREATE TABLE table_name_8 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_8 WHERE player = "chris clark"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 4718, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 8779, 140, 8, 1102, 13, 3, 524, 52, 159, 6860, 157, 1, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1102, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 1959, 3274, 96, 524, 52, 159, 6860, 157, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Where was the 05/09/1973 venue?
CREATE TABLE table_46508 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Status" text )
SELECT "Venue" FROM table_46508 WHERE "Date" = '05/09/1973'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4448, 1752, 927, 41, 96, 667, 102, 2748, 53, 2271, 121, 1499, 6, 96, 20749, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 17, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 4448, 1752, 927, 549, 17444, 427, 96, 308, 342, 121, 3274, 3, 31, 3076, 31497, 2294, 4552, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Give the neames of wines with prices below 50 and with appelations in Monterey county, and count them by a bar chart, sort from high to low by the bars please.
CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT, Name TEXT, Year INTEGER, Price INTEGER, Score INTEGER, Cases INTEGER, Drink TEXT )
SELECT Name, COUNT(Name) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.Price < 50 GROUP BY Name ORDER BY Name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 11457, 7, 41, 4699, 3, 21342, 17966, 6, 29083, 3, 3463, 4, 382, 6, 6088, 3, 3463, 4, 382, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 8319, 6105, 7, 41, 465, 3, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5570, 6, 2847, 17161, 599, 23954, 61, 21680, 8319, 6105, 7, 6157, 332, 536, 3, 15355, 3162, 2013, 6157, 332, 357, 9191, 332, 5411, 27794, 257, 3274, 332, 4416, 27794, 257, 549, 17444, 427, 332, 5411, 10628, 63, 3274, ...
What is Record, when Opponent is San Francisco Warriors?
CREATE TABLE table_45430 ( "Date" text, "H/A/N" text, "Opponent" text, "Score" text, "Record" text )
SELECT "Record" FROM table_45430 WHERE "Opponent" = 'san francisco warriors'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2128, 25449, 41, 96, 308, 342, 121, 1499, 6, 96, 566, 87, 188, 87, 567, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 1649, 7621, 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, 1649, 7621, 121, 21680, 953, 834, 2128, 25449, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 7, 152, 2515, 11389, 3523, 20614, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the Record of the Game on January 20 with Visitor Toronto Maple Leafs with a Score of 3 1?
CREATE TABLE table_8131 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT "Record" FROM table_8131 WHERE "Score" = '3–1' AND "Visitor" = 'toronto maple leafs' AND "Date" = 'january 20'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4959, 3341, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 159, 155, 127, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 19040, 121, 1499, 6, 96, 1649, 7621, 121, 1499, 3, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1649, 7621, 121, 21680, 953, 834, 4959, 3341, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 519, 104, 536, 31, 3430, 96, 553, 159, 155, 127, 121, 3274, 3, 31, 235, 4438, 32, 22007, 8384, 7, 31, 3430, 96,...
How many matches were drawn by a team with 447 points?
CREATE TABLE table_name_1 (drawn VARCHAR, points_for VARCHAR)
SELECT drawn FROM table_name_1 WHERE points_for = "447"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 536, 41, 19489, 29, 584, 4280, 28027, 6, 979, 834, 1161, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 6407, 130, 6796, 57, 3, 9, 372, 28, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6796, 21680, 953, 834, 4350, 834, 536, 549, 17444, 427, 979, 834, 1161, 3274, 96, 591, 4177, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the total number of hours per work and number of games played by David Shieber?
CREATE TABLE plays_games ( stuid number, gameid number, hours_played number ) CREATE TABLE video_games ( gameid number, gname text, gtype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE sportsinfo ( stuid number, sportname text, hoursperweek number, gamesplayed number, onscholarship text )
SELECT SUM(hoursperweek), SUM(gamesplayed) FROM sportsinfo AS T1 JOIN student AS T2 ON T1.stuid = T2.stuid WHERE T2.fname = "David" AND T2.lname = "Shieber"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4805, 834, 7261, 7, 41, 21341, 23, 26, 381, 6, 467, 23, 26, 381, 6, 716, 834, 4895, 15, 26, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 671, 834, 7261, 7, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 5842, 4339, 8041, 201, 180, 6122, 599, 7261, 7, 4895, 15, 26, 61, 21680, 2100, 9583, 6157, 332, 536, 3, 15355, 3162, 1236, 6157, 332, 357, 9191, 332, 5411, 7, 17, 76, 23, 26, 3274, 332, 4416, 7, ...
find the number of asian patients diagnosed with septicemis nos.
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 ) 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.ethnicity = "ASIAN" AND diagnoses.short_title = "Septicemia NOS"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Tell me the date with result of won 1-0
CREATE TABLE table_74835 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" text )
SELECT "Date" FROM table_74835 WHERE "Result" = 'won 1-0'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3707, 2469, 41, 96, 308, 342, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 188, 17, 324, 26, 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, 308, 342, 121, 21680, 953, 834, 940, 3707, 2469, 549, 17444, 427, 96, 20119, 121, 3274, 3, 31, 210, 106, 3, 18930, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the area for the province having Hangul of ?
CREATE TABLE table_name_60 ( area VARCHAR, hangul_chosongul VARCHAR )
SELECT area FROM table_name_60 WHERE hangul_chosongul = "경기도"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3328, 41, 616, 584, 4280, 28027, 6, 5168, 83, 834, 3995, 739, 6106, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 616, 21, 8, 7985, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 616, 21680, 953, 834, 4350, 834, 3328, 549, 17444, 427, 5168, 83, 834, 3995, 739, 6106, 3274, 96, 2, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Game has a November of 29?
CREATE TABLE table_name_63 ( game INTEGER, november VARCHAR )
SELECT SUM(game) FROM table_name_63 WHERE november = 29
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 467, 3, 21342, 17966, 6, 3, 5326, 18247, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 4435, 65, 3, 9, 1671, 13, 2838, 58, 1, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 7261, 61, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 3, 5326, 18247, 3274, 2838, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41?
CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR)
SELECT MAX(population) FROM table_name_16 WHERE state = "puerto rico" AND total_congregations > 41
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2938, 41, 9791, 7830, 3, 21342, 17966, 6, 538, 584, 4280, 28027, 6, 792, 834, 1018, 18301, 1628, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 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, 4800, 4, 599, 9791, 7830, 61, 21680, 953, 834, 4350, 834, 2938, 549, 17444, 427, 538, 3274, 96, 4987, 49, 235, 3, 2234, 32, 121, 3430, 792, 834, 1018, 18301, 1628, 2490, 8798, 1, -100, -100, -100, -100, -100, -100, ...
Show all cities and corresponding number of students by a bar chart, could you order by the bars from low to high?
CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) )
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4498, 834, 6838, 49, 122, 63, 41, 3, 13076, 4309, 3, 21342, 17966, 6, 432, 49, 122, 63, 584, 4280, 28027, 599, 1755, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 690, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 6341, 350, 4630, 6880, 272, 476, 690, 834, 4978, 4674, 11300, 272, 476, 690, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...