instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
sequence
attention_mask
sequence
labels
sequence
how many dead patients were diagnosed with late effect of unspecified injury?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.long_title = "Late effect of unspecified injury"
[ 4919, 867, 2636, 3871, 547, 14641, 351, 2739, 1245, 286, 29547, 5095, 30, 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, 1069, 5111, 62, 32109, 796, 366, 16, 1, 5357, 40567, 13, 6511, 62, 7839, 796, 366, 26302, 1245, 286, 29547, 5095, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2636, 3871, 547, 14641, 351, 2739, 1245, 286, 29547, 5095, 30, 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, 1069, 5111, 62, 32109, 796, 366, 16, 1, 5357, 40567, 13, 6511, 62, 7839, 796, 366, 26302, 1245, 286, 29547, 5095, 1 ]
Which Silver has a Bronze smaller than 618, and a Country of laos?
SELECT silver FROM table_name_65 WHERE bronze < 618 AND country = "laos"
[ 13828, 7698, 468, 257, 19461, 4833, 621, 718, 1507, 11, 290, 257, 12946, 286, 300, 7495, 30, 46506, 8465, 16034, 3084, 62, 3672, 62, 2996, 33411, 22101, 1279, 718, 1507, 5357, 1499, 796, 366, 5031, 418, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7698, 468, 257, 19461, 4833, 621, 718, 1507, 11, 290, 257, 12946, 286, 300, 7495, 30, 46506, 8465, 16034, 3084, 62, 3672, 62, 2996, 33411, 22101, 1279, 718, 1507, 5357, 1499, 796, 366, 5031, 418, 1 ]
On what date does Yuji Tachikawa have the fastest lap in round 1?
SELECT date FROM table_name_24 WHERE fastest_lap = "yuji tachikawa" AND round = 1
[ 2202, 644, 3128, 857, 10605, 7285, 309, 620, 40398, 423, 262, 14162, 14779, 287, 2835, 352, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 1731, 33411, 14162, 62, 37796, 796, 366, 24767, 7285, 256, 620, 40398, 1, 5357, 2835, 796, 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 ]
[ 2202, 644, 3128, 857, 10605, 7285, 309, 620, 40398, 423, 262, 14162, 14779, 287, 2835, 352, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 1731, 33411, 14162, 62, 37796, 796, 366, 24767, 7285, 256, 620, 40398, 1, 5357, 2835, 796, 352 ]
What is the total best for Bruno junqueira
SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira"
[ 2061, 318, 262, 2472, 1266, 329, 31045, 10891, 4188, 8704, 46506, 35683, 7, 13466, 8, 16034, 3084, 62, 3672, 62, 2624, 33411, 1438, 796, 366, 1671, 36909, 10891, 4188, 8704, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1266, 329, 31045, 10891, 4188, 8704, 46506, 35683, 7, 13466, 8, 16034, 3084, 62, 3672, 62, 2624, 33411, 1438, 796, 366, 1671, 36909, 10891, 4188, 8704, 1 ]
Provide the number of patients whose primary disease is newborn and lab test result is delta.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "NEWBORN" AND lab.flag = "delta"
[ 15946, 485, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 23856, 290, 2248, 1332, 1255, 318, 25979, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 796, 2248, 13, 18108, 76, 62, 312, 33411, 16728, 13, 47356, 5958, 796, 366, 13965, 33, 30649, 1, 5357, 2248, 13, 32109, 796, 366, 67, 12514, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15946, 485, 262, 1271, 286, 3871, 3025, 4165, 4369, 318, 23856, 290, 2248, 1332, 1255, 318, 25979, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 796, 2248, 13, 18108, 76, 62, 312, 33411, 16728, 13, 47356, 5958, 796, 366, 13965, 33, 30649, 1, 5357, 2248, 13, 32109, 796, 366, 67, 12514, 1 ]
What is the time/retired when the grid is 19?
SELECT time_retired FROM table_name_42 WHERE grid = "19"
[ 2061, 318, 262, 640, 14, 1186, 1202, 618, 262, 10706, 318, 678, 30, 46506, 640, 62, 1186, 1202, 16034, 3084, 62, 3672, 62, 3682, 33411, 10706, 796, 366, 1129, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 640, 14, 1186, 1202, 618, 262, 10706, 318, 678, 30, 46506, 640, 62, 1186, 1202, 16034, 3084, 62, 3672, 62, 3682, 33411, 10706, 796, 366, 1129, 1 ]
Which Drawn has a Difference of 14?
SELECT AVG(drawn) FROM table_name_58 WHERE difference = "14"
[ 13828, 50061, 468, 257, 43795, 286, 1478, 30, 46506, 35224, 7, 41549, 8, 16034, 3084, 62, 3672, 62, 3365, 33411, 3580, 796, 366, 1415, 1 ]
[ 1, 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, 50061, 468, 257, 43795, 286, 1478, 30, 46506, 35224, 7, 41549, 8, 16034, 3084, 62, 3672, 62, 3365, 33411, 3580, 796, 366, 1415, 1 ]
A pie chart shows the proportion of cName and enr.
SELECT cName, enr FROM College ORDER BY enr
[ 32, 2508, 8262, 2523, 262, 9823, 286, 269, 5376, 290, 551, 81, 13, 46506, 269, 5376, 11, 551, 81, 16034, 5535, 38678, 11050, 551, 81 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 32, 2508, 8262, 2523, 262, 9823, 286, 269, 5376, 290, 551, 81, 13, 46506, 269, 5376, 11, 551, 81, 16034, 5535, 38678, 11050, 551, 81 ]
What is the reunion weight of the contestant that lost 52 lbs at the reunion?
SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_reunion = 52
[ 2061, 318, 262, 30321, 3463, 286, 262, 44047, 326, 2626, 6740, 15785, 379, 262, 30321, 30, 46506, 30321, 62, 6551, 16034, 3084, 62, 2078, 39111, 34229, 62, 20, 33411, 15785, 62, 33224, 62, 260, 24592, 796, 6740 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30321, 3463, 286, 262, 44047, 326, 2626, 6740, 15785, 379, 262, 30321, 30, 46506, 30321, 62, 6551, 16034, 3084, 62, 2078, 39111, 34229, 62, 20, 33411, 15785, 62, 33224, 62, 260, 24592, 796, 6740 ]
What country is the Eurasia Astana team from?
SELECT country FROM table_name_69 WHERE team = "eurasia astana"
[ 2061, 1499, 318, 262, 35769, 544, 8304, 2271, 1074, 422, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3388, 33411, 1074, 796, 366, 68, 17786, 544, 6468, 2271, 1 ]
[ 1, 1, 1, 1, 1, 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, 1499, 318, 262, 35769, 544, 8304, 2271, 1074, 422, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3388, 33411, 1074, 796, 366, 68, 17786, 544, 6468, 2271, 1 ]
What is the sum of Frequency, when Type is 'Christian Pop'?
SELECT SUM("Frequency") FROM table_59398 WHERE "Type" = 'christian pop'
[ 2061, 318, 262, 2160, 286, 31902, 11, 618, 5994, 318, 705, 20298, 8099, 30960, 46506, 35683, 7203, 37, 28707, 4943, 16034, 3084, 62, 3270, 31952, 33411, 366, 6030, 1, 796, 705, 43533, 666, 1461, 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 ]
[ 2061, 318, 262, 2160, 286, 31902, 11, 618, 5994, 318, 705, 20298, 8099, 30960, 46506, 35683, 7203, 37, 28707, 4943, 16034, 3084, 62, 3270, 31952, 33411, 366, 6030, 1, 796, 705, 43533, 666, 1461, 6 ]
List the name of enzymes in descending lexicographical order.
SELECT name FROM enzyme ORDER BY name DESC
[ 8053, 262, 1438, 286, 29120, 287, 31491, 31191, 291, 17046, 1502, 13, 46506, 1438, 16034, 27679, 38678, 11050, 1438, 22196, 34 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8053, 262, 1438, 286, 29120, 287, 31491, 31191, 291, 17046, 1502, 13, 46506, 1438, 16034, 27679, 38678, 11050, 1438, 22196, 34 ]
how many patients diagnosed with intracerebral hemorrhage had elective admission type?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.short_title = "Intracerebral hemorrhage"
[ 4919, 867, 3871, 14641, 351, 9913, 558, 260, 24427, 42203, 496, 550, 1742, 425, 13938, 2099, 30, 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, 3411, 62, 4906, 796, 366, 36, 16779, 9306, 1, 5357, 40567, 13, 19509, 62, 7839, 796, 366, 5317, 16740, 260, 24427, 42203, 496, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14641, 351, 9913, 558, 260, 24427, 42203, 496, 550, 1742, 425, 13938, 2099, 30, 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, 3411, 62, 4906, 796, 366, 36, 16779, 9306, 1, 5357, 40567, 13, 19509, 62, 7839, 796, 366, 5317, 16740, 260, 24427, 42203, 496, 1 ]
list all afternoon flights leaving BALTIMORE and arriving in ATLANTA on thursday
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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND date_day.day_number = 24 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time BETWEEN 1200 AND 1800
[ 4868, 477, 6672, 13956, 4305, 347, 31429, 3955, 6965, 290, 14820, 287, 5161, 25697, 5603, 319, 294, 3479, 46506, 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, 3128, 62, 820, 11, 1528, 11, 5474, 33411, 14808, 34, 9050, 62, 16, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 19205, 62, 8189, 5357, 27993, 62, 16, 13, 19205 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 4868, 477, 6672, 13956, 4305, 347, 31429, 3955, 6965, 290, 14820, 287, 5161, 25697, 5603, 319, 294, 3479, 46506, 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, 3128, 62, 820, 11, 1528, 11, 5474, 33411, 14808, 34, 9050, 62, 16, 13, 19205, 62, 8189, 796, 31600, 15490, 62, 35009, 27389, 62, 16, 13, 19205, 62, 8189, 5357, 27993, 62, 16, 13, 19205 ]
What date was the game with a score of w 116 93 (ot)?
SELECT date FROM table_27715173_6 WHERE score = "W 116–93 (OT)"
[ 2061, 3128, 373, 262, 983, 351, 257, 4776, 286, 266, 18693, 10261, 357, 313, 19427, 46506, 3128, 16034, 3084, 62, 27019, 1314, 25399, 62, 21, 33411, 4776, 796, 366, 54, 18693, 1906, 6052, 357, 2394, 16725 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3128, 373, 262, 983, 351, 257, 4776, 286, 266, 18693, 10261, 357, 313, 19427, 46506, 3128, 16034, 3084, 62, 27019, 1314, 25399, 62, 21, 33411, 4776, 796, 366, 54, 18693, 1906, 6052, 357, 2394, 16725 ]
What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3?
SELECT AVG(university_of_dublin) FROM table_name_75 WHERE industrial_and_commercial_panel > 4 AND national_university_of_ireland > 3
[ 2061, 318, 262, 2811, 329, 262, 6403, 286, 10873, 2815, 618, 262, 7593, 290, 5068, 6103, 318, 3744, 621, 604, 290, 262, 2472, 286, 262, 2260, 6403, 286, 35918, 1044, 318, 4025, 621, 513, 30, 46506, 35224, 7, 403, 1608, 62, 1659, 62, 67, 549, 2815, 8, 16034, 3084, 62, 3672, 62, 2425, 33411, 7593, 62, 392, 62, 36313, 62, 35330, 1875, 604, 5357, 2260, 62, 403, 1608, 62, 1659, 62, 557, 1044, 1875, 513 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 329, 262, 6403, 286, 10873, 2815, 618, 262, 7593, 290, 5068, 6103, 318, 3744, 621, 604, 290, 262, 2472, 286, 262, 2260, 6403, 286, 35918, 1044, 318, 4025, 621, 513, 30, 46506, 35224, 7, 403, 1608, 62, 1659, 62, 67, 549, 2815, 8, 16034, 3084, 62, 3672, 62, 2425, 33411, 7593, 62, 392, 62, 36313, 62, 35330, 1875, 604, 5357, 2260, 62, 403, 1608, 62, 1659, 62, 557, 1044, 1875, 513 ]
Who was the away team at Windy Hill?
SELECT "Away team" FROM table_51911 WHERE "Venue" = 'windy hill'
[ 8241, 373, 262, 1497, 1074, 379, 3086, 88, 3327, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 47785, 1157, 33411, 366, 37522, 518, 1, 796, 705, 7972, 88, 12788, 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 ]
[ 8241, 373, 262, 1497, 1074, 379, 3086, 88, 3327, 30, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 47785, 1157, 33411, 366, 37522, 518, 1, 796, 705, 7972, 88, 12788, 6 ]
what are the four most frequently prescribed medications for patients who had received sm bowel stoma closure previously during the same month, until 2103?
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 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 = 'sm bowel stoma closure') AND STRFTIME('%y', procedures_icd.charttime) <= '2103') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', prescriptions.startdate) <= '2103') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.startdate, 'start of month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4
[ 10919, 389, 262, 1440, 749, 6777, 14798, 17638, 329, 3871, 508, 550, 2722, 895, 35711, 336, 6086, 16512, 4271, 1141, 262, 976, 1227, 11, 1566, 362, 15197, 30, 46506, 256, 18, 13, 30349, 16034, 357, 46506, 256, 17, 13, 30349, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 269, 16, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 262, 1440, 749, 6777, 14798, 17638, 329, 3871, 508, 550, 2722, 895, 35711, 336, 6086, 16512, 4271, 1141, 262, 976, 1227, 11, 1566, 362, 15197, 30, 46506, 256, 18, 13, 30349, 16034, 357, 46506, 256, 17, 13, 30349, 11, 360, 24290, 62, 49, 15154, 3419, 28729, 357, 12532, 1137, 11050, 327, 28270, 7, 28104, 22196, 34, 8, 7054, 269, 16, 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 ]
What is the average Position, when Bike No is greater than 8, and when Points is less than 240?
SELECT AVG(position) FROM table_name_16 WHERE bike_no > 8 AND points < 240
[ 2061, 318, 262, 2811, 23158, 11, 618, 26397, 1400, 318, 3744, 621, 807, 11, 290, 618, 11045, 318, 1342, 621, 14956, 30, 46506, 35224, 7, 9150, 8, 16034, 3084, 62, 3672, 62, 1433, 33411, 7161, 62, 3919, 1875, 807, 5357, 2173, 1279, 14956 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23158, 11, 618, 26397, 1400, 318, 3744, 621, 807, 11, 290, 618, 11045, 318, 1342, 621, 14956, 30, 46506, 35224, 7, 9150, 8, 16034, 3084, 62, 3672, 62, 1433, 33411, 7161, 62, 3919, 1875, 807, 5357, 2173, 1279, 14956 ]
How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?
SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1
[ 2437, 867, 3648, 82, 423, 718, 13, 24, 355, 257, 4793, 11, 351, 257, 4343, 1342, 621, 767, 13, 16, 30, 46506, 327, 28270, 7, 11528, 8, 16034, 3084, 62, 3672, 62, 6469, 33411, 4793, 796, 718, 13, 24, 5357, 4343, 1279, 767, 13, 16 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 3648, 82, 423, 718, 13, 24, 355, 257, 4793, 11, 351, 257, 4343, 1342, 621, 767, 13, 16, 30, 46506, 327, 28270, 7, 11528, 8, 16034, 3084, 62, 3672, 62, 6469, 33411, 4793, 796, 718, 13, 24, 5357, 4343, 1279, 767, 13, 16 ]
Which date was corio oval the venue?
SELECT date FROM table_name_12 WHERE venue = "corio oval"
[ 13828, 3128, 373, 1162, 952, 41186, 262, 14359, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 1065, 33411, 14359, 796, 366, 10215, 952, 41186, 1 ]
[ 1, 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, 3128, 373, 1162, 952, 41186, 262, 14359, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 1065, 33411, 14359, 796, 366, 10215, 952, 41186, 1 ]
What season had 2.52 million viewers?
SELECT "TV season" FROM table_24570 WHERE "Viewers in millions" = '2.52'
[ 2061, 1622, 550, 362, 13, 4309, 1510, 10209, 30, 46506, 366, 6849, 1622, 1, 16034, 3084, 62, 22995, 2154, 33411, 366, 7680, 364, 287, 5242, 1, 796, 705, 17, 13, 4309, 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, 1622, 550, 362, 13, 4309, 1510, 10209, 30, 46506, 366, 6849, 1622, 1, 16034, 3084, 62, 22995, 2154, 33411, 366, 7680, 364, 287, 5242, 1, 796, 705, 17, 13, 4309, 6 ]
List the description, code and the number of services for each service type.
SELECT T1.service_type_description, T2.service_type_code, COUNT(*) FROM ref_service_types AS T1 JOIN services AS T2 ON T1.service_type_code = T2.service_type_code GROUP BY T2.service_type_code
[ 8053, 262, 6764, 11, 2438, 290, 262, 1271, 286, 2594, 329, 1123, 2139, 2099, 13, 46506, 309, 16, 13, 15271, 62, 4906, 62, 11213, 11, 309, 17, 13, 15271, 62, 4906, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 1006, 62, 15271, 62, 19199, 7054, 309, 16, 32357, 1268, 2594, 7054, 309, 17, 6177, 309, 16, 13, 15271, 62, 4906, 62, 8189, 796, 309, 17, 13, 15271, 62, 4906, 62, 8189, 44441, 11050, 309, 17, 13, 15271, 62, 4906, 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 ]
[ 8053, 262, 6764, 11, 2438, 290, 262, 1271, 286, 2594, 329, 1123, 2139, 2099, 13, 46506, 309, 16, 13, 15271, 62, 4906, 62, 11213, 11, 309, 17, 13, 15271, 62, 4906, 62, 8189, 11, 327, 28270, 7, 28104, 16034, 1006, 62, 15271, 62, 19199, 7054, 309, 16, 32357, 1268, 2594, 7054, 309, 17, 6177, 309, 16, 13, 15271, 62, 4906, 62, 8189, 796, 309, 17, 13, 15271, 62, 4906, 62, 8189, 44441, 11050, 309, 17, 13, 15271, 62, 4906, 62, 8189 ]
what is the number of patients whose ethnicity is hispanic or latino and diagnoses short title is episodic mood disord nos?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND diagnoses.short_title = "Episodic mood disord NOS"
[ 10919, 318, 262, 1271, 286, 3871, 3025, 26289, 318, 465, 35843, 393, 3042, 2879, 290, 40567, 1790, 3670, 318, 48177, 29512, 10038, 595, 585, 43630, 30, 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, 38546, 414, 796, 366, 39, 1797, 47, 1565, 2149, 6375, 42355, 46016, 1, 5357, 40567, 13, 19509, 62, 7839, 796, 366, 13807, 271, 29512, 10038, 595, 585, 399, 2640, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 3871, 3025, 26289, 318, 465, 35843, 393, 3042, 2879, 290, 40567, 1790, 3670, 318, 48177, 29512, 10038, 595, 585, 43630, 30, 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, 38546, 414, 796, 366, 39, 1797, 47, 1565, 2149, 6375, 42355, 46016, 1, 5357, 40567, 13, 19509, 62, 7839, 796, 366, 13807, 271, 29512, 10038, 595, 585, 399, 2640, 1 ]
how many movies has he been from 1941-1949 .
SELECT COUNT("year") FROM table_202_200
[ 4919, 867, 6918, 468, 339, 587, 422, 23234, 12, 1129, 2920, 764, 46506, 327, 28270, 7203, 1941, 4943, 16034, 3084, 62, 19004, 62, 2167 ]
[ 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, 6918, 468, 339, 587, 422, 23234, 12, 1129, 2920, 764, 46506, 327, 28270, 7203, 1941, 4943, 16034, 3084, 62, 19004, 62, 2167 ]
which model was the first portable device ?
SELECT "ibm model number" FROM table_203_136 WHERE "case" = 'portable' ORDER BY id LIMIT 1
[ 4758, 2746, 373, 262, 717, 17726, 3335, 5633, 46506, 366, 571, 76, 2746, 1271, 1, 16034, 3084, 62, 22416, 62, 20809, 33411, 366, 7442, 1, 796, 705, 634, 540, 6, 38678, 11050, 4686, 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 ]
[ 4758, 2746, 373, 262, 717, 17726, 3335, 5633, 46506, 366, 571, 76, 2746, 1271, 1, 16034, 3084, 62, 22416, 62, 20809, 33411, 366, 7442, 1, 796, 705, 634, 540, 6, 38678, 11050, 4686, 27564, 2043, 352 ]
Which Nationality has a Name of assyrian?
SELECT nationality FROM table_name_86 WHERE name = "assyrian"
[ 13828, 2351, 414, 468, 257, 6530, 286, 840, 88, 4484, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 4521, 33411, 1438, 796, 366, 11720, 4484, 1 ]
[ 1, 1, 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, 2351, 414, 468, 257, 6530, 286, 840, 88, 4484, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 4521, 33411, 1438, 796, 366, 11720, 4484, 1 ]
What is the total number of games lost when 22 have been played, the losing BP number is 2, and the club is Merthyr RFC?
SELECT "Lost" FROM table_67888 WHERE "Played" = '22' AND "Losing BP" = '2' AND "Club" = 'merthyr rfc'
[ 2061, 318, 262, 2472, 1271, 286, 1830, 2626, 618, 2534, 423, 587, 2826, 11, 262, 6078, 20997, 1271, 318, 362, 11, 290, 262, 3430, 318, 4638, 400, 2417, 30978, 30, 46506, 366, 31042, 1, 16034, 3084, 62, 3134, 28011, 33411, 366, 11002, 276, 1, 796, 705, 1828, 6, 5357, 366, 43, 2752, 20997, 1, 796, 705, 17, 6, 5357, 366, 42350, 1, 796, 705, 647, 400, 2417, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2472, 1271, 286, 1830, 2626, 618, 2534, 423, 587, 2826, 11, 262, 6078, 20997, 1271, 318, 362, 11, 290, 262, 3430, 318, 4638, 400, 2417, 30978, 30, 46506, 366, 31042, 1, 16034, 3084, 62, 3134, 28011, 33411, 366, 11002, 276, 1, 796, 705, 1828, 6, 5357, 366, 43, 2752, 20997, 1, 796, 705, 17, 6, 5357, 366, 42350, 1, 796, 705, 647, 400, 2417, 374, 16072, 6 ]
what number of patients got percu abdominal drainage during the same month after they had been diagnosed with persist postop fistula in 2102?
SELECT COUNT(DISTINCT t1.subject_id) 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 = 'persist postop fistula') AND STRFTIME('%y', diagnoses_icd.charttime) = '2102') 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 = 'percu abdominal drainage') AND STRFTIME('%y', procedures_icd.charttime) = '2102') 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')
[ 10919, 1271, 286, 3871, 1392, 583, 27399, 32692, 37664, 1141, 262, 976, 1227, 706, 484, 550, 587, 14641, 351, 21160, 1281, 404, 18606, 4712, 287, 362, 15377, 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, 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, 796, 357, 46506, 288, 62 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1271, 286, 3871, 1392, 583, 27399, 32692, 37664, 1141, 262, 976, 1227, 706, 484, 550, 587, 14641, 351, 21160, 1281, 404, 18606, 4712, 287, 362, 15377, 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, 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, 796, 357, 46506, 288, 62 ]
the previous year patient 23475 went to the hospital?
SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 23475 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
[ 1169, 2180, 614, 5827, 2242, 32576, 1816, 284, 262, 4436, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 2242, 32576, 5357, 360, 1404, 2767, 12789, 7, 324, 8481, 13, 324, 20124, 524, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 16, 614, 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 ]
[ 1169, 2180, 614, 5827, 2242, 32576, 1816, 284, 262, 4436, 30, 46506, 327, 28270, 7, 28104, 1875, 657, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 2242, 32576, 5357, 360, 1404, 2767, 12789, 7, 324, 8481, 13, 324, 20124, 524, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 614, 3256, 705, 12, 16, 614, 11537 ]
What player has 477 runs?
SELECT "Player" FROM table_24146 WHERE "Runs" = '477'
[ 2061, 2137, 468, 604, 3324, 4539, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 1731, 20964, 33411, 366, 10987, 82, 1, 796, 705, 32883, 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 ]
[ 2061, 2137, 468, 604, 3324, 4539, 30, 46506, 366, 14140, 1, 16034, 3084, 62, 1731, 20964, 33411, 366, 10987, 82, 1, 796, 705, 32883, 6 ]
Name the date of the italian grand prix
SELECT date FROM table_name_34 WHERE race = "italian grand prix"
[ 5376, 262, 3128, 286, 262, 340, 7199, 4490, 1293, 87, 46506, 3128, 16034, 3084, 62, 3672, 62, 2682, 33411, 3234, 796, 366, 1287, 666, 4490, 1293, 87, 1 ]
[ 1, 1, 1, 1, 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, 3128, 286, 262, 340, 7199, 4490, 1293, 87, 46506, 3128, 16034, 3084, 62, 3672, 62, 2682, 33411, 3234, 796, 366, 1287, 666, 4490, 1293, 87, 1 ]
What is the total Goals with Rank larger than 10?
SELECT SUM("Goals") FROM table_12515 WHERE "Rank" > '10'
[ 2061, 318, 262, 2472, 28510, 351, 10916, 4025, 621, 838, 30, 46506, 35683, 7203, 5247, 874, 4943, 16034, 3084, 62, 11623, 1314, 33411, 366, 27520, 1, 1875, 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 ]
[ 2061, 318, 262, 2472, 28510, 351, 10916, 4025, 621, 838, 30, 46506, 35683, 7203, 5247, 874, 4943, 16034, 3084, 62, 11623, 1314, 33411, 366, 27520, 1, 1875, 705, 940, 6 ]
Which District has a Party of republican and a Result of lost re-election democratic gain?
SELECT district FROM table_name_82 WHERE party = "republican" AND result = "lost re-election democratic gain"
[ 13828, 5665, 468, 257, 3615, 286, 41477, 290, 257, 25414, 286, 2626, 302, 12, 14300, 10518, 4461, 30, 46506, 4783, 16034, 3084, 62, 3672, 62, 6469, 33411, 2151, 796, 366, 7856, 841, 272, 1, 5357, 1255, 796, 366, 33224, 302, 12, 14300, 10518, 4461, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5665, 468, 257, 3615, 286, 41477, 290, 257, 25414, 286, 2626, 302, 12, 14300, 10518, 4461, 30, 46506, 4783, 16034, 3084, 62, 3672, 62, 6469, 33411, 2151, 796, 366, 7856, 841, 272, 1, 5357, 1255, 796, 366, 33224, 302, 12, 14300, 10518, 4461, 1 ]
How many courses with more than one prerequisite for each title? Return a bar chart, sort Y-axis from high to low order.
SELECT title, COUNT(title) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title ORDER BY COUNT(title) DESC
[ 2437, 867, 10902, 351, 517, 621, 530, 43119, 329, 1123, 3670, 30, 8229, 257, 2318, 8262, 11, 3297, 575, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 3670, 11, 327, 28270, 7, 7839, 8, 16034, 1781, 7054, 309, 16, 32357, 1268, 662, 42180, 7054, 309, 17, 6177, 309, 16, 13, 17319, 62, 312, 796, 309, 17, 13, 17319, 62, 312, 44441, 11050, 3670, 38678, 11050, 327, 28270, 7, 7839, 8, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 10902, 351, 517, 621, 530, 43119, 329, 1123, 3670, 30, 8229, 257, 2318, 8262, 11, 3297, 575, 12, 22704, 422, 1029, 284, 1877, 1502, 13, 46506, 3670, 11, 327, 28270, 7, 7839, 8, 16034, 1781, 7054, 309, 16, 32357, 1268, 662, 42180, 7054, 309, 17, 6177, 309, 16, 13, 17319, 62, 312, 796, 309, 17, 13, 17319, 62, 312, 44441, 11050, 3670, 38678, 11050, 327, 28270, 7, 7839, 8, 22196, 34 ]
How many matches have 0 as the lost?
SELECT COUNT(match) FROM table_name_32 WHERE lost = 0
[ 2437, 867, 7466, 423, 657, 355, 262, 2626, 30, 46506, 327, 28270, 7, 15699, 8, 16034, 3084, 62, 3672, 62, 2624, 33411, 2626, 796, 657 ]
[ 1, 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, 7466, 423, 657, 355, 262, 2626, 30, 46506, 327, 28270, 7, 15699, 8, 16034, 3084, 62, 3672, 62, 2624, 33411, 2626, 796, 657 ]
how many callsigns are for the branding telemundo 47
SELECT COUNT(callsign) FROM table_1979203_1 WHERE branding = "Telemundo 47"
[ 4919, 867, 3848, 570, 82, 389, 329, 262, 24150, 5735, 20125, 78, 6298, 46506, 327, 28270, 7, 66, 5691, 570, 8, 16034, 3084, 62, 33581, 22416, 62, 16, 33411, 24150, 796, 366, 6767, 10671, 41204, 6298, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3848, 570, 82, 389, 329, 262, 24150, 5735, 20125, 78, 6298, 46506, 327, 28270, 7, 66, 5691, 570, 8, 16034, 3084, 62, 33581, 22416, 62, 16, 33411, 24150, 796, 366, 6767, 10671, 41204, 6298, 1 ]
Which game is on mar 12?
SELECT AVG(game) FROM table_name_81 WHERE date = "mar 12"
[ 13828, 983, 318, 319, 1667, 1105, 30, 46506, 35224, 7, 6057, 8, 16034, 3084, 62, 3672, 62, 6659, 33411, 3128, 796, 366, 3876, 1105, 1 ]
[ 1, 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, 983, 318, 319, 1667, 1105, 30, 46506, 35224, 7, 6057, 8, 16034, 3084, 62, 3672, 62, 6659, 33411, 3128, 796, 366, 3876, 1105, 1 ]
What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?
SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95
[ 2061, 318, 262, 285, 14630, 286, 262, 10752, 351, 257, 6586, 21249, 25479, 7505, 290, 281, 2071, 2756, 2174, 1987, 13, 3865, 30, 46506, 285, 14630, 16034, 3084, 62, 3672, 62, 4304, 33411, 7505, 796, 366, 13165, 5957, 31377, 12835, 82, 1, 5357, 2071, 62, 20888, 1279, 1987, 13, 3865 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 285, 14630, 286, 262, 10752, 351, 257, 6586, 21249, 25479, 7505, 290, 281, 2071, 2756, 2174, 1987, 13, 3865, 30, 46506, 285, 14630, 16034, 3084, 62, 3672, 62, 4304, 33411, 7505, 796, 366, 13165, 5957, 31377, 12835, 82, 1, 5357, 2071, 62, 20888, 1279, 1987, 13, 3865 ]
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the average of employee_id bin hire_date by time in a bar chart.
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40
[ 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, 905, 502, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 416, 640, 287, 257, 2318, 8262, 13, 46506, 36210, 2200, 62, 35, 6158, 11, 35224, 7, 3620, 6489, 21414, 6500, 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, 30709, 10979, 62, 2389 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 905, 502, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 6538, 62, 312, 9874, 11078, 62, 4475, 416, 640, 287, 257, 2318, 8262, 13, 46506, 36210, 2200, 62, 35, 6158, 11, 35224, 7, 3620, 6489, 21414, 6500, 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, 30709, 10979, 62, 2389 ]
For all employees who have the letters D or S in their first name, find job_id and the average of manager_id , and group by attribute job_id, and visualize them by a bar chart, order mean manager id from low to high order please.
SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID)
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 1064, 1693, 62, 312, 290, 262, 2811, 286, 4706, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 1502, 1612, 4706, 4686, 422, 1877, 284, 1029, 1502, 3387, 13, 46506, 449, 9864, 62, 2389, 11, 35224, 7, 10725, 4760, 1137, 62, 2389, 8, 16034, 4409, 33411, 31328, 62, 20608, 34178, 705, 4, 35, 4, 6, 6375, 31328, 62, 20608, 34178, 705, 4, 50, 4, 6, 44441, 11050, 449, 9864, 62, 2389, 38678, 11050, 35224, 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 ]
[ 1890, 477, 4409, 508, 423, 262, 7475, 360, 393, 311, 287, 511, 717, 1438, 11, 1064, 1693, 62, 312, 290, 262, 2811, 286, 4706, 62, 312, 837, 290, 1448, 416, 11688, 1693, 62, 312, 11, 290, 38350, 606, 416, 257, 2318, 8262, 11, 1502, 1612, 4706, 4686, 422, 1877, 284, 1029, 1502, 3387, 13, 46506, 449, 9864, 62, 2389, 11, 35224, 7, 10725, 4760, 1137, 62, 2389, 8, 16034, 4409, 33411, 31328, 62, 20608, 34178, 705, 4, 35, 4, 6, 6375, 31328, 62, 20608, 34178, 705, 4, 50, 4, 6, 44441, 11050, 449, 9864, 62, 2389, 38678, 11050, 35224, 7 ]
what was the name of the specimen test that patient 031-22988 last received until 03/2104.
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 = '031-22988')) AND STRFTIME('%y-%m', microlab.culturetakentime) <= '2104-03' ORDER BY microlab.culturetakentime DESC LIMIT 1
[ 10919, 373, 262, 1438, 286, 262, 31674, 1332, 326, 5827, 657, 3132, 12, 23539, 3459, 938, 2722, 1566, 7643, 14, 17, 13464, 13, 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, 43637, 12, 23539, 3459, 6, 4008, 5357, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 3256, 4580, 23912 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3132, 12, 23539, 3459, 938, 2722, 1566, 7643, 14, 17, 13464, 13, 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, 43637, 12, 23539, 3459, 6, 4008, 5357, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 3256, 4580, 23912 ]
What is the episode number for 'Old Monster'?
SELECT "No. in series" FROM table_29262 WHERE "Title" = 'Old Monster'
[ 2061, 318, 262, 4471, 1271, 329, 705, 19620, 12635, 30960, 46506, 366, 2949, 13, 287, 2168, 1, 16034, 3084, 62, 1959, 29119, 33411, 366, 19160, 1, 796, 705, 19620, 12635, 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, 318, 262, 4471, 1271, 329, 705, 19620, 12635, 30960, 46506, 366, 2949, 13, 287, 2168, 1, 16034, 3084, 62, 1959, 29119, 33411, 366, 19160, 1, 796, 705, 19620, 12635, 6 ]
Find the number of rooms with price higher than 120 for different decor Show bar chart, list by the decor in desc.
SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor ORDER BY decor DESC
[ 16742, 262, 1271, 286, 9519, 351, 2756, 2440, 621, 7982, 329, 1180, 11705, 5438, 2318, 8262, 11, 1351, 416, 262, 11705, 287, 1715, 13, 46506, 11705, 11, 327, 28270, 7, 28104, 16034, 42043, 33411, 2779, 18124, 1875, 7982, 44441, 11050, 11705, 38678, 11050, 11705, 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 ]
[ 16742, 262, 1271, 286, 9519, 351, 2756, 2440, 621, 7982, 329, 1180, 11705, 5438, 2318, 8262, 11, 1351, 416, 262, 11705, 287, 1715, 13, 46506, 11705, 11, 327, 28270, 7, 28104, 16034, 42043, 33411, 2779, 18124, 1875, 7982, 44441, 11050, 11705, 38678, 11050, 11705, 22196, 34 ]
How many players are from each country?
SELECT country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.country_id = T2.country GROUP BY T1.country_name
[ 2437, 867, 1938, 389, 422, 1123, 1499, 30, 46506, 1499, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 1499, 7054, 309, 16, 32357, 1268, 2872, 62, 6230, 7054, 309, 17, 6177, 309, 16, 13, 19315, 62, 312, 796, 309, 17, 13, 19315, 44441, 11050, 309, 16, 13, 19315, 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 ]
[ 2437, 867, 1938, 389, 422, 1123, 1499, 30, 46506, 1499, 62, 3672, 11, 327, 28270, 7, 28104, 16034, 1499, 7054, 309, 16, 32357, 1268, 2872, 62, 6230, 7054, 309, 17, 6177, 309, 16, 13, 19315, 62, 312, 796, 309, 17, 13, 19315, 44441, 11050, 309, 16, 13, 19315, 62, 3672 ]
what was the last procedure time patient 54390 has had in 2102?
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 54390) AND STRFTIME('%y', procedures_icd.charttime) = '2102' ORDER BY procedures_icd.charttime DESC LIMIT 1
[ 10919, 373, 262, 938, 8771, 640, 5827, 7175, 25964, 468, 550, 287, 362, 15377, 30, 46506, 9021, 62, 291, 67, 13, 40926, 2435, 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, 62, 312, 796, 7175, 25964, 8, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 9021, 62, 291, 67, 13, 40926, 2435, 8, 796, 705, 17, 15377, 6, 38678, 11050, 9021, 62, 291, 67, 13, 40926, 2435, 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, 1, 1, 1, 1, 1, 1, 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, 938, 8771, 640, 5827, 7175, 25964, 468, 550, 287, 362, 15377, 30, 46506, 9021, 62, 291, 67, 13, 40926, 2435, 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, 62, 312, 796, 7175, 25964, 8, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 9021, 62, 291, 67, 13, 40926, 2435, 8, 796, 705, 17, 15377, 6, 38678, 11050, 9021, 62, 291, 67, 13, 40926, 2435, 22196, 34, 27564, 2043, 352 ]
is there ground transportation from the airport to downtown PHOENIX
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'PHOENIX' AND ground_service.city_code = city.city_code
[ 271, 612, 2323, 9358, 422, 262, 9003, 284, 9436, 9370, 46, 1677, 10426, 46506, 360, 8808, 1268, 4177, 2323, 62, 15271, 13, 7645, 634, 62, 4906, 16034, 1748, 11, 2323, 62, 15271, 33411, 1748, 13, 19205, 62, 3672, 796, 705, 11909, 46, 1677, 10426, 6, 5357, 2323, 62, 15271, 13, 19205, 62, 8189, 796, 1748, 13, 19205, 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 ]
[ 271, 612, 2323, 9358, 422, 262, 9003, 284, 9436, 9370, 46, 1677, 10426, 46506, 360, 8808, 1268, 4177, 2323, 62, 15271, 13, 7645, 634, 62, 4906, 16034, 1748, 11, 2323, 62, 15271, 33411, 1748, 13, 19205, 62, 3672, 796, 705, 11909, 46, 1677, 10426, 6, 5357, 2323, 62, 15271, 13, 19205, 62, 8189, 796, 1748, 13, 19205, 62, 8189 ]
Show the number of departments created in different year and bin creation time by year in a line chart, and sort Creation in ascending order please.
SELECT Creation, COUNT(Creation) FROM department ORDER BY Creation
[ 15307, 262, 1271, 286, 13346, 2727, 287, 1180, 614, 290, 9874, 6282, 640, 416, 614, 287, 257, 1627, 8262, 11, 290, 3297, 21582, 287, 41988, 1502, 3387, 13, 46506, 21582, 11, 327, 28270, 7, 12443, 341, 8, 16034, 5011, 38678, 11050, 21582 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 15307, 262, 1271, 286, 13346, 2727, 287, 1180, 614, 290, 9874, 6282, 640, 416, 614, 287, 257, 1627, 8262, 11, 290, 3297, 21582, 287, 41988, 1502, 3387, 13, 46506, 21582, 11, 327, 28270, 7, 12443, 341, 8, 16034, 5011, 38678, 11050, 21582 ]
what is marital status and procedure short title of subject id 74032?
SELECT demographic.marital_status, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "74032"
[ 10919, 318, 29555, 3722, 290, 8771, 1790, 3670, 286, 2426, 4686, 767, 1821, 2624, 30, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 9021, 13, 19509, 62, 7839, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 312, 796, 9021, 13, 18108, 76, 62, 312, 33411, 16728, 13, 32796, 62, 312, 796, 366, 45598, 2624, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29555, 3722, 290, 8771, 1790, 3670, 286, 2426, 4686, 767, 1821, 2624, 30, 46506, 16728, 13, 3876, 1287, 62, 13376, 11, 9021, 13, 19509, 62, 7839, 16034, 16728, 3268, 21479, 32357, 1268, 9021, 6177, 16728, 13, 18108, 76, 62, 312, 796, 9021, 13, 18108, 76, 62, 312, 33411, 16728, 13, 32796, 62, 312, 796, 366, 45598, 2624, 1 ]
What is the result on September 25, 1966?
SELECT "Result" FROM table_49119 WHERE "Date" = 'september 25, 1966'
[ 2061, 318, 262, 1255, 319, 2693, 1679, 11, 19322, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 2920, 16315, 33411, 366, 10430, 1, 796, 705, 325, 457, 1491, 1679, 11, 19322, 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, 1255, 319, 2693, 1679, 11, 19322, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 2920, 16315, 33411, 366, 10430, 1, 796, 705, 325, 457, 1491, 1679, 11, 19322, 6 ]
what is the length of patient 55843's stay at the first intensive care unit stay?
SELECT STRFTIME('%j', icustays.outtime) - STRFTIME('%j', icustays.intime) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 55843) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1
[ 10919, 318, 262, 4129, 286, 5827, 642, 3365, 3559, 338, 2652, 379, 262, 717, 18590, 1337, 4326, 2652, 30, 46506, 19269, 9792, 12789, 10786, 4, 73, 3256, 14158, 436, 592, 13, 448, 2435, 8, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, 14158, 436, 592, 13, 600, 524, 8, 16034, 14158, 436, 592, 33411, 14158, 436, 592, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 642, 3365, 3559, 8, 5357, 5626, 14158, 436, 592, 13, 448, 2435, 3180, 15697, 38678, 11050, 14158, 436, 592, 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, 318, 262, 4129, 286, 5827, 642, 3365, 3559, 338, 2652, 379, 262, 717, 18590, 1337, 4326, 2652, 30, 46506, 19269, 9792, 12789, 10786, 4, 73, 3256, 14158, 436, 592, 13, 448, 2435, 8, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, 14158, 436, 592, 13, 600, 524, 8, 16034, 14158, 436, 592, 33411, 14158, 436, 592, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 642, 3365, 3559, 8, 5357, 5626, 14158, 436, 592, 13, 448, 2435, 3180, 15697, 38678, 11050, 14158, 436, 592, 13 ]
How many tries against did the club with 48 tries for have?
SELECT tries_against FROM table_name_90 WHERE tries_for = "48"
[ 2437, 867, 8404, 1028, 750, 262, 3430, 351, 4764, 8404, 329, 423, 30, 46506, 8404, 62, 32826, 16034, 3084, 62, 3672, 62, 3829, 33411, 8404, 62, 1640, 796, 366, 2780, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 8404, 1028, 750, 262, 3430, 351, 4764, 8404, 329, 423, 30, 46506, 8404, 62, 32826, 16034, 3084, 62, 3672, 62, 3829, 33411, 8404, 62, 1640, 796, 366, 2780, 1 ]
Draw a pie chart for what are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?
SELECT Name, Price FROM Products WHERE Price >= 180 ORDER BY Price DESC, Name
[ 25302, 257, 2508, 8262, 329, 644, 389, 262, 3891, 290, 4536, 286, 3186, 326, 1575, 379, 1551, 11546, 11, 23243, 416, 2756, 24030, 290, 1438, 41988, 30, 46506, 6530, 11, 7886, 16034, 18675, 33411, 7886, 18189, 11546, 38678, 11050, 7886, 22196, 34, 11, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 25302, 257, 2508, 8262, 329, 644, 389, 262, 3891, 290, 4536, 286, 3186, 326, 1575, 379, 1551, 11546, 11, 23243, 416, 2756, 24030, 290, 1438, 41988, 30, 46506, 6530, 11, 7886, 16034, 18675, 33411, 7886, 18189, 11546, 38678, 11050, 7886, 22196, 34, 11, 6530 ]
What is the maximum number of 2006 subscribers for Mobilis?
SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Mobilis"
[ 2061, 318, 262, 5415, 1271, 286, 4793, 18327, 329, 45951, 271, 30, 46506, 25882, 7, 7266, 40075, 364, 834, 13330, 17569, 400, 19983, 62, 8, 16034, 3084, 62, 1959, 31010, 33551, 62, 17, 33411, 10131, 796, 366, 47100, 271, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5415, 1271, 286, 4793, 18327, 329, 45951, 271, 30, 46506, 25882, 7, 7266, 40075, 364, 834, 13330, 17569, 400, 19983, 62, 8, 16034, 3084, 62, 1959, 31010, 33551, 62, 17, 33411, 10131, 796, 366, 47100, 271, 1 ]
in this year, how many patients had been diagnosed with dvt - right lower extremity?
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'dvt - right lower extremity' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
[ 259, 428, 614, 11, 703, 867, 3871, 550, 587, 14641, 351, 288, 36540, 532, 826, 2793, 8963, 414, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 13669, 13, 26029, 20850, 31712, 312, 16034, 13669, 33411, 13669, 13, 47356, 5958, 3672, 796, 705, 67, 36540, 532, 826, 2793, 8963, 414, 6, 5357, 360, 1404, 2767, 12789, 7, 47356, 5958, 13, 47356, 418, 396, 524, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 259, 428, 614, 11, 703, 867, 3871, 550, 587, 14641, 351, 288, 36540, 532, 826, 2793, 8963, 414, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 5827, 13, 403, 1557, 538, 312, 8, 16034, 5827, 33411, 5827, 13, 26029, 20850, 31712, 312, 3268, 357, 46506, 13669, 13, 26029, 20850, 31712, 312, 16034, 13669, 33411, 13669, 13, 47356, 5958, 3672, 796, 705, 67, 36540, 532, 826, 2793, 8963, 414, 6, 5357, 360, 1404, 2767, 12789, 7, 47356, 5958, 13, 47356, 418, 396, 524, 11, 705, 9688, 286, 614, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784 ]
What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?
SELECT AVG("Clean & Jerk") FROM table_62294 WHERE "Total (kg)" > '204' AND "Snatch" > '98'
[ 2061, 318, 262, 3424, 1222, 29757, 618, 262, 2472, 357, 10025, 8, 318, 517, 621, 26956, 11, 290, 43388, 318, 517, 621, 9661, 30, 46506, 35224, 7203, 32657, 1222, 4230, 74, 4943, 16034, 3084, 62, 21, 1828, 5824, 33411, 366, 14957, 357, 10025, 16725, 1875, 705, 18638, 6, 5357, 366, 16501, 963, 1, 1875, 705, 4089, 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 ]
[ 2061, 318, 262, 3424, 1222, 29757, 618, 262, 2472, 357, 10025, 8, 318, 517, 621, 26956, 11, 290, 43388, 318, 517, 621, 9661, 30, 46506, 35224, 7203, 32657, 1222, 4230, 74, 4943, 16034, 3084, 62, 21, 1828, 5824, 33411, 366, 14957, 357, 10025, 16725, 1875, 705, 18638, 6, 5357, 366, 16501, 963, 1, 1875, 705, 4089, 6 ]
What is the Manufacturer for simone corsi?
SELECT manufacturer FROM table_name_85 WHERE rider = "simone corsi"
[ 2061, 318, 262, 40218, 329, 985, 505, 269, 35255, 30, 46506, 11554, 16034, 3084, 62, 3672, 62, 5332, 33411, 17876, 796, 366, 14323, 505, 269, 35255, 1 ]
[ 1, 1, 1, 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, 40218, 329, 985, 505, 269, 35255, 30, 46506, 11554, 16034, 3084, 62, 3672, 62, 5332, 33411, 17876, 796, 366, 14323, 505, 269, 35255, 1 ]
for the last time since 2103, when did patient 21163 get admitted to the hospital?
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 21163 AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime DESC LIMIT 1
[ 1640, 262, 938, 640, 1201, 362, 15197, 11, 618, 750, 5827, 28714, 5066, 651, 6848, 284, 262, 4436, 30, 46506, 25349, 13, 324, 20124, 524, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 28714, 5066, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 25349, 13, 324, 20124, 524, 8, 18189, 705, 17, 15197, 6, 38678, 11050, 25349, 13, 324, 20124, 524, 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, 1, 1, 1 ]
[ 1640, 262, 938, 640, 1201, 362, 15197, 11, 618, 750, 5827, 28714, 5066, 651, 6848, 284, 262, 4436, 30, 46506, 25349, 13, 324, 20124, 524, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 28714, 5066, 5357, 19269, 9792, 12789, 10786, 4, 88, 3256, 25349, 13, 324, 20124, 524, 8, 18189, 705, 17, 15197, 6, 38678, 11050, 25349, 13, 324, 20124, 524, 22196, 34, 27564, 2043, 352 ]
What is Score, when Venue is Riyadh, Saudi Arabia, and when Result is 'Win'?
SELECT score FROM table_name_22 WHERE venue = "riyadh, saudi arabia" AND result = "win"
[ 2061, 318, 15178, 11, 618, 9932, 518, 318, 37236, 11, 7420, 9671, 11, 290, 618, 25414, 318, 705, 16643, 30960, 46506, 4776, 16034, 3084, 62, 3672, 62, 1828, 33411, 14359, 796, 366, 380, 88, 24411, 11, 473, 47928, 610, 397, 544, 1, 5357, 1255, 796, 366, 5404, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15178, 11, 618, 9932, 518, 318, 37236, 11, 7420, 9671, 11, 290, 618, 25414, 318, 705, 16643, 30960, 46506, 4776, 16034, 3084, 62, 3672, 62, 1828, 33411, 14359, 796, 366, 380, 88, 24411, 11, 473, 47928, 610, 397, 544, 1, 5357, 1255, 796, 366, 5404, 1 ]
When the VFL played Brunswick Street Oval what was the home team score?
SELECT "Home team score" FROM table_4544 WHERE "Venue" = 'brunswick street oval'
[ 2215, 262, 569, 3697, 2826, 32211, 3530, 25165, 644, 373, 262, 1363, 1074, 4776, 30, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 2231, 2598, 33411, 366, 37522, 518, 1, 796, 705, 1671, 403, 30961, 4675, 41186, 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 ]
[ 2215, 262, 569, 3697, 2826, 32211, 3530, 25165, 644, 373, 262, 1363, 1074, 4776, 30, 46506, 366, 16060, 1074, 4776, 1, 16034, 3084, 62, 2231, 2598, 33411, 366, 37522, 518, 1, 796, 705, 1671, 403, 30961, 4675, 41186, 6 ]
what exactly does ileal conduitogram mean?
SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'ileal conduitogram' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'ileal conduitogram'
[ 10919, 3446, 857, 220, 576, 282, 44457, 21857, 1612, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 6511, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 796, 705, 576, 282, 44457, 21857, 6, 4725, 2849, 33493, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 6511, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771, 942, 33411, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 796, 705, 576, 282, 44457, 21857, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10919, 3446, 857, 220, 576, 282, 44457, 21857, 1612, 30, 46506, 288, 62, 291, 67, 62, 47356, 4629, 13, 6511, 62, 7839, 16034, 288, 62, 291, 67, 62, 47356, 4629, 33411, 288, 62, 291, 67, 62, 47356, 4629, 13, 19509, 62, 7839, 796, 705, 576, 282, 44457, 21857, 6, 4725, 2849, 33493, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 6511, 62, 7839, 16034, 288, 62, 291, 67, 62, 1676, 771, 942, 33411, 288, 62, 291, 67, 62, 1676, 771, 942, 13, 19509, 62, 7839, 796, 705, 576, 282, 44457, 21857, 6 ]
On what circuit was the City of Ipswich 400 race held?
SELECT circuit FROM table_14016079_1 WHERE race_title = "City of Ipswich 400"
[ 2202, 644, 10349, 373, 262, 2254, 286, 47177, 11451, 7337, 3234, 2714, 30, 46506, 10349, 16034, 3084, 62, 1415, 486, 1899, 3720, 62, 16, 33411, 3234, 62, 7839, 796, 366, 14941, 286, 47177, 11451, 7337, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 644, 10349, 373, 262, 2254, 286, 47177, 11451, 7337, 3234, 2714, 30, 46506, 10349, 16034, 3084, 62, 1415, 486, 1899, 3720, 62, 16, 33411, 3234, 62, 7839, 796, 366, 14941, 286, 47177, 11451, 7337, 1 ]
What is the nationality of the player with a round after 4 and plays right wing?
SELECT nationality FROM table_name_41 WHERE round > 4 AND position = "right wing"
[ 2061, 318, 262, 29835, 286, 262, 2137, 351, 257, 2835, 706, 604, 290, 5341, 826, 8539, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 3901, 33411, 2835, 1875, 604, 5357, 2292, 796, 366, 3506, 8539, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29835, 286, 262, 2137, 351, 257, 2835, 706, 604, 290, 5341, 826, 8539, 30, 46506, 29835, 16034, 3084, 62, 3672, 62, 3901, 33411, 2835, 1875, 604, 5357, 2292, 796, 366, 3506, 8539, 1 ]
Is there a section of EECS 406 that takes place after 18:45 P.M. ?
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '18:45' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 406 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016
[ 3792, 612, 257, 2665, 286, 412, 2943, 50, 45439, 326, 2753, 1295, 706, 1248, 25, 2231, 350, 13, 44, 13, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 2364, 1586, 13, 9688, 62, 2435, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 62, 2364, 1586, 13, 9688, 62, 2435, 1875, 705, 1507, 25, 2231, 6, 5357, 1781, 13, 17319, 62, 312, 796, 1781, 62, 2364, 1586, 13, 17319, 62, 312, 5357, 1781, 13, 10378, 1823, 796, 705, 36, 2943 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3792, 612, 257, 2665, 286, 412, 2943, 50, 45439, 326, 2753, 1295, 706, 1248, 25, 2231, 350, 13, 44, 13, 5633, 46506, 360, 8808, 1268, 4177, 1781, 62, 2364, 1586, 13, 437, 62, 2435, 11, 1781, 62, 2364, 1586, 13, 5458, 62, 17618, 11, 1781, 62, 2364, 1586, 13, 9688, 62, 2435, 16034, 1781, 11, 1781, 62, 2364, 1586, 11, 24878, 33411, 1781, 62, 2364, 1586, 13, 9688, 62, 2435, 1875, 705, 1507, 25, 2231, 6, 5357, 1781, 13, 17319, 62, 312, 796, 1781, 62, 2364, 1586, 13, 17319, 62, 312, 5357, 1781, 13, 10378, 1823, 796, 705, 36, 2943 ]
Find all the product whose name contains the word 'Scanner'.
SELECT product FROM product WHERE product LIKE "%Scanner%"
[ 16742, 477, 262, 1720, 3025, 1438, 4909, 262, 1573, 705, 33351, 1008, 4458, 46506, 1720, 16034, 1720, 33411, 1720, 34178, 36521, 33351, 1008, 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 ]
[ 16742, 477, 262, 1720, 3025, 1438, 4909, 262, 1573, 705, 33351, 1008, 4458, 46506, 1720, 16034, 1720, 33411, 1720, 34178, 36521, 33351, 1008, 39658 ]
How many female students (sex is F) whose age is below 25?
SELECT COUNT(*) FROM student WHERE sex = 'F' AND age < 25
[ 2437, 867, 4048, 2444, 357, 8044, 318, 376, 8, 3025, 2479, 318, 2174, 1679, 30, 46506, 327, 28270, 7, 28104, 16034, 3710, 33411, 1714, 796, 705, 37, 6, 5357, 2479, 1279, 1679 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 4048, 2444, 357, 8044, 318, 376, 8, 3025, 2479, 318, 2174, 1679, 30, 46506, 327, 28270, 7, 28104, 16034, 3710, 33411, 1714, 796, 705, 37, 6, 5357, 2479, 1279, 1679 ]
When western carolina university is the school what is the control?
SELECT control FROM table_2076516_1 WHERE school = "Western Carolina University"
[ 2215, 8830, 1097, 47196, 6403, 318, 262, 1524, 644, 318, 262, 1630, 30, 46506, 1630, 16034, 3084, 62, 22745, 2996, 1433, 62, 16, 33411, 1524, 796, 366, 24227, 5913, 2059, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 8830, 1097, 47196, 6403, 318, 262, 1524, 644, 318, 262, 1630, 30, 46506, 1630, 16034, 3084, 62, 22745, 2996, 1433, 62, 16, 33411, 1524, 796, 366, 24227, 5913, 2059, 1 ]
when was patient 95892 given the last test for the lab this month?
SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 95892) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY labevents.charttime DESC LIMIT 1
[ 12518, 373, 5827, 860, 3365, 5892, 1813, 262, 938, 1332, 329, 262, 2248, 428, 1227, 30, 46506, 2248, 31534, 13, 40926, 2435, 16034, 2248, 31534, 33411, 2248, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 860, 3365, 5892, 8, 5357, 360, 1404, 2767, 12789, 7, 23912, 31534, 13, 40926, 2435, 11, 705, 9688, 286, 1227, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 1227, 3256, 705, 12, 15, 1227, 11537, 38678, 11050, 2248, 31534, 13, 40926, 2435 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12518, 373, 5827, 860, 3365, 5892, 1813, 262, 938, 1332, 329, 262, 2248, 428, 1227, 30, 46506, 2248, 31534, 13, 40926, 2435, 16034, 2248, 31534, 33411, 2248, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 860, 3365, 5892, 8, 5357, 360, 1404, 2767, 12789, 7, 23912, 31534, 13, 40926, 2435, 11, 705, 9688, 286, 1227, 11537, 796, 360, 1404, 2767, 12789, 7, 34, 39237, 62, 34694, 22784, 705, 9688, 286, 1227, 3256, 705, 12, 15, 1227, 11537, 38678, 11050, 2248, 31534, 13, 40926, 2435 ]
Top 10 Stackoverflow Users in Saudi Arabia.
SELECT DisplayName, Location, 'https://stackoverflow.com/users/' + CAST(Id AS TEXT), Reputation FROM Users WHERE LOWER(Location) LIKE '%saudi%' OR LOWER(Location) LIKE '%saudi arabia%' ORDER BY 4 DESC LIMIT 10
[ 9126, 838, 23881, 2502, 11125, 18987, 287, 7420, 9671, 13, 46506, 16531, 5376, 11, 13397, 11, 705, 5450, 1378, 25558, 2502, 11125, 13, 785, 14, 18417, 14, 6, 1343, 327, 11262, 7, 7390, 7054, 40383, 828, 1432, 7094, 16034, 18987, 33411, 406, 36048, 7, 14749, 8, 34178, 705, 4, 82, 31330, 4, 6, 6375, 406, 36048, 7, 14749, 8, 34178, 705, 4, 82, 31330, 610, 397, 544, 4, 6, 38678, 11050, 604, 22196, 34, 27564, 2043, 838 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 9126, 838, 23881, 2502, 11125, 18987, 287, 7420, 9671, 13, 46506, 16531, 5376, 11, 13397, 11, 705, 5450, 1378, 25558, 2502, 11125, 13, 785, 14, 18417, 14, 6, 1343, 327, 11262, 7, 7390, 7054, 40383, 828, 1432, 7094, 16034, 18987, 33411, 406, 36048, 7, 14749, 8, 34178, 705, 4, 82, 31330, 4, 6, 6375, 406, 36048, 7, 14749, 8, 34178, 705, 4, 82, 31330, 610, 397, 544, 4, 6, 38678, 11050, 604, 22196, 34, 27564, 2043, 838 ]
when did patient 47295 have a prescription for the last time until 09/2104?
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 47295) AND STRFTIME('%y-%m', prescriptions.startdate) <= '2104-09' ORDER BY prescriptions.startdate DESC LIMIT 1
[ 12518, 750, 5827, 6298, 25710, 423, 257, 15077, 329, 262, 938, 640, 1566, 7769, 14, 17, 13464, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 6298, 25710, 8, 5357, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 3256, 34092, 13, 9688, 4475, 8, 19841, 705, 17, 13464, 12, 2931, 6, 38678, 11050, 34092, 13, 9688, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12518, 750, 5827, 6298, 25710, 423, 257, 15077, 329, 262, 938, 640, 1566, 7769, 14, 17, 13464, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 6298, 25710, 8, 5357, 19269, 9792, 12789, 10786, 4, 88, 12, 4, 76, 3256, 34092, 13, 9688, 4475, 8, 19841, 705, 17, 13464, 12, 2931, 6, 38678, 11050, 34092, 13, 9688, 4475, 22196, 34, 27564, 2043, 352 ]
Name the number for simon cellan jones
SELECT "No." FROM table_74047 WHERE "Directed by" = 'Simon Cellan Jones'
[ 5376, 262, 1271, 329, 985, 261, 2685, 272, 474, 1952, 46506, 366, 2949, 526, 16034, 3084, 62, 45598, 2857, 33411, 366, 13470, 276, 416, 1, 796, 705, 35475, 12440, 272, 5437, 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 ]
[ 5376, 262, 1271, 329, 985, 261, 2685, 272, 474, 1952, 46506, 366, 2949, 526, 16034, 3084, 62, 45598, 2857, 33411, 366, 13470, 276, 416, 1, 796, 705, 35475, 12440, 272, 5437, 6 ]
Where the fastest lap is Mike Rockenfeller, who is the winning driver?
SELECT "Winning Driver" FROM table_28547 WHERE "Fastest Lap" = 'Mike Rockenfeller'
[ 8496, 262, 14162, 14779, 318, 4995, 4631, 33701, 12368, 11, 508, 318, 262, 5442, 4639, 30, 46506, 366, 16643, 768, 12434, 1, 16034, 3084, 62, 26279, 2857, 33411, 366, 22968, 395, 26944, 1, 796, 705, 16073, 4631, 33701, 12368, 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 ]
[ 8496, 262, 14162, 14779, 318, 4995, 4631, 33701, 12368, 11, 508, 318, 262, 5442, 4639, 30, 46506, 366, 16643, 768, 12434, 1, 16034, 3084, 62, 26279, 2857, 33411, 366, 22968, 395, 26944, 1, 796, 705, 16073, 4631, 33701, 12368, 6 ]
What was the result of the election in the Texas 4 district?
SELECT result FROM table_1342149_43 WHERE district = "Texas 4"
[ 2061, 373, 262, 1255, 286, 262, 3071, 287, 262, 3936, 604, 4783, 30, 46506, 1255, 16034, 3084, 62, 1485, 3682, 19442, 62, 3559, 33411, 4783, 796, 366, 21607, 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 ]
[ 2061, 373, 262, 1255, 286, 262, 3071, 287, 262, 3936, 604, 4783, 30, 46506, 1255, 16034, 3084, 62, 1485, 3682, 19442, 62, 3559, 33411, 4783, 796, 366, 21607, 604, 1 ]
What is the average salary for each job title Show bar chart, order from low to high by the Y-axis please.
SELECT JOB_TITLE, AVG(SALARY) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID GROUP BY T2.JOB_TITLE ORDER BY AVG(SALARY)
[ 2061, 318, 262, 2811, 9588, 329, 1123, 1693, 3670, 5438, 2318, 8262, 11, 1502, 422, 1877, 284, 1029, 416, 262, 575, 12, 22704, 3387, 13, 46506, 449, 9864, 62, 49560, 2538, 11, 35224, 7, 50, 1847, 13153, 8, 16034, 4409, 7054, 309, 16, 32357, 1268, 3946, 7054, 309, 17, 6177, 309, 16, 13, 41, 9864, 62, 2389, 796, 309, 17, 13, 41, 9864, 62, 2389, 44441, 11050, 309, 17, 13, 41, 9864, 62, 49560, 2538, 38678, 11050, 35224, 7, 50, 1847, 13153, 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 ]
[ 2061, 318, 262, 2811, 9588, 329, 1123, 1693, 3670, 5438, 2318, 8262, 11, 1502, 422, 1877, 284, 1029, 416, 262, 575, 12, 22704, 3387, 13, 46506, 449, 9864, 62, 49560, 2538, 11, 35224, 7, 50, 1847, 13153, 8, 16034, 4409, 7054, 309, 16, 32357, 1268, 3946, 7054, 309, 17, 6177, 309, 16, 13, 41, 9864, 62, 2389, 796, 309, 17, 13, 41, 9864, 62, 2389, 44441, 11050, 309, 17, 13, 41, 9864, 62, 49560, 2538, 38678, 11050, 35224, 7, 50, 1847, 13153, 8 ]
Tell me the 2004 for 2012 of 21
SELECT 2004 FROM table_name_61 WHERE 2012 = "21"
[ 24446, 502, 262, 5472, 329, 2321, 286, 2310, 46506, 5472, 16034, 3084, 62, 3672, 62, 5333, 33411, 2321, 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 ]
[ 24446, 502, 262, 5472, 329, 2321, 286, 2310, 46506, 5472, 16034, 3084, 62, 3672, 62, 5333, 33411, 2321, 796, 366, 2481, 1 ]
What Kemmerode has a Gersforf of 39?
SELECT kemmerode FROM table_name_68 WHERE gersdorf = "39"
[ 2061, 24854, 647, 1098, 468, 257, 402, 364, 1640, 69, 286, 5014, 30, 46506, 885, 76, 647, 1098, 16034, 3084, 62, 3672, 62, 3104, 33411, 308, 364, 67, 24263, 796, 366, 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, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 24854, 647, 1098, 468, 257, 402, 364, 1640, 69, 286, 5014, 30, 46506, 885, 76, 647, 1098, 16034, 3084, 62, 3672, 62, 3104, 33411, 308, 364, 67, 24263, 796, 366, 2670, 1 ]
What day is hawthorn the away side?
SELECT "Date" FROM table_32932 WHERE "Away team" = 'hawthorn'
[ 2061, 1110, 318, 23185, 400, 1211, 262, 1497, 1735, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 37967, 2624, 33411, 366, 32, 1014, 1074, 1, 796, 705, 26615, 400, 1211, 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, 1110, 318, 23185, 400, 1211, 262, 1497, 1735, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 37967, 2624, 33411, 366, 32, 1014, 1074, 1, 796, 705, 26615, 400, 1211, 6 ]
Name the segment b for 226 episode
SELECT segment_b FROM table_15187735_18 WHERE episode = 226
[ 5376, 262, 10618, 275, 329, 31510, 4471, 46506, 10618, 62, 65, 16034, 3084, 62, 1314, 1507, 3324, 2327, 62, 1507, 33411, 4471, 796, 31510 ]
[ 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, 10618, 275, 329, 31510, 4471, 46506, 10618, 62, 65, 16034, 3084, 62, 1314, 1507, 3324, 2327, 62, 1507, 33411, 4471, 796, 31510 ]
calculate the length of the hospital stay of patient 002-54808's last intensive care unit stay.
SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-54808') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1
[ 9948, 3129, 378, 262, 4129, 286, 262, 4436, 2652, 286, 5827, 3571, 17, 12, 4051, 28362, 338, 938, 18590, 1337, 4326, 2652, 13, 46506, 19269, 9792, 12789, 10786, 4, 73, 3256, 5827, 13, 20850, 6381, 354, 7641, 524, 8, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, 5827, 13, 20850, 324, 20124, 524, 8, 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, 21601, 12, 4051, 28362, 11537, 5357, 5626, 5827, 13, 20850, 324, 20124, 524, 3180, 15697 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4129, 286, 262, 4436, 2652, 286, 5827, 3571, 17, 12, 4051, 28362, 338, 938, 18590, 1337, 4326, 2652, 13, 46506, 19269, 9792, 12789, 10786, 4, 73, 3256, 5827, 13, 20850, 6381, 354, 7641, 524, 8, 532, 19269, 9792, 12789, 10786, 4, 73, 3256, 5827, 13, 20850, 324, 20124, 524, 8, 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, 21601, 12, 4051, 28362, 11537, 5357, 5626, 5827, 13, 20850, 324, 20124, 524, 3180, 15697 ]
What is the nationality of Bob Essensa?
SELECT nationality FROM table_2679061_4 WHERE player = "Bob Essensa"
[ 2061, 318, 262, 29835, 286, 5811, 11985, 641, 64, 30, 46506, 29835, 16034, 3084, 62, 2075, 3720, 3312, 16, 62, 19, 33411, 2137, 796, 366, 18861, 11985, 641, 64, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 29835, 286, 5811, 11985, 641, 64, 30, 46506, 29835, 16034, 3084, 62, 2075, 3720, 3312, 16, 62, 19, 33411, 2137, 796, 366, 18861, 11985, 641, 64, 1 ]
What is the height of the fort peck dam which was built before 1968, is located in the united states and has a dam type of TE ?
SELECT "Structure Height [m]" FROM table_14472 WHERE "Year" < '1968' AND "Type" = 'te' AND "Country" = 'united states' AND "Name" = 'fort peck dam'
[ 2061, 318, 262, 6001, 286, 262, 6285, 613, 694, 1801, 543, 373, 3170, 878, 15963, 11, 318, 5140, 287, 262, 16503, 2585, 290, 468, 257, 1801, 2099, 286, 13368, 5633, 46506, 366, 1273, 5620, 27280, 685, 76, 30866, 16034, 3084, 62, 1415, 37856, 33411, 366, 17688, 1, 1279, 705, 42246, 6, 5357, 366, 6030, 1, 796, 705, 660, 6, 5357, 366, 33921, 1, 796, 705, 41187, 2585, 6, 5357, 366, 5376, 1, 796, 705, 3319, 613, 694, 1801, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 6001, 286, 262, 6285, 613, 694, 1801, 543, 373, 3170, 878, 15963, 11, 318, 5140, 287, 262, 16503, 2585, 290, 468, 257, 1801, 2099, 286, 13368, 5633, 46506, 366, 1273, 5620, 27280, 685, 76, 30866, 16034, 3084, 62, 1415, 37856, 33411, 366, 17688, 1, 1279, 705, 42246, 6, 5357, 366, 6030, 1, 796, 705, 660, 6, 5357, 366, 33921, 1, 796, 705, 41187, 2585, 6, 5357, 366, 5376, 1, 796, 705, 3319, 613, 694, 1801, 6 ]
Game of game 5 had what result?
SELECT "Result" FROM table_75400 WHERE "Game" = 'game 5'
[ 8777, 286, 983, 642, 550, 644, 1255, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 2425, 7029, 33411, 366, 8777, 1, 796, 705, 6057, 642, 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 ]
[ 8777, 286, 983, 642, 550, 644, 1255, 30, 46506, 366, 23004, 1, 16034, 3084, 62, 2425, 7029, 33411, 366, 8777, 1, 796, 705, 6057, 642, 6 ]
Who is the away team with a score of 7.8 (50)?
SELECT "Away team" FROM table_32496 WHERE "Away team score" = '7.8 (50)'
[ 8241, 318, 262, 1497, 1074, 351, 257, 4776, 286, 767, 13, 23, 357, 1120, 19427, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 33916, 4846, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 22, 13, 23, 357, 1120, 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 ]
[ 8241, 318, 262, 1497, 1074, 351, 257, 4776, 286, 767, 13, 23, 357, 1120, 19427, 46506, 366, 32, 1014, 1074, 1, 16034, 3084, 62, 33916, 4846, 33411, 366, 32, 1014, 1074, 4776, 1, 796, 705, 22, 13, 23, 357, 1120, 33047 ]
when patient 85895 received a microbiology test for a urine for the last time during a month before?
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85895) AND microbiologyevents.spec_type_desc = 'urine' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY microbiologyevents.charttime DESC LIMIT 1
[ 12518, 5827, 807, 3365, 3865, 2722, 257, 24559, 1435, 1332, 329, 257, 18922, 329, 262, 938, 640, 1141, 257, 1227, 878, 30, 46506, 24559, 1435, 31534, 13, 40926, 2435, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 807, 3365, 3865, 8, 5357, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 796, 705, 333, 500, 6, 5357, 360, 1404, 2767, 12789, 7, 24055, 43592, 31534, 13, 40926, 2435, 11, 705, 9688, 286, 1227, 11537, 796, 360, 1404 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 12518, 5827, 807, 3365, 3865, 2722, 257, 24559, 1435, 1332, 329, 257, 18922, 329, 262, 938, 640, 1141, 257, 1227, 878, 30, 46506, 24559, 1435, 31534, 13, 40926, 2435, 16034, 24559, 1435, 31534, 33411, 24559, 1435, 31534, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 807, 3365, 3865, 8, 5357, 24559, 1435, 31534, 13, 16684, 62, 4906, 62, 20147, 796, 705, 333, 500, 6, 5357, 360, 1404, 2767, 12789, 7, 24055, 43592, 31534, 13, 40926, 2435, 11, 705, 9688, 286, 1227, 11537, 796, 360, 1404 ]
During what week was the match on November 10, 1963?
SELECT AVG(week) FROM table_name_37 WHERE date = "november 10, 1963"
[ 7191, 644, 1285, 373, 262, 2872, 319, 3389, 838, 11, 19342, 30, 46506, 35224, 7, 10464, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 3128, 796, 366, 77, 3239, 838, 11, 19342, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 7191, 644, 1285, 373, 262, 2872, 319, 3389, 838, 11, 19342, 30, 46506, 35224, 7, 10464, 8, 16034, 3084, 62, 3672, 62, 2718, 33411, 3128, 796, 366, 77, 3239, 838, 11, 19342, 1 ]
What is the cardinal direction associated with Venus?
SELECT cardinal_direction FROM table_14850099_18 WHERE planet = "Venus"
[ 2061, 318, 262, 38691, 4571, 3917, 351, 21094, 30, 46506, 38691, 62, 37295, 16034, 3084, 62, 18294, 4059, 2079, 62, 1507, 33411, 5440, 796, 366, 37522, 385, 1 ]
[ 1, 1, 1, 1, 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, 38691, 4571, 3917, 351, 21094, 30, 46506, 38691, 62, 37295, 16034, 3084, 62, 18294, 4059, 2079, 62, 1507, 33411, 5440, 796, 366, 37522, 385, 1 ]
Return the number of the completion date for all the tests that have 'Fail' result, and I want to display in asc by the y axis.
SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" ORDER BY COUNT(date_of_completion)
[ 13615, 262, 1271, 286, 262, 11939, 3128, 329, 477, 262, 5254, 326, 423, 705, 39044, 6, 1255, 11, 290, 314, 765, 284, 3359, 287, 10570, 416, 262, 331, 16488, 13, 46506, 3128, 62, 1659, 62, 785, 24547, 11, 327, 28270, 7, 4475, 62, 1659, 62, 785, 24547, 8, 16034, 13613, 62, 49046, 62, 4834, 3225, 434, 7054, 309, 16, 32357, 1268, 13613, 62, 51, 3558, 62, 51, 1685, 7054, 309, 17, 6177, 309, 16, 13, 2301, 33397, 62, 312, 796, 309, 17, 13, 2301, 33397, 62, 312, 33411, 309, 17, 13, 9288, 62, 20274, 796, 366, 39044, 1, 38678, 11050 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13615, 262, 1271, 286, 262, 11939, 3128, 329, 477, 262, 5254, 326, 423, 705, 39044, 6, 1255, 11, 290, 314, 765, 284, 3359, 287, 10570, 416, 262, 331, 16488, 13, 46506, 3128, 62, 1659, 62, 785, 24547, 11, 327, 28270, 7, 4475, 62, 1659, 62, 785, 24547, 8, 16034, 13613, 62, 49046, 62, 4834, 3225, 434, 7054, 309, 16, 32357, 1268, 13613, 62, 51, 3558, 62, 51, 1685, 7054, 309, 17, 6177, 309, 16, 13, 2301, 33397, 62, 312, 796, 309, 17, 13, 2301, 33397, 62, 312, 33411, 309, 17, 13, 9288, 62, 20274, 796, 366, 39044, 1, 38678, 11050 ]
How many main stream browsers whose market share is at least 5 exist?
SELECT COUNT(*) FROM browser WHERE market_share >= 5
[ 2437, 867, 1388, 4269, 22616, 3025, 1910, 2648, 318, 379, 1551, 642, 2152, 30, 46506, 327, 28270, 7, 28104, 16034, 6444, 33411, 1910, 62, 20077, 18189, 642 ]
[ 1, 1, 1, 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, 1388, 4269, 22616, 3025, 1910, 2648, 318, 379, 1551, 642, 2152, 30, 46506, 327, 28270, 7, 28104, 16034, 6444, 33411, 1910, 62, 20077, 18189, 642 ]
What country is ranked #2?
SELECT country FROM table_name_68 WHERE rank = 2
[ 2061, 1499, 318, 10307, 1303, 17, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3104, 33411, 4279, 796, 362 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 1499, 318, 10307, 1303, 17, 30, 46506, 1499, 16034, 3084, 62, 3672, 62, 3104, 33411, 4279, 796, 362 ]
which party has the most members ?
SELECT "party" FROM table_204_400 GROUP BY "party" ORDER BY COUNT("senator") DESC LIMIT 1
[ 4758, 2151, 468, 262, 749, 1866, 5633, 46506, 366, 10608, 1, 16034, 3084, 62, 18638, 62, 7029, 44441, 11050, 366, 10608, 1, 38678, 11050, 327, 28270, 7203, 6248, 1352, 4943, 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 ]
[ 4758, 2151, 468, 262, 749, 1866, 5633, 46506, 366, 10608, 1, 16034, 3084, 62, 18638, 62, 7029, 44441, 11050, 366, 10608, 1, 38678, 11050, 327, 28270, 7203, 6248, 1352, 4943, 22196, 34, 27564, 2043, 352 ]
What is the yield, neutrons per fission of the group with decay constants less than 0.301, a half-life of 22.72, and a group number larger than 2?
SELECT SUM("Yield, Neutrons per Fission") FROM table_71216 WHERE "Decay Constant (s \u22121 )" < '0.301' AND "Half-Life (s)" = '22.72' AND "Group" > '2'
[ 2061, 318, 262, 7800, 11, 22190, 12212, 583, 277, 1480, 286, 262, 1448, 351, 22119, 38491, 1342, 621, 657, 13, 18938, 11, 257, 2063, 12, 6042, 286, 2534, 13, 4761, 11, 290, 257, 1448, 1271, 4025, 621, 362, 30, 46506, 35683, 7203, 56, 1164, 11, 3169, 315, 12212, 583, 376, 1480, 4943, 16034, 3084, 62, 49517, 1433, 33411, 366, 10707, 323, 20217, 357, 82, 3467, 84, 1828, 19244, 1267, 1, 1279, 705, 15, 13, 18938, 6, 5357, 366, 31305, 12, 14662, 357, 82, 16725, 796, 705, 1828, 13, 4761, 6, 5357, 366, 13247, 1, 1875, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7800, 11, 22190, 12212, 583, 277, 1480, 286, 262, 1448, 351, 22119, 38491, 1342, 621, 657, 13, 18938, 11, 257, 2063, 12, 6042, 286, 2534, 13, 4761, 11, 290, 257, 1448, 1271, 4025, 621, 362, 30, 46506, 35683, 7203, 56, 1164, 11, 3169, 315, 12212, 583, 376, 1480, 4943, 16034, 3084, 62, 49517, 1433, 33411, 366, 10707, 323, 20217, 357, 82, 3467, 84, 1828, 19244, 1267, 1, 1279, 705, 15, 13, 18938, 6, 5357, 366, 31305, 12, 14662, 357, 82, 16725, 796, 705, 1828, 13, 4761, 6, 5357, 366, 13247, 1, 1875, 705, 17, 6 ]
Name the language for kunar
SELECT "Language" FROM table_20647 WHERE "Province" = 'Kunar'
[ 5376, 262, 3303, 329, 479, 403, 283, 46506, 366, 32065, 1, 16034, 3084, 62, 1238, 33981, 33411, 366, 15946, 924, 1, 796, 705, 42, 403, 283, 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 ]
[ 5376, 262, 3303, 329, 479, 403, 283, 46506, 366, 32065, 1, 16034, 3084, 62, 1238, 33981, 33411, 366, 15946, 924, 1, 796, 705, 42, 403, 283, 6 ]
Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?
SELECT "Opponent" FROM table_36328 WHERE "Venue" = 'launceston cricket club ground, launceston' AND "Season" = '1853/54'
[ 8241, 373, 262, 6125, 326, 2826, 379, 19826, 9165, 261, 34761, 6289, 13706, 11, 2698, 9165, 261, 1141, 262, 1622, 286, 1248, 4310, 14, 4051, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 2623, 34256, 33411, 366, 37522, 518, 1, 796, 705, 38722, 9165, 261, 18836, 3430, 2323, 11, 2698, 9165, 261, 6, 5357, 366, 18960, 1, 796, 705, 1507, 4310, 14, 4051, 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 ]
[ 8241, 373, 262, 6125, 326, 2826, 379, 19826, 9165, 261, 34761, 6289, 13706, 11, 2698, 9165, 261, 1141, 262, 1622, 286, 1248, 4310, 14, 4051, 30, 46506, 366, 27524, 3471, 1, 16034, 3084, 62, 2623, 34256, 33411, 366, 37522, 518, 1, 796, 705, 38722, 9165, 261, 18836, 3430, 2323, 11, 2698, 9165, 261, 6, 5357, 366, 18960, 1, 796, 705, 1507, 4310, 14, 4051, 6 ]
What was the location for a year later than 2012?
SELECT location FROM table_name_82 WHERE year > 2012
[ 2061, 373, 262, 4067, 329, 257, 614, 1568, 621, 2321, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 6469, 33411, 614, 1875, 2321 ]
[ 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, 4067, 329, 257, 614, 1568, 621, 2321, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 6469, 33411, 614, 1875, 2321 ]
What was the date of the game where North Melbourne was the home team?
SELECT date FROM table_name_65 WHERE home_team = "north melbourne"
[ 2061, 373, 262, 3128, 286, 262, 983, 810, 2258, 14819, 373, 262, 1363, 1074, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2996, 33411, 1363, 62, 15097, 796, 366, 43588, 7758, 12544, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3128, 286, 262, 983, 810, 2258, 14819, 373, 262, 1363, 1074, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2996, 33411, 1363, 62, 15097, 796, 366, 43588, 7758, 12544, 1 ]
Where in Sweden is the home of the Swedish team?
SELECT home FROM table_name_14 WHERE country = "sweden"
[ 8496, 287, 10710, 318, 262, 1363, 286, 262, 14023, 1074, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 1415, 33411, 1499, 796, 366, 2032, 31829, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8496, 287, 10710, 318, 262, 1363, 286, 262, 14023, 1074, 30, 46506, 1363, 16034, 3084, 62, 3672, 62, 1415, 33411, 1499, 796, 366, 2032, 31829, 1 ]
On what date did a race occur at Long Beach?
SELECT "Date" FROM table_56346 WHERE "Location" = 'long beach'
[ 2202, 644, 3128, 750, 257, 3234, 3051, 379, 5882, 8511, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 3980, 30557, 33411, 366, 14749, 1, 796, 705, 6511, 10481, 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 ]
[ 2202, 644, 3128, 750, 257, 3234, 3051, 379, 5882, 8511, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 3980, 30557, 33411, 366, 14749, 1, 796, 705, 6511, 10481, 6 ]
What was the latest week of a game that had an attendance of 63,001?
SELECT MAX("Week") FROM table_54283 WHERE "Attendance" = '63,001'
[ 2061, 373, 262, 3452, 1285, 286, 257, 983, 326, 550, 281, 14858, 286, 8093, 11, 8298, 30, 46506, 25882, 7203, 20916, 4943, 16034, 3084, 62, 4051, 30290, 33411, 366, 8086, 437, 590, 1, 796, 705, 5066, 11, 8298, 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 ]
[ 2061, 373, 262, 3452, 1285, 286, 257, 983, 326, 550, 281, 14858, 286, 8093, 11, 8298, 30, 46506, 25882, 7203, 20916, 4943, 16034, 3084, 62, 4051, 30290, 33411, 366, 8086, 437, 590, 1, 796, 705, 5066, 11, 8298, 6 ]
Which Opponent had a Surface of hard, and a Partner of maria elena camerin?
SELECT opponent FROM table_name_26 WHERE surface = "hard" AND partner = "maria elena camerin"
[ 13828, 9385, 3471, 550, 257, 20321, 286, 1327, 11, 290, 257, 35532, 286, 1667, 544, 1288, 8107, 3676, 259, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2075, 33411, 4417, 796, 366, 10424, 1, 5357, 5212, 796, 366, 3876, 544, 1288, 8107, 3676, 259, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9385, 3471, 550, 257, 20321, 286, 1327, 11, 290, 257, 35532, 286, 1667, 544, 1288, 8107, 3676, 259, 30, 46506, 6125, 16034, 3084, 62, 3672, 62, 2075, 33411, 4417, 796, 366, 10424, 1, 5357, 5212, 796, 366, 3876, 544, 1288, 8107, 3676, 259, 1 ]
during the last hospital encounter, when was the last time patient 8773 was prescribed pantoprazole?
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8773 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND prescriptions.drug = 'pantoprazole' ORDER BY prescriptions.startdate DESC LIMIT 1
[ 42122, 262, 938, 4436, 8791, 11, 618, 373, 262, 938, 640, 5827, 807, 46871, 373, 14798, 15857, 404, 3247, 2305, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 807, 46871, 5357, 5626, 25349, 13, 6381, 354, 2435, 3180, 15697, 38678, 11050, 25349, 13, 324, 20124, 524, 22196, 34, 27564, 2043, 352, 8, 5357, 34092, 13, 30349, 796, 705, 79, 415, 404, 3247, 2305, 6, 38678, 11050, 34092, 13, 9688, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 42122, 262, 938, 4436, 8791, 11, 618, 373, 262, 938, 640, 5827, 807, 46871, 373, 14798, 15857, 404, 3247, 2305, 30, 46506, 34092, 13, 9688, 4475, 16034, 34092, 33411, 34092, 13, 18108, 76, 62, 312, 3268, 357, 46506, 25349, 13, 18108, 76, 62, 312, 16034, 25349, 33411, 25349, 13, 32796, 62, 312, 796, 807, 46871, 5357, 5626, 25349, 13, 6381, 354, 2435, 3180, 15697, 38678, 11050, 25349, 13, 324, 20124, 524, 22196, 34, 27564, 2043, 352, 8, 5357, 34092, 13, 30349, 796, 705, 79, 415, 404, 3247, 2305, 6, 38678, 11050, 34092, 13, 9688, 4475, 22196, 34, 27564, 2043, 352 ]