NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
How had the high points when the high assists were from J. Johnson (7)?
CREATE TABLE table_17320 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text )
SELECT "High points" FROM table_17320 WHERE "High assists" = 'J. Johnson (7)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 15003, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, 3, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 21417, 979, 121, 21680, 953, 834, 2517, 15003, 549, 17444, 427, 96, 21417, 13041, 121, 3274, 3, 31, 683, 5, 5891, 3, 24358, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
How many companies are there?
CREATE TABLE Companies (Id VARCHAR)
SELECT COUNT(*) FROM Companies
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 11239, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 688, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 11239, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the number of games for each away team and group by home team in a stacked bar chart. The x-axis is away team.
CREATE TABLE stadium ( id int, name text, Home_Games int, Average_Attendance real, Total_Attendance real, Capacity_Percentage real ) CREATE TABLE injury_accident ( game_id int, id int, Player text, Injury text, Number_of_matches text, Source text ) CREATE TABLE game ( stadium_id int, id int, Season int, Date text, Home_team text, Away_team text, Score text, Competition text )
SELECT Away_team, COUNT(Away_team) FROM game GROUP BY Home_team, Away_team
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 14939, 41, 3, 23, 26, 16, 17, 6, 564, 1499, 6, 1210, 834, 23055, 7, 16, 17, 6, 23836, 834, 188, 17, 324, 26, 663, 490, 6, 9273, 834, 188, 17, 324, 26, 663, 490, 6, 4000, 9, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 1343, 834, 11650, 6, 2847, 17161, 599, 188, 1343, 834, 11650, 61, 21680, 467, 350, 4630, 6880, 272, 476, 1210, 834, 11650, 6, 71, 1343, 834, 11650, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Return a histogram on what are the different card types, and how many cards are there of each?, and sort from low to high by the Y.
CREATE TABLE Customers ( customer_id INTEGER, customer_first_name VARCHAR(20), customer_last_name VARCHAR(20), customer_address VARCHAR(255), customer_phone VARCHAR(255), customer_email VARCHAR(255), other_customer_details VARCHAR(255) ) CREATE TABLE Customers_Cards ( card_id INTEGER, customer_id INTEGER, card_type_code VARCHAR(15), card_number VARCHAR(80), date_valid_from DATETIME, date_valid_to DATETIME, other_card_details VARCHAR(255) ) CREATE TABLE Accounts ( account_id INTEGER, customer_id INTEGER, account_name VARCHAR(50), other_account_details VARCHAR(255) ) CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_details VARCHAR(255) )
SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code ORDER BY COUNT(*)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 16423, 41, 884, 834, 23, 26, 3, 21342, 17966, 6, 884, 834, 14672, 834, 4350, 584, 4280, 28027, 599, 1755, 201, 884, 834, 5064, 834, 4350, 584, 4280, 28027, 599, 1755, 201, 884, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 895, 834, 6137, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 16423, 834, 6936, 26, 7, 350, 4630, 6880, 272, 476, 895, 834, 6137, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 1, -100, -100, -100,...
Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?
CREATE TABLE temperature ( city_id number, jan number, feb number, mar number, apr number, jun number, jul number, aug number, sep number, oct number, nov number, dec number ) CREATE TABLE hosting_city ( year number, match_id number, host_city text ) CREATE TABLE city ( city_id number, city text, hanzi text, hanyu_pinyin text, regional_population number, gdp number ) CREATE TABLE match ( match_id number, date text, venue text, score text, result text, competition text )
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.feb > T2.jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2912, 41, 690, 834, 23, 26, 381, 6, 3, 7066, 381, 6, 3, 89, 15, 115, 381, 6, 3157, 381, 6, 3, 9, 102, 52, 381, 6, 3, 6959, 381, 6, 3, 354, 83, 381, 6, 185, 122, 381, 6, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 6726, 21680, 690, 6157, 332, 536, 3, 15355, 3162, 2912, 6157, 332, 357, 9191, 332, 5411, 6726, 834, 23, 26, 3274, 332, 4416, 6726, 834, 23, 26, 549, 17444, 427, 332, 4416, 89, 15, 115, 2490, 332, 4416, ...
What was the results for the district oklahoma 3?
CREATE TABLE table_1341423_36 ( results VARCHAR, district VARCHAR )
SELECT results FROM table_1341423_36 WHERE district = "Oklahoma 3"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23747, 2534, 2773, 834, 3420, 41, 772, 584, 4280, 28027, 6, 3939, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 772, 21, 8, 3939, 3, 32, 8142, 10207, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 772, 21680, 953, 834, 23747, 2534, 2773, 834, 3420, 549, 17444, 427, 3939, 3274, 96, 667, 8142, 10207, 9, 220, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the length when the propulsion is controllable pitch propeller?
CREATE TABLE table_28132970_5 ( length VARCHAR, propulsion VARCHAR )
SELECT length FROM table_28132970_5 WHERE propulsion = "Controllable pitch propeller"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2577, 2368, 3166, 2518, 834, 755, 41, 2475, 584, 4280, 28027, 6, 813, 20567, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2475, 116, 8, 813, 20567, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2475, 21680, 953, 834, 2577, 2368, 3166, 2518, 834, 755, 549, 17444, 427, 813, 20567, 3274, 96, 25716, 40, 179, 6242, 24075, 1171, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the number of patients whose marital status is divorced and item id is 51181?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.itemid = "51181"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
Which Opponent has a Date of november 17, 1963?
CREATE TABLE table_name_30 ( opponent VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_30 WHERE date = "november 17, 1963"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1458, 41, 15264, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 4495, 9977, 65, 3, 9, 7678, 13, 3, 5326, 18247, 12864, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 15264, 21680, 953, 834, 4350, 834, 1458, 549, 17444, 427, 833, 3274, 96, 5326, 18247, 12864, 20613, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the Competition with a Score of 1 0, and a Result with 3 0?
CREATE TABLE table_name_17 ( competition VARCHAR, score VARCHAR, result VARCHAR )
SELECT competition FROM table_name_17 WHERE score = "1–0" AND result = "3–0"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2517, 41, 2259, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 6, 741, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 15571, 28, 3, 9, 17763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2259, 21680, 953, 834, 4350, 834, 2517, 549, 17444, 427, 2604, 3274, 96, 536, 104, 632, 121, 3430, 741, 3274, 96, 519, 104, 632, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who attended the school in 2008, that Deandria Hill attended in 2005?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT 2008 FROM table_name_15 WHERE 2005 = "deandria hill"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1808, 41, 196, 26, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 2645, 5526, 8, 496, 16, 2628, 6, 24, 374, 232, 52, 23, 9, 3588, 5526, 16, 3105, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2628, 21680, 953, 834, 4350, 834, 1808, 549, 17444, 427, 3105, 3274, 96, 221, 232, 52, 23, 9, 9956, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What team had 159 laps and a Time/Retired of 6:30:02.3733?
CREATE TABLE table_name_75 (team VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT team FROM table_name_75 WHERE laps = 159 AND time_retired = "6:30:02.3733"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3072, 41, 11650, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 6, 97, 834, 10682, 1271, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 372, 141, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 372, 21680, 953, 834, 4350, 834, 3072, 549, 17444, 427, 14941, 7, 3274, 3, 27904, 3430, 97, 834, 10682, 1271, 3274, 96, 948, 10, 1458, 10, 12328, 4118, 4201, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
What was the location of the Ju-52 aircraft?
CREATE TABLE table_name_61 (location VARCHAR, aircraft VARCHAR)
SELECT location FROM table_name_61 WHERE aircraft = "ju-52"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4241, 41, 14836, 584, 4280, 28027, 6, 6442, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1128, 13, 8, 3736, 18, 5373, 6442, 58, 1, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 4350, 834, 4241, 549, 17444, 427, 6442, 3274, 96, 2047, 18, 5373, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
specify the icd9 code and marital status of patient id 42067
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 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 )
SELECT demographic.marital_status, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "42067"
[ 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, 14798, 5, 1635, 9538, 834, 8547, 302, 6, 18730, 7, 5, 7, 14184, 834, 21869, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What is the total of rank when gold is 2 and total is more than 4?
CREATE TABLE table_40680 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT SUM("Rank") FROM table_40680 WHERE "Gold" = '2' AND "Total" > '4'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2445, 948, 2079, 41, 96, 22557, 121, 490, 6, 96, 567, 257, 121, 1499, 6, 96, 23576, 121, 490, 6, 96, 134, 173, 624, 121, 490, 6, 96, 22780, 29, 776, 121, 490, 6, 96, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 121, 22557, 8512, 21680, 953, 834, 2445, 948, 2079, 549, 17444, 427, 96, 23576, 121, 3274, 3, 31, 357, 31, 3430, 96, 3696, 1947, 121, 2490, 3, 31, 591, 31, 1, -100, -100, -100, -100, -100, -100, -1...
are the riders of the camel yamaha team the same as tech 3 yamaha ?
CREATE TABLE table_204_162 ( id number, "team" text, "constructor" text, "motorcycle" text, "tyres" text, "no" number, "rider" text, "rounds" text )
SELECT (SELECT "rider" FROM table_204_162 WHERE "team" = 'camel yamaha team') = (SELECT "rider" FROM table_204_162 WHERE "team" = 'tech 3 yamaha')
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 2938, 357, 41, 3, 23, 26, 381, 6, 96, 11650, 121, 1499, 6, 96, 15982, 5317, 121, 1499, 6, 96, 18271, 10136, 121, 1499, 6, 96, 17, 63, 60, 7, 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, 41, 23143, 14196, 96, 4055, 49, 121, 21680, 953, 834, 26363, 834, 2938, 357, 549, 17444, 427, 96, 11650, 121, 3274, 3, 31, 658, 2341, 3, 22990, 1024, 372, 31, 61, 3274, 41, 23143, 14196, 96, 4055, 49, 121, 21680, ...
what was the name of the procedure, which patient 010-20205 was first received since 2104?
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text )
SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-20205')) AND STRFTIME('%y', treatment.treatmenttime) >= '2104' ORDER BY treatment.treatmenttime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 583, 41, 583, 23, 26, 381, 6, 775, 12417, 1499, 6, 1868, 15878, 3734, 21545, 23, 26, 381, 6, 605, 6137, 1499, 6, 605, 23, 26, 381, 6, 1567, 715, 97, 6, 583, 381, 3, 61, 3, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1058, 5, 26889, 4350, 21680, 1058, 549, 17444, 427, 1058, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15878, 3734, 21545, ...
What is the reserved for the constituency of 192?
CREATE TABLE table_66373 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real )
SELECT "Reserved for ( SC / ST /None)" FROM table_66373 WHERE "Constituency number" = '192'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3539, 4118, 519, 41, 96, 4302, 2248, 17, 76, 4392, 381, 121, 1499, 6, 96, 23954, 121, 1499, 6, 96, 1649, 3473, 15, 26, 21, 41, 6508, 3, 87, 5097, 3, 87, 567, 782, 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, 3473, 15, 26, 21, 41, 6508, 3, 87, 5097, 3, 87, 567, 782, 61, 121, 21680, 953, 834, 3539, 4118, 519, 549, 17444, 427, 96, 4302, 2248, 17, 76, 4392, 381, 121, 3274, 3, 31, 19978, 31, 1, -100, -100, -1...
What is the place of the 68-69-73=210?
CREATE TABLE table_76583 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Place" FROM table_76583 WHERE "Score" = '68-69-73=210'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3959, 3449, 519, 41, 96, 345, 11706, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 3696, 260, 121, 1499, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 11706, 121, 21680, 953, 834, 3959, 3449, 519, 549, 17444, 427, 96, 134, 9022, 121, 3274, 3, 31, 3651, 18, 3951, 18, 4552, 2423, 15239, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
How many millions of viewers are listed when the share is 10.8?
CREATE TABLE table_29574579_1 (uk_viewers__million_ VARCHAR, share___percentage_ VARCHAR)
SELECT uk_viewers__million_ FROM table_29574579_1 WHERE share___percentage_ = "10.8"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 3436, 2128, 4440, 834, 536, 41, 1598, 834, 4576, 277, 834, 834, 17030, 834, 584, 4280, 28027, 6, 698, 834, 834, 834, 883, 3728, 545, 834, 584, 4280, 28027, 61, 3, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 3, 1598, 834, 4576, 277, 834, 834, 17030, 834, 21680, 953, 834, 3166, 3436, 2128, 4440, 834, 536, 549, 17444, 427, 698, 834, 834, 834, 883, 3728, 545, 834, 3274, 96, 10415, 927, 121, 1, -100, -100, -100, -100, -100,...
How many ranks have 1:01.14.62 as the time, with michael russell as the rider?
CREATE TABLE table_name_98 ( rank VARCHAR, time VARCHAR, rider VARCHAR )
SELECT COUNT(rank) FROM table_name_98 WHERE time = "1:01.14.62" AND rider = "michael russell"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 11003, 584, 4280, 28027, 6, 97, 584, 4280, 28027, 6, 2564, 52, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 13799, 43, 209, 10, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 6254, 61, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 97, 3274, 96, 536, 10, 10068, 2534, 5, 4056, 121, 3430, 2564, 52, 3274, 96, 51, 362, 9, 15, 40, 27887, 195, 121, 1, -100, -100, -100, ...
WHAT IS THE STUDIO WITH A GROSS $81,198,894?
CREATE TABLE table_name_49 ( studio VARCHAR, gross VARCHAR )
SELECT studio FROM table_name_49 WHERE gross = "$81,198,894"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3647, 41, 3100, 584, 4280, 28027, 6, 8690, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 21665, 6827, 1853, 5097, 10161, 7550, 11951, 71, 3, 8727, 19406, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3100, 21680, 953, 834, 4350, 834, 3647, 549, 17444, 427, 8690, 3274, 96, 3229, 4959, 6, 24151, 6, 3914, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the date for the episode performed by Sue Manchester?
CREATE TABLE table_191105_4 ( first_aired VARCHAR, performed_by VARCHAR )
SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2294, 536, 12869, 834, 591, 41, 166, 834, 2378, 26, 584, 4280, 28027, 6, 3032, 834, 969, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 21, 8, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 166, 834, 2378, 26, 21680, 953, 834, 2294, 536, 12869, 834, 591, 549, 17444, 427, 3032, 834, 969, 3274, 96, 134, 76, 15, 9145, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What is the result of the match on 16 October 2012 with less than 4 goals?
CREATE TABLE table_5400 ( "Goal" real, "Date" text, "Score" text, "Result" text, "Competition" text )
SELECT "Result" FROM table_5400 WHERE "Goal" < '4' AND "Date" = '16 october 2012'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 5548, 41, 96, 6221, 138, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 1499, 3, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 20119, 121, 21680, 953, 834, 755, 5548, 549, 17444, 427, 96, 6221, 138, 121, 3, 2, 3, 31, 591, 31, 3430, 96, 308, 342, 121, 3274, 3, 31, 2938, 3, 32, 75, 235, 1152, 1673, 31, 1, -100, -100, -100, -100, -10...
What is Class, when Dates is '22 April - 3 May 2009'?
CREATE TABLE table_49604 ( "Place" text, "Country" text, "Qualifying Grand Prix" text, "Class" text, "Dates" text )
SELECT "Class" FROM table_49604 WHERE "Dates" = '22 april - 3 may 2009'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 3328, 591, 41, 96, 345, 11706, 121, 1499, 6, 96, 10628, 651, 121, 1499, 6, 96, 5991, 138, 8587, 2698, 12942, 121, 1499, 6, 96, 21486, 121, 1499, 6, 96, 308, 6203, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21486, 121, 21680, 953, 834, 3647, 3328, 591, 549, 17444, 427, 96, 308, 6203, 121, 3274, 3, 31, 2884, 3, 9, 2246, 40, 3, 18, 220, 164, 2464, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
The earliest year is 1996.
CREATE TABLE table_12077540_1 ( year INTEGER )
SELECT MIN(year) FROM table_12077540_1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 15518, 4013, 25379, 834, 536, 41, 215, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 37, 3, 16454, 215, 19, 6911, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 1201, 61, 21680, 953, 834, 15518, 4013, 25379, 834, 536, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the pick number of the player whose position is CB?
CREATE TABLE table_16321 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT "Pick #" FROM table_16321 WHERE "Position" = 'CB'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2938, 519, 2658, 41, 96, 345, 3142, 1713, 121, 490, 6, 96, 254, 10765, 2271, 121, 1499, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 9939, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 345, 3142, 1713, 121, 21680, 953, 834, 2938, 519, 2658, 549, 17444, 427, 96, 345, 32, 7, 4749, 121, 3274, 3, 31, 254, 279, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Create a bar chart showing all_games_percent across acc regular season, and could you sort Y-axis in asc order?
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 8498, 834, 19515, 41, 2271, 834, 4309, 16, 17, 6, 1121, 834, 4309, 16, 17, 6, 2271, 834, 23954, 1499, 6, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 1499, 6, 3, 14775, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 14775, 834, 17748, 4885, 834, 134, 15, 9, 739, 6, 432, 834, 23055, 7, 834, 12988, 3728, 21680, 8498, 834, 19515, 4674, 11300, 272, 476, 432, 834, 23055, 7, 834, 12988, 3728, 1, -100, -100, -100, -100, -100, -100,...
Name the college/junior club team for john campbell
CREATE TABLE table_23124 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT "College/junior/club team" FROM table_23124 WHERE "Player" = 'John Campbell'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2773, 22504, 41, 96, 345, 3142, 1713, 121, 490, 6, 96, 15800, 49, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 24732, 485, 121, 1499, 6, 96, 15743, 434, 372, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9939, 7883, 87, 6959, 23, 127, 87, 13442, 372, 121, 21680, 953, 834, 2773, 22504, 549, 17444, 427, 96, 15800, 49, 121, 3274, 3, 31, 18300, 17034, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name the date for the score of w 83-69
CREATE TABLE table_17104539_9 ( date VARCHAR, score VARCHAR )
SELECT date FROM table_17104539_9 WHERE score = "W 83-69"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 1714, 2128, 3288, 834, 1298, 41, 833, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 833, 21, 8, 2604, 13, 3, 210, 3, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 2517, 1714, 2128, 3288, 834, 1298, 549, 17444, 427, 2604, 3274, 96, 518, 3, 4591, 18, 3951, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the venues that host WNBA games?
CREATE TABLE table_name_39 ( venue VARCHAR, league VARCHAR )
SELECT venue FROM table_name_39 WHERE league = "wnba"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3288, 41, 5669, 584, 4280, 28027, 6, 5533, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 33, 8, 11778, 24, 2290, 3, 21170, 4882, 1031, 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, 5669, 21680, 953, 834, 4350, 834, 3288, 549, 17444, 427, 5533, 3274, 96, 210, 29, 115, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
CREATE TABLE table_42802 ( "Office" text, "Democratic ticket" text, "Republican ticket" text, "Prohibition ticket" text, "Greenback ticket" text )
SELECT "Prohibition ticket" FROM table_42802 WHERE "Greenback ticket" = 'thomas armstrong'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4165, 2079, 357, 41, 96, 22098, 121, 1499, 6, 96, 19679, 447, 4142, 121, 1499, 6, 96, 1649, 15727, 152, 4142, 121, 1499, 6, 96, 3174, 13506, 1575, 4142, 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, 3174, 13506, 1575, 4142, 121, 21680, 953, 834, 4165, 2079, 357, 549, 17444, 427, 96, 22918, 1549, 4142, 121, 3274, 3, 31, 189, 32, 2754, 2939, 25866, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is Melbourne's home venue?
CREATE TABLE table_4792 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_4792 WHERE "Home team" = 'melbourne'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 4508, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 4177, 4508, 549, 17444, 427, 96, 19040, 372, 121, 3274, 3, 31, 2341, 26255, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What country was Henry Picard from?
CREATE TABLE table_name_22 ( country VARCHAR, player VARCHAR )
SELECT country FROM table_name_22 WHERE player = "henry picard"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 684, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 684, 47, 7780, 11000, 986, 45, 58, 1, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 684, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 1959, 3274, 96, 3225, 651, 6686, 986, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What episode number is the episode with a segment on thinning shears?
CREATE TABLE table_15187735_20 ( episode INTEGER, segment_a VARCHAR )
SELECT MIN(episode) FROM table_15187735_20 WHERE segment_a = "Thinning Shears"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26578, 27697, 2469, 834, 1755, 41, 5640, 3, 21342, 17966, 6, 5508, 834, 9, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 5640, 381, 19, 8, 5640, 28, 3, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 15, 102, 159, 32, 221, 61, 21680, 953, 834, 26578, 27697, 2469, 834, 1755, 549, 17444, 427, 5508, 834, 9, 3274, 96, 8991, 10503, 451, 291, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the incumbent from the democratic party in the washington 7 district?
CREATE TABLE table_58843 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text )
SELECT "Incumbent" FROM table_58843 WHERE "Party" = 'democratic' AND "District" = 'washington 7'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3449, 4608, 519, 41, 96, 308, 23, 20066, 121, 1499, 6, 96, 1570, 75, 5937, 295, 121, 1499, 6, 96, 13725, 63, 121, 1499, 6, 96, 25171, 8160, 121, 490, 6, 96, 20119, 7, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1570, 75, 5937, 295, 121, 21680, 953, 834, 3449, 4608, 519, 549, 17444, 427, 96, 13725, 63, 121, 3274, 3, 31, 23319, 447, 31, 3430, 96, 308, 23, 20066, 121, 3274, 3, 31, 14710, 6029, 489, 31, 1, -100, -100, ...
Ron Jans is a manager of which kit maker?
CREATE TABLE table_9231 ( "Club" text, "Location" text, "Manager" text, "Kit maker" text, "Shirt sponsor" text )
SELECT "Kit maker" FROM table_9231 WHERE "Manager" = 'ron jans'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4508, 3341, 41, 96, 254, 11158, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 27272, 121, 1499, 6, 96, 439, 155, 13762, 121, 1499, 6, 96, 16671, 9037, 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, 439, 155, 13762, 121, 21680, 953, 834, 4508, 3341, 549, 17444, 427, 96, 27272, 121, 3274, 3, 31, 52, 106, 3, 7066, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the winning % for the years 2006-11?
CREATE TABLE table_name_98 (winning__percentage VARCHAR, years VARCHAR)
SELECT winning__percentage FROM table_name_98 WHERE years = "2006-11"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3916, 41, 8163, 834, 834, 883, 3728, 545, 584, 4280, 28027, 6, 203, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 3447, 3, 1454, 21, 8, 203, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3447, 834, 834, 883, 3728, 545, 21680, 953, 834, 4350, 834, 3916, 549, 17444, 427, 203, 3274, 96, 21196, 9169, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What date has ed as an actual title?
CREATE TABLE table_name_93 ( date VARCHAR, actual_title VARCHAR )
SELECT date FROM table_name_93 WHERE actual_title = "ed"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4271, 41, 833, 584, 4280, 28027, 6, 1805, 834, 21869, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 833, 65, 3, 15, 26, 38, 46, 1805, 2233, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 833, 21680, 953, 834, 4350, 834, 4271, 549, 17444, 427, 1805, 834, 21869, 3274, 96, 15, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Name the region 1 for episode number 13
CREATE TABLE table_21384 ( "DVD Name" text, "Ep #" real, "Region 1" text, "Region 2 (Scandinavia)" text, "Region 2 (UK)" text, "Region 4" text, "Special features" text )
SELECT "Region 1" FROM table_21384 WHERE "Ep #" = '13'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 2368, 4608, 41, 96, 13529, 308, 5570, 121, 1499, 6, 96, 427, 102, 1713, 121, 490, 6, 96, 17748, 23, 106, 209, 121, 1499, 6, 96, 17748, 23, 106, 204, 41, 134, 1608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17748, 23, 106, 209, 121, 21680, 953, 834, 357, 2368, 4608, 549, 17444, 427, 96, 427, 102, 1713, 121, 3274, 3, 31, 2368, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
List of high assists with high rebounds for k. mchale (10)
CREATE TABLE table_21590 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text )
SELECT "High assists" FROM table_21590 WHERE "High rebounds" = 'K. McHale (10)'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 1808, 2394, 41, 96, 23055, 121, 490, 6, 96, 308, 342, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 21417, 979, 121, 1499, 6, 96, 21417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21417, 13041, 121, 21680, 953, 834, 357, 1808, 2394, 549, 17444, 427, 96, 21417, 3, 23768, 121, 3274, 3, 31, 439, 5, 3038, 566, 9, 109, 41, 16968, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the transmission when the production was 2002-2005?
CREATE TABLE table_name_29 (transmission VARCHAR, production VARCHAR)
SELECT transmission FROM table_name_29 WHERE production = "2002-2005"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 7031, 5451, 584, 4280, 28027, 6, 999, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 5790, 116, 8, 999, 47, 4407, 18, 22594, 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, 5790, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 999, 3274, 96, 24898, 18, 22594, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many remittances in 2010 for nigeria?
CREATE TABLE table_2941963_1 ( remittances_2010 VARCHAR, country VARCHAR )
SELECT remittances_2010 FROM table_2941963_1 WHERE country = "Nigeria"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4240, 2294, 3891, 834, 536, 41, 3, 60, 1538, 17, 663, 7, 834, 14926, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 149, 186, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 60, 1538, 17, 663, 7, 834, 14926, 21680, 953, 834, 357, 4240, 2294, 3891, 834, 536, 549, 17444, 427, 684, 3274, 96, 567, 4424, 23, 9, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Which Year(s) of Manufacture has a Quantity larger than 60, and a Number(s) of 7001 7165?
CREATE TABLE table_78837 ( "Class" text, "Number(s)" text, "Quantity" real, "Year(s) of Manufacture" text, "Type" text )
SELECT "Year(s) of Manufacture" FROM table_78837 WHERE "Quantity" > '60' AND "Number(s)" = '7001–7165'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3940, 927, 4118, 41, 96, 21486, 121, 1499, 6, 96, 567, 5937, 49, 599, 7, 61, 121, 1499, 6, 96, 5991, 288, 485, 121, 490, 6, 96, 476, 2741, 599, 7, 61, 13, 1140, 76, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 476, 2741, 599, 7, 61, 13, 1140, 76, 8717, 1462, 121, 21680, 953, 834, 3940, 927, 4118, 549, 17444, 427, 96, 5991, 288, 485, 121, 2490, 3, 31, 3328, 31, 3430, 96, 567, 5937, 49, 599, 7, 61, 121, 3274, 3, 3...
For those employees who did not have any job in the past, show me about the distribution of hire_date and the sum of manager_id bin hire_date by time in a bar chart, and rank from high to low by the y axis.
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) )
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(MANAGER_ID) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 301, 5618, 8015, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3, 13733, 26418, 834, 24604, 12200, 134, 3, 4331, 4059, 599, 2445, 201, 3, 16034, 16359, 834, 5911, 5596, 3, 4331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 180, 6122, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 4486, 262, 5244, 5017, 476, 5080, 834, 4309, 3388, 41, 23143, 14196, 262, 5244, 5017, 476, 5080, 834, 4309,...
where is a good arabic restaurant in mountain view ?
CREATE TABLE geographic ( city_name varchar, county varchar, region varchar ) CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar )
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 20929, 41, 690, 834, 4350, 3, 4331, 4059, 6, 5435, 3, 4331, 4059, 6, 1719, 3, 4331, 4059, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 2062, 41, 3, 23, 26, 16, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1128, 5, 1840, 834, 5525, 1152, 6, 2062, 5, 4350, 21680, 1128, 6, 2062, 549, 17444, 427, 1128, 5, 6726, 834, 4350, 3274, 3, 31, 11231, 9, 77, 903, 31, 3430, 2062, 5, 12437, 834, 6137, 3274, 3, 31, 2551, 15979, 3...
What is the lowest population for the neighborhood with the color blue that commenced its construction before 1987?
CREATE TABLE table_name_20 (population INTEGER, colour VARCHAR, construction_commenced VARCHAR)
SELECT MIN(population) FROM table_name_20 WHERE colour = "blue" AND construction_commenced < 1987
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1755, 41, 9791, 7830, 3, 21342, 17966, 6, 3243, 584, 4280, 28027, 6, 1449, 834, 28916, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7402, 2074,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 9791, 7830, 61, 21680, 953, 834, 4350, 834, 1755, 549, 17444, 427, 3243, 3274, 96, 7060, 15, 121, 3430, 1449, 834, 28916, 3, 2, 12701, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
what was the name of the lab test patient 035-4312 first had in their current hospital visit?
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 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 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 vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-4312' AND patient.hospitaldischargetime IS NULL)) ORDER BY lab.labresulttime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 50, 9824, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 7690, 4350, 1499, 6, 50, 1999, 7, 83, 17, 381, 6, 50, 1999, 7, 83, 17, 715, 97, 3, 61, 3, 32102, 32103, 32102, 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, 7690, 5, 9339, 4350, 21680, 7690, 549, 17444, 427, 7690, 5, 10061, 15129, 21545, 23, 26, 3388, 41, 23143, 14196, 1868, 5, 10061, 15129, 21545, 23, 26, 21680, 1868, 549, 17444, 427, 1868, 5, 10061, 15878, 3734, 21545, ...
provide the number of patients whose marital status is widowed and lab test name is albumin, urine?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.label = "Albumin, Urine"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?
CREATE TABLE table_43908 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Crowd" real, "Box Score" text, "Report" text )
SELECT "Score" FROM table_43908 WHERE "Away team" = 'gold coast blaze' AND "Home team" = 'adelaide 36ers'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 591, 3288, 4018, 41, 96, 308, 342, 121, 1499, 6, 96, 19040, 372, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 553, 35, 76, 15, 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, 134, 9022, 121, 21680, 953, 834, 591, 3288, 4018, 549, 17444, 427, 96, 188, 1343, 372, 121, 3274, 3, 31, 14910, 4939, 3, 21020, 31, 3430, 96, 19040, 372, 121, 3274, 3, 31, 15311, 5385, 4475, 277, 31, 1, -100, ...
What are the names and account balances of customers with the letter a in their names. Show the proportion.
CREATE TABLE bank ( branch_ID int, bname varchar(20), no_of_customers int, city varchar(10), state varchar(20) ) CREATE TABLE loan ( loan_ID varchar(3), loan_type varchar(15), cust_ID varchar(3), branch_ID varchar(3), amount int ) CREATE TABLE customer ( cust_ID varchar(3), cust_name varchar(20), acc_type char(1), acc_bal int, no_of_loans int, credit_score int, branch_ID int, state varchar(20) )
SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2137, 41, 6421, 834, 4309, 16, 17, 6, 3, 115, 4350, 3, 4331, 4059, 599, 1755, 201, 150, 834, 858, 834, 25697, 277, 16, 17, 6, 690, 3, 4331, 4059, 599, 16968, 6, 538, 3, 4331, 405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 123, 7, 17, 834, 4350, 6, 3, 6004, 834, 3849, 21680, 884, 549, 17444, 427, 123, 7, 17, 834, 4350, 8729, 9914, 3, 31, 1454, 9, 1454, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8?
CREATE TABLE table_32700 ( "Dance" text, "Best dancer(s)" text, "Highest score" real, "Worst dancer(s)" text, "Lowest score" real )
SELECT MIN("Highest score") FROM table_32700 WHERE "Worst dancer(s)" = 'master p' AND "Best dancer(s)" = 'drew lachey' AND "Lowest score" < '8'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2668, 9295, 41, 96, 308, 663, 121, 1499, 6, 96, 17278, 2595, 52, 599, 7, 61, 121, 1499, 6, 96, 21417, 222, 2604, 121, 490, 6, 96, 518, 127, 7, 17, 2595, 52, 599, 7, 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, 21417, 222, 2604, 8512, 21680, 953, 834, 2668, 9295, 549, 17444, 427, 96, 518, 127, 7, 17, 2595, 52, 599, 7, 61, 121, 3274, 3, 31, 7429, 3, 102, 31, 3430, 96, 17278, 2595, 52, 599, 7, 61, 1...
What is the date of the game at Arrowhead Stadium?
CREATE TABLE table_17848578_1 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_17848578_1 WHERE game_site = "Arrowhead Stadium"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 4608, 4433, 3940, 834, 536, 41, 5522, 584, 4280, 28027, 6, 467, 834, 3585, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 833, 13, 8, 467, 44, 25810...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 21680, 953, 834, 2517, 4608, 4433, 3940, 834, 536, 549, 17444, 427, 467, 834, 3585, 3274, 96, 28150, 2381, 3313, 12750, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by weekday, list total number of employee id from high to low order.
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3248, 41, 301, 5618, 8015, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3, 13733, 26418, 834, 24604, 12200, 134, 3, 4331, 4059, 599, 2445, 201, 3, 16034, 16359, 834, 5911, 5596, 3, 4331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 180, 6122, 599, 6037, 345, 5017, 476, 5080, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 4486, 262, 5244, 5017, 476, 5080, 834, 4309, 3388, 41, 23143, 14196, 262, 5244, 5017, 476, 5080, ...
Which city held the game in Old Trafford before 1907 when the Opposition was sussex?
CREATE TABLE table_name_49 ( city VARCHAR, opposition VARCHAR, year VARCHAR, venue VARCHAR )
SELECT city FROM table_name_49 WHERE year < 1907 AND venue = "old trafford" AND opposition = "sussex"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3647, 41, 690, 584, 4280, 28027, 6, 8263, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 5669, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 690, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 690, 21680, 953, 834, 4350, 834, 3647, 549, 17444, 427, 215, 3, 2, 957, 4560, 3430, 5669, 3274, 96, 1490, 3, 14793, 2590, 121, 3430, 8263, 3274, 96, 7, 302, 7, 994, 121, 1, -100, -100, -100, -100, -100, -100, -100...
What is the smallest draws for Byes less than 4?
CREATE TABLE table_name_80 (draws INTEGER, byes INTEGER)
SELECT MIN(draws) FROM table_name_80 WHERE byes < 4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2079, 41, 19489, 7, 3, 21342, 17966, 6, 57, 15, 7, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 3, 17924, 14924, 21, 938, 15, 7, 705, 145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 19489, 7, 61, 21680, 953, 834, 4350, 834, 2079, 549, 17444, 427, 57, 15, 7, 3, 2, 314, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the frequency mhz for ERP W of 850 watts
CREATE TABLE table_name_44 (frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT frequency_mhz FROM table_name_44 WHERE erp_w = "850 watts"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 30989, 834, 51, 107, 172, 584, 4280, 28027, 6, 3, 49, 102, 834, 210, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 7321, 3, 51, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7321, 834, 51, 107, 172, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 3, 49, 102, 834, 210, 3274, 96, 17246, 3, 11876, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the time of the driver on grid 7?
CREATE TABLE table_name_48 ( time_retired VARCHAR, grid VARCHAR )
SELECT time_retired FROM table_name_48 WHERE grid = 7
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3707, 41, 97, 834, 10682, 1271, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 97, 13, 8, 2535, 30, 8634, 489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 97, 834, 10682, 1271, 21680, 953, 834, 4350, 834, 3707, 549, 17444, 427, 8634, 3274, 489, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Please compare the number of names of parties using a bar chart, and could you order in descending by the total number?
CREATE TABLE county ( County_Id int, County_name text, Population real, Zip_code text ) CREATE TABLE election ( Election_ID int, Counties_Represented text, District int, Delegate text, Party int, First_Elected real, Committee text ) CREATE TABLE party ( Party_ID int, Year real, Party text, Governor text, Lieutenant_Governor text, Comptroller text, Attorney_General text, US_Senate text )
SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY COUNT(T2.Party) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 5435, 41, 1334, 834, 196, 26, 16, 17, 6, 1334, 834, 4350, 1499, 6, 29659, 490, 6, 22296, 834, 4978, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4356, 41, 19488,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13725, 63, 6, 2847, 17161, 599, 382, 4416, 13725, 63, 61, 21680, 4356, 6157, 332, 536, 3, 15355, 3162, 1088, 6157, 332, 357, 9191, 332, 5411, 13725, 63, 3274, 332, 4416, 13725, 63, 834, 4309, 350, 4630, 6...
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by time, sort from low to high by the the average of manager id.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) )
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID)
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10521, 41, 3396, 19846, 11810, 834, 4309, 7908, 1982, 599, 8525, 632, 201, 3396, 19846, 11810, 834, 567, 17683, 3, 4331, 4059, 599, 1458, 201, 283, 15610, 17966, 834, 4309, 7908, 1982, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 71, 17217, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 30085, 834, 567, 17683, 8729, 9914, 3, 31, 1454, 308, 1454, 31, 4674, 30085, 834, 567, 17683, 8729, 9914, ...
A pie chart for returning the number of the lot details of lots that belong to investors with details 'l'?
CREATE TABLE Ref_Transaction_Types ( transaction_type_code VARCHAR(10), transaction_type_description VARCHAR(80) ) CREATE TABLE Transactions_Lots ( transaction_id INTEGER, lot_id INTEGER ) CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) ) CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Investors ( investor_id INTEGER, Investor_details VARCHAR(255) )
SELECT lot_details, COUNT(lot_details) FROM Investors AS T1 JOIN Lots AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = "l" GROUP BY lot_details
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 419, 89, 834, 18474, 4787, 834, 25160, 7, 41, 5878, 834, 6137, 834, 4978, 584, 4280, 28027, 599, 16968, 6, 5878, 834, 6137, 834, 221, 11830, 584, 4280, 28027, 599, 2079, 61, 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, 418, 834, 221, 5756, 7, 6, 2847, 17161, 599, 3171, 834, 221, 5756, 7, 61, 21680, 16873, 7, 6157, 332, 536, 3, 15355, 3162, 14868, 6157, 332, 357, 9191, 332, 5411, 15601, 127, 834, 23, 26, 3274, 332, 4416, 15601, 1...
What sponsor has the head coach Samad Marfavi?
CREATE TABLE table_27383390_2 ( shirt_sponsor VARCHAR, head_coach VARCHAR )
SELECT shirt_sponsor FROM table_27383390_2 WHERE head_coach = "Samad Marfavi"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 3747, 4201, 2394, 834, 357, 41, 8677, 834, 7, 5041, 7, 127, 584, 4280, 28027, 6, 819, 834, 509, 1836, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8677, 834, 7, 5041, 7, 127, 21680, 953, 834, 2555, 3747, 4201, 2394, 834, 357, 549, 17444, 427, 819, 834, 509, 1836, 3274, 96, 134, 9, 11374, 1571, 89, 2960, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?
CREATE TABLE table_name_63 (prince_xml VARCHAR, gecko VARCHAR, webkit VARCHAR)
SELECT prince_xml FROM table_name_63 WHERE gecko = "no" AND webkit = "nightly build"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3891, 41, 12298, 565, 834, 226, 51, 40, 584, 4280, 28027, 6, 873, 2406, 32, 584, 4280, 28027, 6, 765, 9229, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 22277, 834, 226, 51, 40, 21680, 953, 834, 4350, 834, 3891, 549, 17444, 427, 873, 2406, 32, 3274, 96, 29, 32, 121, 3430, 765, 9229, 3274, 96, 7602, 120, 918, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
what's the regionalliga nord with regionalliga west/südwest being fc gütersloh rot-weiß essen
CREATE TABLE table_14242137_11 (regionalliga_nord VARCHAR, regionalliga_west_südwest VARCHAR)
SELECT regionalliga_nord FROM table_14242137_11 WHERE regionalliga_west_südwest = "FC Gütersloh Rot-Weiß Essen"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24978, 4165, 24636, 834, 2596, 41, 18145, 138, 17140, 834, 29, 127, 26, 584, 4280, 28027, 6, 3518, 17140, 834, 12425, 834, 7, 1272, 26, 12425, 584, 4280, 28027, 61, 3, 32102,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3518, 17140, 834, 29, 127, 26, 21680, 953, 834, 24978, 4165, 24636, 834, 2596, 549, 17444, 427, 3518, 17140, 834, 12425, 834, 7, 1272, 26, 12425, 3274, 96, 5390, 29579, 52, 7, 40, 32, 107, 8704, 18, 518, 13867, 1172...
Which team has an Away team of carlton?
CREATE TABLE table_name_58 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_58 WHERE away_team = "carlton"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3449, 41, 5515, 834, 11650, 584, 4280, 28027, 6, 550, 834, 11650, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 372, 65, 46, 71, 1343, 372, 13, 443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 234, 834, 11650, 21680, 953, 834, 4350, 834, 3449, 549, 17444, 427, 550, 834, 11650, 3274, 96, 1720, 7377, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is average age of patients whose marital status is single and admission type is emergency?
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 ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admission_type = "EMERGENCY"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 1635, 9538, 834, 8547, 302, 3274, 96, 134, 2365, 3765, 121, 3430, 14798, 5, 9, 26, 5451, 834, 6137, 3274, 96, 427, 13098, 18464, 1706...
Which location has 140 stores?
CREATE TABLE table_name_29 ( location VARCHAR, stores VARCHAR )
SELECT location FROM table_name_29 WHERE stores = "140"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3166, 41, 1128, 584, 4280, 28027, 6, 3253, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 1128, 65, 11397, 3253, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1128, 21680, 953, 834, 4350, 834, 3166, 549, 17444, 427, 3253, 3274, 96, 22012, 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 medium was used for the sculpture by Ernest Richard Gause?
CREATE TABLE table_20903658_1 (medium VARCHAR, artist VARCHAR)
SELECT medium FROM table_20903658_1 WHERE artist = "Ernest Richard Gause"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1755, 2394, 10402, 927, 834, 536, 41, 5700, 440, 584, 4280, 28027, 6, 2377, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 2768, 47, 261, 21, 8, 10519, 57, 28031, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2768, 21680, 953, 834, 1755, 2394, 10402, 927, 834, 536, 549, 17444, 427, 2377, 3274, 96, 10575, 29, 222, 4117, 2776, 1074, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which Home has a Record of 11–14–4?
CREATE TABLE table_name_50 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_50 WHERE record = "11–14–4"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1752, 41, 5515, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1210, 65, 3, 9, 11392, 13, 850, 104, 2534, 104, 591, 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, 234, 21680, 953, 834, 4350, 834, 1752, 549, 17444, 427, 1368, 3274, 96, 2596, 104, 2534, 104, 20364, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the retail space of the Stony Point Fashion Park Mall?
CREATE TABLE table_57879 ( "Mall name" text, "Location" text, "Retail space Sq. feet/(m\u00b2)" text, "Stores" text, "Year opened" real )
SELECT "Retail space Sq. feet/(m\u00b2)" FROM table_57879 WHERE "Mall name" = 'stony point fashion park'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3940, 4440, 41, 96, 329, 1748, 564, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 1649, 5756, 628, 180, 1824, 5, 1922, 87, 599, 51, 2, 76, 1206, 115, 7318,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5756, 628, 180, 1824, 5, 1922, 87, 599, 51, 2, 76, 1206, 115, 7318, 121, 21680, 953, 834, 755, 3940, 4440, 549, 17444, 427, 96, 329, 1748, 564, 121, 3274, 3, 31, 4411, 63, 500, 2934, 2447, 31, 1, -100,...
What is the average decimal with a 110010 binary and a glyph greater than 2?
CREATE TABLE table_58949 ( "Binary" real, "Octal" real, "Decimal" real, "Hexadecimal" real, "Glyph" real )
SELECT AVG("Decimal") FROM table_58949 WHERE "Binary" = '110010' AND "Glyph" > '2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 755, 3914, 3647, 41, 96, 279, 77, 1208, 121, 490, 6, 96, 667, 75, 1947, 121, 490, 6, 96, 2962, 75, 23, 1982, 121, 490, 6, 96, 566, 994, 9, 24223, 1982, 121, 490, 6, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 2962, 75, 23, 1982, 8512, 21680, 953, 834, 755, 3914, 3647, 549, 17444, 427, 96, 279, 77, 1208, 121, 3274, 3, 31, 536, 2915, 1714, 31, 3430, 96, 517, 120, 102, 107, 121, 2490, 3, 31, 357, 31...
Name the most pick # for overall of 204
CREATE TABLE table_14583 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT MAX("Pick #") FROM table_14583 WHERE "Overall" = '204'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20987, 4591, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 345, 3142, 1713, 121, 490, 6, 96, 23847, 1748, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 121, 345, 3142, 1713, 8512, 21680, 953, 834, 20987, 4591, 549, 17444, 427, 96, 23847, 1748, 121, 3274, 3, 31, 26363, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Calculate the number of patients with a hematology lab test category who have diagnoses icd9 code e9530.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "E9530" AND lab."CATEGORY" = "Hematology"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
What's the score on 17/03/1956?
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_59 WHERE date = "17/03/1956"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3390, 41, 7, 9022, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 2604, 30, 1003, 31064, 2294, 4834, 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, 2604, 21680, 953, 834, 4350, 834, 3390, 549, 17444, 427, 833, 3274, 96, 2517, 31064, 2294, 4834, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Tell me the date for new orleans saints
CREATE TABLE table_name_22 ( date VARCHAR, opponent VARCHAR )
SELECT date FROM table_name_22 WHERE opponent = "new orleans saints"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 833, 584, 4280, 28027, 6, 15264, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 8779, 140, 8, 833, 21, 126, 42, 109, 3247, 15528, 7, 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, 2884, 549, 17444, 427, 15264, 3274, 96, 5534, 42, 109, 3247, 15528, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is Round, when Record is '4-1'?
CREATE TABLE table_47484 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text )
SELECT "Round" FROM table_47484 WHERE "Record" = '4-1'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4177, 3707, 591, 41, 96, 1649, 7, 535, 1499, 6, 96, 1649, 7621, 121, 1499, 6, 96, 667, 102, 9977, 121, 1499, 6, 96, 23351, 107, 32, 26, 121, 1499, 6, 96, 427, 2169, 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, 448, 32, 1106, 121, 21680, 953, 834, 4177, 3707, 591, 549, 17444, 427, 96, 1649, 7621, 121, 3274, 3, 31, 591, 2292, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
what is average age of patients whose gender is m and age is greater than or equal to 24?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.age >= "24"
[ 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, 71, 17217, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 122, 3868, 3274, 96, 329, 121, 3430, 14798, 5, 545, 2490, 2423, 96, 2266, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What was the Runner-up with Ohio as the National Champion in Tucson, AZ?
CREATE TABLE table_name_53 (runner_up VARCHAR, national_champion VARCHAR, location VARCHAR)
SELECT runner_up FROM table_name_53 WHERE national_champion = "ohio" AND location = "tucson, az"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4867, 41, 10806, 834, 413, 584, 4280, 28027, 6, 1157, 834, 17788, 12364, 584, 4280, 28027, 6, 1128, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 10806, 834, 413, 21680, 953, 834, 4350, 834, 4867, 549, 17444, 427, 1157, 834, 17788, 12364, 3274, 96, 32, 107, 23, 32, 121, 3430, 1128, 3274, 96, 17, 76, 75, 739, 6, 3, 9, 172, 121, 1, -100, -100, -100, -100...
how many patients whose year of death is less than or equal to 2165 and lab test name is albumin?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2165.0" AND lab.label = "Albumin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 7690, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 7690, 5, 8399, 51, 834, 23, 26, 549, 17444,...
What is the most gold where silver is 0?
CREATE TABLE table_name_42 ( gold INTEGER, silver INTEGER )
SELECT MAX(gold) FROM table_name_42 WHERE silver < 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4165, 41, 2045, 3, 21342, 17966, 6, 4294, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 167, 2045, 213, 4294, 19, 3, 632, 58, 1, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 14910, 61, 21680, 953, 834, 4350, 834, 4165, 549, 17444, 427, 4294, 3, 2, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance?
CREATE TABLE table_36559 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT AVG("Week") FROM table_36559 WHERE "Opponent" = 'philadelphia eagles' AND "Attendance" < '31,066'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 10402, 3390, 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, 490...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 121, 518, 10266, 8512, 21680, 953, 834, 10402, 3390, 549, 17444, 427, 96, 667, 102, 9977, 121, 3274, 3, 31, 18118, 15311, 11692, 9, 3, 15, 9, 3537, 7, 31, 3430, 96, 188, 17, 324, 26, 663, 121, 3,...
What was the average week of a game with a result of l 10-7 attended by 37,500?
CREATE TABLE table_name_4 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT AVG(week) FROM table_name_4 WHERE result = "l 10-7" AND attendance < 37 OFFSET 500
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 591, 41, 8041, 3, 21342, 17966, 6, 741, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 1348, 471, 13, 3, 9, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8041, 61, 21680, 953, 834, 4350, 834, 591, 549, 17444, 427, 741, 3274, 96, 40, 335, 6832, 121, 3430, 11364, 3, 2, 6862, 3, 15316, 20788, 2899, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What Loss had an Attendance of 17,675?
CREATE TABLE table_name_35 ( loss VARCHAR, attendance VARCHAR )
SELECT loss FROM table_name_35 WHERE attendance = "17,675"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 1453, 584, 4280, 28027, 6, 11364, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 3144, 7, 141, 46, 22497, 663, 13, 12864, 3708, 755, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1453, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 11364, 3274, 96, 2517, 6, 3708, 17395, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many wins for the team with points less than 6 and a 350cc class?
CREATE TABLE table_43306 ( "Year" real, "Class" text, "Team" text, "Points" real, "Rank" text, "Wins" real )
SELECT "Wins" FROM table_43306 WHERE "Points" < '6' AND "Class" = '350cc'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4906, 1458, 948, 41, 96, 476, 2741, 121, 490, 6, 96, 21486, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 22512, 7, 121, 490, 6, 96, 22557, 121, 1499, 6, 96, 18455, 7, 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, 18455, 7, 121, 21680, 953, 834, 4906, 1458, 948, 549, 17444, 427, 96, 22512, 7, 121, 3, 2, 3, 31, 948, 31, 3430, 96, 21486, 121, 3274, 3, 31, 16975, 75, 75, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
How many goals did he score with under 26 appearances for werder bremen?
CREATE TABLE table_name_87 (goals VARCHAR, apps VARCHAR, club VARCHAR)
SELECT COUNT(goals) FROM table_name_87 WHERE apps < 26 AND club = "werder bremen"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4225, 41, 839, 5405, 584, 4280, 28027, 6, 4050, 584, 4280, 28027, 6, 1886, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1766, 410, 3, 88, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 839, 5405, 61, 21680, 953, 834, 4350, 834, 4225, 549, 17444, 427, 4050, 3, 2, 2208, 3430, 1886, 3274, 96, 3321, 588, 3, 1999, 904, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the Enrollment for the Coyotes Founded in 1891?
CREATE TABLE table_name_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR)
SELECT COUNT(enrollment) FROM table_name_34 WHERE founded = 1891 AND team_nickname = "coyotes"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 35, 4046, 297, 584, 4280, 28027, 6, 5710, 584, 4280, 28027, 6, 372, 834, 11191, 4350, 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, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 35, 4046, 297, 61, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 5710, 3274, 507, 4729, 3430, 372, 834, 11191, 4350, 3274, 96, 509, 63, 32, 1422, 121, 1, -100, -100, -100, -100, -100, -100, -1...
what is the box score when the home team is melbourne tigers?
CREATE TABLE table_name_3 ( Box VARCHAR, home_team VARCHAR )
SELECT Box AS score FROM table_name_3 WHERE home_team = "melbourne tigers"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 5179, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 1367, 2604, 116, 8, 234, 372, 19, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5179, 6157, 2604, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 234, 834, 11650, 3274, 96, 2341, 26255, 3, 2880, 277, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What score has a year later than 1974, with hawthorn as the champion?
CREATE TABLE table_name_31 ( score VARCHAR, year VARCHAR, champion VARCHAR )
SELECT score FROM table_name_31 WHERE year > 1974 AND champion = "hawthorn"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 2604, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 6, 6336, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 2604, 65, 3, 9, 215, 865, 145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 215, 2490, 17184, 3430, 6336, 3274, 96, 1024, 210, 17, 6293, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what's the 4 digit collection code of sample 3763?
CREATE TABLE resultsdata15 ( sample_pk number, commod text, commtype text, lab text, pestcode text, testclass text, concen number, lod number, conunit text, confmethod text, confmethod2 text, annotate text, quantitate text, mean text, extract text, determin text ) CREATE TABLE sampledata15 ( sample_pk number, state text, year text, month text, day text, site text, commod text, source_id text, variety text, origin text, country text, disttype text, commtype text, claim text, quantity number, growst text, packst text, distst text )
SELECT site FROM sampledata15 WHERE sample_pk = 3763
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 772, 6757, 1808, 41, 3106, 834, 102, 157, 381, 6, 3, 287, 7360, 1499, 6, 3, 287, 51, 6137, 1499, 6, 7690, 1499, 6, 6256, 4978, 1499, 6, 794, 4057, 1499, 6, 3, 11620, 29, 381, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 353, 21680, 3106, 6757, 1808, 549, 17444, 427, 3106, 834, 102, 157, 3274, 6862, 3891, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
how many games during the season were attended by at least 50,000 people ?
CREATE TABLE table_203_405 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number )
SELECT COUNT(*) FROM table_203_405 WHERE "attendance" >= 50000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 591, 3076, 41, 3, 23, 26, 381, 6, 96, 8041, 121, 381, 6, 96, 5522, 121, 1499, 6, 96, 32, 102, 9977, 121, 1499, 6, 96, 60, 7, 83, 17, 121, 1499, 6, 96, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 23330, 834, 591, 3076, 549, 17444, 427, 96, 15116, 663, 121, 2490, 2423, 943, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
When shaun maloney is the player what is the lowest p?
CREATE TABLE table_18254488_2 ( p INTEGER, player VARCHAR )
SELECT MIN(p) FROM table_18254488_2 WHERE player = "Shaun Maloney"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2606, 1828, 3628, 4060, 834, 357, 41, 3, 102, 3, 21342, 17966, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 366, 6660, 9, 202, 1460, 782, 63, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 102, 61, 21680, 953, 834, 2606, 1828, 3628, 4060, 834, 357, 549, 17444, 427, 1959, 3274, 96, 10499, 9, 202, 2148, 782, 63, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
how many number of patients had the item id 51255?
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51255"
[ 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 the highest SP+FS that has 131.02 Points, and a Rank larger than 15?
CREATE TABLE table_name_84 ( fs VARCHAR, sp INTEGER, points VARCHAR, rank VARCHAR )
SELECT MAX(sp) + fs FROM table_name_84 WHERE points = 131.02 AND rank > 15
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4608, 41, 3, 89, 7, 584, 4280, 28027, 6, 3, 7, 102, 3, 21342, 17966, 6, 979, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 7, 102, 61, 1768, 3, 89, 7, 21680, 953, 834, 4350, 834, 4608, 549, 17444, 427, 979, 3274, 3, 22048, 5, 4305, 3430, 11003, 2490, 627, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the number of married black/cape verdean patients?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.ethnicity = "BLACK/CAPE VERDEAN"
[ 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, 549, 17444, 427, 14798, 5, 1635, 9538, 834, 8547, 302, 3274, 96, 13845, 25858, 308, 121, 3430, 14798, 5, 15, 189, 2532, 485, ...
What town has the Welford Road Stadium?
CREATE TABLE table_name_3 (city_town VARCHAR, stadium VARCHAR)
SELECT city_town FROM table_name_3 WHERE stadium = "welford road"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 6726, 834, 3540, 584, 4280, 28027, 6, 14939, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 1511, 65, 8, 101, 40, 2590, 2409, 12750, 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, 690, 834, 3540, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 14939, 3274, 96, 9803, 2590, 1373, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the save of the game where moran (1-2) lost?
CREATE TABLE table_name_79 (save VARCHAR, loss VARCHAR)
SELECT save FROM table_name_79 WHERE loss = "moran (1-2)"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4440, 41, 7, 9, 162, 584, 4280, 28027, 6, 1453, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1097, 13, 8, 467, 213, 8030, 152, 41, 9596, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1097, 21680, 953, 834, 4350, 834, 4440, 549, 17444, 427, 1453, 3274, 96, 2528, 152, 41, 9596, 61, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is High Assists, when Team is '@ Milwaukee'?
CREATE TABLE table_name_83 ( high_assists VARCHAR, team VARCHAR )
SELECT high_assists FROM table_name_83 WHERE team = "@ milwaukee"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4591, 41, 306, 834, 6500, 7, 17, 7, 584, 4280, 28027, 6, 372, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 1592, 282, 7, 343, 7, 6, 116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 306, 834, 6500, 7, 17, 7, 21680, 953, 834, 4350, 834, 4591, 549, 17444, 427, 372, 3274, 96, 1741, 15533, 210, 402, 1050, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
what is average days of hospital stay of patients whose admission year is greater than or equal to 2178?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.admityear >= "2178"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 18730, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 1778, 16587, 5, 1135, 7, 834, 21545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 20466, 17, 1201, 2490, 2423, 96, 2658, 3940, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Player has Years for Grizzlies of 2002-2003?
CREATE TABLE table_name_48 ( player VARCHAR, years_for_grizzlies VARCHAR )
SELECT player FROM table_name_48 WHERE years_for_grizzlies = "2002-2003"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3707, 41, 1959, 584, 4280, 28027, 6, 203, 834, 1161, 834, 3496, 5271, 4664, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 12387, 65, 13825, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1959, 21680, 953, 834, 4350, 834, 3707, 549, 17444, 427, 203, 834, 1161, 834, 3496, 5271, 4664, 3274, 96, 24898, 18, 23948, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What's the home team's score at lake oval?
CREATE TABLE table_32649 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team score" FROM table_32649 WHERE "Venue" = 'lake oval'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 2688, 3647, 41, 96, 19040, 372, 121, 1499, 6, 96, 19040, 372, 2604, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 188, 1343, 372, 2604, 121, 1499, 6, 96, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 19040, 372, 2604, 121, 21680, 953, 834, 519, 2688, 3647, 549, 17444, 427, 96, 553, 35, 76, 15, 121, 3274, 3, 31, 16948, 17986, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...