instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
sequence
attention_mask
sequence
labels
sequence
Before taking ENSCEN 171 do I need to take any courses ?
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT_RECORDalias0.student_id = 1) AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'ENSCEN' AND COURSE_1.number = 171
[ 8421, 2263, 12964, 6173, 1677, 28369, 466, 314, 761, 284, 1011, 597, 10902, 5633, 46506, 360, 8808, 1268, 4177, 37384, 5188, 62, 15, 13, 10378, 1823, 11, 37384, 5188, 62, 15, 13, 3672, 11, 37384, 5188, 62, 15, 13, 17618, 16034, 1781, 7054, 37384, 5188, 62, 15, 11, 1781, 7054, 37384, 5188, 62, 16, 11, 1781, 62, 3866, 27614, 33411, 37384, 5188, 62, 15, 13, 17319, 62, 312, 796, 1781, 62, 3866, 27614, 13, 3866, 62, 17319, 62, 312, 5357, 5626, 37384, 5188, 62, 15, 13, 17319, 62, 312, 3268, 357, 46506, 49348, 3525, 62, 38827, 12532, 26011, 15, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8421, 2263, 12964, 6173, 1677, 28369, 466, 314, 761, 284, 1011, 597, 10902, 5633, 46506, 360, 8808, 1268, 4177, 37384, 5188, 62, 15, 13, 10378, 1823, 11, 37384, 5188, 62, 15, 13, 3672, 11, 37384, 5188, 62, 15, 13, 17618, 16034, 1781, 7054, 37384, 5188, 62, 15, 11, 1781, 7054, 37384, 5188, 62, 16, 11, 1781, 62, 3866, 27614, 33411, 37384, 5188, 62, 15, 13, 17319, 62, 312, 796, 1781, 62, 3866, 27614, 13, 3866, 62, 17319, 62, 312, 5357, 5626, 37384, 5188, 62, 15, 13, 17319, 62, 312, 3268, 357, 46506, 49348, 3525, 62, 38827, 12532, 26011, 15, 13 ]
Compute how many attributes in each name of the attribute definitions with attribute value 0. Show the result with a bar chart.
SELECT attribute_name, COUNT(attribute_name) FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 GROUP BY attribute_name
[ 7293, 1133, 703, 867, 12608, 287, 1123, 1438, 286, 262, 11688, 17336, 351, 11688, 1988, 657, 13, 5438, 262, 1255, 351, 257, 2318, 8262, 13, 46506, 11688, 62, 3672, 11, 327, 28270, 7, 42348, 62, 3672, 8, 16034, 3460, 4163, 62, 7469, 50101, 7054, 256, 16, 32357, 1268, 44515, 62, 15842, 62, 17699, 62, 29021, 7054, 256, 17, 6177, 256, 16, 13, 42348, 62, 312, 796, 256, 17, 13, 42348, 62, 312, 33411, 256, 17, 13, 42348, 62, 8367, 796, 657, 44441, 11050, 11688, 62, 3672 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 7293, 1133, 703, 867, 12608, 287, 1123, 1438, 286, 262, 11688, 17336, 351, 11688, 1988, 657, 13, 5438, 262, 1255, 351, 257, 2318, 8262, 13, 46506, 11688, 62, 3672, 11, 327, 28270, 7, 42348, 62, 3672, 8, 16034, 3460, 4163, 62, 7469, 50101, 7054, 256, 16, 32357, 1268, 44515, 62, 15842, 62, 17699, 62, 29021, 7054, 256, 17, 6177, 256, 16, 13, 42348, 62, 312, 796, 256, 17, 13, 42348, 62, 312, 33411, 256, 17, 13, 42348, 62, 8367, 796, 657, 44441, 11050, 11688, 62, 3672 ]
What was the result of the game that was attended by 80,886 people?
SELECT "Result" FROM table_58803 WHERE "Attendance" = '80,886'
[ 2061, 373, 262, 1255, 286, 262, 983, 326, 373, 9141, 416, 4019, 11, 44980, 661, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 3365, 43564, 33411, 366, 8086, 437, 590, 1, 796, 705, 1795, 11, 44980, 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 ]
[ 2061, 373, 262, 1255, 286, 262, 983, 326, 373, 9141, 416, 4019, 11, 44980, 661, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 3365, 43564, 33411, 366, 8086, 437, 590, 1, 796, 705, 1795, 11, 44980, 6 ]
show me the morning flights from MEMPHIS to NEW YORK
SELECT DISTINCT flight_id FROM flight WHERE ((from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'MEMPHIS')) AND to_airport IN (SELECT AIRPORT_SERVICEalias1.airport_code FROM airport_service AS AIRPORT_SERVICEalias1 WHERE AIRPORT_SERVICEalias1.city_code IN (SELECT CITYalias1.city_code FROM city AS CITYalias1 WHERE CITYalias1.city_name = 'NEW YORK'))) AND departure_time BETWEEN 0 AND 1200)
[ 12860, 502, 262, 3329, 13956, 422, 35153, 11909, 1797, 284, 12682, 28154, 46506, 360, 8808, 1268, 4177, 5474, 62, 312, 16034, 5474, 33411, 14808, 6738, 62, 958, 634, 3268, 357, 46506, 31600, 15490, 62, 35009, 27389, 26011, 15, 13, 958, 634, 62, 8189, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 26011, 15, 33411, 31600, 15490, 62, 35009, 27389, 26011, 15, 13, 19205, 62, 8189, 3268, 357, 46506, 27993, 26011, 15, 13, 19205, 62, 8189, 16034, 1748, 7054, 27993, 26011, 15, 33411, 27993, 26011, 15, 13, 19205, 62, 3672, 796, 705, 44, 3620, 11909, 1797, 6, 4008, 5357 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12860, 502, 262, 3329, 13956, 422, 35153, 11909, 1797, 284, 12682, 28154, 46506, 360, 8808, 1268, 4177, 5474, 62, 312, 16034, 5474, 33411, 14808, 6738, 62, 958, 634, 3268, 357, 46506, 31600, 15490, 62, 35009, 27389, 26011, 15, 13, 958, 634, 62, 8189, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 26011, 15, 33411, 31600, 15490, 62, 35009, 27389, 26011, 15, 13, 19205, 62, 8189, 3268, 357, 46506, 27993, 26011, 15, 13, 19205, 62, 8189, 16034, 1748, 7054, 27993, 26011, 15, 33411, 27993, 26011, 15, 13, 19205, 62, 3672, 796, 705, 44, 3620, 11909, 1797, 6, 4008, 5357 ]
How many Annual Meeting events happened in the United Kingdom region?
SELECT COUNT(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = "United Kingdom" AND t3.event_name = "Annaual Meeting"
[ 2437, 867, 16328, 22244, 2995, 3022, 287, 262, 1578, 7526, 3814, 30, 46506, 327, 28270, 7, 28104, 16034, 3814, 7054, 256, 16, 32357, 1268, 2151, 7054, 256, 17, 6177, 256, 16, 13, 36996, 62, 312, 796, 256, 17, 13, 36996, 62, 312, 32357, 1268, 2151, 62, 31534, 7054, 256, 18, 6177, 256, 17, 13, 10608, 62, 312, 796, 256, 18, 13, 10608, 62, 312, 33411, 256, 16, 13, 36996, 62, 3672, 796, 366, 17013, 7526, 1, 5357, 256, 18, 13, 15596, 62, 3672, 796, 366, 18858, 559, 282, 22244, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 16328, 22244, 2995, 3022, 287, 262, 1578, 7526, 3814, 30, 46506, 327, 28270, 7, 28104, 16034, 3814, 7054, 256, 16, 32357, 1268, 2151, 7054, 256, 17, 6177, 256, 16, 13, 36996, 62, 312, 796, 256, 17, 13, 36996, 62, 312, 32357, 1268, 2151, 62, 31534, 7054, 256, 18, 6177, 256, 17, 13, 10608, 62, 312, 796, 256, 18, 13, 10608, 62, 312, 33411, 256, 16, 13, 36996, 62, 3672, 796, 366, 17013, 7526, 1, 5357, 256, 18, 13, 15596, 62, 3672, 796, 366, 18858, 559, 282, 22244, 1 ]
What is the CPU speed(s) of the New Plus type hardware?
SELECT "CPU speed" FROM table_13823 WHERE "Type" = 'new plus'
[ 2061, 318, 262, 9135, 2866, 7, 82, 8, 286, 262, 968, 8227, 2099, 6890, 30, 46506, 366, 36037, 2866, 1, 16034, 3084, 62, 20107, 1954, 33411, 366, 6030, 1, 796, 705, 3605, 5556, 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 ]
[ 2061, 318, 262, 9135, 2866, 7, 82, 8, 286, 262, 968, 8227, 2099, 6890, 30, 46506, 366, 36037, 2866, 1, 16034, 3084, 62, 20107, 1954, 33411, 366, 6030, 1, 796, 705, 3605, 5556, 6 ]
Name the location attendance for january 18
SELECT location_attendance FROM table_23286112_8 WHERE date = "January 18"
[ 5376, 262, 4067, 14858, 329, 42897, 2838, 1248, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 1954, 2078, 5333, 1065, 62, 23, 33411, 3128, 796, 366, 21339, 1248, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 4067, 14858, 329, 42897, 2838, 1248, 46506, 4067, 62, 1078, 437, 590, 16034, 3084, 62, 1954, 2078, 5333, 1065, 62, 23, 33411, 3128, 796, 366, 21339, 1248, 1 ]
How many items appear in the viewers column when the draw is 2?
SELECT COUNT("Viewers") FROM table_30212 WHERE "Draw" = '2'
[ 2437, 867, 3709, 1656, 287, 262, 10209, 5721, 618, 262, 3197, 318, 362, 30, 46506, 327, 28270, 7203, 7680, 364, 4943, 16034, 3084, 62, 1270, 21777, 33411, 366, 25302, 1, 796, 705, 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 ]
[ 2437, 867, 3709, 1656, 287, 262, 10209, 5721, 618, 262, 3197, 318, 362, 30, 46506, 327, 28270, 7203, 7680, 364, 4943, 16034, 3084, 62, 1270, 21777, 33411, 366, 25302, 1, 796, 705, 17, 6 ]
What is Segment A where Segment B is Kevlar S Canoe?
SELECT "Segment A" FROM table_19883 WHERE "Segment B" = 'Kevlar s Canoe'
[ 2061, 318, 1001, 5154, 317, 810, 1001, 5154, 347, 318, 46105, 21681, 311, 1680, 2577, 30, 46506, 366, 41030, 434, 317, 1, 16034, 3084, 62, 26709, 18, 33411, 366, 41030, 434, 347, 1, 796, 705, 42, 1990, 21681, 264, 1680, 2577, 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 ]
[ 2061, 318, 1001, 5154, 317, 810, 1001, 5154, 347, 318, 46105, 21681, 311, 1680, 2577, 30, 46506, 366, 41030, 434, 317, 1, 16034, 3084, 62, 26709, 18, 33411, 366, 41030, 434, 347, 1, 796, 705, 42, 1990, 21681, 264, 1680, 2577, 6 ]
Which Chassis has 4 points?
SELECT chassis FROM table_name_32 WHERE points = "4"
[ 13828, 609, 20297, 468, 604, 2173, 30, 46506, 24587, 16034, 3084, 62, 3672, 62, 2624, 33411, 2173, 796, 366, 19, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 609, 20297, 468, 604, 2173, 30, 46506, 24587, 16034, 3084, 62, 3672, 62, 2624, 33411, 2173, 796, 366, 19, 1 ]
What is the song choice when the theme is not aired?
SELECT theme FROM table_12175755_1 WHERE song_choice = "Not Aired"
[ 2061, 318, 262, 3496, 3572, 618, 262, 7505, 318, 407, 18530, 30, 46506, 7505, 16034, 3084, 62, 1065, 17430, 38172, 62, 16, 33411, 3496, 62, 25541, 796, 366, 3673, 317, 1202, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 3496, 3572, 618, 262, 7505, 318, 407, 18530, 30, 46506, 7505, 16034, 3084, 62, 1065, 17430, 38172, 62, 16, 33411, 3496, 62, 25541, 796, 366, 3673, 317, 1202, 1 ]
Which Finish had a To par of +10?
SELECT finish FROM table_name_89 WHERE to_par = "+10"
[ 13828, 32585, 550, 257, 1675, 1582, 286, 1343, 940, 30, 46506, 5461, 16034, 3084, 62, 3672, 62, 4531, 33411, 284, 62, 1845, 796, 43825, 940, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 32585, 550, 257, 1675, 1582, 286, 1343, 940, 30, 46506, 5461, 16034, 3084, 62, 3672, 62, 4531, 33411, 284, 62, 1845, 796, 43825, 940, 1 ]
On which team was Robbie Earle the captain?
SELECT "Team" FROM table_70935 WHERE "Captain" = 'robbie earle'
[ 2202, 543, 1074, 373, 34855, 2905, 293, 262, 10654, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 31495, 2327, 33411, 366, 27898, 1, 796, 705, 305, 11848, 494, 1027, 293, 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 ]
[ 2202, 543, 1074, 373, 34855, 2905, 293, 262, 10654, 30, 46506, 366, 15592, 1, 16034, 3084, 62, 31495, 2327, 33411, 366, 27898, 1, 796, 705, 305, 11848, 494, 1027, 293, 6 ]
provide the number of patients whose gender is f and admission location is emergency room admit?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_location = "EMERGENCY ROOM ADMIT"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 5279, 318, 277, 290, 13938, 4067, 318, 6334, 2119, 9159, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 796, 366, 37, 1, 5357, 16728, 13, 324, 3411, 62, 24886, 796, 366, 3620, 49837, 45155, 15107, 2662, 5984, 36393, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15234, 485, 262, 1271, 286, 3871, 3025, 5279, 318, 277, 290, 13938, 4067, 318, 6334, 2119, 9159, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, 13, 8388, 796, 366, 37, 1, 5357, 16728, 13, 324, 3411, 62, 24886, 796, 366, 3620, 49837, 45155, 15107, 2662, 5984, 36393, 1 ]
what was the name of the medication that patient 032-14800 was prescribed for within the same day after being diagnosed with anemia?
SELECT t2.drugname FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-14800') AND diagnosis.diagnosisname = 'anemia') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-14800')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of day') = DATETIME(t2.drugstarttime, 'start of day')
[ 10919, 373, 262, 1438, 286, 262, 14103, 326, 5827, 657, 2624, 12, 1415, 7410, 373, 14798, 329, 1626, 262, 976, 1110, 706, 852, 14641, 351, 281, 22859, 30, 46506, 256, 17, 13, 30349, 3672, 16034, 357, 46506, 5827, 13, 403, 1557, 538, 312, 11, 13669, 13, 47356, 418, 396, 524, 16034, 13669, 32357, 1268, 5827, 6177, 13669, 13, 26029, 20850, 31712, 312, 796, 5827, 13, 26029, 20850, 31712, 312, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 49959, 12 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 1438, 286, 262, 14103, 326, 5827, 657, 2624, 12, 1415, 7410, 373, 14798, 329, 1626, 262, 976, 1110, 706, 852, 14641, 351, 281, 22859, 30, 46506, 256, 17, 13, 30349, 3672, 16034, 357, 46506, 5827, 13, 403, 1557, 538, 312, 11, 13669, 13, 47356, 418, 396, 524, 16034, 13669, 32357, 1268, 5827, 6177, 13669, 13, 26029, 20850, 31712, 312, 796, 5827, 13, 26029, 20850, 31712, 312, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 49959, 12 ]
Who is the trophy presentation in the year 1987?
SELECT trophy_presentation FROM table_22514845_4 WHERE year = 1987
[ 8241, 318, 262, 16383, 10470, 287, 262, 614, 12923, 30, 46506, 16383, 62, 25579, 341, 16034, 3084, 62, 18182, 18294, 2231, 62, 19, 33411, 614, 796, 12923 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 318, 262, 16383, 10470, 287, 262, 614, 12923, 30, 46506, 16383, 62, 25579, 341, 16034, 3084, 62, 18182, 18294, 2231, 62, 19, 33411, 614, 796, 12923 ]
How many Drawn have an Against smaller than 5, and a Played smaller than 3?
SELECT COUNT("Drawn") FROM table_5105 WHERE "Against" < '5' AND "Played" < '3'
[ 2437, 867, 50061, 423, 281, 12914, 4833, 621, 642, 11, 290, 257, 33101, 4833, 621, 513, 30, 46506, 327, 28270, 7203, 35, 5791, 4943, 16034, 3084, 62, 20, 13348, 33411, 366, 39276, 1, 1279, 705, 20, 6, 5357, 366, 11002, 276, 1, 1279, 705, 18, 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 ]
[ 2437, 867, 50061, 423, 281, 12914, 4833, 621, 642, 11, 290, 257, 33101, 4833, 621, 513, 30, 46506, 327, 28270, 7203, 35, 5791, 4943, 16034, 3084, 62, 20, 13348, 33411, 366, 39276, 1, 1279, 705, 20, 6, 5357, 366, 11002, 276, 1, 1279, 705, 18, 6 ]
give me the number of patients whose death status is 0 and procedure icd9 code is 3891?
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 = "3891"
[ 26535, 502, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 657, 290, 8771, 14158, 67, 24, 2438, 318, 4353, 6420, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 312, 796, 9021, 13, 18108, 76, 62, 312, 33411, 16728, 13, 1069, 5111, 62, 32109, 796, 366, 15, 1, 5357, 9021, 13, 291, 67, 24, 62, 8189, 796, 366, 2548, 6420, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 26535, 502, 262, 1271, 286, 3871, 3025, 1918, 3722, 318, 657, 290, 8771, 14158, 67, 24, 2438, 318, 4353, 6420, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 312, 796, 9021, 13, 18108, 76, 62, 312, 33411, 16728, 13, 1069, 5111, 62, 32109, 796, 366, 15, 1, 5357, 9021, 13, 291, 67, 24, 62, 8189, 796, 366, 2548, 6420, 1 ]
what's the played status when the club was banwen rfc?
SELECT "Played" FROM table_35356 WHERE "Club" = 'banwen rfc'
[ 10919, 338, 262, 2826, 3722, 618, 262, 3430, 373, 3958, 21006, 374, 16072, 30, 46506, 366, 11002, 276, 1, 16034, 3084, 62, 2327, 32066, 33411, 366, 42350, 1, 796, 705, 3820, 21006, 374, 16072, 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 ]
[ 10919, 338, 262, 2826, 3722, 618, 262, 3430, 373, 3958, 21006, 374, 16072, 30, 46506, 366, 11002, 276, 1, 16034, 3084, 62, 2327, 32066, 33411, 366, 42350, 1, 796, 705, 3820, 21006, 374, 16072, 6 ]
What value in 2013 corresponds to Grand Slam Tournaments in 2012?
SELECT "2013" FROM table_33199 WHERE "2012" = 'grand slam tournaments'
[ 2061, 1988, 287, 2211, 24866, 284, 5675, 30382, 309, 16950, 287, 2321, 30, 46506, 366, 6390, 1, 16034, 3084, 62, 2091, 19104, 33411, 366, 6999, 1, 796, 705, 23936, 21158, 18130, 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 ]
[ 2061, 1988, 287, 2211, 24866, 284, 5675, 30382, 309, 16950, 287, 2321, 30, 46506, 366, 6390, 1, 16034, 3084, 62, 2091, 19104, 33411, 366, 6999, 1, 796, 705, 23936, 21158, 18130, 6 ]
what is days of hospital stay and discharge location of subject id 17570?
SELECT demographic.days_stay, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "17570"
[ 10919, 318, 1528, 286, 4436, 2652, 290, 17655, 4067, 286, 2426, 4686, 19038, 2154, 30, 46506, 16728, 13, 12545, 62, 31712, 11, 16728, 13, 6381, 10136, 62, 24886, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 17430, 2154, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 1528, 286, 4436, 2652, 290, 17655, 4067, 286, 2426, 4686, 19038, 2154, 30, 46506, 16728, 13, 12545, 62, 31712, 11, 16728, 13, 6381, 10136, 62, 24886, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 17430, 2154, 1 ]
How many rounds was the fight at UFC 34?
SELECT SUM("Round") FROM table_9568 WHERE "Event" = 'ufc 34'
[ 2437, 867, 9196, 373, 262, 1907, 379, 11448, 4974, 30, 46506, 35683, 7203, 22685, 4943, 16034, 3084, 62, 3865, 3104, 33411, 366, 9237, 1, 796, 705, 3046, 66, 4974, 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 ]
[ 2437, 867, 9196, 373, 262, 1907, 379, 11448, 4974, 30, 46506, 35683, 7203, 22685, 4943, 16034, 3084, 62, 3865, 3104, 33411, 366, 9237, 1, 796, 705, 3046, 66, 4974, 6 ]
How many TTkl have 2004 as the year, and a pass def greater than 5?
SELECT SUM("TTkl") FROM table_68110 WHERE "Year" = '2004' AND "Pass Def" > '5'
[ 2437, 867, 26653, 41582, 423, 5472, 355, 262, 614, 11, 290, 257, 1208, 825, 3744, 621, 642, 30, 46506, 35683, 7203, 15751, 41582, 4943, 16034, 3084, 62, 3104, 11442, 33411, 366, 17688, 1, 796, 705, 15724, 6, 5357, 366, 14478, 2896, 1, 1875, 705, 20, 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 ]
[ 2437, 867, 26653, 41582, 423, 5472, 355, 262, 614, 11, 290, 257, 1208, 825, 3744, 621, 642, 30, 46506, 35683, 7203, 15751, 41582, 4943, 16034, 3084, 62, 3104, 11442, 33411, 366, 17688, 1, 796, 705, 15724, 6, 5357, 366, 14478, 2896, 1, 1875, 705, 20, 6 ]
What team does Kenny Smith play for?
SELECT "School/Club Team" FROM table_41540 WHERE "Player" = 'kenny smith'
[ 2061, 1074, 857, 22102, 4176, 711, 329, 30, 46506, 366, 26130, 14, 42350, 4816, 1, 16034, 3084, 62, 35038, 1821, 33411, 366, 14140, 1, 796, 705, 74, 11870, 895, 342, 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 ]
[ 2061, 1074, 857, 22102, 4176, 711, 329, 30, 46506, 366, 26130, 14, 42350, 4816, 1, 16034, 3084, 62, 35038, 1821, 33411, 366, 14140, 1, 796, 705, 74, 11870, 895, 342, 6 ]
Tell me the round of 32 for conference of southland
SELECT round_of_32 FROM table_name_62 WHERE conference = "southland"
[ 24446, 502, 262, 2835, 286, 3933, 329, 4495, 286, 5366, 1044, 46506, 2835, 62, 1659, 62, 2624, 16034, 3084, 62, 3672, 62, 5237, 33411, 4495, 796, 366, 35782, 1044, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 24446, 502, 262, 2835, 286, 3933, 329, 4495, 286, 5366, 1044, 46506, 2835, 62, 1659, 62, 2624, 16034, 3084, 62, 3672, 62, 5237, 33411, 4495, 796, 366, 35782, 1044, 1 ]
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, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by time, and order by the Y in asc.
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID)
[ 1890, 883, 4409, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 290, 1502, 416, 262, 575, 287, 10570, 13, 46506, 36210, 2200, 62, 35, 6158, 11, 35224, 7, 10725, 4760, 1137, 62, 2389, 8, 16034, 4409, 33411, 42475, 13153, 38651, 8845, 1677, 38055, 5357, 1105, 830, 5357, 22240, 40373, 62, 47, 4177, 1279, 29, 366, 8423, 1, 6375, 5550 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1890, 883, 4409, 3025, 9588, 318, 287, 262, 2837, 286, 38055, 290, 1105, 830, 290, 5810, 318, 407, 9242, 393, 5011, 1271, 857, 407, 4961, 284, 2319, 11, 257, 2318, 8262, 2523, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 11, 290, 1502, 416, 262, 575, 287, 10570, 13, 46506, 36210, 2200, 62, 35, 6158, 11, 35224, 7, 10725, 4760, 1137, 62, 2389, 8, 16034, 4409, 33411, 42475, 13153, 38651, 8845, 1677, 38055, 5357, 1105, 830, 5357, 22240, 40373, 62, 47, 4177, 1279, 29, 366, 8423, 1, 6375, 5550 ]
Display a bar chart for what are the ids and names of the web accelerators that are compatible with two or more browsers?
SELECT name, id FROM Web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id
[ 23114, 257, 2318, 8262, 329, 644, 389, 262, 220, 2340, 290, 3891, 286, 262, 3992, 8320, 2024, 326, 389, 11670, 351, 734, 393, 517, 22616, 30, 46506, 1438, 11, 4686, 16034, 5313, 62, 16366, 62, 330, 7015, 1352, 7054, 309, 16, 32357, 1268, 44219, 62, 38532, 62, 40259, 7054, 309, 17, 6177, 309, 17, 13, 330, 7015, 1352, 62, 312, 796, 309, 16, 13, 312 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23114, 257, 2318, 8262, 329, 644, 389, 262, 220, 2340, 290, 3891, 286, 262, 3992, 8320, 2024, 326, 389, 11670, 351, 734, 393, 517, 22616, 30, 46506, 1438, 11, 4686, 16034, 5313, 62, 16366, 62, 330, 7015, 1352, 7054, 309, 16, 32357, 1268, 44219, 62, 38532, 62, 40259, 7054, 309, 17, 6177, 309, 17, 13, 330, 7015, 1352, 62, 312, 796, 309, 16, 13, 312 ]
What is the lowest grid that Paul Tracy had when he had over 4 points?
SELECT MIN(grid) FROM table_name_67 WHERE name = "paul tracy" AND points > 4
[ 2061, 318, 262, 9016, 10706, 326, 3362, 31140, 550, 618, 339, 550, 625, 604, 2173, 30, 46506, 20625, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 3134, 33411, 1438, 796, 366, 79, 2518, 491, 1590, 1, 5357, 2173, 1875, 604 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 10706, 326, 3362, 31140, 550, 618, 339, 550, 625, 604, 2173, 30, 46506, 20625, 7, 25928, 8, 16034, 3084, 62, 3672, 62, 3134, 33411, 1438, 796, 366, 79, 2518, 491, 1590, 1, 5357, 2173, 1875, 604 ]
what is nico rosberg 's total number of wins throughout his career ?
SELECT SUM("wins") FROM table_203_150
[ 10919, 318, 299, 3713, 686, 82, 3900, 705, 82, 2472, 1271, 286, 7864, 3690, 465, 3451, 5633, 46506, 35683, 7203, 86, 1040, 4943, 16034, 3084, 62, 22416, 62, 8628 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 299, 3713, 686, 82, 3900, 705, 82, 2472, 1271, 286, 7864, 3690, 465, 3451, 5633, 46506, 35683, 7203, 86, 1040, 4943, 16034, 3084, 62, 22416, 62, 8628 ]
Code golf answers that wouldn't show on the leaderboard.
SELECT Posts.Body, Posts.Id AS "post_link", Users.DisplayName AS "Poster name" FROM Posts INNER JOIN Posts AS Question ON Posts.ParentId = Question.Id INNER JOIN Users ON Posts.OwnerUserId = Users.Id WHERE Posts.PostTypeId = 2 AND Question.Tags LIKE '%<code-golf>%' AND NOT Posts.Body LIKE '<h_>%'
[ 10669, 13126, 7429, 326, 3636, 470, 905, 319, 262, 3554, 3526, 13, 46506, 12043, 13, 25842, 11, 12043, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 18987, 13, 23114, 5376, 7054, 366, 47, 6197, 1438, 1, 16034, 12043, 3268, 21479, 32357, 1268, 12043, 7054, 18233, 6177, 12043, 13, 24546, 7390, 796, 18233, 13, 7390, 3268, 21479, 32357, 1268, 18987, 6177, 12043, 13, 42419, 12982, 7390, 796, 18987, 13, 7390, 33411, 12043, 13, 6307, 6030, 7390, 796, 362, 5357, 18233, 13, 36142, 34178, 705, 4, 27, 8189, 12, 70, 4024, 29, 4, 6, 5357, 5626, 12043, 13, 25842, 34178, 705, 27 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10669, 13126, 7429, 326, 3636, 470, 905, 319, 262, 3554, 3526, 13, 46506, 12043, 13, 25842, 11, 12043, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 18987, 13, 23114, 5376, 7054, 366, 47, 6197, 1438, 1, 16034, 12043, 3268, 21479, 32357, 1268, 12043, 7054, 18233, 6177, 12043, 13, 24546, 7390, 796, 18233, 13, 7390, 3268, 21479, 32357, 1268, 18987, 6177, 12043, 13, 42419, 12982, 7390, 796, 18987, 13, 7390, 33411, 12043, 13, 6307, 6030, 7390, 796, 362, 5357, 18233, 13, 36142, 34178, 705, 4, 27, 8189, 12, 70, 4024, 29, 4, 6, 5357, 5626, 12043, 13, 25842, 34178, 705, 27 ]
When there was a net gain/loss of +34, what was the percentage of seats that party held?
SELECT _percentage_of_seats FROM table_name_74 WHERE net_gain_loss = "+34"
[ 2215, 612, 373, 257, 2010, 4461, 14, 22462, 286, 1343, 2682, 11, 644, 373, 262, 5873, 286, 8632, 326, 2151, 2714, 30, 46506, 4808, 25067, 496, 62, 1659, 62, 325, 1381, 16034, 3084, 62, 3672, 62, 4524, 33411, 2010, 62, 48544, 62, 22462, 796, 43825, 2682, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 612, 373, 257, 2010, 4461, 14, 22462, 286, 1343, 2682, 11, 644, 373, 262, 5873, 286, 8632, 326, 2151, 2714, 30, 46506, 4808, 25067, 496, 62, 1659, 62, 325, 1381, 16034, 3084, 62, 3672, 62, 4524, 33411, 2010, 62, 48544, 62, 22462, 796, 43825, 2682, 1 ]
how many times is dexmedetomidine prescribed to patient 032-21820 in this month?
SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-21820')) AND medication.drugname = 'dexmedetomidine' AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')
[ 4919, 867, 1661, 318, 36017, 1150, 316, 296, 39422, 14798, 284, 5827, 657, 2624, 12, 28727, 1238, 287, 428, 1227, 30, 46506, 327, 28270, 7, 28104, 16034, 14103, 33411, 14103, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 49959, 12, 28727, 1238, 6, 4008, 5357, 14103, 13, 30349, 3672, 796, 705, 67, 1069, 1150, 316, 296, 39422, 6, 5357, 360, 1404, 2767, 12789 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 1661, 318, 36017, 1150, 316, 296, 39422, 14798, 284, 5827, 657, 2624, 12, 28727, 1238, 287, 428, 1227, 30, 46506, 327, 28270, 7, 28104, 16034, 14103, 33411, 14103, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 49959, 12, 28727, 1238, 6, 4008, 5357, 14103, 13, 30349, 3672, 796, 705, 67, 1069, 1150, 316, 296, 39422, 6, 5357, 360, 1404, 2767, 12789 ]
What is the Draw number of the song by Artist of 'Loudest Whisper' with 68 or less Points with a place of 9 or larger?
SELECT AVG("Draw") FROM table_13887 WHERE "Points" < '68' AND "Artist" = 'loudest whisper' AND "Place" > '9'
[ 2061, 318, 262, 15315, 1271, 286, 262, 3496, 416, 18902, 286, 705, 43, 2778, 395, 28424, 525, 6, 351, 8257, 393, 1342, 11045, 351, 257, 1295, 286, 860, 393, 4025, 30, 46506, 35224, 7203, 25302, 4943, 16034, 3084, 62, 1485, 46660, 33411, 366, 40710, 1, 1279, 705, 3104, 6, 5357, 366, 43020, 1, 796, 705, 75, 2778, 395, 31992, 6, 5357, 366, 27271, 1, 1875, 705, 24, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 15315, 1271, 286, 262, 3496, 416, 18902, 286, 705, 43, 2778, 395, 28424, 525, 6, 351, 8257, 393, 1342, 11045, 351, 257, 1295, 286, 860, 393, 4025, 30, 46506, 35224, 7203, 25302, 4943, 16034, 3084, 62, 1485, 46660, 33411, 366, 40710, 1, 1279, 705, 3104, 6, 5357, 366, 43020, 1, 796, 705, 75, 2778, 395, 31992, 6, 5357, 366, 27271, 1, 1875, 705, 24, 6 ]
how long did innes ireland take to complete the 8th glover trophy race ?
SELECT "time/retired" FROM table_203_670 WHERE "driver" = 'innes ireland'
[ 4919, 890, 750, 287, 2516, 35918, 1044, 1011, 284, 1844, 262, 807, 400, 1278, 2502, 16383, 3234, 5633, 46506, 366, 2435, 14, 1186, 1202, 1, 16034, 3084, 62, 22416, 62, 43798, 33411, 366, 26230, 1, 796, 705, 259, 2516, 35918, 1044, 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 ]
[ 4919, 890, 750, 287, 2516, 35918, 1044, 1011, 284, 1844, 262, 807, 400, 1278, 2502, 16383, 3234, 5633, 46506, 366, 2435, 14, 1186, 1202, 1, 16034, 3084, 62, 22416, 62, 43798, 33411, 366, 26230, 1, 796, 705, 259, 2516, 35918, 1044, 6 ]
morning flight from ATLANTA to PHILADELPHIA
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time BETWEEN 0 AND 1200
[ 43911, 5474, 422, 5161, 25697, 5603, 284, 9370, 4146, 2885, 3698, 11909, 40, 11159, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 16, 11, 1748, 7054, 27993, 62, 15, 11, 1748, 7054, 27993, 62, 16, 11, 5474, 33411, 357, 34, 9050, 62, 15, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 19205, 62, 8189, 5357, 27993, 62, 15, 13, 19205, 62, 3672, 796, 705, 1404, 25697, 5603, 6, 5357, 27993 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 43911, 5474, 422, 5161, 25697, 5603, 284, 9370, 4146, 2885, 3698, 11909, 40, 11159, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 16, 11, 1748, 7054, 27993, 62, 15, 11, 1748, 7054, 27993, 62, 16, 11, 5474, 33411, 357, 34, 9050, 62, 15, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 15, 13, 19205, 62, 8189, 5357, 27993, 62, 15, 13, 19205, 62, 3672, 796, 705, 1404, 25697, 5603, 6, 5357, 27993 ]
What is the name of the person with a type of transfer, and a Transfer fee of 8m + 2m in variables?
SELECT "Name" FROM table_12748 WHERE "Type" = 'transfer' AND "Transfer fee" = '€8m + €2m in variables'
[ 2061, 318, 262, 1438, 286, 262, 1048, 351, 257, 2099, 286, 4351, 11, 290, 257, 20558, 6838, 286, 807, 76, 1343, 362, 76, 287, 9633, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 16799, 2780, 33411, 366, 6030, 1, 796, 705, 39437, 6, 5357, 366, 43260, 6838, 1, 796, 705, 26391, 23, 76, 1343, 10432, 17, 76, 287, 9633, 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 ]
[ 2061, 318, 262, 1438, 286, 262, 1048, 351, 257, 2099, 286, 4351, 11, 290, 257, 20558, 6838, 286, 807, 76, 1343, 362, 76, 287, 9633, 30, 46506, 366, 5376, 1, 16034, 3084, 62, 16799, 2780, 33411, 366, 6030, 1, 796, 705, 39437, 6, 5357, 366, 43260, 6838, 1, 796, 705, 26391, 23, 76, 1343, 10432, 17, 76, 287, 9633, 6 ]
count the number of emergency hospital admission patients who are taking main drug type prescription.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug_type = "MAIN"
[ 9127, 262, 1271, 286, 6334, 4436, 13938, 3871, 508, 389, 2263, 1388, 2563, 2099, 15077, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76, 62, 312, 33411, 16728, 13, 324, 3411, 62, 4906, 796, 366, 3620, 49837, 45155, 1, 5357, 34092, 13, 30349, 62, 4906, 796, 366, 5673, 1268, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9127, 262, 1271, 286, 6334, 4436, 13938, 3871, 508, 389, 2263, 1388, 2563, 2099, 15077, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76, 62, 312, 33411, 16728, 13, 324, 3411, 62, 4906, 796, 366, 3620, 49837, 45155, 1, 5357, 34092, 13, 30349, 62, 4906, 796, 366, 5673, 1268, 1 ]
How many games were against the los angeles rams?
SELECT MIN(game) FROM table_15984957_2 WHERE opponent = "Los Angeles Rams"
[ 2437, 867, 1830, 547, 1028, 262, 22346, 18304, 274, 374, 4105, 30, 46506, 20625, 7, 6057, 8, 16034, 3084, 62, 1314, 4089, 2920, 3553, 62, 17, 33411, 6125, 796, 366, 28903, 5652, 16077, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1830, 547, 1028, 262, 22346, 18304, 274, 374, 4105, 30, 46506, 20625, 7, 6057, 8, 16034, 3084, 62, 1314, 4089, 2920, 3553, 62, 17, 33411, 6125, 796, 366, 28903, 5652, 16077, 1 ]
Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?
SELECT title FROM table_14330096_4 WHERE director = "Patrick Lau" AND writer = "Lisa Holdsworth"
[ 13828, 8640, 423, 9925, 40014, 355, 262, 3437, 290, 15378, 9340, 30567, 355, 262, 6260, 30, 46506, 3670, 16034, 3084, 62, 1415, 2091, 405, 4846, 62, 19, 33411, 3437, 796, 366, 32718, 40014, 1, 5357, 6260, 796, 366, 44203, 9340, 30567, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 8640, 423, 9925, 40014, 355, 262, 3437, 290, 15378, 9340, 30567, 355, 262, 6260, 30, 46506, 3670, 16034, 3084, 62, 1415, 2091, 405, 4846, 62, 19, 33411, 3437, 796, 366, 32718, 40014, 1, 5357, 6260, 796, 366, 44203, 9340, 30567, 1 ]
what was the name of the specimen test that patient 025-19271 had for the first time since 8 months ago?
SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-19271')) AND DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME(), '-8 month') ORDER BY microlab.culturetakentime LIMIT 1
[ 10919, 373, 262, 1438, 286, 262, 31674, 1332, 326, 5827, 657, 1495, 12, 1129, 28977, 550, 329, 262, 717, 640, 1201, 807, 1933, 2084, 30, 46506, 4580, 23912, 13, 40820, 942, 578, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 36629, 12, 1129, 28977, 6, 4008, 5357, 360, 1404, 2767, 12789, 7, 24055, 23912, 13, 25584, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 1438, 286, 262, 31674, 1332, 326, 5827, 657, 1495, 12, 1129, 28977, 550, 329, 262, 717, 640, 1201, 807, 1933, 2084, 30, 46506, 4580, 23912, 13, 40820, 942, 578, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 36629, 12, 1129, 28977, 6, 4008, 5357, 360, 1404, 2767, 12789, 7, 24055, 23912, 13, 25584, 83 ]
Which location has a method of decision and Nikos Tsoukalas for an opponent?
SELECT "Location" FROM table_61731 WHERE "Method" = 'decision' AND "Opponent" = 'nikos tsoukalas'
[ 13828, 4067, 468, 257, 2446, 286, 2551, 290, 11271, 418, 13146, 38960, 282, 292, 329, 281, 6125, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 47941, 3132, 33411, 366, 17410, 1, 796, 705, 12501, 1166, 6, 5357, 366, 27524, 3471, 1, 796, 705, 17187, 418, 40379, 38960, 282, 292, 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 ]
[ 13828, 4067, 468, 257, 2446, 286, 2551, 290, 11271, 418, 13146, 38960, 282, 292, 329, 281, 6125, 30, 46506, 366, 14749, 1, 16034, 3084, 62, 47941, 3132, 33411, 366, 17410, 1, 796, 705, 12501, 1166, 6, 5357, 366, 27524, 3471, 1, 796, 705, 17187, 418, 40379, 38960, 282, 292, 6 ]
What is Cross Country, when Soccer is Ashland, when Volleyball is Wooster, and when School Year is 2006-07?
SELECT "Cross Country" FROM table_49022 WHERE "Soccer" = 'ashland' AND "Volleyball" = 'wooster' AND "School Year" = '2006-07'
[ 2061, 318, 6372, 12946, 11, 618, 15872, 318, 7844, 1044, 11, 618, 4709, 1636, 1894, 318, 22173, 6197, 11, 290, 618, 3961, 6280, 318, 4793, 12, 2998, 30, 46506, 366, 21544, 12946, 1, 16034, 3084, 62, 31503, 1828, 33411, 366, 37949, 2189, 1, 796, 705, 1077, 1044, 6, 5357, 366, 16598, 1636, 1894, 1, 796, 705, 21638, 6197, 6, 5357, 366, 26130, 6280, 1, 796, 705, 13330, 12, 2998, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 6372, 12946, 11, 618, 15872, 318, 7844, 1044, 11, 618, 4709, 1636, 1894, 318, 22173, 6197, 11, 290, 618, 3961, 6280, 318, 4793, 12, 2998, 30, 46506, 366, 21544, 12946, 1, 16034, 3084, 62, 31503, 1828, 33411, 366, 37949, 2189, 1, 796, 705, 1077, 1044, 6, 5357, 366, 16598, 1636, 1894, 1, 796, 705, 21638, 6197, 6, 5357, 366, 26130, 6280, 1, 796, 705, 13330, 12, 2998, 6 ]
What is the earliest date of taking office for district 22?
SELECT MIN("Took Office") FROM table_45275 WHERE "District" = '22'
[ 2061, 318, 262, 14555, 3128, 286, 2263, 2607, 329, 4783, 2534, 30, 46506, 20625, 7203, 51, 566, 4452, 4943, 16034, 3084, 62, 2231, 23195, 33411, 366, 44857, 1, 796, 705, 1828, 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 ]
[ 2061, 318, 262, 14555, 3128, 286, 2263, 2607, 329, 4783, 2534, 30, 46506, 20625, 7203, 51, 566, 4452, 4943, 16034, 3084, 62, 2231, 23195, 33411, 366, 44857, 1, 796, 705, 1828, 6 ]
How many golds does Germany have?
SELECT gold FROM table_name_45 WHERE nation = "germany"
[ 2437, 867, 3869, 82, 857, 4486, 423, 30, 46506, 3869, 16034, 3084, 62, 3672, 62, 2231, 33411, 3277, 796, 366, 1362, 21834, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 3869, 82, 857, 4486, 423, 30, 46506, 3869, 16034, 3084, 62, 3672, 62, 2231, 33411, 3277, 796, 366, 1362, 21834, 1 ]
How many rooms have king beds? Report the number for each decor type Plot them as bar chart, and I want to rank by the y-axis in desc.
SELECT decor, COUNT(*) FROM Rooms WHERE bedType = "King" GROUP BY decor ORDER BY COUNT(*) DESC
[ 2437, 867, 9519, 423, 5822, 20237, 30, 6358, 262, 1271, 329, 1123, 11705, 2099, 28114, 606, 355, 2318, 8262, 11, 290, 314, 765, 284, 4279, 416, 262, 331, 12, 22704, 287, 1715, 13, 46506, 11705, 11, 327, 28270, 7, 28104, 16034, 42043, 33411, 3996, 6030, 796, 366, 15708, 1, 44441, 11050, 11705, 38678, 11050, 327, 28270, 7, 28104, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 9519, 423, 5822, 20237, 30, 6358, 262, 1271, 329, 1123, 11705, 2099, 28114, 606, 355, 2318, 8262, 11, 290, 314, 765, 284, 4279, 416, 262, 331, 12, 22704, 287, 1715, 13, 46506, 11705, 11, 327, 28270, 7, 28104, 16034, 42043, 33411, 3996, 6030, 796, 366, 15708, 1, 44441, 11050, 11705, 38678, 11050, 327, 28270, 7, 28104, 22196, 34 ]
Peter Hopwood has how many laps in all?
SELECT COUNT("Laps") FROM table_65440 WHERE "Entrant" = 'peter hopwood'
[ 19727, 9996, 3822, 468, 703, 867, 24590, 287, 477, 30, 46506, 327, 28270, 7203, 43, 1686, 4943, 16034, 3084, 62, 2996, 25644, 33411, 366, 14539, 5250, 1, 796, 705, 79, 2357, 1725, 3822, 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 ]
[ 19727, 9996, 3822, 468, 703, 867, 24590, 287, 477, 30, 46506, 327, 28270, 7203, 43, 1686, 4943, 16034, 3084, 62, 2996, 25644, 33411, 366, 14539, 5250, 1, 796, 705, 79, 2357, 1725, 3822, 6 ]
Calculate the number of patients treated with drug hydx25 who died in or before the year 2186.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2186.0" AND prescriptions.formulary_drug_cd = "HYDX25"
[ 9771, 3129, 378, 262, 1271, 286, 3871, 5716, 351, 2563, 7409, 87, 1495, 508, 3724, 287, 393, 878, 262, 614, 362, 25096, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76, 62, 312, 33411, 16728, 13, 67, 375, 62, 1941, 19841, 366, 17, 25096, 13, 15, 1, 5357, 34092, 13, 687, 377, 560, 62, 30349, 62, 10210, 796, 366, 39, 35755, 55, 1495, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9771, 3129, 378, 262, 1271, 286, 3871, 5716, 351, 2563, 7409, 87, 1495, 508, 3724, 287, 393, 878, 262, 614, 362, 25096, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76, 62, 312, 33411, 16728, 13, 67, 375, 62, 1941, 19841, 366, 17, 25096, 13, 15, 1, 5357, 34092, 13, 687, 377, 560, 62, 30349, 62, 10210, 796, 366, 39, 35755, 55, 1495, 1 ]
since 6 years ago had patient 006-57924 received a antiarrhythmics - class iii antiarrhythmic procedure?
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-57924')) AND treatment.treatmentname = 'antiarrhythmics - class iii antiarrhythmic' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-6 year')
[ 20777, 718, 812, 2084, 550, 5827, 3571, 21, 12, 41734, 1731, 2722, 257, 3098, 3258, 71, 34853, 873, 532, 1398, 46955, 3098, 3258, 71, 5272, 9383, 8771, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 28041, 12, 41734, 1731, 6, 4008, 5357, 3513, 13, 42487, 3672, 796, 705, 17096, 3258, 71 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 20777, 718, 812, 2084, 550, 5827, 3571, 21, 12, 41734, 1731, 2722, 257, 3098, 3258, 71, 34853, 873, 532, 1398, 46955, 3098, 3258, 71, 5272, 9383, 8771, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 3513, 33411, 3513, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 28041, 12, 41734, 1731, 6, 4008, 5357, 3513, 13, 42487, 3672, 796, 705, 17096, 3258, 71 ]
For all employees who have the letters D or S in their first name, a line chart shows the change of manager_id over hire_date
SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 1627, 8262, 2523, 262, 1487, 286, 4706, 62, 312, 625, 11078, 62, 4475, 46506, 36210, 2200, 62, 35, 6158, 11, 17254, 4760, 1137, 62, 2389, 16034, 4409, 33411, 31328, 62, 20608, 34178, 705, 4, 35, 4, 6, 6375, 31328, 62, 20608, 34178, 705, 4, 50, 4, 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 ]
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 257, 1627, 8262, 2523, 262, 1487, 286, 4706, 62, 312, 625, 11078, 62, 4475, 46506, 36210, 2200, 62, 35, 6158, 11, 17254, 4760, 1137, 62, 2389, 16034, 4409, 33411, 31328, 62, 20608, 34178, 705, 4, 35, 4, 6, 6375, 31328, 62, 20608, 34178, 705, 4, 50, 4, 6 ]
Which source shows Blackberry at 2.9%?
SELECT source FROM table_11381701_3 WHERE blackberry = "2.9%"
[ 13828, 2723, 2523, 2619, 8396, 379, 362, 13, 24, 4, 30, 46506, 2723, 16034, 3084, 62, 1157, 2548, 1558, 486, 62, 18, 33411, 2042, 8396, 796, 366, 17, 13, 24, 39658 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 2723, 2523, 2619, 8396, 379, 362, 13, 24, 4, 30, 46506, 2723, 16034, 3084, 62, 1157, 2548, 1558, 486, 62, 18, 33411, 2042, 8396, 796, 366, 17, 13, 24, 39658 ]
serum creatinine levels > 1.5 mg / dl ( 132 umol / l ) for male patients, or > 1.4 mg / dl ( 123 umol / l ) for female patients.
SELECT * FROM table_dev_37 WHERE (serum_creatinine > 1.5 AND gender = 'male') OR (serum_creatinine > 1.4 AND gender = 'female')
[ 2655, 388, 1827, 259, 500, 2974, 1875, 352, 13, 20, 10527, 1220, 288, 75, 357, 21761, 23781, 349, 1220, 300, 1267, 329, 4257, 3871, 11, 393, 1875, 352, 13, 19, 10527, 1220, 288, 75, 357, 17031, 23781, 349, 1220, 300, 1267, 329, 4048, 3871, 13, 46506, 1635, 16034, 3084, 62, 7959, 62, 2718, 33411, 357, 2655, 388, 62, 20123, 259, 500, 1875, 352, 13, 20, 5357, 5279, 796, 705, 22606, 11537, 6375, 357, 2655, 388, 62, 20123, 259, 500, 1875, 352, 13, 19, 5357, 5279, 796, 705, 24724, 11537 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2655, 388, 1827, 259, 500, 2974, 1875, 352, 13, 20, 10527, 1220, 288, 75, 357, 21761, 23781, 349, 1220, 300, 1267, 329, 4257, 3871, 11, 393, 1875, 352, 13, 19, 10527, 1220, 288, 75, 357, 17031, 23781, 349, 1220, 300, 1267, 329, 4048, 3871, 13, 46506, 1635, 16034, 3084, 62, 7959, 62, 2718, 33411, 357, 2655, 388, 62, 20123, 259, 500, 1875, 352, 13, 20, 5357, 5279, 796, 705, 22606, 11537, 6375, 357, 2655, 388, 62, 20123, 259, 500, 1875, 352, 13, 19, 5357, 5279, 796, 705, 24724, 11537 ]
How many entries for prothrombin time are there where platelet count is 'decreased or unaffected'?
SELECT COUNT("Prothrombin time") FROM table_20135 WHERE "Platelet count" = 'Decreased or unaffected'
[ 2437, 867, 12784, 329, 386, 400, 398, 8800, 640, 389, 612, 810, 7480, 1616, 954, 318, 705, 12501, 260, 839, 393, 35290, 30960, 46506, 327, 28270, 7203, 2964, 400, 398, 8800, 640, 4943, 16034, 3084, 62, 1264, 2327, 33411, 366, 3646, 378, 1616, 954, 1, 796, 705, 43198, 839, 393, 35290, 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 ]
[ 2437, 867, 12784, 329, 386, 400, 398, 8800, 640, 389, 612, 810, 7480, 1616, 954, 318, 705, 12501, 260, 839, 393, 35290, 30960, 46506, 327, 28270, 7203, 2964, 400, 398, 8800, 640, 4943, 16034, 3084, 62, 1264, 2327, 33411, 366, 3646, 378, 1616, 954, 1, 796, 705, 43198, 839, 393, 35290, 6 ]
What is Position, when Series is Queensland Formula Ford Championship, when Season is after 2001, and when Points is 234?
SELECT "Position" FROM table_45826 WHERE "Series" = 'queensland formula ford championship' AND "Season" > '2001' AND "Points" = '234'
[ 2061, 318, 23158, 11, 618, 7171, 318, 21105, 19639, 8092, 10749, 11, 618, 7369, 318, 706, 5878, 11, 290, 618, 11045, 318, 34323, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 29334, 2075, 33411, 366, 27996, 1, 796, 705, 4188, 641, 1044, 10451, 329, 67, 12184, 6, 5357, 366, 18960, 1, 1875, 705, 14585, 6, 5357, 366, 40710, 1, 796, 705, 24409, 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 ]
[ 2061, 318, 23158, 11, 618, 7171, 318, 21105, 19639, 8092, 10749, 11, 618, 7369, 318, 706, 5878, 11, 290, 618, 11045, 318, 34323, 30, 46506, 366, 26545, 1, 16034, 3084, 62, 29334, 2075, 33411, 366, 27996, 1, 796, 705, 4188, 641, 1044, 10451, 329, 67, 12184, 6, 5357, 366, 18960, 1, 1875, 705, 14585, 6, 5357, 366, 40710, 1, 796, 705, 24409, 6 ]
What is the average attendance of the Mariners' attendance when their record was 62-64?
SELECT AVG("Attendance") FROM table_14470 WHERE "Opponent" = 'mariners' AND "Record" = '62-64'
[ 2061, 318, 262, 2811, 14858, 286, 262, 35109, 6, 14858, 618, 511, 1700, 373, 8190, 12, 2414, 30, 46506, 35224, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 18444, 2154, 33411, 366, 27524, 3471, 1, 796, 705, 3876, 21257, 6, 5357, 366, 23739, 1, 796, 705, 5237, 12, 2414, 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 ]
[ 2061, 318, 262, 2811, 14858, 286, 262, 35109, 6, 14858, 618, 511, 1700, 373, 8190, 12, 2414, 30, 46506, 35224, 7203, 8086, 437, 590, 4943, 16034, 3084, 62, 18444, 2154, 33411, 366, 27524, 3471, 1, 796, 705, 3876, 21257, 6, 5357, 366, 23739, 1, 796, 705, 5237, 12, 2414, 6 ]
how many patients underwent entral infus nutrit sub in the same month after the procedure of fiber-optic bronchoscopy, since 2 years ago?
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'fiber-optic bronchoscopy') AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'entral infus nutrit sub') AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month')
[ 4919, 867, 3871, 25289, 920, 1373, 1167, 385, 44867, 850, 287, 262, 976, 1227, 706, 262, 8771, 286, 13608, 12, 8738, 291, 18443, 354, 17500, 11081, 11, 1201, 362, 812, 2084, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 32796, 62, 312, 8, 16034, 357, 46506, 25349, 13, 32796, 62, 312, 11, 9021, 62, 291, 67, 13, 40926, 2435, 16034, 9021, 62, 291, 67, 32357, 1268, 25349, 6177, 9021, 62, 291, 67, 13, 18108, 76, 62, 312, 796, 25349, 13, 18108, 76, 62, 312, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 3871, 25289, 920, 1373, 1167, 385, 44867, 850, 287, 262, 976, 1227, 706, 262, 8771, 286, 13608, 12, 8738, 291, 18443, 354, 17500, 11081, 11, 1201, 362, 812, 2084, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 16, 13, 32796, 62, 312, 8, 16034, 357, 46506, 25349, 13, 32796, 62, 312, 11, 9021, 62, 291, 67, 13, 40926, 2435, 16034, 9021, 62, 291, 67, 32357, 1268, 25349, 6177, 9021, 62, 291, 67, 13, 18108, 76, 62, 312, 796, 25349, 13, 18108, 76, 62, 312, 33411, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 796 ]
what was the first value of patient 031-19622's laboratory test for rdw on their first hospital visit?
SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-19622' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) AND lab.labname = 'rdw' ORDER BY lab.labresulttime LIMIT 1
[ 10919, 373, 262, 717, 1988, 286, 5827, 657, 3132, 12, 25272, 1828, 338, 14010, 1332, 329, 374, 67, 86, 319, 511, 717, 4436, 3187, 30, 46506, 2248, 13, 23912, 20274, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 43637, 12, 25272, 1828, 6, 5357, 5626, 5827, 13, 49257, 6381, 354, 7641, 524, 3180, 15697, 38678, 11050, 5827, 13, 49257 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 717, 1988, 286, 5827, 657, 3132, 12, 25272, 1828, 338, 14010, 1332, 329, 374, 67, 86, 319, 511, 717, 4436, 3187, 30, 46506, 2248, 13, 23912, 20274, 16034, 2248, 33411, 2248, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 43637, 12, 25272, 1828, 6, 5357, 5626, 5827, 13, 49257, 6381, 354, 7641, 524, 3180, 15697, 38678, 11050, 5827, 13, 49257 ]
What is detail of the student who most recently registered course?
SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1
[ 2061, 318, 3703, 286, 262, 3710, 508, 749, 2904, 6823, 1781, 30, 46506, 309, 17, 13, 50139, 62, 36604, 16034, 3710, 62, 17319, 62, 2301, 396, 9143, 7054, 309, 16, 32357, 1268, 2444, 7054, 309, 17, 6177, 309, 16, 13, 50139, 62, 312, 796, 309, 17, 13, 50139, 62, 312, 38678, 11050, 309, 16, 13, 2301, 33397, 62, 4475, 22196, 34, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 3703, 286, 262, 3710, 508, 749, 2904, 6823, 1781, 30, 46506, 309, 17, 13, 50139, 62, 36604, 16034, 3710, 62, 17319, 62, 2301, 396, 9143, 7054, 309, 16, 32357, 1268, 2444, 7054, 309, 17, 6177, 309, 16, 13, 50139, 62, 312, 796, 309, 17, 13, 50139, 62, 312, 38678, 11050, 309, 16, 13, 2301, 33397, 62, 4475, 22196, 34, 27564, 2043, 352 ]
How many people were in the crowd when the away team scored 9.12 (66)?
SELECT "Crowd" FROM table_32308 WHERE "Away team score" = '9.12 (66)'
[ 2437, 867, 661, 547, 287, 262, 4315, 618, 262, 1497, 1074, 7781, 860, 13, 1065, 357, 2791, 19427, 46506, 366, 34, 3986, 1, 16034, 3084, 62, 2624, 21495, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 24, 13, 1065, 357, 2791, 33047 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 661, 547, 287, 262, 4315, 618, 262, 1497, 1074, 7781, 860, 13, 1065, 357, 2791, 19427, 46506, 366, 34, 3986, 1, 16034, 3084, 62, 2624, 21495, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 24, 13, 1065, 357, 2791, 33047 ]
Who directed the episode that was written by Jonathan Fener?
SELECT directed_by FROM table_23242968_1 WHERE written_by = "Jonathan Fener"
[ 8241, 7924, 262, 4471, 326, 373, 3194, 416, 11232, 376, 877, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 1954, 1731, 1959, 3104, 62, 16, 33411, 3194, 62, 1525, 796, 366, 30365, 376, 877, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 7924, 262, 4471, 326, 373, 3194, 416, 11232, 376, 877, 30, 46506, 7924, 62, 1525, 16034, 3084, 62, 1954, 1731, 1959, 3104, 62, 16, 33411, 3194, 62, 1525, 796, 366, 30365, 376, 877, 1 ]
calculate the total number of patients diagnosed with icd9 code 30390 who had their blood gas tested by lab
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"
[ 9948, 3129, 378, 262, 2472, 1271, 286, 3871, 14641, 351, 14158, 67, 24, 2438, 1542, 25964, 508, 550, 511, 2910, 3623, 6789, 416, 2248, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 796, 2248, 13, 18108, 76, 62, 312, 33411, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 1270, 25964, 1, 5357, 2248, 526, 34, 6158, 38, 15513, 1, 796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9948, 3129, 378, 262, 2472, 1271, 286, 3871, 14641, 351, 14158, 67, 24, 2438, 1542, 25964, 508, 550, 511, 2910, 3623, 6789, 416, 2248, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 796, 2248, 13, 18108, 76, 62, 312, 33411, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 1270, 25964, 1, 5357, 2248, 526, 34, 6158, 38, 15513, 1, 796 ]
what were the top three most frequent diagnosis that patients received within the same month after they were diagnosed with bacteremia during a year before?
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'bacteremia') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 3)
[ 10919, 547, 262, 1353, 1115, 749, 10792, 13669, 326, 3871, 2722, 1626, 262, 976, 1227, 706, 484, 547, 14641, 351, 275, 529, 567, 20730, 1141, 257, 614, 878, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 4629, 13, 291, 67, 24, 62, 8189, 3268, 357, 46506, 256, 18, 13, 291, 67, 24, 62, 8189, 16034, 357, 46506, 256, 17, 13, 291, 67, 24, 62, 8189, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 547, 262, 1353, 1115, 749, 10792, 13669, 326, 3871, 2722, 1626, 262, 976, 1227, 706, 484, 547, 14641, 351, 275, 529, 567, 20730, 1141, 257, 614, 878, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 4629, 13, 291, 67, 24, 62, 8189, 3268, 357, 46506, 256, 18, 13, 291, 67, 24, 62, 8189, 16034, 357, 46506, 256, 17, 13, 291, 67, 24, 62, 8189, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7 ]
What was the score of the game at RIch Stadium?
SELECT result FROM table_name_14 WHERE stadium = "rich stadium"
[ 2061, 373, 262, 4776, 286, 262, 983, 379, 37271, 354, 10499, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1415, 33411, 10308, 796, 366, 7527, 10308, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 4776, 286, 262, 983, 379, 37271, 354, 10499, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 1415, 33411, 10308, 796, 366, 7527, 10308, 1 ]
What was the average figure score of the skater with a free score under 56.35?
SELECT AVG("Figures") FROM table_53592 WHERE "Free" < '56.35'
[ 2061, 373, 262, 2811, 3785, 4776, 286, 262, 1341, 729, 351, 257, 1479, 4776, 739, 7265, 13, 2327, 30, 46506, 35224, 7203, 14989, 942, 4943, 16034, 3084, 62, 44465, 5892, 33411, 366, 11146, 1, 1279, 705, 3980, 13, 2327, 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 ]
[ 2061, 373, 262, 2811, 3785, 4776, 286, 262, 1341, 729, 351, 257, 1479, 4776, 739, 7265, 13, 2327, 30, 46506, 35224, 7203, 14989, 942, 4943, 16034, 3084, 62, 44465, 5892, 33411, 366, 11146, 1, 1279, 705, 3980, 13, 2327, 6 ]
whats the name of the organism found in the first blood, venipuncture test of patient 031-23605 since 30 months ago?
SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23605')) AND microlab.culturesite = 'blood, venipuncture' AND DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME(), '-30 month') ORDER BY microlab.culturetakentime LIMIT 1
[ 1929, 1381, 262, 1438, 286, 262, 26433, 1043, 287, 262, 717, 2910, 11, 8710, 541, 39187, 1332, 286, 5827, 657, 3132, 12, 1954, 32417, 1201, 1542, 1933, 2084, 30, 46506, 4580, 23912, 13, 9971, 1042, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 43637, 12, 1954, 32417, 6, 4008, 5357, 4580, 23912, 13, 40820, 942, 578, 796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1929, 1381, 262, 1438, 286, 262, 26433, 1043, 287, 262, 717, 2910, 11, 8710, 541, 39187, 1332, 286, 5827, 657, 3132, 12, 1954, 32417, 1201, 1542, 1933, 2084, 30, 46506, 4580, 23912, 13, 9971, 1042, 16034, 4580, 23912, 33411, 4580, 23912, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 43637, 12, 1954, 32417, 6, 4008, 5357, 4580, 23912, 13, 40820, 942, 578, 796 ]
What Years Member has a School of cairo high school?
SELECT years_member FROM table_name_47 WHERE school = "cairo high school"
[ 2061, 13212, 10239, 468, 257, 3961, 286, 1275, 7058, 1029, 1524, 30, 46506, 812, 62, 19522, 16034, 3084, 62, 3672, 62, 2857, 33411, 1524, 796, 366, 66, 18131, 1029, 1524, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 13212, 10239, 468, 257, 3961, 286, 1275, 7058, 1029, 1524, 30, 46506, 812, 62, 19522, 16034, 3084, 62, 3672, 62, 2857, 33411, 1524, 796, 366, 66, 18131, 1029, 1524, 1 ]
Name the combativity award with winner of luis le n s nchez
SELECT combativity_award FROM table_name_13 WHERE winner = "luis león sánchez"
[ 5376, 262, 5249, 3458, 5764, 351, 8464, 286, 300, 84, 271, 443, 299, 264, 299, 2395, 89, 46506, 5249, 3458, 62, 707, 446, 16034, 3084, 62, 3672, 62, 1485, 33411, 8464, 796, 366, 2290, 271, 443, 18840, 264, 21162, 2395, 89, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 5376, 262, 5249, 3458, 5764, 351, 8464, 286, 300, 84, 271, 443, 299, 264, 299, 2395, 89, 46506, 5249, 3458, 62, 707, 446, 16034, 3084, 62, 3672, 62, 1485, 33411, 8464, 796, 366, 2290, 271, 443, 18840, 264, 21162, 2395, 89, 1 ]
who was coach after b.l. noojin ?
SELECT "coach" FROM table_203_577 WHERE "tenure" > (SELECT "tenure" FROM table_203_577 WHERE "coach" = 'b. l. noojin') ORDER BY "tenure" LIMIT 1
[ 8727, 373, 3985, 706, 275, 13, 75, 13, 645, 13210, 259, 5633, 46506, 366, 1073, 620, 1, 16034, 3084, 62, 22416, 62, 49447, 33411, 366, 1452, 495, 1, 1875, 357, 46506, 366, 1452, 495, 1, 16034, 3084, 62, 22416, 62, 49447, 33411, 366, 1073, 620, 1, 796, 705, 65, 13, 300, 13, 645, 13210, 259, 11537, 38678, 11050, 366, 1452, 495, 1, 27564, 2043, 352 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8727, 373, 3985, 706, 275, 13, 75, 13, 645, 13210, 259, 5633, 46506, 366, 1073, 620, 1, 16034, 3084, 62, 22416, 62, 49447, 33411, 366, 1452, 495, 1, 1875, 357, 46506, 366, 1452, 495, 1, 16034, 3084, 62, 22416, 62, 49447, 33411, 366, 1073, 620, 1, 796, 705, 65, 13, 300, 13, 645, 13210, 259, 11537, 38678, 11050, 366, 1452, 495, 1, 27564, 2043, 352 ]
When the change (2011 to 2012) is +13.4% what is the country?
SELECT "Country" FROM table_19572 WHERE "Change (2011 to 2012)" = '+13.4%'
[ 2215, 262, 1487, 357, 9804, 284, 2321, 8, 318, 1343, 1485, 13, 19, 4, 644, 318, 262, 1499, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 1129, 48724, 33411, 366, 19400, 357, 9804, 284, 2321, 16725, 796, 705, 10, 1485, 13, 19, 4, 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 ]
[ 2215, 262, 1487, 357, 9804, 284, 2321, 8, 318, 1343, 1485, 13, 19, 4, 644, 318, 262, 1499, 30, 46506, 366, 33921, 1, 16034, 3084, 62, 1129, 48724, 33411, 366, 19400, 357, 9804, 284, 2321, 16725, 796, 705, 10, 1485, 13, 19, 4, 6 ]
how many years does the table cover in total ?
SELECT MAX("year") - MIN("year") FROM table_203_639
[ 4919, 867, 812, 857, 262, 3084, 3002, 287, 2472, 5633, 46506, 25882, 7203, 1941, 4943, 532, 20625, 7203, 1941, 4943, 16034, 3084, 62, 22416, 62, 21, 2670 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 812, 857, 262, 3084, 3002, 287, 2472, 5633, 46506, 25882, 7203, 1941, 4943, 532, 20625, 7203, 1941, 4943, 16034, 3084, 62, 22416, 62, 21, 2670 ]
Users ranked by number of badges (all kinds).
SELECT UserLink AS "user_link", Rep, NumBadges, COUNT(*) AS "numquestions" FROM (SELECT * FROM (SELECT Users.Id AS "userlink", Users.Reputation AS "rep", COUNT(*) AS "numbadges" FROM Users INNER JOIN Badges ON Users.Id = Badges.UserId WHERE Badges.Class = 1 GROUP BY Users.Id, Users.Reputation) AS UserByBadge ORDER BY NumBadges DESC LIMIT 100) AS UserByQuestion INNER JOIN Posts ON Posts.OwnerUserId = UserLink WHERE Posts.PostTypeId = 1 GROUP BY UserLink, Rep, NumBadges ORDER BY NumBadges DESC
[ 14490, 10307, 416, 1271, 286, 37583, 357, 439, 6982, 737, 46506, 11787, 11280, 7054, 366, 7220, 62, 8726, 1600, 1432, 11, 31835, 22069, 3212, 11, 327, 28270, 7, 28104, 7054, 366, 22510, 6138, 507, 1, 16034, 357, 46506, 1635, 16034, 357, 46506, 18987, 13, 7390, 7054, 366, 7220, 8726, 1600, 18987, 13, 6207, 7094, 7054, 366, 7856, 1600, 327, 28270, 7, 28104, 7054, 366, 77, 2178, 324, 3212, 1, 16034, 18987, 3268, 21479, 32357, 1268, 7772, 3212, 6177, 18987, 13, 7390, 796, 7772, 3212, 13, 12982, 7390, 33411, 7772, 3212, 13, 9487, 796, 352, 44441, 11050, 18987, 13, 7390, 11 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 14490, 10307, 416, 1271, 286, 37583, 357, 439, 6982, 737, 46506, 11787, 11280, 7054, 366, 7220, 62, 8726, 1600, 1432, 11, 31835, 22069, 3212, 11, 327, 28270, 7, 28104, 7054, 366, 22510, 6138, 507, 1, 16034, 357, 46506, 1635, 16034, 357, 46506, 18987, 13, 7390, 7054, 366, 7220, 8726, 1600, 18987, 13, 6207, 7094, 7054, 366, 7856, 1600, 327, 28270, 7, 28104, 7054, 366, 77, 2178, 324, 3212, 1, 16034, 18987, 3268, 21479, 32357, 1268, 7772, 3212, 6177, 18987, 13, 7390, 796, 7772, 3212, 13, 12982, 7390, 33411, 7772, 3212, 13, 9487, 796, 352, 44441, 11050, 18987, 13, 7390, 11 ]
Name the game site for december 12, 1965
SELECT "Game Site" FROM table_1152 WHERE "Date" = 'December 12, 1965'
[ 5376, 262, 983, 2524, 329, 390, 3273, 1105, 11, 17672, 46506, 366, 8777, 14413, 1, 16034, 3084, 62, 1157, 4309, 33411, 366, 10430, 1, 796, 705, 20588, 1105, 11, 17672, 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 ]
[ 5376, 262, 983, 2524, 329, 390, 3273, 1105, 11, 17672, 46506, 366, 8777, 14413, 1, 16034, 3084, 62, 1157, 4309, 33411, 366, 10430, 1, 796, 705, 20588, 1105, 11, 17672, 6 ]
what is the cerclis ID when the site was proposed on 12/30/1982 and was partially deleted on 05/01/2003?
SELECT cerclis_id FROM table_name_74 WHERE proposed = "12/30/1982" AND partially_deleted = "05/01/2003"
[ 10919, 318, 262, 26074, 565, 271, 4522, 618, 262, 2524, 373, 5150, 319, 1105, 14, 1270, 14, 30763, 290, 373, 12387, 13140, 319, 8870, 14, 486, 14, 16088, 30, 46506, 26074, 565, 271, 62, 312, 16034, 3084, 62, 3672, 62, 4524, 33411, 5150, 796, 366, 1065, 14, 1270, 14, 30763, 1, 5357, 12387, 62, 2934, 33342, 796, 366, 2713, 14, 486, 14, 16088, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 26074, 565, 271, 4522, 618, 262, 2524, 373, 5150, 319, 1105, 14, 1270, 14, 30763, 290, 373, 12387, 13140, 319, 8870, 14, 486, 14, 16088, 30, 46506, 26074, 565, 271, 62, 312, 16034, 3084, 62, 3672, 62, 4524, 33411, 5150, 796, 366, 1065, 14, 1270, 14, 30763, 1, 5357, 12387, 62, 2934, 33342, 796, 366, 2713, 14, 486, 14, 16088, 1 ]
For those employees who did not have any job in the past, return a scatter chart about the correlation between salary and department_id .
SELECT SALARY, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1441, 257, 41058, 8262, 546, 262, 16096, 1022, 9588, 290, 5011, 62, 312, 764, 46506, 42475, 13153, 11, 5550, 30709, 10979, 62, 2389, 16034, 4409, 33411, 5626, 17228, 6489, 21414, 6500, 62, 2389, 3268, 357, 46506, 17228, 6489, 21414, 6500, 62, 2389, 16034, 1693, 62, 23569, 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 ]
[ 1890, 883, 4409, 508, 750, 407, 423, 597, 1693, 287, 262, 1613, 11, 1441, 257, 41058, 8262, 546, 262, 16096, 1022, 9588, 290, 5011, 62, 312, 764, 46506, 42475, 13153, 11, 5550, 30709, 10979, 62, 2389, 16034, 4409, 33411, 5626, 17228, 6489, 21414, 6500, 62, 2389, 3268, 357, 46506, 17228, 6489, 21414, 6500, 62, 2389, 16034, 1693, 62, 23569, 8 ]
what was the name of the procedure, which patient 11823 was first received in the previous year?
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11823) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY procedures_icd.charttime LIMIT 1)
[ 10919, 373, 262, 1438, 286, 262, 8771, 11, 543, 5827, 19035, 1954, 373, 717, 2722, 287, 262, 2180, 614, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771, 942, 33411, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 291, 67, 24, 62, 8189, 3268, 357, 46506, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 373, 262, 1438, 286, 262, 8771, 11, 543, 5827, 19035, 1954, 373, 717, 2722, 287, 262, 2180, 614, 30, 46506, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771, 942, 33411, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 291, 67, 24, 62, 8189, 3268, 357, 46506, 9021, 62, 291, 67, 13, 291, 67, 24, 62, 8189, 16034, 9021, 62, 291, 67, 33411, 9021, 62, 291, 67, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796 ]
When 1 active, 1 inactive is the canadian chapters how many founding dates are there?
SELECT COUNT(founding_date) FROM table_28436909_4 WHERE canadian_chapters = "1 Active, 1 Inactive"
[ 2215, 352, 4075, 11, 352, 28621, 318, 262, 460, 18425, 15754, 703, 867, 16636, 9667, 389, 612, 30, 46506, 327, 28270, 7, 9275, 278, 62, 4475, 8, 16034, 3084, 62, 30336, 30803, 2931, 62, 19, 33411, 460, 18425, 62, 354, 12126, 796, 366, 16, 14199, 11, 352, 554, 5275, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 352, 4075, 11, 352, 28621, 318, 262, 460, 18425, 15754, 703, 867, 16636, 9667, 389, 612, 30, 46506, 327, 28270, 7, 9275, 278, 62, 4475, 8, 16034, 3084, 62, 30336, 30803, 2931, 62, 19, 33411, 460, 18425, 62, 354, 12126, 796, 366, 16, 14199, 11, 352, 554, 5275, 1 ]
tell me route of administration and dosage of methylene blue 1%.
SELECT prescriptions.route, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Methylene Blue 1%"
[ 33331, 502, 6339, 286, 3662, 290, 35997, 286, 27664, 1734, 4171, 352, 7225, 46506, 34092, 13, 38629, 11, 34092, 13, 30349, 62, 34436, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 44, 21610, 1734, 4518, 352, 39658 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 33331, 502, 6339, 286, 3662, 290, 35997, 286, 27664, 1734, 4171, 352, 7225, 46506, 34092, 13, 38629, 11, 34092, 13, 30349, 62, 34436, 16034, 34092, 33411, 34092, 13, 30349, 796, 366, 44, 21610, 1734, 4518, 352, 39658 ]
What is the sum of cents that has 53ET cents less than 113.21, and a harmonic more than 1?
SELECT SUM("Cents") FROM table_62396 WHERE "53ET Cents" < '113.21' AND "Harmonic" > '1'
[ 2061, 318, 262, 2160, 286, 16059, 326, 468, 7192, 2767, 16059, 1342, 621, 17318, 13, 2481, 11, 290, 257, 49239, 517, 621, 352, 30, 46506, 35683, 7203, 34, 658, 4943, 16034, 3084, 62, 46872, 4846, 33411, 366, 4310, 2767, 327, 658, 1, 1279, 705, 16616, 13, 2481, 6, 5357, 366, 39, 1670, 9229, 1, 1875, 705, 16, 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 ]
[ 2061, 318, 262, 2160, 286, 16059, 326, 468, 7192, 2767, 16059, 1342, 621, 17318, 13, 2481, 11, 290, 257, 49239, 517, 621, 352, 30, 46506, 35683, 7203, 34, 658, 4943, 16034, 3084, 62, 46872, 4846, 33411, 366, 4310, 2767, 327, 658, 1, 1279, 705, 16616, 13, 2481, 6, 5357, 366, 39, 1670, 9229, 1, 1875, 705, 16, 6 ]
What is Year, when Wins is '0'?
SELECT "Year" FROM table_45795 WHERE "Wins" = '0'
[ 2061, 318, 6280, 11, 618, 24423, 318, 705, 15, 30960, 46506, 366, 17688, 1, 16034, 3084, 62, 2231, 41544, 33411, 366, 54, 1040, 1, 796, 705, 15, 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 ]
[ 2061, 318, 6280, 11, 618, 24423, 318, 705, 15, 30960, 46506, 366, 17688, 1, 16034, 3084, 62, 2231, 41544, 33411, 366, 54, 1040, 1, 796, 705, 15, 6 ]
What was the result for the Outstanding director of a musical category?
SELECT "Result" FROM table_41381 WHERE "Category" = 'outstanding director of a musical'
[ 2061, 373, 262, 1255, 329, 262, 3806, 5646, 3437, 286, 257, 10530, 6536, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 44103, 6659, 33411, 366, 27313, 1, 796, 705, 448, 5646, 3437, 286, 257, 10530, 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 ]
[ 2061, 373, 262, 1255, 329, 262, 3806, 5646, 3437, 286, 257, 10530, 6536, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 44103, 6659, 33411, 366, 27313, 1, 796, 705, 448, 5646, 3437, 286, 257, 10530, 6 ]
how many people had died after being diagnosed with defibrination syndrome during the same month?
SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'defibrination syndrome')) AS t1 GROUP BY t1.subject_id HAVING MIN(t1.charttime) = t1.charttime) AS t2 JOIN (SELECT patients.subject_id, admissions.hadm_id, patients.dod FROM admissions JOIN patients ON patients.subject_id = admissions.subject_id WHERE NOT patients.dod IS NULL) AS t3 ON t2.subject_id = t3.subject_id WHERE DATETIME(t2.charttime, 'start of month') = DATETIME(t3.dod, 'start of month')
[ 4919, 867, 661, 550, 3724, 706, 852, 14641, 351, 825, 2889, 1883, 14027, 1141, 262, 976, 1227, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 17, 13, 32796, 62, 312, 8, 16034, 357, 46506, 256, 16, 13, 32796, 62, 312, 11, 256, 16, 13, 40926, 2435, 16034, 357, 46506, 25349, 13, 32796, 62, 312, 11, 40567, 62, 291, 67, 13, 40926, 2435, 16034, 40567, 62, 291, 67, 32357, 1268, 25349, 6177, 40567, 62, 291, 67, 13, 18108, 76, 62, 312, 796, 25349, 13, 18108, 76, 62, 312, 33411, 40567, 62, 291, 67, 13, 291, 67, 24, 62, 8189 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 661, 550, 3724, 706, 852, 14641, 351, 825, 2889, 1883, 14027, 1141, 262, 976, 1227, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 256, 17, 13, 32796, 62, 312, 8, 16034, 357, 46506, 256, 16, 13, 32796, 62, 312, 11, 256, 16, 13, 40926, 2435, 16034, 357, 46506, 25349, 13, 32796, 62, 312, 11, 40567, 62, 291, 67, 13, 40926, 2435, 16034, 40567, 62, 291, 67, 32357, 1268, 25349, 6177, 40567, 62, 291, 67, 13, 18108, 76, 62, 312, 796, 25349, 13, 18108, 76, 62, 312, 33411, 40567, 62, 291, 67, 13, 291, 67, 24, 62, 8189 ]
Count the total number of apartment bookings.
SELECT COUNT(*) FROM apartment_bookings
[ 12332, 262, 2472, 1271, 286, 7962, 1492, 654, 13, 46506, 327, 28270, 7, 28104, 16034, 7962, 62, 2070, 654 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12332, 262, 2472, 1271, 286, 7962, 1492, 654, 13, 46506, 327, 28270, 7, 28104, 16034, 7962, 62, 2070, 654 ]
Number of badges awarded by badge name.
SELECT Name, COUNT(*) AS "number of badges" FROM Badges GROUP BY Name
[ 15057, 286, 37583, 11343, 416, 23009, 1438, 13, 46506, 6530, 11, 327, 28270, 7, 28104, 7054, 366, 17618, 286, 37583, 1, 16034, 7772, 3212, 44441, 11050, 6530 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15057, 286, 37583, 11343, 416, 23009, 1438, 13, 46506, 6530, 11, 327, 28270, 7, 28104, 7054, 366, 17618, 286, 37583, 1, 16034, 7772, 3212, 44441, 11050, 6530 ]
When does Donaldson's move end?
SELECT ends FROM table_name_34 WHERE name = "donaldson"
[ 2215, 857, 3759, 1559, 338, 1445, 886, 30, 46506, 5645, 16034, 3084, 62, 3672, 62, 2682, 33411, 1438, 796, 366, 40915, 1559, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2215, 857, 3759, 1559, 338, 1445, 886, 30, 46506, 5645, 16034, 3084, 62, 3672, 62, 2682, 33411, 1438, 796, 366, 40915, 1559, 1 ]
what is the date when the venue is gold coast convention centre?
SELECT date FROM table_name_70 WHERE venue = "gold coast convention centre"
[ 10919, 318, 262, 3128, 618, 262, 14359, 318, 3869, 7051, 9831, 7372, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2154, 33411, 14359, 796, 366, 24267, 7051, 9831, 7372, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 262, 3128, 618, 262, 14359, 318, 3869, 7051, 9831, 7372, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2154, 33411, 14359, 796, 366, 24267, 7051, 9831, 7372, 1 ]
until 2 years ago, what are the top four most commonly prescribed drugs for patients with age 50s?
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 4
[ 28446, 362, 812, 2084, 11, 644, 389, 262, 1353, 1440, 749, 8811, 14798, 5010, 329, 3871, 351, 2479, 2026, 82, 30, 46506, 256, 16, 13, 30349, 3672, 16034, 357, 46506, 14103, 13, 30349, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 269, 16, 16034, 14103, 33411, 14103, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 496, 38651, 8845, 1677, 2026, 5357, 7863, 8, 5357, 360, 1404, 2767, 12789, 7, 1150, 3299, 13, 30349, 9688, 2435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 28446, 362, 812, 2084, 11, 644, 389, 262, 1353, 1440, 749, 8811, 14798, 5010, 329, 3871, 351, 2479, 2026, 82, 30, 46506, 256, 16, 13, 30349, 3672, 16034, 357, 46506, 14103, 13, 30349, 3672, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 269, 16, 16034, 14103, 33411, 14103, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 20850, 31712, 312, 16034, 5827, 33411, 5827, 13, 496, 38651, 8845, 1677, 2026, 5357, 7863, 8, 5357, 360, 1404, 2767, 12789, 7, 1150, 3299, 13, 30349, 9688, 2435, 8 ]
Which province has the contestant elixandra tobias carasco?
SELECT province, _community FROM table_name_81 WHERE contestant = "elixandra tobias carasco"
[ 13828, 8473, 468, 262, 44047, 1288, 844, 15918, 10773, 4448, 1097, 292, 1073, 30, 46506, 8473, 11, 4808, 28158, 16034, 3084, 62, 3672, 62, 6659, 33411, 44047, 796, 366, 417, 844, 15918, 10773, 4448, 1097, 292, 1073, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 8473, 468, 262, 44047, 1288, 844, 15918, 10773, 4448, 1097, 292, 1073, 30, 46506, 8473, 11, 4808, 28158, 16034, 3084, 62, 3672, 62, 6659, 33411, 44047, 796, 366, 417, 844, 15918, 10773, 4448, 1097, 292, 1073, 1 ]
What is the build date when total produced is 2?
SELECT "Build date" FROM table_70734 WHERE "Total produced" = '2'
[ 2061, 318, 262, 1382, 3128, 618, 2472, 4635, 318, 362, 30, 46506, 366, 15580, 3128, 1, 16034, 3084, 62, 24038, 2682, 33411, 366, 14957, 4635, 1, 796, 705, 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 ]
[ 2061, 318, 262, 1382, 3128, 618, 2472, 4635, 318, 362, 30, 46506, 366, 15580, 3128, 1, 16034, 3084, 62, 24038, 2682, 33411, 366, 14957, 4635, 1, 796, 705, 17, 6 ]
what the first height of patient 011-36282 until 12 months ago.
SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-36282') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-12 month') ORDER BY patient.unitadmittime LIMIT 1
[ 10919, 262, 717, 6001, 286, 5827, 5534, 16, 12, 2623, 32568, 1566, 1105, 1933, 2084, 13, 46506, 5827, 13, 324, 3411, 17015, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 28555, 12, 2623, 32568, 11537, 5357, 5626, 5827, 13, 324, 3411, 17015, 3180, 15697, 5357, 360, 1404, 2767, 12789, 7, 26029, 13, 20850, 324, 20124, 524, 8, 19841, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 12, 1065, 1227, 11537, 38678, 11050, 5827, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 262, 717, 6001, 286, 5827, 5534, 16, 12, 2623, 32568, 1566, 1105, 1933, 2084, 13, 46506, 5827, 13, 324, 3411, 17015, 16034, 5827, 33411, 5827, 13, 26029, 13948, 10057, 31712, 312, 3268, 357, 46506, 5827, 13, 26029, 13948, 10057, 31712, 312, 16034, 5827, 33411, 5827, 13, 403, 1557, 538, 312, 796, 705, 28555, 12, 2623, 32568, 11537, 5357, 5626, 5827, 13, 324, 3411, 17015, 3180, 15697, 5357, 360, 1404, 2767, 12789, 7, 26029, 13, 20850, 324, 20124, 524, 8, 19841, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 12, 1065, 1227, 11537, 38678, 11050, 5827, 13 ]
what is gender and admission time of subject id 87275?
SELECT demographic.gender, demographic.admittime FROM demographic WHERE demographic.subject_id = "87275"
[ 10919, 318, 5279, 290, 13938, 640, 286, 2426, 4686, 10083, 23195, 30, 46506, 16728, 13, 8388, 11, 16728, 13, 324, 20124, 524, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 5774, 23195, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 318, 5279, 290, 13938, 640, 286, 2426, 4686, 10083, 23195, 30, 46506, 16728, 13, 8388, 11, 16728, 13, 324, 20124, 524, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 5774, 23195, 1 ]
What are all details of the students who registered but did not attend any course?
SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)
[ 2061, 389, 477, 3307, 286, 262, 2444, 508, 6823, 475, 750, 407, 5262, 597, 1781, 30, 46506, 1635, 16034, 3710, 62, 17319, 62, 2301, 396, 9143, 33411, 5626, 3710, 62, 312, 3268, 357, 46506, 3710, 62, 312, 16034, 3710, 62, 17319, 62, 1078, 437, 590, 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 ]
[ 2061, 389, 477, 3307, 286, 262, 2444, 508, 6823, 475, 750, 407, 5262, 597, 1781, 30, 46506, 1635, 16034, 3710, 62, 17319, 62, 2301, 396, 9143, 33411, 5626, 3710, 62, 312, 3268, 357, 46506, 3710, 62, 312, 16034, 3710, 62, 17319, 62, 1078, 437, 590, 8 ]
Which formula had a driver of John Moore-Brabazon?
SELECT formula FROM table_name_64 WHERE driver = "john moore-brabazon"
[ 13828, 10451, 550, 257, 4639, 286, 1757, 8877, 12, 9414, 397, 5168, 30, 46506, 10451, 16034, 3084, 62, 3672, 62, 2414, 33411, 4639, 796, 366, 30686, 6941, 382, 12, 1671, 397, 5168, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 10451, 550, 257, 4639, 286, 1757, 8877, 12, 9414, 397, 5168, 30, 46506, 10451, 16034, 3084, 62, 3672, 62, 2414, 33411, 4639, 796, 366, 30686, 6941, 382, 12, 1671, 397, 5168, 1 ]
the number of patients in ward 45 until 2100?
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.wardid = 45 AND STRFTIME('%y', transfers.intime) <= '2100')
[ 1169, 1271, 286, 3871, 287, 15305, 4153, 1566, 38123, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, 46506, 16395, 13, 18108, 76, 62, 312, 16034, 16395, 33411, 16395, 13, 904, 312, 796, 4153, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 16395, 13, 600, 524, 8, 19841, 705, 2481, 405, 11537 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1169, 1271, 286, 3871, 287, 15305, 4153, 1566, 38123, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108, 76, 62, 312, 3268, 357, 46506, 16395, 13, 18108, 76, 62, 312, 16034, 16395, 33411, 16395, 13, 904, 312, 796, 4153, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 16395, 13, 600, 524, 8, 19841, 705, 2481, 405, 11537 ]
What type of engine did the Fuel Injection entrant use?
SELECT "Engine" FROM table_70595 WHERE "Entrant" = 'fuel injection'
[ 2061, 2099, 286, 3113, 750, 262, 25483, 554, 29192, 920, 5250, 779, 30, 46506, 366, 13798, 1, 16034, 3084, 62, 2154, 35124, 33411, 366, 14539, 5250, 1, 796, 705, 25802, 16954, 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 ]
[ 2061, 2099, 286, 3113, 750, 262, 25483, 554, 29192, 920, 5250, 779, 30, 46506, 366, 13798, 1, 16034, 3084, 62, 2154, 35124, 33411, 366, 14539, 5250, 1, 796, 705, 25802, 16954, 6 ]
Which Points has a Difference of 3, and a Played smaller than 10?
SELECT AVG("Points") FROM table_41153 WHERE "Difference" = '3' AND "Played" < '10'
[ 13828, 11045, 468, 257, 43795, 286, 513, 11, 290, 257, 33101, 4833, 621, 838, 30, 46506, 35224, 7203, 40710, 4943, 16034, 3084, 62, 42224, 4310, 33411, 366, 28813, 1945, 1, 796, 705, 18, 6, 5357, 366, 11002, 276, 1, 1279, 705, 940, 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 ]
[ 13828, 11045, 468, 257, 43795, 286, 513, 11, 290, 257, 33101, 4833, 621, 838, 30, 46506, 35224, 7203, 40710, 4943, 16034, 3084, 62, 42224, 4310, 33411, 366, 28813, 1945, 1, 796, 705, 18, 6, 5357, 366, 11002, 276, 1, 1279, 705, 940, 6 ]
What state has lincoln, de as the hometown?
SELECT "State" FROM table_37184 WHERE "Hometown" = 'lincoln, de'
[ 2061, 1181, 468, 300, 11690, 11, 390, 355, 262, 20994, 30, 46506, 366, 9012, 1, 16034, 3084, 62, 2718, 22883, 33411, 366, 39, 19191, 1, 796, 705, 75, 11690, 11, 390, 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 ]
[ 2061, 1181, 468, 300, 11690, 11, 390, 355, 262, 20994, 30, 46506, 366, 9012, 1, 16034, 3084, 62, 2718, 22883, 33411, 366, 39, 19191, 1, 796, 705, 75, 11690, 11, 390, 6 ]
kelly gallardo is taking medication via which route?
SELECT prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Kelly Gallardo"
[ 365, 12810, 7976, 13109, 318, 2263, 14103, 2884, 543, 6339, 30, 46506, 34092, 13, 38629, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76, 62, 312, 33411, 16728, 13, 3672, 796, 366, 34831, 7096, 13109, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 365, 12810, 7976, 13109, 318, 2263, 14103, 2884, 543, 6339, 30, 46506, 34092, 13, 38629, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 6177, 16728, 13, 18108, 76, 62, 312, 796, 34092, 13, 18108, 76, 62, 312, 33411, 16728, 13, 3672, 796, 366, 34831, 7096, 13109, 1 ]
What was the audience for Episode 21?
SELECT audience FROM table_name_36 WHERE episode = "21"
[ 2061, 373, 262, 5386, 329, 7922, 2310, 30, 46506, 5386, 16034, 3084, 62, 3672, 62, 2623, 33411, 4471, 796, 366, 2481, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 5386, 329, 7922, 2310, 30, 46506, 5386, 16034, 3084, 62, 3672, 62, 2623, 33411, 4471, 796, 366, 2481, 1 ]
how many patients admitted in the year less than 2145 were diagnosed with icd9 code 591
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2145" AND diagnoses.icd9_code = "591"
[ 4919, 867, 3871, 6848, 287, 262, 614, 1342, 621, 362, 18781, 547, 14641, 351, 14158, 67, 24, 2438, 642, 6420, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 324, 76, 414, 451, 1279, 366, 17, 18781, 1, 5357, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 48952, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 3871, 6848, 287, 262, 614, 1342, 621, 362, 18781, 547, 14641, 351, 14158, 67, 24, 2438, 642, 6420, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 40567, 6177, 16728, 13, 18108, 76, 62, 312, 796, 40567, 13, 18108, 76, 62, 312, 33411, 16728, 13, 324, 76, 414, 451, 1279, 366, 17, 18781, 1, 5357, 40567, 13, 291, 67, 24, 62, 8189, 796, 366, 48952, 1 ]
What time was the away game played against the High Park Demons?
SELECT "Time" FROM table_7341 WHERE "Away" = 'high park demons'
[ 2061, 640, 373, 262, 1497, 983, 2826, 1028, 262, 3334, 3250, 38539, 30, 46506, 366, 7575, 1, 16034, 3084, 62, 22, 33660, 33411, 366, 32, 1014, 1, 796, 705, 8929, 3952, 17708, 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 ]
[ 2061, 640, 373, 262, 1497, 983, 2826, 1028, 262, 3334, 3250, 38539, 30, 46506, 366, 7575, 1, 16034, 3084, 62, 22, 33660, 33411, 366, 32, 1014, 1, 796, 705, 8929, 3952, 17708, 6 ]
how many singles were released in total ?
SELECT COUNT("title") FROM table_203_491
[ 4919, 867, 25287, 547, 2716, 287, 2472, 5633, 46506, 327, 28270, 7203, 7839, 4943, 16034, 3084, 62, 22416, 62, 41289 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4919, 867, 25287, 547, 2716, 287, 2472, 5633, 46506, 327, 28270, 7203, 7839, 4943, 16034, 3084, 62, 22416, 62, 41289 ]