NATURAL_LANG
stringlengths
0
446
SCHEMA
stringlengths
27
2.21k
SQL
stringlengths
18
453
input_ids
list
attention_mask
list
labels
list
Show the location with most number of train stations.
CREATE TABLE station (LOCATION VARCHAR)
SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 2478, 41, 5017, 254, 8015, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 3111, 8, 1128, 28, 167, 381, 13, 2412, 6991, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 301, 5618, 8015, 21680, 2478, 350, 4630, 6880, 272, 476, 301, 5618, 8015, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average pots of Alfa Romeo v12 after 1983?
CREATE TABLE table_name_44 ( pts INTEGER, engine VARCHAR, year VARCHAR )
SELECT AVG(pts) FROM table_name_44 WHERE engine = "alfa romeo v12" AND year > 1983
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 3, 102, 17, 7, 3, 21342, 17966, 6, 1948, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 815, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 102, 17, 7, 61, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 1948, 3274, 96, 138, 89, 9, 3, 11956, 32, 3, 208, 2122, 121, 3430, 215, 2490, 15041, 1, -100, -100, -100, -100, -100, -100, -100, ...
For the top 3 days with the largest max gust speeds, please bin the date into the of the week and then compute the average of mean humidity to visualize a bar chart.
CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_sea_level_pre...
SELECT date, AVG(mean_humidity) FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1969, 41, 833, 3, 3463, 4, 382, 6, 9858, 834, 21010, 15, 834, 89, 3, 21342, 17966, 6, 1243, 834, 21010, 15, 834, 89, 3, 21342, 17966, 6, 3519, 834, 21010, 15, 834, 89, 3, 21342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 833, 6, 71, 17217, 599, 526, 152, 834, 4884, 23, 26, 485, 61, 21680, 1969, 4674, 11300, 272, 476, 9858, 834, 17198, 834, 9993, 834, 7656, 309, 25067, 8729, 12604, 220, 1, -100, -100, -100, -100, -100, -100, -100, -1...
What is the Mach with Vehicle Flight # m2-f2 #8 and an Altitude (meters) greater than 13,716?
CREATE TABLE table_name_88 (mach INTEGER, vehicle_flight__number VARCHAR, altitude__meters_ VARCHAR)
SELECT SUM(mach) FROM table_name_88 WHERE vehicle_flight__number = "m2-f2 #8" AND altitude__meters_ > 13 OFFSET 716
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4060, 41, 8276, 3, 21342, 17966, 6, 1689, 834, 89, 2242, 834, 834, 5525, 1152, 584, 4280, 28027, 6, 491, 6592, 834, 834, 4401, 7, 834, 584, 4280, 28027, 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, 180, 6122, 599, 8276, 61, 21680, 953, 834, 4350, 834, 4060, 549, 17444, 427, 1689, 834, 89, 2242, 834, 834, 5525, 1152, 3274, 96, 51, 7412, 89, 357, 1713, 927, 121, 3430, 491, 6592, 834, 834, 4401, 7, 834, 2490, 1...
give me the number of patients whose ethnicity is black/cape verdean and diagnoses icd9 code is 1536?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND diagnoses.icd9_code = "1536"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks".
CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR)
SELECT Nominee FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4183, 41, 4168, 8695, 15, 584, 4280, 28027, 6, 3677, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 3111, 8, 4183, 21077, 28, 2760, 96, 279, 32, 115, 377, 13526, 121, 42, 96, 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, 465, 8695, 15, 21680, 4183, 549, 17444, 427, 3677, 3274, 96, 382, 106, 63, 3677, 121, 4674, 3677, 3274, 96, 254, 109, 15990, 660, 5206, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the percentage increase in spending on international tourism from 2011 to 2012 of the country that spent $85.9 billion in 2011?
CREATE TABLE table_29789_3 ( _percentage_change VARCHAR, international_tourism_expenditure_2011 VARCHAR )
SELECT _percentage_change FROM table_29789_3 WHERE international_tourism_expenditure_2011 = "$85.9 billion"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4327, 3914, 834, 519, 41, 3, 834, 883, 3728, 545, 834, 13073, 584, 4280, 28027, 6, 1038, 834, 30712, 834, 994, 3208, 26, 23, 2693, 834, 13907, 584, 4280, 28027, 3, 61,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 834, 883, 3728, 545, 834, 13073, 21680, 953, 834, 357, 4327, 3914, 834, 519, 549, 17444, 427, 1038, 834, 30712, 834, 994, 3208, 26, 23, 2693, 834, 13907, 3274, 96, 3229, 4433, 5, 1298, 2108, 121, 1, -100, -100, ...
how many times does friendly appear in the competition column ?
CREATE TABLE table_204_346 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "result" text, "competition" text, "scored" number )
SELECT COUNT(*) FROM table_204_346 WHERE "competition" = 'friendly'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 519, 4448, 41, 3, 23, 26, 381, 6, 96, 4663, 121, 381, 6, 96, 5522, 121, 1499, 6, 96, 15098, 121, 1499, 6, 96, 32, 102, 9977, 121, 1499, 6, 96, 60, 7, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26363, 834, 519, 4448, 549, 17444, 427, 96, 287, 4995, 4749, 121, 3274, 3, 31, 4905, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is minimum age of patients whose marital status is single and year of birth is greater than 1837?
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 prescription...
SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "1837"
[ 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, 3, 17684, 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, 26, 32, 115, 834, 1201, 2490, 96, 2606, 4118, 121, 1, -1...
What position has 217 as the pick?
CREATE TABLE table_34905 ( "Round" real, "Pick" real, "Name" text, "Position" text, "College" text )
SELECT "Position" FROM table_34905 WHERE "Pick" = '217'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 519, 3647, 3076, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 345, 3142, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 345, 32, 7, 4749, 121, 1499, 6, 96, 9939, 7883, 121, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 96, 345, 32, 7, 4749, 121, 21680, 953, 834, 519, 3647, 3076, 549, 17444, 427, 96, 345, 3142, 121, 3274, 3, 31, 357, 2517, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List the name, origin and owner of each program.
CREATE TABLE broadcast_share ( channel_id number, program_id number, date text, share_in_percent number ) CREATE TABLE program ( program_id number, name text, origin text, launch number, owner text ) CREATE TABLE broadcast ( channel_id number, program_id number, time_of...
SELECT name, origin, owner FROM program
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6878, 834, 12484, 41, 4245, 834, 23, 26, 381, 6, 478, 834, 23, 26, 381, 6, 833, 1499, 6, 698, 834, 77, 834, 883, 3728, 381, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 6, 5233, 6, 2527, 21680, 478, 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, -100, ...
Find the number of the first name of students who are living in the Smith Hall.
CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LNa...
SELECT Fname, COUNT(Fname) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' GROUP BY Fname
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6200, 51, 41, 103, 52, 6983, 3, 21342, 17966, 6, 103, 52, 51, 834, 4350, 584, 4280, 28027, 599, 1755, 201, 1236, 834, 4010, 9, 6726, 3, 21342, 17966, 6, 7285, 584, 4280, 28027, 14296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 377, 4350, 6, 2847, 17161, 599, 371, 4350, 61, 21680, 6341, 6157, 332, 536, 3, 15355, 3162, 3306, 7, 834, 77, 6157, 332, 357, 9191, 332, 5411, 7, 17, 76, 23, 26, 3274, 332, 4416, 7, 17, 76, 23, 26, 3, 15355, 3...
When Grey's Anatomy aired at 9:30 what aired at 9:00?
CREATE TABLE table_42062 ( "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text )
SELECT "9:00" FROM table_42062 WHERE "9:30" = 'grey''s anatomy'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 21899, 4056, 41, 96, 15692, 121, 1499, 6, 96, 927, 10, 1458, 121, 1499, 6, 96, 1298, 10, 1206, 121, 1499, 6, 96, 21150, 121, 1499, 6, 96, 536, 25713, 121, 1499, 3, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 1298, 10, 1206, 121, 21680, 953, 834, 21899, 4056, 549, 17444, 427, 96, 21150, 121, 3274, 3, 31, 3584, 63, 31, 31, 7, 27782, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many bronzes have a total less than 11, with 11 as the rank, and a gold less than 1?
CREATE TABLE table_name_81 ( bronze VARCHAR, gold VARCHAR, total VARCHAR, rank VARCHAR )
SELECT COUNT(bronze) FROM table_name_81 WHERE total < "11" AND rank = "11" AND gold < 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4959, 41, 13467, 584, 4280, 28027, 6, 2045, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 13711, 776, 61, 21680, 953, 834, 4350, 834, 4959, 549, 17444, 427, 792, 3, 2, 96, 2596, 121, 3430, 11003, 3274, 96, 2596, 121, 3430, 2045, 3, 2, 209, 1, -100, -100, -100, -100, -100, -100, -100, ...
What is the match report for July 10, 2005?
CREATE TABLE table_name_91 (match_report VARCHAR, date VARCHAR)
SELECT match_report FROM table_name_91 WHERE date = "july 10, 2005"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4729, 41, 19515, 834, 60, 1493, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1588, 934, 21, 1718, 10372, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1588, 834, 60, 1493, 21680, 953, 834, 4350, 834, 4729, 549, 17444, 427, 833, 3274, 96, 2047, 120, 10372, 3105, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Can you tell me the English Translation that has the Articles of 24?
CREATE TABLE table_name_44 (english_translation VARCHAR, articles VARCHAR)
SELECT english_translation FROM table_name_44 WHERE articles = 24
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 4606, 40, 1273, 834, 7031, 6105, 584, 4280, 28027, 6, 2984, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 1072, 25, 817, 140, 8, 1566, 24527, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22269, 834, 7031, 6105, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 2984, 3274, 997, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
provide the number of patients whose diagnoses icd9 code is 30390 and lab test category is blood gas?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
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 = "30390" AND lab."CATEGORY" = "Blood Gas"
[ 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, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?
CREATE TABLE table_name_44 ( game INTEGER, record VARCHAR, november VARCHAR )
SELECT MAX(game) FROM table_name_44 WHERE record = "11-11-1" AND november > 29
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 467, 3, 21342, 17966, 6, 1368, 584, 4280, 28027, 6, 3, 5326, 18247, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2030, 467, 381,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4800, 4, 599, 7261, 61, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 1368, 3274, 96, 2596, 9169, 2292, 121, 3430, 3, 5326, 18247, 2490, 2838, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Visualize the title and and the average star rating of the movie using a bar chart, list bars in desc order please.
CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date )
SELECT title, AVG(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY title DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10743, 41, 3, 51, 4309, 16, 17, 6, 2233, 1499, 6, 215, 16, 17, 6, 2090, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 4543, 49, 41, 3, 52, 4309, 16, 17, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2233, 6, 71, 17217, 599, 3624, 7, 61, 21680, 21662, 6157, 332, 536, 3, 15355, 3162, 10743, 6157, 332, 357, 9191, 332, 5411, 51, 4309, 3274, 332, 4416, 51, 4309, 350, 4630, 6880, 272, 476, 2233, 4674, 11300, 272, 476...
count the number of patients whose diagnoses short title is pneumococcal pneumonia and drug route is po/ng?
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, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Pneumococcal pneumonia" AND prescriptions.route = "PO/NG"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 3...
counts and give the number of incumbents .
CREATE TABLE table_203_817 ( id number, "state" text, "incumbent" text, "party" text, "result" text, "candidates" text )
SELECT COUNT(*) FROM table_203_817
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 927, 2517, 41, 3, 23, 26, 381, 6, 96, 5540, 121, 1499, 6, 96, 77, 75, 5937, 295, 121, 1499, 6, 96, 8071, 121, 1499, 6, 96, 60, 7, 83, 17, 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, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 23330, 834, 927, 2517, 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...
What was the type of game with a 1:6 result?
CREATE TABLE table_name_5 ( type_of_game VARCHAR, results¹ VARCHAR )
SELECT type_of_game FROM table_name_5 WHERE results¹ = "1:6"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 686, 834, 858, 834, 7261, 584, 4280, 28027, 6, 772, 536, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 686, 13, 467, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 686, 834, 858, 834, 7261, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 772, 536, 3274, 96, 536, 10, 948, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Which area has a Name of william colenso college?
CREATE TABLE table_name_73 (area VARCHAR, name VARCHAR)
SELECT area FROM table_name_73 WHERE name = "william colenso college"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4552, 41, 498, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 616, 65, 3, 9, 5570, 13, 56, 23, 265, 7632, 35, 7, 32, 1900...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 616, 21680, 953, 834, 4350, 834, 4552, 549, 17444, 427, 564, 3274, 96, 8894, 23, 265, 7632, 35, 7, 32, 1900, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
in how many games was the crowd above 20,000 people ?
CREATE TABLE table_203_371 ( id number, "round" number, "opponent" text, "result" text, "bro." number, "opp." number, "date" text, "venue" text, "crowd" number, "position" text )
SELECT COUNT(*) FROM table_203_371 WHERE "crowd" > 20000
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 23330, 834, 4118, 536, 41, 3, 23, 26, 381, 6, 96, 7775, 121, 381, 6, 96, 32, 102, 9977, 121, 1499, 6, 96, 60, 7, 83, 17, 121, 1499, 6, 96, 5702, 535, 381, 6, 96, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 953, 834, 23330, 834, 4118, 536, 549, 17444, 427, 96, 75, 3623, 26, 121, 2490, 460, 2313, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the name of the venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier?
CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_21 WHERE score = "5–0" AND competition = "2007 caribbean cup qualifier"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 15098, 584, 4280, 28027, 6, 2604, 584, 4280, 28027, 6, 2259, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 5669, 116, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5669, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 2604, 3274, 96, 755, 104, 632, 121, 3430, 2259, 3274, 96, 20615, 212, 6520, 346, 152, 4119, 10597, 49, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Playoffs has a Division of 2 and a Regular Season of 4th, southeast?
CREATE TABLE table_40054 ( "Year" real, "Division" text, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text )
SELECT "Playoffs" FROM table_40054 WHERE "Division" = '2' AND "Regular Season" = '4th, southeast'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 5548, 5062, 41, 96, 476, 2741, 121, 490, 6, 96, 308, 23, 6610, 121, 1499, 6, 96, 2796, 9, 5398, 121, 1499, 6, 96, 17748, 4885, 7960, 121, 1499, 6, 96, 15800, 1647, 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, 15800, 1647, 7, 121, 21680, 953, 834, 5548, 5062, 549, 17444, 427, 96, 308, 23, 6610, 121, 3274, 3, 31, 357, 31, 3430, 96, 17748, 4885, 7960, 121, 3274, 3, 31, 591, 189, 6, 26181, 31, 1, -100, -100, -100, -1...
get me the number of home health care discharged patients who were diagnosed with other abnormal blood chemistry.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND diagnoses.long_title = "Other abnormal blood chemistry"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What date was the away team, team Gillingham?
CREATE TABLE table_51038 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Date" FROM table_51038 WHERE "Away team" = 'gillingham'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 25926, 3747, 41, 96, 382, 23, 15, 150, 121, 1499, 6, 96, 19040, 372, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 188, 1343, 372, 121, 1499, 6, 96, 308, 342, 121, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 308, 342, 121, 21680, 953, 834, 25926, 3747, 549, 17444, 427, 96, 188, 1343, 372, 121, 3274, 3, 31, 122, 1092, 14799, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team?
CREATE TABLE table_29361707_2 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT winning_driver FROM table_29361707_2 WHERE pole_position = "Roberval Andrade" AND fastest_lap = "Felipe Giaffone" AND winning_team = "RVR Corinthians Motorsport"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3166, 3420, 2517, 4560, 834, 357, 41, 8163, 834, 13739, 52, 584, 4280, 28027, 6, 3447, 834, 11650, 584, 4280, 28027, 6, 11148, 834, 4718, 584, 4280, 28027, 6, 10391, 834, 847...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3447, 834, 13739, 52, 21680, 953, 834, 3166, 3420, 2517, 4560, 834, 357, 549, 17444, 427, 11148, 834, 4718, 3274, 96, 24372, 49, 2165, 275, 15530, 121, 3430, 10391, 834, 8478, 3274, 96, 17160, 23, 855, 3156, 4127, 782...
Which membership card has more than 5 members?
CREATE TABLE member ( Membership_card VARCHAR )
SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1144, 41, 19428, 834, 6043, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 4073, 4757, 895, 65, 72, 145, 305, 724, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 19428, 834, 6043, 21680, 1144, 350, 4630, 6880, 272, 476, 19428, 834, 6043, 454, 6968, 2365, 2847, 17161, 599, 1935, 61, 2490, 305, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Gross MW of 220, and a Unit of kakrapar 1 involves what operation start?
CREATE TABLE table_name_44 ( operation_start VARCHAR, gross_mw VARCHAR, unit VARCHAR )
SELECT operation_start FROM table_name_44 WHERE gross_mw = "220" AND unit = "kakrapar 1"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3628, 41, 2986, 834, 10208, 584, 4280, 28027, 6, 8690, 834, 51, 210, 584, 4280, 28027, 6, 1745, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 17969, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 2986, 834, 10208, 21680, 953, 834, 4350, 834, 3628, 549, 17444, 427, 8690, 834, 51, 210, 3274, 96, 357, 1755, 121, 3430, 1745, 3274, 96, 1258, 9669, 1893, 209, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many seats does the party of others have with a change of -1 and more than 0% votes?
CREATE TABLE table_name_9 ( seats INTEGER, _percentage_votes VARCHAR, change VARCHAR, party VARCHAR )
SELECT SUM(seats) FROM table_name_9 WHERE change = -1 AND party = "others" AND _percentage_votes > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 1298, 41, 6116, 3, 21342, 17966, 6, 3, 834, 883, 3728, 545, 834, 1621, 1422, 584, 4280, 28027, 6, 483, 584, 4280, 28027, 6, 1088, 584, 4280, 28027, 3, 61, 3, 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, 180, 6122, 599, 7, 1544, 7, 61, 21680, 953, 834, 4350, 834, 1298, 549, 17444, 427, 483, 3274, 3, 2292, 3430, 1088, 3274, 96, 9269, 7, 121, 3430, 3, 834, 883, 3728, 545, 834, 1621, 1422, 2490, 3, 632, 1, -100, -1...
How many wins did the player have in the Formula BMW World Final?
CREATE TABLE table_21430 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "FLaps" real, "Podiums" real, "Points" real, "Position" text )
SELECT "Wins" FROM table_21430 WHERE "Series" = 'Formula BMW World Final'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 27357, 1458, 41, 96, 134, 15, 9, 739, 121, 490, 6, 96, 12106, 7, 121, 1499, 6, 96, 18699, 121, 1499, 6, 96, 448, 9, 2319, 121, 490, 6, 96, 18455, 7, 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, 96, 18455, 7, 121, 21680, 953, 834, 27357, 1458, 549, 17444, 427, 96, 12106, 7, 121, 3274, 3, 31, 3809, 4115, 9, 8764, 1150, 6514, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the sum of manager_id bin hire_date by weekday in a bar chart, rank by the y-axis in descending.
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(...
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(MANAGER_ID) DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1652, 41, 262, 5244, 5017, 476, 5080, 834, 4309, 7908, 1982, 599, 11071, 632, 201, 30085, 834, 567, 17683, 3, 4331, 4059, 599, 1755, 201, 301, 12510, 834, 567, 17683, 3, 4331, 4059, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 454, 14132, 834, 308, 6048, 6, 180, 6122, 599, 9312, 188, 17966, 834, 4309, 61, 21680, 1652, 549, 17444, 427, 180, 4090, 24721, 272, 7969, 518, 23394, 3, 25129, 3430, 586, 2313, 3430, 3, 6657, 329, 16994, 9215, 834, ...
what is procedure icd9 code and procedure long title of subject name mary davis?
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, ...
SELECT procedures.icd9_code, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Mary Davis"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7690, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 2118, 23, 26, 1499, 6, 5059, 715, 1499, 6, 5692, 1499, 6, 701, 834, 15129, 1499, 6, 3783, 1499, 6, 5798, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 4293, 5, 447, 26, 1298, 834, 4978, 6, 4293, 5, 2961, 834, 21869, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444, 427, 14798...
What is the constructor on the team with 8 rounds and a chassis of 156 158 1512?
CREATE TABLE table_name_54 ( constructor VARCHAR, rounds VARCHAR, chassis VARCHAR )
SELECT constructor FROM table_name_54 WHERE rounds = "8" AND chassis = "156 158 1512"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 6774, 127, 584, 4280, 28027, 6, 14419, 584, 4280, 28027, 6, 22836, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 6774, 127, 30, 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, 0, 0, 0, 0...
[ 3, 23143, 14196, 6774, 127, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 14419, 3274, 96, 927, 121, 3430, 22836, 3274, 96, 25463, 3, 26556, 627, 2122, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the measurement where the estimated function % is less than 20?
CREATE TABLE table_name_21 (measurement VARCHAR, estimated_function__percentage INTEGER)
SELECT measurement FROM table_name_21 WHERE estimated_function__percentage < 20
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2658, 41, 31038, 297, 584, 4280, 28027, 6, 5861, 834, 23993, 834, 834, 883, 3728, 545, 3, 21342, 17966, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 9753, 213, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9753, 21680, 953, 834, 4350, 834, 2658, 549, 17444, 427, 5861, 834, 23993, 834, 834, 883, 3728, 545, 3, 2, 460, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?
CREATE TABLE table_name_37 ( total VARCHAR, player VARCHAR, fa_cup VARCHAR )
SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4118, 41, 792, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 6, 3, 89, 9, 834, 4658, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 792, 7, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 4118, 549, 17444, 427, 1959, 3274, 96, 9, 107, 11374, 21114, 776, 15, 29037, 121, 3430, 3, 89, 9, 834, 4658, 2490, 3, 632, 1, -100, -100, -100, -100, -1...
What is the year won by Australia with a to par bigger than 16?
CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT COUNT(year_won) FROM table_name_22 WHERE country = "australia" AND to_par > 16
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 1201, 834, 210, 106, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 12, 834, 1893, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 215...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1201, 834, 210, 106, 61, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 684, 3274, 96, 2064, 8792, 23, 9, 121, 3430, 12, 834, 1893, 2490, 898, 1, -100, -100, -100, -100, -100, -100, -100, -100,...
Name the average popular votes in years after 1990 with percentage of 4.94%
CREATE TABLE table_name_35 ( popular_votes INTEGER, percentage VARCHAR, year VARCHAR )
SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2469, 41, 1012, 834, 1621, 1422, 3, 21342, 17966, 6, 5294, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 5570, 8, 1348, 1012, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 17217, 599, 27302, 834, 1621, 1422, 61, 21680, 953, 834, 4350, 834, 2469, 549, 17444, 427, 5294, 3274, 96, 27336, 5988, 121, 3430, 215, 2490, 5541, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What languages were spoken in the film 'FireDancer'?
CREATE TABLE table_17155250_1 ( language_s_ VARCHAR, film_title_used_in_nomination VARCHAR )
SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2517, 20896, 11434, 834, 536, 41, 1612, 834, 7, 834, 584, 4280, 28027, 6, 814, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 584, 4280, 28027, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 1612, 834, 7, 834, 21680, 953, 834, 2517, 20896, 11434, 834, 536, 549, 17444, 427, 814, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 3274, 96, 3183, 60, 308, 663, 52, 121, 1, -100, -100, -100, -100, -100, ...
What is the maximum rebounds when there are 0.9 steals and fewer than 1.4 turnovers?
CREATE TABLE table_name_69 (rebounds INTEGER, steals VARCHAR, turnovers VARCHAR)
SELECT MAX(rebounds) FROM table_name_69 WHERE steals = 0.9 AND turnovers < 1.4
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3951, 41, 23768, 3, 21342, 17966, 6, 11332, 7, 584, 4280, 28027, 6, 17847, 7, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 2411, 3, 23768, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4800, 4, 599, 23768, 61, 21680, 953, 834, 4350, 834, 3951, 549, 17444, 427, 11332, 7, 3274, 3, 23758, 3430, 17847, 7, 3, 2, 3, 14912, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many male and female assistant professors do we have?
CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE faculty ( facid number, lname text, fname text, rank text, sex text, phone number, room text, building text ) C...
SELECT sex, COUNT(*) FROM faculty WHERE rank = "AsstProf" GROUP BY sex
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1236, 41, 21341, 23, 26, 381, 6, 3, 40, 4350, 1499, 6, 3, 89, 4350, 1499, 6, 1246, 381, 6, 3, 7, 994, 1499, 6, 779, 381, 6, 8815, 381, 6, 690, 834, 4978, 1499, 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, 3, 7, 994, 6, 2847, 17161, 599, 1935, 61, 21680, 6040, 549, 17444, 427, 11003, 3274, 96, 188, 7, 7, 17, 23057, 121, 350, 4630, 6880, 272, 476, 3, 7, 994, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of dead patients who were suffering from rash as their primary disease.
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 ) C...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "RASH"
[ 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, 549, 17444, 427, 14798, 5, 994, 2388, 15, 834, 89, 5430, 3274, 96, 536, 121, 3430, 14798, 5, 25930, 4844, 159, 3274, 96, 44...
provide the number of patients whose religion is protestant quaker and diagnoses long title is hydronephrosis?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.religion = "PROTESTANT QUAKER" AND diagnoses.long_title = "Hydronephrosis"
[ 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, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
What school location had an enrollment of 12400?
CREATE TABLE table_1457 ( "Institution" text, "Location" text, "Nickname" text, "Enrollment" real, "Established" real )
SELECT "Location" FROM table_1457 WHERE "Enrollment" = '12400'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2534, 3436, 41, 96, 1570, 17448, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 567, 3142, 4350, 121, 1499, 6, 96, 8532, 4046, 297, 121, 490, 6, 96, 14997, 15403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 434, 32, 75, 257, 121, 21680, 953, 834, 2534, 3436, 549, 17444, 427, 96, 8532, 4046, 297, 121, 3274, 3, 31, 2122, 5548, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who won at the Circuit of lakeside international raceway?
CREATE TABLE table_name_89 ( winner VARCHAR, circuit VARCHAR )
SELECT winner FROM table_name_89 WHERE circuit = "lakeside international raceway"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3914, 41, 4668, 584, 4280, 28027, 6, 4558, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 751, 44, 8, 17007, 13, 6957, 1583, 1038, 1964, 1343, 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, 4668, 21680, 953, 834, 4350, 834, 3914, 549, 17444, 427, 4558, 3274, 96, 16948, 1583, 1038, 1964, 1343, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What is the Release Date when sSpec Number is sl5xl, sl657, sl6by, sl6jp?
CREATE TABLE table_9213 ( "Model Number" text, "sSpec Number" text, "Frequency" text, "L2 Cache" text, "Mult" text, "Voltage" text, "Socket" text, "Release Date" text, "Part Number(s)" text )
SELECT "Release Date" FROM table_9213 WHERE "sSpec Number" = 'sl5xl, sl657, sl6by, sl6jp'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4508, 2368, 41, 96, 24663, 7720, 121, 1499, 6, 96, 7, 7727, 7720, 121, 1499, 6, 96, 371, 60, 835, 11298, 121, 1499, 6, 96, 434, 357, 205, 4933, 121, 1499, 6, 96, 329, 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, 1649, 40, 14608, 7678, 121, 21680, 953, 834, 4508, 2368, 549, 17444, 427, 96, 7, 7727, 7720, 121, 3274, 3, 31, 7, 40, 755, 226, 40, 6, 3, 7, 40, 948, 3436, 6, 3, 7, 40, 948, 969, 6, 3, 7, 40, 948, 354,...
What was the result and score of the game on February 22?
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_5 WHERE date = "february 22"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 755, 41, 60, 7, 83, 17, 584, 4280, 28027, 6, 833, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 741, 11, 2604, 13, 8, 467, 30, 2083, 1630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 741, 21680, 953, 834, 4350, 834, 755, 549, 17444, 427, 833, 3274, 96, 89, 15, 9052, 1208, 1630, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?
CREATE TABLE table_67499 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text )
SELECT "Class Pos." FROM table_67499 WHERE "Year" > '1997' AND "Team" = 'corvette racing' AND "Class" = 'gt1' AND "Laps" = '327'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3708, 591, 3264, 41, 96, 476, 2741, 121, 490, 6, 96, 18699, 121, 1499, 6, 96, 3881, 18, 20982, 52, 7, 121, 1499, 6, 96, 21486, 121, 1499, 6, 96, 3612, 102, 7, 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, 96, 21486, 13995, 535, 21680, 953, 834, 3708, 591, 3264, 549, 17444, 427, 96, 476, 2741, 121, 2490, 3, 31, 2294, 4327, 31, 3430, 96, 18699, 121, 3274, 3, 31, 5715, 19828, 8191, 31, 3430, 96, 21486, 121, 3274, 3, 3...
Which rapid has a distance in km smaller than 14.2, and a Station of k my ji?
CREATE TABLE table_69381 ( "Station" text, "Japanese" text, "Distance (km)" real, "Rapid" text, "Location" text )
SELECT "Rapid" FROM table_69381 WHERE "Distance (km)" < '14.2' AND "Station" = 'kōmyōji'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3951, 3747, 536, 41, 96, 134, 6821, 121, 1499, 6, 96, 683, 9750, 1496, 15, 121, 1499, 6, 96, 308, 23, 8389, 41, 5848, 61, 121, 490, 6, 96, 448, 9, 12417, 121, 1499, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 96, 448, 9, 12417, 121, 21680, 953, 834, 3951, 3747, 536, 549, 17444, 427, 96, 308, 23, 8389, 41, 5848, 61, 121, 3, 2, 3, 31, 536, 19765, 31, 3430, 96, 134, 6821, 121, 3274, 3, 31, 157, 2, 2258, 2, 354, 23, ...
what is the score when the country is united states and the player is george fazio?
CREATE TABLE table_name_4 ( score VARCHAR, country VARCHAR, player VARCHAR )
SELECT score FROM table_name_4 WHERE country = "united states" AND player = "george fazio"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 591, 41, 2604, 584, 4280, 28027, 6, 684, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 2604, 116, 8, 684, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2604, 21680, 953, 834, 4350, 834, 591, 549, 17444, 427, 684, 3274, 96, 15129, 15, 26, 2315, 121, 3430, 1959, 3274, 96, 397, 1677, 15, 3, 89, 9, 702, 32, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100...
What is the system called that is named ELKJS?
CREATE TABLE table_77524 ( "Name" text, "Actual version" text, "System" text, "Platform" text, "License" text )
SELECT "System" FROM table_77524 WHERE "Name" = 'elkjs'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 940, 3072, 2266, 41, 96, 23954, 121, 1499, 6, 96, 23312, 3471, 988, 121, 1499, 6, 96, 14342, 121, 1499, 6, 96, 10146, 2032, 121, 1499, 6, 96, 434, 447, 5167, 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, 0...
[ 3, 23143, 14196, 96, 14342, 121, 21680, 953, 834, 940, 3072, 2266, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 15, 40, 157, 354, 7, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
when did patient 006-10390 enter the hospital for the first time this year?
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 cost ( costid num...
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-10390' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3362, 4267, 32, 4370, 41, 3362, 4267, 32, 26, 1294, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2912, 381, 6, 3, 7, 9, 32, 357, 381, 6, 842, 2206, 381, 6, 14114, 257, 381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1868, 5, 31386, 20466, 17, 715, 21680, 1868, 549, 17444, 427, 1868, 5, 202, 1495, 12417, 3274, 3, 31, 1206, 948, 18, 17864, 2394, 31, 3430, 309, 6048, 382, 15382, 599, 10061, 5, 31386, 20466, 17, 715, 6, 3, 31, 10...
How many populations are listed for mladenovo?
CREATE TABLE table_27840 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text )
SELECT COUNT("Population (2011)") FROM table_27840 WHERE "Settlement" = 'Mladenovo'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 26311, 41, 96, 17175, 17, 3335, 121, 1499, 6, 96, 254, 63, 52, 173, 2176, 5570, 2502, 5570, 7, 121, 1499, 6, 96, 25160, 121, 1499, 6, 96, 27773, 7830, 25163, 121, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 27773, 7830, 25163, 8512, 21680, 953, 834, 2555, 26311, 549, 17444, 427, 96, 17175, 17, 3335, 121, 3274, 3, 31, 329, 9514, 32, 1621, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For those employees who do not work in departments with managers that have ids between 100 and 200, find last_name and salary , and visualize them by a bar chart, and I want to order by the total number from high to low.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), ...
SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 6266, 41, 4083, 517, 9215, 834, 4309, 7908, 1982, 599, 11116, 632, 201, 4083, 517, 9215, 834, 567, 17683, 3, 4331, 4059, 599, 1828, 61, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 301, 12510, 834, 567, 17683, 6, 180, 4090, 24721, 21680, 1652, 549, 17444, 427, 4486, 3396, 19846, 11810, 834, 4309, 3388, 41, 23143, 14196, 3396, 19846, 11810, 834, 4309, 21680, 10521, 549, 17444, 427, 283, 15610, 17966,...
What is the average rank of the record on 2007-06-21 with a mark less than 91.29?
CREATE TABLE table_name_31 (rank INTEGER, date VARCHAR, mark VARCHAR)
SELECT AVG(rank) FROM table_name_31 WHERE date = "2007-06-21" AND mark < 91.29
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3341, 41, 6254, 3, 21342, 17966, 6, 833, 584, 4280, 28027, 6, 3946, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 1348, 11003, 13, 8, 1368, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6254, 61, 21680, 953, 834, 4350, 834, 3341, 549, 17444, 427, 833, 3274, 96, 20615, 18, 5176, 16539, 121, 3430, 3946, 3, 2, 3, 4729, 5, 3166, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what was the overall pick number for rich dobbert?
CREATE TABLE table_44263 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT AVG("Overall") FROM table_44263 WHERE "Name" = 'rich dobbert'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3628, 357, 3891, 41, 96, 448, 32, 1106, 121, 490, 6, 96, 345, 3142, 121, 490, 6, 96, 23847, 1748, 121, 490, 6, 96, 23954, 121, 1499, 6, 96, 345, 32, 7, 4749, 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, 71, 17217, 599, 121, 23847, 1748, 8512, 21680, 953, 834, 3628, 357, 3891, 549, 17444, 427, 96, 23954, 121, 3274, 3, 31, 3723, 103, 115, 7041, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Create a bar chart showing how many location across location, could you rank from high to low by the names?
CREATE TABLE party ( Party_ID int, Party_Theme text, Location text, First_year text, Last_year text, Number_of_hosts int ) CREATE TABLE party_host ( Party_ID int, Host_ID int, Is_Main_in_Charge bool ) CREATE TABLE host ( Host_ID int, Name text, Nationality text, Age...
SELECT Location, COUNT(Location) FROM party GROUP BY Location ORDER BY Location DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 1088, 41, 3450, 834, 4309, 16, 17, 6, 3450, 834, 634, 526, 1499, 6, 10450, 1499, 6, 1485, 834, 1201, 1499, 6, 2506, 834, 1201, 1499, 6, 7720, 834, 858, 834, 12675, 7, 16, 17, 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, 10450, 6, 2847, 17161, 599, 434, 32, 75, 257, 61, 21680, 1088, 350, 4630, 6880, 272, 476, 10450, 4674, 11300, 272, 476, 10450, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
For each payment method, how many payments were made. Show bar chart.
CREATE TABLE Staff ( staff_id INTEGER, staff_address_id INTEGER, nickname VARCHAR(80), first_name VARCHAR(80), middle_name VARCHAR(80), last_name VARCHAR(80), date_of_birth DATETIME, date_joined_staff DATETIME, date_left_staff DATETIME ) CREATE TABLE Customer_Payments ( customer...
SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 10071, 41, 871, 834, 23, 26, 3, 21342, 17966, 6, 871, 834, 9, 26, 12039, 834, 23, 26, 3, 21342, 17966, 6, 24649, 584, 4280, 28027, 599, 2079, 201, 166, 834, 4350, 584, 4280, 28027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 1942, 834, 23152, 834, 4978, 6, 2847, 17161, 599, 1935, 61, 21680, 7327, 834, 19702, 4128, 350, 4630, 6880, 272, 476, 1942, 834, 23152, 834, 4978, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
what is the number of patients whose insurance is medicaid and primary disease is coronary artery disease\coronary artery bypass graft /sda?
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 ( ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT /SDA"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4293, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 447, 26, 1298, 834, 4978, 1499, 6, 710, 834, 21869, 1499, 6, 307, 834, 21869, 1499, 3, 61, 3, 32102, 32103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 29441, 3274, 96, 15789, 6146, 121, 3430, 14798, 5, 25930, 4844, 159, 3274, 96, 5911, 13044, 24721, ...
what is maximum age of patients whose insurance is government and year of death is less than 2148?
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 t...
SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Government" AND demographic.dod_year < "2148.0"
[ 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, 4800, 4, 599, 1778, 16587, 5, 545, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 29441, 3274, 96, 27304, 297, 121, 3430, 14798, 5, 26, 32, 26, 834, 1201, 3, 2, 96, 27357, 27376, 121, 1, -100, -100, -100, -100, -100...
What is the name of the manager of the Atlético Baleares?
CREATE TABLE table_name_54 (manager VARCHAR, current_club VARCHAR)
SELECT manager FROM table_name_54 WHERE current_club = "atlético baleares"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 5062, 41, 24185, 584, 4280, 28027, 6, 750, 834, 13442, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 564, 13, 8, 2743, 13, 8, 486, 40, 17678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2743, 21680, 953, 834, 4350, 834, 5062, 549, 17444, 427, 750, 834, 13442, 3274, 96, 144, 40, 17678, 509, 6561, 15, 355, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the score in the game where the record was 10-9-7?
CREATE TABLE table_name_94 ( score VARCHAR, record VARCHAR )
SELECT score FROM table_name_94 WHERE record = "10-9-7"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 2604, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 2604, 16, 8, 467, 213, 8, 1368, 47, 335, 7141, 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, 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, 4240, 549, 17444, 427, 1368, 3274, 96, 1714, 7141, 6832, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Current singles ranking for the player named Mantas Bugaili kis?
CREATE TABLE table_10295819_1 ( current_singles_ranking VARCHAR, player VARCHAR )
SELECT current_singles_ranking FROM table_10295819_1 WHERE player = "Mantas Bugailiškis"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1714, 3166, 3449, 2294, 834, 536, 41, 750, 834, 7, 53, 965, 834, 6254, 53, 584, 4280, 28027, 6, 1959, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 750, 834, 7, 53, 965, 834, 6254, 53, 21680, 953, 834, 1714, 3166, 3449, 2294, 834, 536, 549, 17444, 427, 1959, 3274, 96, 7296, 17, 9, 7, 16381, 9, 173, 23, 2, 2168, 7, 121, 1, -100, -100, -100, -100, -100, -100,...
how many patients are there who are ethnically hispanic or latino?
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 ) C...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC OR LATINO"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 549, 17444, 427, 14798, 5, 15, 189, 2532, 485, 3274, 96, 7094, 21215, 18830, 4674, 301, 21580, 7400, 121, 1, -100, -100, -100...
Which player is pick 64?
CREATE TABLE table_2897457_4 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_2897457_4 WHERE pick__number = 64
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 3914, 4581, 3436, 834, 591, 41, 20846, 584, 4280, 28027, 6, 1432, 834, 834, 5525, 1152, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1959, 19, 1432, 6687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1959, 21680, 953, 834, 357, 3914, 4581, 3436, 834, 591, 549, 17444, 427, 1432, 834, 834, 5525, 1152, 3274, 6687, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who directed episode number 23 in the season?
CREATE TABLE table_27832075_2 ( directed_by VARCHAR, episode__number VARCHAR )
SELECT directed_by FROM table_27832075_2 WHERE episode__number = "23"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2555, 4591, 1755, 3072, 834, 357, 41, 6640, 834, 969, 584, 4280, 28027, 6, 5640, 834, 834, 5525, 1152, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 6640, 564...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6640, 834, 969, 21680, 953, 834, 2555, 4591, 1755, 3072, 834, 357, 549, 17444, 427, 5640, 834, 834, 5525, 1152, 3274, 96, 2773, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Who is performing in the back stage position for the song 'Badlands'? Show the first name and the last name.
CREATE TABLE songs ( songid number, title text ) CREATE TABLE performance ( songid number, bandmate number, stageposition text ) CREATE TABLE albums ( aid number, title text, year number, label text, type text ) CREATE TABLE instruments ( songid number, bandmateid numb...
SELECT T2.firstname, T2.lastname FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.title = "Badlands" AND T1.stageposition = "back"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 2324, 23, 26, 381, 6, 2233, 1499, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 821, 41, 2324, 23, 26, 381, 6, 1928, 5058, 381, 6, 1726, 4718, 1499, 3, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 14672, 4350, 6, 332, 4416, 5064, 4350, 21680, 821, 6157, 332, 536, 3, 15355, 3162, 1928, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 3605, 6157, 332, 519, 9191, 3...
Who was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin?
CREATE TABLE table_name_3 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_3 WHERE laps < 53 AND grid > 17 AND time_retired = "spin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 519, 41, 13739, 52, 584, 4280, 28027, 6, 97, 834, 10682, 1271, 584, 4280, 28027, 6, 14941, 7, 584, 4280, 28027, 6, 8634, 584, 4280, 28027, 61, 3, 32102, 32103, 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, 2535, 21680, 953, 834, 4350, 834, 519, 549, 17444, 427, 14941, 7, 3, 2, 12210, 3430, 8634, 2490, 1003, 3430, 97, 834, 10682, 1271, 3274, 96, 7, 3180, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
CREATE TABLE medicine_enzyme_interaction ( interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR ) CREATE TABLE enzyme ( id VARCHAR, name VARCHAR ) CREATE TABLE medicine ( id VARCHAR, name VARCHAR )
SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 4404, 834, 35, 4164, 526, 834, 3870, 4787, 41, 6565, 834, 6137, 584, 4280, 28027, 6, 4404, 834, 23, 26, 584, 4280, 28027, 6, 15735, 834, 23, 26, 584, 4280, 28027, 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, 332, 5411, 3870, 4787, 834, 6137, 21680, 4404, 834, 35, 4164, 526, 834, 3870, 4787, 6157, 332, 536, 3, 15355, 3162, 4404, 6157, 332, 357, 9191, 332, 5411, 29368, 834, 23, 26, 3274, 332, 4416, 23, 26, 3, 15355, 3162,...
Who took office under the government of Matthew E. Welsh?
CREATE TABLE table_name_8 ( took_office VARCHAR, governor VARCHAR )
SELECT took_office FROM table_name_8 WHERE governor = "matthew e. welsh"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 927, 41, 808, 834, 19632, 584, 4280, 28027, 6, 13062, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 808, 828, 365, 8, 789, 13, 9771, 262, 5, 2298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 808, 834, 19632, 21680, 953, 834, 4350, 834, 927, 549, 17444, 427, 13062, 3274, 96, 3357, 532, 210, 3, 15, 5, 62, 40, 7, 107, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What is the Venue with the Friendly Competition?
CREATE TABLE table_12283 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Venue" FROM table_12283 WHERE "Competition" = 'friendly'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 20889, 4591, 41, 96, 308, 342, 121, 1499, 6, 96, 553, 35, 76, 15, 121, 1499, 6, 96, 134, 9022, 121, 1499, 6, 96, 20119, 121, 1499, 6, 96, 5890, 4995, 4749, 121, 1499, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 96, 553, 35, 76, 15, 121, 21680, 953, 834, 20889, 4591, 549, 17444, 427, 96, 5890, 4995, 4749, 121, 3274, 3, 31, 4905, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Who was the constitutional ticket when william karlin was the socialist ticket?
CREATE TABLE table_name_95 ( constitutional_ticket VARCHAR, socialist_ticket VARCHAR )
SELECT constitutional_ticket FROM table_name_95 WHERE socialist_ticket = "william karlin"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3301, 41, 18896, 834, 26639, 584, 4280, 28027, 6, 23737, 834, 26639, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 2645, 47, 8, 18896, 4142, 116, 56, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 18896, 834, 26639, 21680, 953, 834, 4350, 834, 3301, 549, 17444, 427, 23737, 834, 26639, 3274, 96, 8894, 23, 265, 3, 4031, 40, 77, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Where is the coed school with state authority, a Decile larger than 6 and 26 enrolled?
CREATE TABLE table_70660 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real )
SELECT "Area" FROM table_70660 WHERE "Authority" = 'state' AND "Decile" > '6' AND "Gender" = 'coed' AND "Roll" = '26'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 2518, 27720, 41, 96, 23954, 121, 1499, 6, 96, 476, 2741, 7, 121, 1499, 6, 96, 517, 3868, 121, 1499, 6, 96, 188, 864, 121, 1499, 6, 96, 23602, 127, 485, 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, 188, 864, 121, 21680, 953, 834, 2518, 27720, 549, 17444, 427, 96, 23602, 127, 485, 121, 3274, 3, 31, 5540, 31, 3430, 96, 2962, 75, 699, 121, 2490, 3, 31, 948, 31, 3430, 96, 517, 3868, 121, 3274, 3, 31, 509, ...
what is the number of patients whose procedure long title is open reduction of fracture with internal fixation, femur and lab test category is blood gas?
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, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Open reduction of fracture with internal fixation, femur" AND lab."CATEGORY" = "Blood Gas"
[ 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, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 3388, 18206...
When 139 is on March 27th to 29th what is August 21st to 22nd?
CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR)
SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 1828, 2577, 3951, 3959, 834, 357, 41, 402, 17198, 834, 2658, 834, 2884, 584, 4280, 28027, 6, 10556, 834, 2555, 834, 3166, 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, 0...
[ 3, 23143, 14196, 14663, 834, 2658, 834, 2884, 21680, 953, 834, 1828, 2577, 3951, 3959, 834, 357, 549, 17444, 427, 10556, 834, 2555, 834, 3166, 3274, 96, 24090, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many third places has a total greater than 2 and a rank less than 2?
CREATE TABLE table_name_23 (third_place VARCHAR, total VARCHAR, rank VARCHAR)
SELECT third_place FROM table_name_23 WHERE total > 2 AND rank < 2
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2773, 41, 14965, 834, 4687, 584, 4280, 28027, 6, 792, 584, 4280, 28027, 6, 11003, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 571, 186, 1025, 1747, 65, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1025, 834, 4687, 21680, 953, 834, 4350, 834, 2773, 549, 17444, 427, 792, 2490, 204, 3430, 11003, 3, 2, 204, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
During which loss was the record 48-50?
CREATE TABLE table_name_45 ( loss VARCHAR, record VARCHAR )
SELECT loss FROM table_name_45 WHERE record = "48-50"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2128, 41, 1453, 584, 4280, 28027, 6, 1368, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 3, 2092, 84, 1453, 47, 8, 1368, 4678, 19431, 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, 1453, 21680, 953, 834, 4350, 834, 2128, 549, 17444, 427, 1368, 3274, 96, 3707, 19431, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute founder, show from high to low by the Name.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7554, 41, 3636, 3, 21342, 17966, 6, 5570, 584, 4280, 28027, 599, 25502, 201, 5312, 3396, 254, 26330, 434, 6, 15248, 3, 21342, 17966, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23954, 6, 332, 5411, 22737, 21680, 7554, 6157, 332, 536, 3, 15355, 3162, 15248, 7, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 22737, 350, 4630, 6880, 272, 476, 3, 19145, 6,...
what is the last city/town/village listed in the table ?
CREATE TABLE table_204_841 ( id number, "no." number, "temple" text, "honzon (main image)" text, "city/town/village" text, "prefecture" text )
SELECT "city/town/village" FROM table_204_841 ORDER BY "no." DESC LIMIT 1
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 26363, 834, 4608, 536, 41, 3, 23, 26, 381, 6, 96, 29, 32, 535, 381, 6, 96, 15076, 109, 121, 1499, 6, 96, 107, 106, 8892, 41, 7484, 1023, 61, 121, 1499, 6, 96, 6726, 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, 6726, 87, 3540, 87, 208, 17614, 121, 21680, 953, 834, 26363, 834, 4608, 536, 4674, 11300, 272, 476, 96, 29, 32, 535, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Where is the team that is managed by richard barnwell from?
CREATE TABLE table_29494 ( "Club" text, "Location" text, "Ground" text, "Manager" text, "Titles" real, "Last title" text )
SELECT "Location" FROM table_29494 WHERE "Manager" = 'Richard Barnwell'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 357, 4240, 4240, 41, 96, 254, 11158, 121, 1499, 6, 96, 434, 32, 75, 257, 121, 1499, 6, 96, 517, 7775, 121, 1499, 6, 96, 27272, 121, 1499, 6, 96, 382, 155, 965, 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, 96, 434, 32, 75, 257, 121, 21680, 953, 834, 357, 4240, 4240, 549, 17444, 427, 96, 27272, 121, 3274, 3, 31, 448, 362, 986, 14267, 2091, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return me all the papers after 2000 in ' University of Michigan ' .
CREATE TABLE keyword ( keyword varchar, kid int ) CREATE TABLE cite ( cited int, citing int ) CREATE TABLE journal ( homepage varchar, jid int, name varchar ) CREATE TABLE domain ( did int, name varchar ) CREATE TABLE writes ( aid int, pid int ) CREATE TABLE publication_...
SELECT publication.title FROM author, organization, publication, writes WHERE organization.name = 'University of Michigan' AND organization.oid = author.oid AND publication.year > 2000 AND writes.aid = author.aid AND writes.pid = publication.pid
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 15693, 41, 15693, 3, 4331, 4059, 6, 4984, 16, 17, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, 17098, 3, 8464, 41, 3, 11675, 16, 17, 6, 3, 17994, 16, 17, 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, 5707, 5, 21869, 21680, 2291, 6, 1470, 6, 5707, 6, 11858, 549, 17444, 427, 1470, 5, 4350, 3274, 3, 31, 8313, 485, 13, 5847, 31, 3430, 1470, 5, 32, 23, 26, 3274, 2291, 5, 32, 23, 26, 3430, 5707, 5, 1201, 2490, 2...
What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21?
CREATE TABLE table_name_68 (dance VARCHAR, worst_dancer_s_ VARCHAR, worst_score VARCHAR)
SELECT dance FROM table_name_68 WHERE worst_dancer_s_ = "priscilla presley" AND worst_score = "21"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3651, 41, 26, 663, 584, 4280, 28027, 6, 6025, 834, 3768, 2110, 834, 7, 834, 584, 4280, 28027, 6, 6025, 834, 7, 9022, 584, 4280, 28027, 61, 3, 32102, 32103, 32101...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2595, 21680, 953, 834, 4350, 834, 3651, 549, 17444, 427, 6025, 834, 3768, 2110, 834, 7, 834, 3274, 96, 2246, 7, 75, 1092, 9, 554, 8887, 121, 3430, 6025, 834, 7, 9022, 3274, 96, 2658, 121, 1, -100, -100, -100, -100...
What is the 100 year when 500 year is 153?
CREATE TABLE table_73268 ( "Gas name" text, "Chemical formula" text, "Lifetime (years)" text, "20-yr" text, "100-yr" text, "500-yr" text )
SELECT "100-yr" FROM table_73268 WHERE "500-yr" = '153'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4552, 357, 3651, 41, 96, 517, 9, 7, 564, 121, 1499, 6, 96, 254, 6015, 1950, 5403, 121, 1499, 6, 96, 16427, 715, 41, 1201, 7, 61, 121, 1499, 6, 96, 1755, 18, 63, 52, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2915, 18, 63, 52, 121, 21680, 953, 834, 4552, 357, 3651, 549, 17444, 427, 96, 2560, 18, 63, 52, 121, 3274, 3, 31, 27025, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
What was the attendance of the Hawthorn as the away team?
CREATE TABLE table_4904 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT SUM("Crowd") FROM table_4904 WHERE "Away team" = 'hawthorn'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3647, 6348, 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, 180, 6122, 599, 121, 254, 3623, 26, 8512, 21680, 953, 834, 3647, 6348, 549, 17444, 427, 96, 188, 1343, 372, 121, 3274, 3, 31, 1024, 210, 17, 6293, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What's the lowest total when there's less than 16 bronze and more than 6 silver?
CREATE TABLE table_name_13 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2368, 41, 235, 1947, 3, 21342, 17966, 6, 13467, 584, 4280, 28027, 6, 4294, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 363, 31, 7, 8, 7402, 792, 116, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 17684, 599, 235, 1947, 61, 21680, 953, 834, 4350, 834, 2368, 549, 17444, 427, 13467, 3, 2, 898, 3430, 4294, 2490, 431, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is Date, when Status is Second Test?
CREATE TABLE table_name_34 ( date VARCHAR, status VARCHAR )
SELECT date FROM table_name_34 WHERE status = "second test"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3710, 41, 833, 584, 4280, 28027, 6, 2637, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 7678, 6, 116, 19318, 19, 5212, 2300, 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, 833, 21680, 953, 834, 4350, 834, 3710, 549, 17444, 427, 2637, 3274, 96, 12091, 794, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what are the ways to consume lidocaine hcl 1%?
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 medication ( med...
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'lidocaine hcl 1%'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 23886, 41, 23886, 23, 26, 381, 6, 1868, 15129, 21545, 23, 26, 381, 6, 2672, 4350, 1499, 6, 23886, 4350, 1499, 6, 23886, 715, 97, 3, 61, 3, 32102, 32103, 32102, 205, 4386, 6048, 332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 7757, 5, 20300, 20466, 29, 21680, 7757, 549, 17444, 427, 7757, 5, 26, 13534, 4350, 3274, 3, 31, 40, 23, 7171, 7043, 3, 107, 75, 40, 3, 4704, 31, 1, -100, -100, -100, -100, -100, -100, -100, ...
Find All_Road and School_ID , and visualize them by a bar chart, could you show y-axis in desc order please?
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT All_Road, School_ID FROM basketball_match ORDER BY School_ID DESC
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 3819, 41, 1121, 834, 4309, 16, 17, 6, 1121, 1499, 6, 10450, 1499, 6, 3, 20100, 490, 6, 71, 89, 8027, 23, 257, 1499, 6, 695, 4046, 297, 490, 6, 7486, 4350, 1499, 6, 14542, 834, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 432, 834, 448, 32, 9, 26, 6, 1121, 834, 4309, 21680, 8498, 834, 19515, 4674, 11300, 272, 476, 1121, 834, 4309, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many patients whose marital status is married and diagnoses long title is surgical operation with implant of artificial internal device causing abnormal patient reaction, or later complication,without mention of misadventure at time of operation?
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,...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "MARRIED" AND diagnoses.long_title = "Surgical operation with implant of artificial internal device causing abnormal patient reaction, or later complication,w...
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 18730, 7, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 18730, 7, 5, 8399, 51, 834, 23, 26, 5...
Which party was joseph t. johnson in?
CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_86 WHERE incumbent = "joseph t. johnson"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 3840, 41, 8071, 584, 4280, 28027, 6, 28406, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 1088, 47, 7406, 15, 102, 107, 3, 17, 5, 3, 27341, 739, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1088, 21680, 953, 834, 4350, 834, 3840, 549, 17444, 427, 28406, 3274, 96, 1927, 7, 15, 102, 107, 3, 17, 5, 3, 27341, 739, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the 1994 finish in the event that had a 1998 finish of 2R?
CREATE TABLE table_name_22 ( Id VARCHAR )
SELECT 1994 FROM table_name_22 WHERE 1998 = "2r"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2884, 41, 27, 26, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 19, 8, 7520, 1992, 16, 8, 605, 24, 141, 3, 9, 6260, 1992, 13, 204, 448, 58, 1,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7520, 21680, 953, 834, 4350, 834, 2884, 549, 17444, 427, 6260, 3274, 96, 357, 52, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
How many countries earned 177.2 points?
CREATE TABLE table_69 ( "Rank" real, "Member Association" text, "Points" text, "Group stage" real, "Play-off" real, "AFC Cup" real )
SELECT COUNT("Member Association") FROM table_69 WHERE "Points" = '177.2'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 3951, 41, 96, 22557, 121, 490, 6, 96, 329, 18247, 2125, 121, 1499, 6, 96, 22512, 7, 121, 1499, 6, 96, 27247, 1726, 121, 490, 6, 96, 15800, 18, 1647, 121, 490, 6, 96, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 121, 329, 18247, 2125, 8512, 21680, 953, 834, 3951, 549, 17444, 427, 96, 22512, 7, 121, 3274, 3, 31, 2517, 25791, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the director of the film Gie?
CREATE TABLE table_13719788_1 ( director VARCHAR, film_title_used_in_nomination VARCHAR )
SELECT director FROM table_13719788_1 WHERE film_title_used_in_nomination = "Gie"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 24636, 27181, 4060, 834, 536, 41, 2090, 584, 4280, 28027, 6, 814, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2090, 21680, 953, 834, 24636, 27181, 4060, 834, 536, 549, 17444, 427, 814, 834, 21869, 834, 10064, 834, 77, 834, 29, 32, 14484, 3274, 96, 517, 23, 15, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What was the size of the crowd at the game where Fitzroy was the home team?
CREATE TABLE table_name_94 ( crowd VARCHAR, home_team VARCHAR )
SELECT crowd FROM table_name_94 WHERE home_team = "fitzroy"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4240, 41, 4374, 584, 4280, 28027, 6, 234, 834, 11650, 584, 4280, 28027, 3, 61, 3, 32102, 32103, 32101, 32103, 363, 47, 8, 812, 13, 8, 4374, 44, 8, 467, 213, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4374, 21680, 953, 834, 4350, 834, 4240, 549, 17444, 427, 234, 834, 11650, 3274, 96, 89, 5615, 8170, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Who wrote the episode 'The Gang Gets Extreme: Home Makeover Edition'?
CREATE TABLE table_31054 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
SELECT "Written by" FROM table_31054 WHERE "Title" = 'The Gang Gets Extreme: Home Makeover Edition'
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 19947, 5062, 41, 96, 4168, 5, 16, 939, 121, 490, 6, 96, 4168, 5, 16, 774, 121, 490, 6, 96, 382, 155, 109, 121, 1499, 6, 96, 23620, 15, 26, 57, 121, 1499, 6, 96, 24965...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24965, 324, 57, 121, 21680, 953, 834, 19947, 5062, 549, 17444, 427, 96, 382, 155, 109, 121, 3274, 3, 31, 634, 17423, 1609, 7, 20355, 15, 10, 1210, 1796, 1890, 7504, 31, 1, -100, -100, -100, -100, -100, -100, -...
what is the school that left in 1966?
CREATE TABLE table_name_18 (school VARCHAR, year_left VARCHAR)
SELECT school FROM table_name_18 WHERE year_left = 1966
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 2606, 41, 6646, 584, 4280, 28027, 6, 215, 834, 17068, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 125, 19, 8, 496, 24, 646, 16, 20658, 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, 496, 21680, 953, 834, 4350, 834, 2606, 549, 17444, 427, 215, 834, 17068, 3274, 20658, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which class corresponds to more than 2 points, wins greater than 0, and a year earlier than 1973?
CREATE TABLE table_name_47 (class VARCHAR, wins VARCHAR, points VARCHAR, year VARCHAR)
SELECT class FROM table_name_47 WHERE points > 2 AND year < 1973 AND wins > 0
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 953, 834, 4350, 834, 4177, 41, 4057, 584, 4280, 28027, 6, 9204, 584, 4280, 28027, 6, 979, 584, 4280, 28027, 6, 215, 584, 4280, 28027, 61, 3, 32102, 32103, 32101, 32103, 4073, 853, 1042...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 853, 21680, 953, 834, 4350, 834, 4177, 549, 17444, 427, 979, 2490, 204, 3430, 215, 3, 2, 17107, 3430, 9204, 2490, 3, 632, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many patients with 5012 as the procedure icd9 code survived?
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 ) C...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "5012"
[ 32100, 32103, 32102, 205, 4386, 6048, 332, 17098, 7744, 7, 41, 1426, 834, 23, 26, 1499, 6, 141, 51, 834, 23, 26, 1499, 6, 3, 23, 1071, 21545, 834, 23, 26, 1499, 6, 2672, 834, 6137, 1499, 6, 2672, 1499, 6, 5403, 651, 834, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 14798, 5, 7304, 11827, 834, 23, 26, 61, 21680, 14798, 3388, 18206, 3, 15355, 3162, 4293, 9191, 14798, 5, 8399, 51, 834, 23, 26, 3274, 4293, 5, 8399, 51, 834, 23, 26, 549, 17444,...