instruction
stringlengths
0
1.06k
response
stringlengths
2
3.61k
input_ids
list
attention_mask
list
labels
list
what is admission type of subject id 64208?
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "64208"
[ 10919, 318, 13938, 2099, 286, 2426, 4686, 5598, 21315, 30, 46506, 16728, 13, 324, 3411, 62, 4906, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 2414, 21315, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 13938, 2099, 286, 2426, 4686, 5598, 21315, 30, 46506, 16728, 13, 324, 3411, 62, 4906, 16034, 16728, 33411, 16728, 13, 32796, 62, 312, 796, 366, 2414, 21315, 1 ]
how many hours has it been since first time patient 009-5001 had a procedure on this hospital visit?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-5001'...
[ 4919, 867, 2250, 468, 340, 587, 1201, 717, 640, 5827, 3571, 24, 12, 4059, 16, 550, 257, 8771, 319, 428, 4436, 3187, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2250, 468, 340, 587, 1201, 717, 640, 5827, 3571, 24, 12, 4059, 16, 550, 257, 8771, 319, 428, 4436, 3187, 30, 46506, 1987, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, ...
What is the ministries number when duration is 4 years, 4 days (1,465 days)?
SELECT ministries FROM table_21422977_2 WHERE duration = "4 years, 4 days (1,465 days)"
[ 2061, 318, 262, 45933, 1271, 618, 9478, 318, 604, 812, 11, 604, 1528, 357, 16, 11, 42018, 1528, 19427, 46506, 45933, 16034, 3084, 62, 22291, 23539, 3324, 62, 17, 33411, 9478, 796, 366, 19, 812, 11, 604, 1528, 357, 16, 11, 42018, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 45933, 1271, 618, 9478, 318, 604, 812, 11, 604, 1528, 357, 16, 11, 42018, 1528, 19427, 46506, 45933, 16034, 3084, 62, 22291, 23539, 3324, 62, 17, 33411, 9478, 796, 366, 19, 812, 11, 604, 1528, 357, 16, 11, 42018, 152...
What is the Date for the wgc-accenture match play championship?
SELECT "Date" FROM table_42730 WHERE "Tournament" = 'wgc-accenture match play championship'
[ 2061, 318, 262, 7536, 329, 262, 266, 36484, 12, 330, 1087, 495, 2872, 711, 12184, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 42363, 1270, 33411, 366, 51, 5138, 1, 796, 705, 86, 36484, 12, 330, 1087, 495, 2872, 711, 12184, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 7536, 329, 262, 266, 36484, 12, 330, 1087, 495, 2872, 711, 12184, 30, 46506, 366, 10430, 1, 16034, 3084, 62, 42363, 1270, 33411, 366, 51, 5138, 1, 796, 705, 86, 36484, 12, 330, 1087, 495, 2872, 711, 12184, 6 ]
How many seasons featured 29 conversions?
SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29
[ 2437, 867, 7028, 8096, 2808, 32626, 30, 46506, 327, 28270, 7, 3617, 10355, 8, 16034, 3084, 62, 1238, 31654, 31575, 62, 16, 33411, 32626, 796, 2808 ]
[ 1, 1, 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, 7028, 8096, 2808, 32626, 30, 46506, 327, 28270, 7, 3617, 10355, 8, 16034, 3084, 62, 1238, 31654, 31575, 62, 16, 33411, 32626, 796, 2808 ]
How many times is the player scott deibert?
SELECT COUNT(pick__number) FROM table_name_72 WHERE player = "scott deibert"
[ 2437, 867, 1661, 318, 262, 2137, 629, 1252, 390, 1856, 83, 30, 46506, 327, 28270, 7, 27729, 834, 17618, 8, 16034, 3084, 62, 3672, 62, 4761, 33411, 2137, 796, 366, 1416, 1252, 390, 1856, 83, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 1661, 318, 262, 2137, 629, 1252, 390, 1856, 83, 30, 46506, 327, 28270, 7, 27729, 834, 17618, 8, 16034, 3084, 62, 3672, 62, 4761, 33411, 2137, 796, 366, 1416, 1252, 390, 1856, 83, 1 ]
How many silvers for japan (1 gold)?
SELECT SUM(silver) FROM table_name_30 WHERE nation = "japan" AND gold > 1
[ 2437, 867, 3313, 690, 329, 474, 2674, 357, 16, 3869, 19427, 46506, 35683, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 1270, 33411, 3277, 796, 366, 73, 2674, 1, 5357, 3869, 1875, 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 ]
[ 2437, 867, 3313, 690, 329, 474, 2674, 357, 16, 3869, 19427, 46506, 35683, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 1270, 33411, 3277, 796, 366, 73, 2674, 1, 5357, 3869, 1875, 352 ]
What is the Surface of the Tournament on June 11, 2006?
SELECT surface FROM table_name_67 WHERE date = "june 11, 2006"
[ 2061, 318, 262, 20321, 286, 262, 9595, 319, 2795, 1367, 11, 4793, 30, 46506, 4417, 16034, 3084, 62, 3672, 62, 3134, 33411, 3128, 796, 366, 73, 1726, 1367, 11, 4793, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 20321, 286, 262, 9595, 319, 2795, 1367, 11, 4793, 30, 46506, 4417, 16034, 3084, 62, 3672, 62, 3134, 33411, 3128, 796, 366, 73, 1726, 1367, 11, 4793, 1 ]
Which frequency belongs to the beat branding?
SELECT frequency FROM table_name_58 WHERE branding = "the beat"
[ 13828, 8373, 14448, 284, 262, 4405, 24150, 30, 46506, 8373, 16034, 3084, 62, 3672, 62, 3365, 33411, 24150, 796, 366, 1169, 4405, 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, 8373, 14448, 284, 262, 4405, 24150, 30, 46506, 8373, 16034, 3084, 62, 3672, 62, 3365, 33411, 24150, 796, 366, 1169, 4405, 1 ]
how many rooms have king beds? Report the number for each decor type, and could you order by the y-axis from high to low please?
SELECT decor, COUNT(*) FROM Rooms WHERE bedType = "King" GROUP BY decor ORDER BY COUNT(*) DESC
[ 4919, 867, 9519, 423, 5822, 20237, 30, 6358, 262, 1271, 329, 1123, 11705, 2099, 11, 290, 714, 345, 1502, 416, 262, 331, 12, 22704, 422, 1029, 284, 1877, 3387, 30, 46506, 11705, 11, 327, 28270, 7, 28104, 16034, 42043, 33411, 3996, 6030...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9519, 423, 5822, 20237, 30, 6358, 262, 1271, 329, 1123, 11705, 2099, 11, 290, 714, 345, 1502, 416, 262, 331, 12, 22704, 422, 1029, 284, 1877, 3387, 30, 46506, 11705, 11, 327, 28270, 7, 28104, 16034, 42043, 33411, 3996, 6030...
Which State has an Electorate of Barton?
SELECT state FROM table_name_14 WHERE electorate = "barton"
[ 13828, 1812, 468, 281, 5903, 16262, 286, 32342, 30, 46506, 1181, 16034, 3084, 62, 3672, 62, 1415, 33411, 23879, 796, 366, 16575, 261, 1 ]
[ 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, 1812, 468, 281, 5903, 16262, 286, 32342, 30, 46506, 1181, 16034, 3084, 62, 3672, 62, 1415, 33411, 23879, 796, 366, 16575, 261, 1 ]
When massachusetts 6th is the district what is the reason for vacancy?
SELECT "Reason for Vacancy" FROM table_26656 WHERE "District" = 'Massachusetts 6th'
[ 2215, 2347, 9770, 718, 400, 318, 262, 4783, 644, 318, 262, 1738, 329, 39836, 30, 46506, 366, 45008, 329, 25709, 3883, 1, 16034, 3084, 62, 2075, 37466, 33411, 366, 44857, 1, 796, 705, 20273, 9770, 718, 400, 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 ]
[ 2215, 2347, 9770, 718, 400, 318, 262, 4783, 644, 318, 262, 1738, 329, 39836, 30, 46506, 366, 45008, 329, 25709, 3883, 1, 16034, 3084, 62, 2075, 37466, 33411, 366, 44857, 1, 796, 705, 20273, 9770, 718, 400, 6 ]
What is the total year with a Position of 12th?
SELECT SUM(year) FROM table_name_89 WHERE position = "12th"
[ 2061, 318, 262, 2472, 614, 351, 257, 23158, 286, 1105, 400, 30, 46506, 35683, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 4531, 33411, 2292, 796, 366, 1065, 400, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 614, 351, 257, 23158, 286, 1105, 400, 30, 46506, 35683, 7, 1941, 8, 16034, 3084, 62, 3672, 62, 4531, 33411, 2292, 796, 366, 1065, 400, 1 ]
Which production code had original air dated february20,2011
SELECT "Production code" FROM table_28521 WHERE "Original air date" = 'February20,2011'
[ 13828, 3227, 2438, 550, 2656, 1633, 14567, 730, 65, 3728, 1238, 11, 9804, 46506, 366, 35027, 2438, 1, 16034, 3084, 62, 26279, 2481, 33411, 366, 20556, 1633, 3128, 1, 796, 705, 21816, 1238, 11, 9804, 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 ]
[ 13828, 3227, 2438, 550, 2656, 1633, 14567, 730, 65, 3728, 1238, 11, 9804, 46506, 366, 35027, 2438, 1, 16034, 3084, 62, 26279, 2481, 33411, 366, 20556, 1633, 3128, 1, 796, 705, 21816, 1238, 11, 9804, 6 ]
When did South Melbourne play as the home team?
SELECT date FROM table_name_66 WHERE home_team = "south melbourne"
[ 2215, 750, 2520, 14819, 711, 355, 262, 1363, 1074, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2791, 33411, 1363, 62, 15097, 796, 366, 35782, 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 ]
[ 2215, 750, 2520, 14819, 711, 355, 262, 1363, 1074, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 2791, 33411, 1363, 62, 15097, 796, 366, 35782, 7758, 12544, 1 ]
Which Score has a Country of united states, and a Player of raymond floyd?
SELECT "Score" FROM table_62062 WHERE "Country" = 'united states' AND "Player" = 'raymond floyd'
[ 13828, 15178, 468, 257, 12946, 286, 16503, 2585, 11, 290, 257, 7853, 286, 26842, 6327, 781, 12192, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 38850, 5237, 33411, 366, 33921, 1, 796, 705, 41187, 2585, 6, 5357, 366, 14140, 1, 796, 705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15178, 468, 257, 12946, 286, 16503, 2585, 11, 290, 257, 7853, 286, 26842, 6327, 781, 12192, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 38850, 5237, 33411, 366, 33921, 1, 796, 705, 41187, 2585, 6, 5357, 366, 14140, 1, 796, 705, ...
What is the minimum ITV1 ranking for the episode having viewership of 5.42 million?
SELECT MIN("ITV1 weekly ranking") FROM table_27977 WHERE "Viewers (millions)" = '5.42'
[ 2061, 318, 262, 5288, 49188, 16, 12759, 329, 262, 4471, 1719, 48347, 286, 642, 13, 3682, 1510, 30, 46506, 20625, 7203, 2043, 53, 16, 10273, 12759, 4943, 16034, 3084, 62, 26050, 3324, 33411, 366, 7680, 364, 357, 17805, 507, 16725, 796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 5288, 49188, 16, 12759, 329, 262, 4471, 1719, 48347, 286, 642, 13, 3682, 1510, 30, 46506, 20625, 7203, 2043, 53, 16, 10273, 12759, 4943, 16034, 3084, 62, 26050, 3324, 33411, 366, 7680, 364, 357, 17805, 507, 16725, 796, ...
How many total golds do teams have when the total medals is less than 1?
SELECT SUM(gold) FROM table_name_79 WHERE total < 1
[ 2437, 867, 2472, 3869, 82, 466, 3466, 423, 618, 262, 2472, 28057, 318, 1342, 621, 352, 30, 46506, 35683, 7, 24267, 8, 16034, 3084, 62, 3672, 62, 3720, 33411, 2472, 1279, 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 ]
[ 2437, 867, 2472, 3869, 82, 466, 3466, 423, 618, 262, 2472, 28057, 318, 1342, 621, 352, 30, 46506, 35683, 7, 24267, 8, 16034, 3084, 62, 3672, 62, 3720, 33411, 2472, 1279, 352 ]
Which 2nd Party has an Election of 1837?
SELECT "2nd Party" FROM table_14765 WHERE "Election" = '1837'
[ 13828, 362, 358, 3615, 468, 281, 14219, 286, 1248, 2718, 30, 46506, 366, 17, 358, 3615, 1, 16034, 3084, 62, 20198, 2996, 33411, 366, 36, 1564, 1, 796, 705, 1507, 2718, 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 ]
[ 13828, 362, 358, 3615, 468, 281, 14219, 286, 1248, 2718, 30, 46506, 366, 17, 358, 3615, 1, 16034, 3084, 62, 20198, 2996, 33411, 366, 36, 1564, 1, 796, 705, 1507, 2718, 6 ]
i'd like to know the latest flight from ATLANTA to BOSTON
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTO...
[ 72, 1549, 588, 284, 760, 262, 3452, 5474, 422, 5161, 25697, 5603, 284, 347, 10892, 1340, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 72, 1549, 588, 284, 760, 262, 3452, 5474, 422, 5161, 25697, 5603, 284, 347, 10892, 1340, 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...
how many patients are admitted before the year 2151 and tested in lab for pleural fluid?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2151" AND lab.fluid = "Pleural"
[ 4919, 867, 3871, 389, 6848, 878, 262, 614, 22951, 16, 290, 6789, 287, 2248, 329, 3339, 1523, 11711, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 1672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 6848, 878, 262, 614, 22951, 16, 290, 6789, 287, 2248, 329, 3339, 1523, 11711, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 1672...
Find the name of the department that has no students minored in?
SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO
[ 16742, 262, 1438, 286, 262, 5011, 326, 468, 645, 2444, 949, 1850, 287, 30, 46506, 360, 5376, 16034, 5550, 30709, 10979, 7788, 42006, 33493, 309, 16, 13, 35, 5376, 16034, 5550, 30709, 10979, 7054, 309, 16, 32357, 1268, 20625, 1581, 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 ]
[ 16742, 262, 1438, 286, 262, 5011, 326, 468, 645, 2444, 949, 1850, 287, 30, 46506, 360, 5376, 16034, 5550, 30709, 10979, 7788, 42006, 33493, 309, 16, 13, 35, 5376, 16034, 5550, 30709, 10979, 7054, 309, 16, 32357, 1268, 20625, 1581, 62, ...
what is the number of unmarried patients who had white blood cells lab test?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.label = "White Blood Cells"
[ 10919, 318, 262, 1271, 286, 39183, 3871, 508, 550, 2330, 2910, 4778, 2248, 1332, 30, 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, 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...
[ 10919, 318, 262, 1271, 286, 39183, 3871, 508, 550, 2330, 2910, 4778, 2248, 1332, 30, 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, 6...
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the sum of manufacturer , and group by attribute founder.
SELECT Founder, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder
[ 1890, 883, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 9119, 290, 262, 2160, 286, 11554, 837, 290, 1448, 416, 11688, 9119, 13, 46506, 30153, 11, 35683, 7, 44445, 15051, 8, 16034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4406, 422, 262, 3186, 290, 1123, 1720, 338, 11554, 11, 1441, 257, 2318, 8262, 546, 262, 6082, 286, 9119, 290, 262, 2160, 286, 11554, 837, 290, 1448, 416, 11688, 9119, 13, 46506, 30153, 11, 35683, 7, 44445, 15051, 8, 16034, ...
What is the home team at the Junction Oval venue?
SELECT home_team FROM table_name_14 WHERE venue = "junction oval"
[ 2061, 318, 262, 1363, 1074, 379, 262, 44410, 25165, 14359, 30, 46506, 1363, 62, 15097, 16034, 3084, 62, 3672, 62, 1415, 33411, 14359, 796, 366, 73, 4575, 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, 1, 1, 1, 1 ]
[ 2061, 318, 262, 1363, 1074, 379, 262, 44410, 25165, 14359, 30, 46506, 1363, 62, 15097, 16034, 3084, 62, 3672, 62, 1415, 33411, 14359, 796, 366, 73, 4575, 41186, 1 ]
Which tournament has a value of a for 2009?
SELECT "Tournament" FROM table_14617 WHERE "2009" = 'a'
[ 13828, 7756, 468, 257, 1988, 286, 257, 329, 3717, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 20964, 1558, 33411, 366, 10531, 1, 796, 705, 64, 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 ]
[ 13828, 7756, 468, 257, 1988, 286, 257, 329, 3717, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 20964, 1558, 33411, 366, 10531, 1, 796, 705, 64, 6 ]
What was the finish for 1992?
SELECT "Finish" FROM table_41148 WHERE "Year" = '1992'
[ 2061, 373, 262, 5461, 329, 9768, 30, 46506, 366, 48658, 1, 16034, 3084, 62, 42224, 2780, 33411, 366, 17688, 1, 796, 705, 23847, 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 ]
[ 2061, 373, 262, 5461, 329, 9768, 30, 46506, 366, 48658, 1, 16034, 3084, 62, 42224, 2780, 33411, 366, 17688, 1, 796, 705, 23847, 6 ]
Find the average gpa of all students in each department with a bar chart, and sort by the DEPT_CODE in descending.
SELECT DEPT_CODE, AVG(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY DEPT_CODE DESC
[ 16742, 262, 2811, 308, 8957, 286, 477, 2444, 287, 1123, 5011, 351, 257, 2318, 8262, 11, 290, 3297, 416, 262, 5550, 11571, 62, 34, 16820, 287, 31491, 13, 46506, 5550, 11571, 62, 34, 16820, 11, 35224, 7, 2257, 52, 62, 38, 4537, 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 ]
[ 16742, 262, 2811, 308, 8957, 286, 477, 2444, 287, 1123, 5011, 351, 257, 2318, 8262, 11, 290, 3297, 416, 262, 5550, 11571, 62, 34, 16820, 287, 31491, 13, 46506, 5550, 11571, 62, 34, 16820, 11, 35224, 7, 2257, 52, 62, 38, 4537, 8, 1...
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart, and sort by the total number in desc please.
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(MANAGER_ID) DESC
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 287, 257, 2318, 8262, 11, 290, 3297, 416, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 4706, 62, 312, 9874, 11078, 62, 4475, 416, 640, 287, 257, 2318, 8262, 11, 290, 3297, 416, 262...
What percentage of users were using Netscape during the period in which 63.67% were using Internet Explorer?
SELECT "Netscape" FROM table_13303 WHERE "Internet Explorer" = '63.67%'
[ 2061, 5873, 286, 2985, 547, 1262, 27811, 36435, 1141, 262, 2278, 287, 543, 8093, 13, 3134, 4, 547, 1262, 4455, 19142, 30, 46506, 366, 45, 1039, 36435, 1, 16034, 3084, 62, 1485, 22572, 33411, 366, 28566, 19142, 1, 796, 705, 5066, 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 ]
[ 2061, 5873, 286, 2985, 547, 1262, 27811, 36435, 1141, 262, 2278, 287, 543, 8093, 13, 3134, 4, 547, 1262, 4455, 19142, 30, 46506, 366, 45, 1039, 36435, 1, 16034, 3084, 62, 1485, 22572, 33411, 366, 28566, 19142, 1, 796, 705, 5066, 13, ...
What was the episode number veiwed by 7.43 million viewers?
SELECT MAX(series_episode) FROM table_27987623_1 WHERE us_viewers__in_million_ = "7.43"
[ 2061, 373, 262, 4471, 1271, 1569, 14246, 276, 416, 767, 13, 3559, 1510, 10209, 30, 46506, 25882, 7, 25076, 62, 38668, 8, 16034, 3084, 62, 1983, 4089, 4304, 1954, 62, 16, 33411, 514, 62, 1177, 364, 834, 259, 62, 14100, 62, 796, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4471, 1271, 1569, 14246, 276, 416, 767, 13, 3559, 1510, 10209, 30, 46506, 25882, 7, 25076, 62, 38668, 8, 16034, 3084, 62, 1983, 4089, 4304, 1954, 62, 16, 33411, 514, 62, 1177, 364, 834, 259, 62, 14100, 62, 796, 366, ...
What is the Word Form, when the Notes are literally 'one hundred thousand'?
SELECT "Word Form" FROM table_70095 WHERE "Notes" = 'literally "one hundred thousand'
[ 2061, 318, 262, 9678, 5178, 11, 618, 262, 11822, 389, 7360, 705, 505, 3470, 7319, 30960, 46506, 366, 26449, 5178, 1, 16034, 3084, 62, 9879, 3865, 33411, 366, 16130, 1, 796, 705, 43819, 366, 505, 3470, 7319, 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 ]
[ 2061, 318, 262, 9678, 5178, 11, 618, 262, 11822, 389, 7360, 705, 505, 3470, 7319, 30960, 46506, 366, 26449, 5178, 1, 16034, 3084, 62, 9879, 3865, 33411, 366, 16130, 1, 796, 705, 43819, 366, 505, 3470, 7319, 6 ]
What is the item id of Paul Edwards?
SELECT lab.itemid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Paul Edwards"
[ 2061, 318, 262, 2378, 4686, 286, 3362, 17381, 30, 46506, 2248, 13, 9186, 312, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 796, 2248, 13, 18108, 76, 62, 312, 33411, 16728, 13, 3672, 796, 366, 1204...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2378, 4686, 286, 3362, 17381, 30, 46506, 2248, 13, 9186, 312, 16034, 16728, 3268, 21479, 32357, 1268, 2248, 6177, 16728, 13, 18108, 76, 62, 312, 796, 2248, 13, 18108, 76, 62, 312, 33411, 16728, 13, 3672, 796, 366, 1204...
Which county built a bridge in 1934?
SELECT county FROM table_name_59 WHERE built = "1934"
[ 13828, 7968, 3170, 257, 7696, 287, 29300, 30, 46506, 7968, 16034, 3084, 62, 3672, 62, 3270, 33411, 3170, 796, 366, 1129, 2682, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 13828, 7968, 3170, 257, 7696, 287, 29300, 30, 46506, 7968, 16034, 3084, 62, 3672, 62, 3270, 33411, 3170, 796, 366, 1129, 2682, 1 ]
flight from NASHVILLE to CLEVELAND
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NASHVILLE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CLEV...
[ 22560, 422, 7210, 39, 38526, 284, 30301, 18697, 6981, 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, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 22560, 422, 7210, 39, 38526, 284, 30301, 18697, 6981, 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, 2738...
If Villa Rivero Municipality if 7, what is the language?
SELECT "Language" FROM table_27382 WHERE "Villa Rivero Municipality" = '7'
[ 1532, 25018, 5866, 78, 27338, 1483, 611, 767, 11, 644, 318, 262, 3303, 30, 46506, 366, 32065, 1, 16034, 3084, 62, 1983, 36243, 33411, 366, 53, 5049, 5866, 78, 27338, 1483, 1, 796, 705, 22, 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 ]
[ 1532, 25018, 5866, 78, 27338, 1483, 611, 767, 11, 644, 318, 262, 3303, 30, 46506, 366, 32065, 1, 16034, 3084, 62, 1983, 36243, 33411, 366, 53, 5049, 5866, 78, 27338, 1483, 1, 796, 705, 22, 6 ]
For the United States International University, what was the highest pick number allowed?
SELECT MAX("Pick") FROM table_42745 WHERE "College" = 'united states international university'
[ 1890, 262, 1578, 1829, 4037, 2059, 11, 644, 373, 262, 4511, 2298, 1271, 3142, 30, 46506, 25882, 7203, 31686, 4943, 16034, 3084, 62, 42363, 2231, 33411, 366, 38951, 1, 796, 705, 41187, 2585, 3230, 6403, 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 ]
[ 1890, 262, 1578, 1829, 4037, 2059, 11, 644, 373, 262, 4511, 2298, 1271, 3142, 30, 46506, 25882, 7203, 31686, 4943, 16034, 3084, 62, 42363, 2231, 33411, 366, 38951, 1, 796, 705, 41187, 2585, 3230, 6403, 6 ]
provide the number of patients whose discharge location is dead/expired and who were admitted before the year 2139.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DEAD/EXPIRED" AND demographic.admityear < "2139"
[ 15234, 485, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 2636, 14, 1069, 6474, 290, 508, 547, 6848, 878, 262, 614, 362, 20219, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 3871, 3025, 17655, 4067, 318, 2636, 14, 1069, 6474, 290, 508, 547, 6848, 878, 262, 614, 362, 20219, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 33411, 16728, ...
what would be the minimum yearly number of patients diagnosed with leukemia - chronic lymphocytic since 2105?
SELECT MIN(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'leukemia - chronic lymphocytic' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2105' GROUP BY STRFTIME('%y', diagnosis.diagnosistime)) AS t1
[ 10919, 561, 307, 262, 5288, 24169, 1271, 286, 3871, 14641, 351, 49030, 532, 10726, 28837, 13733, 13370, 1201, 362, 13348, 30, 46506, 20625, 7, 83, 16, 13, 66, 16, 8, 16034, 357, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 13669, 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...
[ 10919, 561, 307, 262, 5288, 24169, 1271, 286, 3871, 14641, 351, 49030, 532, 10726, 28837, 13733, 13370, 1201, 362, 13348, 30, 46506, 20625, 7, 83, 16, 13, 66, 16, 8, 16034, 357, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 13669, 13, ...
In the championship Indian Wells, United States (2), who are the opponents in the final?
SELECT opponent_in_the_final FROM table_26202788_7 WHERE championship = "Indian Wells, United States (2)"
[ 818, 262, 12184, 3942, 18292, 11, 1578, 1829, 357, 17, 828, 508, 389, 262, 7691, 287, 262, 2457, 30, 46506, 6125, 62, 259, 62, 1169, 62, 20311, 16034, 3084, 62, 2075, 1238, 1983, 3459, 62, 22, 33411, 12184, 796, 366, 30821, 18292, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 818, 262, 12184, 3942, 18292, 11, 1578, 1829, 357, 17, 828, 508, 389, 262, 7691, 287, 262, 2457, 30, 46506, 6125, 62, 259, 62, 1169, 62, 20311, 16034, 3084, 62, 2075, 1238, 1983, 3459, 62, 22, 33411, 12184, 796, 366, 30821, 18292, 1...
How many Latin Americans were there in 2001 in the province with 0.0% 2001 and 0.2% 2011?
SELECT MAX("Latin Americans 2001") FROM table_2049 WHERE "% 2001" = '0.0%' AND "% 2011" = '0.2%'
[ 2437, 867, 9133, 3399, 547, 612, 287, 5878, 287, 262, 8473, 351, 657, 13, 15, 4, 5878, 290, 657, 13, 17, 4, 2813, 30, 46506, 25882, 7203, 49022, 3399, 5878, 4943, 16034, 3084, 62, 1238, 2920, 33411, 36521, 5878, 1, 796, 705, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2437, 867, 9133, 3399, 547, 612, 287, 5878, 287, 262, 8473, 351, 657, 13, 15, 4, 5878, 290, 657, 13, 17, 4, 2813, 30, 46506, 25882, 7203, 49022, 3399, 5878, 4943, 16034, 3084, 62, 1238, 2920, 33411, 36521, 5878, 1, 796, 705, 15, 1...
What is the total number of Week, when Opponent is At Cleveland Browns?
SELECT COUNT("Week") FROM table_45562 WHERE "Opponent" = 'at cleveland browns'
[ 2061, 318, 262, 2472, 1271, 286, 6119, 11, 618, 9385, 3471, 318, 1629, 10306, 17671, 30, 46506, 327, 28270, 7203, 20916, 4943, 16034, 3084, 62, 2231, 43918, 33411, 366, 27524, 3471, 1, 796, 705, 265, 1190, 9731, 7586, 82, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 2472, 1271, 286, 6119, 11, 618, 9385, 3471, 318, 1629, 10306, 17671, 30, 46506, 327, 28270, 7203, 20916, 4943, 16034, 3084, 62, 2231, 43918, 33411, 366, 27524, 3471, 1, 796, 705, 265, 1190, 9731, 7586, 82, 6 ]
What is the distinguished service cross when the navy cross is Coast Guard commendation medal?
SELECT "Distinguished Service Cross" FROM table_24082 WHERE "Navy Cross" = 'Coast Guard Commendation Medal'
[ 2061, 318, 262, 18876, 2139, 3272, 618, 262, 23956, 3272, 318, 8545, 4932, 35695, 341, 18279, 30, 46506, 366, 20344, 46709, 4809, 6372, 1, 16034, 3084, 62, 1731, 2919, 17, 33411, 366, 45, 2830, 6372, 1, 796, 705, 7222, 459, 4932, 1520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18876, 2139, 3272, 618, 262, 23956, 3272, 318, 8545, 4932, 35695, 341, 18279, 30, 46506, 366, 20344, 46709, 4809, 6372, 1, 16034, 3084, 62, 1731, 2919, 17, 33411, 366, 45, 2830, 6372, 1, 796, 705, 7222, 459, 4932, 1520...
1. Find the top 200 questions with most views..
SELECT Posts.Id AS "post_link", ViewCount AS Total_Views FROM Posts JOIN Comments ON Posts.Id = Comments.Id WHERE PostId = 1 AND Posts.CreationDate BETWEEN '2019-02-01 00:00:01' AND '2019-02-28 23:59:59' ORDER BY Total_Views DESC LIMIT 200
[ 16, 13, 9938, 262, 1353, 939, 2683, 351, 749, 5009, 492, 46506, 12043, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 3582, 12332, 7054, 7472, 62, 7680, 82, 16034, 12043, 32357, 1268, 19502, 6177, 12043, 13, 7390, 796, 19502, 13, 7390, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 16, 13, 9938, 262, 1353, 939, 2683, 351, 749, 5009, 492, 46506, 12043, 13, 7390, 7054, 366, 7353, 62, 8726, 1600, 3582, 12332, 7054, 7472, 62, 7680, 82, 16034, 12043, 32357, 1268, 19502, 6177, 12043, 13, 7390, 796, 19502, 13, 7390, 33...
What is the Score of Stewart Cink with a To par of +4?
SELECT "Score" FROM table_47800 WHERE "To par" = '+4' AND "Player" = 'stewart cink'
[ 2061, 318, 262, 15178, 286, 13671, 327, 676, 351, 257, 1675, 1582, 286, 1343, 19, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2857, 7410, 33411, 366, 2514, 1582, 1, 796, 705, 10, 19, 6, 5357, 366, 14140, 1, 796, 705, 301, 413, 433,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15178, 286, 13671, 327, 676, 351, 257, 1675, 1582, 286, 1343, 19, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 2857, 7410, 33411, 366, 2514, 1582, 1, 796, 705, 10, 19, 6, 5357, 366, 14140, 1, 796, 705, 301, 413, 433,...
What is the number of Justin Jeffries?
SELECT COUNT("Number") FROM table_37374 WHERE "Name" = 'justin jeffries'
[ 2061, 318, 262, 1271, 286, 10799, 5502, 1678, 30, 46506, 327, 28270, 7203, 15057, 4943, 16034, 3084, 62, 2718, 31020, 33411, 366, 5376, 1, 796, 705, 3137, 259, 11223, 487, 1678, 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, 1271, 286, 10799, 5502, 1678, 30, 46506, 327, 28270, 7203, 15057, 4943, 16034, 3084, 62, 2718, 31020, 33411, 366, 5376, 1, 796, 705, 3137, 259, 11223, 487, 1678, 6 ]
Which Skip has a Third of sara carlsson?
SELECT skip FROM table_name_39 WHERE third = "sara carlsson"
[ 13828, 32214, 468, 257, 10467, 286, 264, 3301, 1097, 75, 16528, 30, 46506, 14267, 16034, 3084, 62, 3672, 62, 2670, 33411, 2368, 796, 366, 82, 3301, 1097, 75, 16528, 1 ]
[ 1, 1, 1, 1, 1, 1, 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, 32214, 468, 257, 10467, 286, 264, 3301, 1097, 75, 16528, 30, 46506, 14267, 16034, 3084, 62, 3672, 62, 2670, 33411, 2368, 796, 366, 82, 3301, 1097, 75, 16528, 1 ]
Shortest time when an accepted answer is posted. Number of days between the question is asked and the accepted answer is posted.
SELECT * FROM Posts AS q WHERE q.Id = 23682919
[ 16438, 395, 640, 618, 281, 6292, 3280, 318, 4481, 13, 7913, 286, 1528, 1022, 262, 1808, 318, 1965, 290, 262, 6292, 3280, 318, 4481, 13, 46506, 1635, 16034, 12043, 7054, 10662, 33411, 10662, 13, 7390, 796, 2242, 3104, 1959, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 16438, 395, 640, 618, 281, 6292, 3280, 318, 4481, 13, 7913, 286, 1528, 1022, 262, 1808, 318, 1965, 290, 262, 6292, 3280, 318, 4481, 13, 46506, 1635, 16034, 12043, 7054, 10662, 33411, 10662, 13, 7390, 796, 2242, 3104, 1959, 1129 ]
Where Award is newcomer actress, what is the work?
SELECT work FROM table_name_19 WHERE award = "newcomer actress"
[ 8496, 11289, 318, 41422, 14549, 11, 644, 318, 262, 670, 30, 46506, 670, 16034, 3084, 62, 3672, 62, 1129, 33411, 5764, 796, 366, 3605, 785, 263, 14549, 1 ]
[ 1, 1, 1, 1, 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, 11289, 318, 41422, 14549, 11, 644, 318, 262, 670, 30, 46506, 670, 16034, 3084, 62, 3672, 62, 1129, 33411, 5764, 796, 366, 3605, 785, 263, 14549, 1 ]
show me the flights from ATLANTA to PHILADELPHIA
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILAD...
[ 12860, 502, 262, 13956, 422, 5161, 25697, 5603, 284, 9370, 4146, 2885, 3698, 11909, 40, 11159, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 12860, 502, 262, 13956, 422, 5161, 25697, 5603, 284, 9370, 4146, 2885, 3698, 11909, 40, 11159, 16779, 360, 8808, 1268, 4177, 5474, 13, 22560, 62, 312, 16034, 9003, 62, 15271, 7054, 31600, 15490, 62, 35009, 27389, 62, 15, 11, 9003, 62, ...
In which venue did the home team score 11.13 (79)?
SELECT "Venue" FROM table_10814 WHERE "Home team score" = '11.13 (79)'
[ 818, 543, 14359, 750, 262, 1363, 1074, 4776, 1367, 13, 1485, 357, 3720, 19427, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 15711, 1415, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1157, 13, 1485, 357, 3720, 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 ]
[ 818, 543, 14359, 750, 262, 1363, 1074, 4776, 1367, 13, 1485, 357, 3720, 19427, 46506, 366, 37522, 518, 1, 16034, 3084, 62, 15711, 1415, 33411, 366, 16060, 1074, 4776, 1, 796, 705, 1157, 13, 1485, 357, 3720, 33047 ]
HOW MANY ROUNDS HAD A PICK OF 7?
SELECT COUNT(round) FROM table_name_11 WHERE pick = "7"
[ 37181, 17254, 56, 371, 19385, 5258, 367, 2885, 317, 350, 11860, 3963, 767, 30, 46506, 327, 28270, 7, 744, 8, 16034, 3084, 62, 3672, 62, 1157, 33411, 2298, 796, 366, 22, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 37181, 17254, 56, 371, 19385, 5258, 367, 2885, 317, 350, 11860, 3963, 767, 30, 46506, 327, 28270, 7, 744, 8, 16034, 3084, 62, 3672, 62, 1157, 33411, 2298, 796, 366, 22, 1 ]
What is the lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2?
SELECT MIN(silver) FROM table_name_73 WHERE bronze > 1 AND gold < 2 AND total < 2
[ 2061, 318, 262, 9016, 8465, 326, 468, 257, 22101, 3744, 621, 352, 11, 257, 3869, 1342, 621, 362, 11, 290, 257, 2472, 1342, 621, 362, 30, 46506, 20625, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 22101, 1875, 352, 5357, 3869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 9016, 8465, 326, 468, 257, 22101, 3744, 621, 352, 11, 257, 3869, 1342, 621, 362, 11, 290, 257, 2472, 1342, 621, 362, 30, 46506, 20625, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 4790, 33411, 22101, 1875, 352, 5357, 3869...
How much Overall has a Pick # larger than 2, and a Name of claude humphrey?
SELECT COUNT(overall) FROM table_name_93 WHERE pick__number > 2 AND name = "claude humphrey"
[ 2437, 881, 14674, 468, 257, 12346, 1303, 4025, 621, 362, 11, 290, 257, 6530, 286, 26435, 2507, 1311, 746, 4364, 30, 46506, 327, 28270, 7, 2502, 439, 8, 16034, 3084, 62, 3672, 62, 6052, 33411, 2298, 834, 17618, 1875, 362, 5357, 1438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 881, 14674, 468, 257, 12346, 1303, 4025, 621, 362, 11, 290, 257, 6530, 286, 26435, 2507, 1311, 746, 4364, 30, 46506, 327, 28270, 7, 2502, 439, 8, 16034, 3084, 62, 3672, 62, 6052, 33411, 2298, 834, 17618, 1875, 362, 5357, 1438, ...
How many lap two's did marco andretti do?
SELECT COUNT("Lap Two") FROM table_2756 WHERE "Name" = 'Marco Andretti'
[ 2437, 867, 14779, 734, 338, 750, 1667, 1073, 290, 11489, 72, 466, 30, 46506, 327, 28270, 7203, 43, 499, 4930, 4943, 16034, 3084, 62, 1983, 3980, 33411, 366, 5376, 1, 796, 705, 37179, 10948, 35671, 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 ]
[ 2437, 867, 14779, 734, 338, 750, 1667, 1073, 290, 11489, 72, 466, 30, 46506, 327, 28270, 7203, 43, 499, 4930, 4943, 16034, 3084, 62, 1983, 3980, 33411, 366, 5376, 1, 796, 705, 37179, 10948, 35671, 6 ]
count the number of patients whose days of hospital stay is greater than 2 and drug type is additive?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "2" AND prescriptions.drug_type = "ADDITIVE"
[ 9127, 262, 1271, 286, 3871, 3025, 1528, 286, 4436, 2652, 318, 3744, 621, 362, 290, 2563, 2099, 318, 38298, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 9127, 262, 1271, 286, 3871, 3025, 1528, 286, 4436, 2652, 318, 3744, 621, 362, 290, 2563, 2099, 318, 38298, 30, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 32357, 1268, 34092, 61...
Give the city that the student whose family name is Kim lives in.
SELECT city_code FROM student WHERE lname = "Kim"
[ 23318, 262, 1748, 326, 262, 3710, 3025, 1641, 1438, 318, 6502, 3160, 287, 13, 46506, 1748, 62, 8189, 16034, 3710, 33411, 300, 3672, 796, 366, 26374, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23318, 262, 1748, 326, 262, 3710, 3025, 1641, 1438, 318, 6502, 3160, 287, 13, 46506, 1748, 62, 8189, 16034, 3710, 33411, 300, 3672, 796, 366, 26374, 1 ]
how many title and source with pal -295- being yes and jp -210- being yes
SELECT COUNT(title_and_source) FROM table_13663434_1 WHERE pal__295_ = "Yes" AND jp__210_ = "Yes"
[ 4919, 867, 3670, 290, 2723, 351, 6340, 532, 25710, 12, 852, 3763, 290, 474, 79, 532, 21536, 12, 852, 3763, 46506, 327, 28270, 7, 7839, 62, 392, 62, 10459, 8, 16034, 3084, 62, 1485, 2791, 2682, 2682, 62, 16, 33411, 6340, 834, 25710, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3670, 290, 2723, 351, 6340, 532, 25710, 12, 852, 3763, 290, 474, 79, 532, 21536, 12, 852, 3763, 46506, 327, 28270, 7, 7839, 62, 392, 62, 10459, 8, 16034, 3084, 62, 1485, 2791, 2682, 2682, 62, 16, 33411, 6340, 834, 25710, ...
This retrieves all questions (and questions only) with a very short amount of characters (less then 30 in total).. This retrieves all questions (and questions only) with a very short amount of characters (less then 30 in total).
SELECT Id AS "post_link", REPLACE(REPLACE(Body, '<p>', ' '), '</p>', '') AS "question_body", Score AS "total_score" FROM Posts WHERE ((PostTypeId = 1) AND (LENGTH(Body) < 30))
[ 1212, 13236, 1158, 477, 2683, 357, 392, 2683, 691, 8, 351, 257, 198, 548, 1790, 2033, 286, 3435, 357, 1203, 788, 1542, 287, 2472, 8, 492, 770, 13236, 1158, 477, 2683, 357, 392, 2683, 691, 8, 351, 257, 198, 548, 1790, 2033, 286, 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...
[ 1212, 13236, 1158, 477, 2683, 357, 392, 2683, 691, 8, 351, 257, 198, 548, 1790, 2033, 286, 3435, 357, 1203, 788, 1542, 287, 2472, 8, 492, 770, 13236, 1158, 477, 2683, 357, 392, 2683, 691, 8, 351, 257, 198, 548, 1790, 2033, 286, 34...
provide the number of male patients who had angioplasty of other non-coronary vessel(s).
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.short_title = "Angio oth non-coronary"
[ 15234, 485, 262, 1271, 286, 4257, 3871, 508, 550, 3550, 14922, 75, 7833, 286, 584, 1729, 12, 10215, 261, 560, 8837, 7, 82, 737, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 15234, 485, 262, 1271, 286, 4257, 3871, 508, 550, 3550, 14922, 75, 7833, 286, 584, 1729, 12, 10215, 261, 560, 8837, 7, 82, 737, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 16728, 13, 32796, 62, 312, 8, 16034, 16728, 3268, 21479, 323...
Which Score has a To par larger than 17, and a Player of mike brady?
SELECT score FROM table_name_7 WHERE to_par > 17 AND player = "mike brady"
[ 13828, 15178, 468, 257, 1675, 1582, 4025, 621, 1596, 11, 290, 257, 7853, 286, 285, 522, 865, 4597, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 22, 33411, 284, 62, 1845, 1875, 1596, 5357, 2137, 796, 366, 76, 522, 865, 4597, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15178, 468, 257, 1675, 1582, 4025, 621, 1596, 11, 290, 257, 7853, 286, 285, 522, 865, 4597, 30, 46506, 4776, 16034, 3084, 62, 3672, 62, 22, 33411, 284, 62, 1845, 1875, 1596, 5357, 2137, 796, 366, 76, 522, 865, 4597, 1 ]
what album title came next after get lost ?
SELECT "album title" FROM table_203_77 WHERE id = (SELECT id FROM table_203_77 WHERE "album title" = 'get lost') + 1
[ 10919, 5062, 3670, 1625, 1306, 706, 651, 2626, 5633, 46506, 366, 40916, 3670, 1, 16034, 3084, 62, 22416, 62, 3324, 33411, 4686, 796, 357, 46506, 4686, 16034, 3084, 62, 22416, 62, 3324, 33411, 366, 40916, 3670, 1, 796, 705, 1136, 2626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5062, 3670, 1625, 1306, 706, 651, 2626, 5633, 46506, 366, 40916, 3670, 1, 16034, 3084, 62, 22416, 62, 3324, 33411, 4686, 796, 357, 46506, 4686, 16034, 3084, 62, 22416, 62, 3324, 33411, 366, 40916, 3670, 1, 796, 705, 1136, 2626, ...
Bar chart x axis event details y axis how many event details
SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details
[ 10374, 8262, 2124, 16488, 1785, 3307, 331, 16488, 703, 867, 1785, 3307, 46506, 8558, 62, 24259, 11, 327, 28270, 7, 9237, 62, 24259, 8, 16034, 18715, 44441, 11050, 8558, 62, 24259 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 10374, 8262, 2124, 16488, 1785, 3307, 331, 16488, 703, 867, 1785, 3307, 46506, 8558, 62, 24259, 11, 327, 28270, 7, 9237, 62, 24259, 8, 16034, 18715, 44441, 11050, 8558, 62, 24259 ]
how many days had it been since patient 015-59552 was admitted to the hospital?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '015-59552' AND patient.hospitaldischargetime IS NULL
[ 4919, 867, 1528, 550, 340, 587, 1201, 5827, 5534, 20, 12, 3270, 40427, 373, 6848, 284, 262, 4436, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, 10786, 4, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1528, 550, 340, 587, 1201, 5827, 5534, 20, 12, 3270, 40427, 373, 6848, 284, 262, 4436, 30, 46506, 352, 1635, 357, 18601, 9792, 12789, 10786, 4, 73, 3256, 327, 39237, 62, 34694, 28955, 532, 19269, 9792, 12789, 10786, 4, 73, ...
Name the october 15, 2004 catalogue
SELECT catalogue FROM table_name_48 WHERE date = "october 15, 2004"
[ 5376, 262, 19318, 2023, 1315, 11, 5472, 34614, 46506, 34614, 16034, 3084, 62, 3672, 62, 2780, 33411, 3128, 796, 366, 38441, 2023, 1315, 11, 5472, 1 ]
[ 1, 1, 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, 19318, 2023, 1315, 11, 5472, 34614, 46506, 34614, 16034, 3084, 62, 3672, 62, 2780, 33411, 3128, 796, 366, 38441, 2023, 1315, 11, 5472, 1 ]
Exploring Posts and their features.
SELECT Id, PostTypeId FROM Posts
[ 18438, 3255, 12043, 290, 511, 3033, 13, 46506, 5121, 11, 2947, 6030, 7390, 16034, 12043 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 18438, 3255, 12043, 290, 511, 3033, 13, 46506, 5121, 11, 2947, 6030, 7390, 16034, 12043 ]
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the average of department_id bin hire_date by weekday in a bar chart, and rank by the the average of department id from low to high.
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(DEPARTMENT_ID)
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 5011, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 287, 257, 2318, 8262, 11, 290, 4279, 416, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1890, 883, 4409, 508, 373, 9657, 878, 6244, 12, 3312, 12, 2481, 11, 905, 502, 546, 262, 6082, 286, 11078, 62, 4475, 290, 262, 2811, 286, 5011, 62, 312, 9874, 11078, 62, 4475, 416, 28269, 287, 257, 2318, 8262, 11, 290, 4279, 416, 2...
Opponent of houston texans had what result?
SELECT result FROM table_name_2 WHERE opponent = "houston texans"
[ 27524, 3471, 286, 289, 6526, 48659, 504, 550, 644, 1255, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 17, 33411, 6125, 796, 366, 71, 6526, 48659, 504, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 27524, 3471, 286, 289, 6526, 48659, 504, 550, 644, 1255, 30, 46506, 1255, 16034, 3084, 62, 3672, 62, 17, 33411, 6125, 796, 366, 71, 6526, 48659, 504, 1 ]
Who left a position on 24 January?
SELECT outgoing_manager FROM table_17327458_1 WHERE date_of_vacancy = "24 January"
[ 8241, 1364, 257, 2292, 319, 1987, 3269, 30, 46506, 28181, 62, 37153, 16034, 3084, 62, 25399, 1983, 29334, 62, 16, 33411, 3128, 62, 1659, 62, 85, 330, 3883, 796, 366, 1731, 3269, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1364, 257, 2292, 319, 1987, 3269, 30, 46506, 28181, 62, 37153, 16034, 3084, 62, 25399, 1983, 29334, 62, 16, 33411, 3128, 62, 1659, 62, 85, 330, 3883, 796, 366, 1731, 3269, 1 ]
What are the fa.brill when w.h. archer is known as r. newman?
SELECT fa_brill FROM table_1320857_1 WHERE wh_archer = "R. Newman"
[ 2061, 389, 262, 24685, 13, 1671, 359, 618, 266, 13, 71, 13, 610, 2044, 318, 1900, 355, 374, 13, 649, 805, 30, 46506, 24685, 62, 1671, 359, 16034, 3084, 62, 1485, 21315, 3553, 62, 16, 33411, 348, 62, 283, 2044, 796, 366, 49, 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 ]
[ 2061, 389, 262, 24685, 13, 1671, 359, 618, 266, 13, 71, 13, 610, 2044, 318, 1900, 355, 374, 13, 649, 805, 30, 46506, 24685, 62, 1671, 359, 16034, 3084, 62, 1485, 21315, 3553, 62, 16, 33411, 348, 62, 283, 2044, 796, 366, 49, 13, ...
what was the first time that patient 005-4044 had p.o. taken on the last icu visit?
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4044') AND NOT patient.unitdischargetime IS NULL ...
[ 10919, 373, 262, 717, 640, 326, 5827, 3571, 20, 12, 1821, 2598, 550, 279, 13, 78, 13, 2077, 319, 262, 938, 14158, 84, 3187, 30, 46506, 10337, 22915, 13, 600, 539, 22915, 2435, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 10919, 373, 262, 717, 640, 326, 5827, 3571, 20, 12, 1821, 2598, 550, 279, 13, 78, 13, 2077, 319, 262, 938, 14158, 84, 3187, 30, 46506, 10337, 22915, 13, 600, 539, 22915, 2435, 16034, 10337, 22915, 33411, 10337, 22915, 13, 26029, 20850...
what is primary disease of subject name paul edwards?
SELECT demographic.diagnosis FROM demographic WHERE demographic.name = "Paul Edwards"
[ 10919, 318, 4165, 4369, 286, 2426, 1438, 279, 2518, 1225, 2017, 30, 46506, 16728, 13, 47356, 5958, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 12041, 17381, 1 ]
[ 1, 1, 1, 1, 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, 4165, 4369, 286, 2426, 1438, 279, 2518, 1225, 2017, 30, 46506, 16728, 13, 47356, 5958, 16034, 16728, 33411, 16728, 13, 3672, 796, 366, 12041, 17381, 1 ]
What is the theme when the printing process is litho in 3 cols and intaglio?
SELECT "Theme" FROM table_27704 WHERE "Printing Process" = 'Litho in 3 cols and intaglio'
[ 2061, 318, 262, 7505, 618, 262, 13570, 1429, 318, 24491, 78, 287, 513, 951, 82, 290, 493, 363, 48590, 30, 46506, 366, 47863, 1, 16034, 3084, 62, 1983, 32869, 33411, 366, 18557, 278, 10854, 1, 796, 705, 43, 342, 78, 287, 513, 951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7505, 618, 262, 13570, 1429, 318, 24491, 78, 287, 513, 951, 82, 290, 493, 363, 48590, 30, 46506, 366, 47863, 1, 16034, 3084, 62, 1983, 32869, 33411, 366, 18557, 278, 10854, 1, 796, 705, 43, 342, 78, 287, 513, 951, ...
What tournament did Pemra zgen play against julia kimmelmann in the finals?
SELECT "Tournament" FROM table_49080 WHERE "Opponent in the Final" = 'julia kimmelmann'
[ 2061, 7756, 750, 350, 368, 430, 1976, 5235, 711, 1028, 474, 43640, 479, 8608, 417, 9038, 287, 262, 18576, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 31503, 1795, 33411, 366, 27524, 3471, 287, 262, 8125, 1, 796, 705, 73, 43640, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7756, 750, 350, 368, 430, 1976, 5235, 711, 1028, 474, 43640, 479, 8608, 417, 9038, 287, 262, 18576, 30, 46506, 366, 51, 5138, 1, 16034, 3084, 62, 31503, 1795, 33411, 366, 27524, 3471, 287, 262, 8125, 1, 796, 705, 73, 43640, 47...
hemoglobin less than 13.5 for male and less than 12 for female
SELECT * FROM table_train_180 WHERE (gender = 'male' AND hemoglobin_a1c_hba1c < 13.5) OR (gender = 'female' AND hemoglobin_a1c_hba1c < 12)
[ 4411, 49835, 1342, 621, 1511, 13, 20, 329, 4257, 290, 1342, 621, 1105, 329, 4048, 46506, 1635, 16034, 3084, 62, 27432, 62, 15259, 33411, 357, 8388, 796, 705, 22606, 6, 5357, 16869, 49835, 62, 64, 16, 66, 62, 71, 7012, 16, 66, 1279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 4411, 49835, 1342, 621, 1511, 13, 20, 329, 4257, 290, 1342, 621, 1105, 329, 4048, 46506, 1635, 16034, 3084, 62, 27432, 62, 15259, 33411, 357, 8388, 796, 705, 22606, 6, 5357, 16869, 49835, 62, 64, 16, 66, 62, 71, 7012, 16, 66, 1279, ...
how many games took place in the araneta coliseum ?
SELECT COUNT(*) FROM table_204_627 WHERE "venue (location)" = 'araneta coliseum'
[ 4919, 867, 1830, 1718, 1295, 287, 262, 610, 272, 17167, 951, 38277, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 49856, 33411, 366, 4080, 357, 24886, 16725, 796, 705, 19173, 17167, 951, 38277, 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 ]
[ 4919, 867, 1830, 1718, 1295, 287, 262, 610, 272, 17167, 951, 38277, 5633, 46506, 327, 28270, 7, 28104, 16034, 3084, 62, 18638, 62, 49856, 33411, 366, 4080, 357, 24886, 16725, 796, 705, 19173, 17167, 951, 38277, 6 ]
how many patients were tested for rheumatoid factor and discharged to home?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "HOME" AND lab.label = "Rheumatoid Factor"
[ 4919, 867, 3871, 547, 6789, 329, 374, 258, 27798, 1868, 5766, 290, 26476, 284, 1363, 30, 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, 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...
[ 4919, 867, 3871, 547, 6789, 329, 374, 258, 27798, 1868, 5766, 290, 26476, 284, 1363, 30, 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, 7...
Which friendly competition took place on 19 April 1979?
SELECT "Score" FROM table_71671 WHERE "Competition" = 'friendly' AND "Date" = '19 april 1979'
[ 13828, 8030, 5449, 1718, 1295, 319, 678, 3035, 13521, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 22, 1433, 4869, 33411, 366, 7293, 15620, 1, 796, 705, 13120, 6, 5357, 366, 10430, 1, 796, 705, 1129, 46593, 346, 13521, 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 ]
[ 13828, 8030, 5449, 1718, 1295, 319, 678, 3035, 13521, 30, 46506, 366, 26595, 1, 16034, 3084, 62, 22, 1433, 4869, 33411, 366, 7293, 15620, 1, 796, 705, 13120, 6, 5357, 366, 10430, 1, 796, 705, 1129, 46593, 346, 13521, 6 ]
How many directors were there for the film Course Completed?
SELECT COUNT("Director") FROM table_16303 WHERE "Film title used in nomination" = 'Course Completed'
[ 2437, 867, 13445, 547, 612, 329, 262, 2646, 20537, 32983, 30, 46506, 327, 28270, 7203, 28702, 4943, 16034, 3084, 62, 1433, 22572, 33411, 366, 39750, 3670, 973, 287, 11872, 1, 796, 705, 49046, 32983, 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 ]
[ 2437, 867, 13445, 547, 612, 329, 262, 2646, 20537, 32983, 30, 46506, 327, 28270, 7203, 28702, 4943, 16034, 3084, 62, 1433, 22572, 33411, 366, 39750, 3670, 973, 287, 11872, 1, 796, 705, 49046, 32983, 6 ]
What is the fewest number of silvers for teams with more than 21 gold and more than 4 bronze?
SELECT MIN(silver) FROM table_name_56 WHERE bronze > 4 AND gold > 21
[ 2061, 318, 262, 1178, 395, 1271, 286, 3313, 690, 329, 3466, 351, 517, 621, 2310, 3869, 290, 517, 621, 604, 22101, 30, 46506, 20625, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 3980, 33411, 22101, 1875, 604, 5357, 3869, 1875, 2310 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1178, 395, 1271, 286, 3313, 690, 329, 3466, 351, 517, 621, 2310, 3869, 290, 517, 621, 604, 22101, 30, 46506, 20625, 7, 40503, 8, 16034, 3084, 62, 3672, 62, 3980, 33411, 22101, 1875, 604, 5357, 3869, 1875, 2310 ]
Find the number of dorms and total capacity for each gender.
SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender
[ 16742, 262, 1271, 286, 18586, 82, 290, 2472, 5339, 329, 1123, 5279, 13, 46506, 327, 28270, 46491, 828, 35683, 7, 50139, 62, 42404, 828, 5279, 16034, 18586, 44441, 11050, 5279 ]
[ 1, 1, 1, 1, 1, 1, 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, 18586, 82, 290, 2472, 5339, 329, 1123, 5279, 13, 46506, 327, 28270, 46491, 828, 35683, 7, 50139, 62, 42404, 828, 5279, 16034, 18586, 44441, 11050, 5279 ]
What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?
SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8
[ 2061, 318, 262, 4511, 15016, 1271, 286, 257, 1048, 351, 257, 640, 286, 5996, 13, 5824, 351, 257, 10916, 326, 338, 5749, 621, 807, 30, 46506, 25882, 7, 33533, 8, 16034, 3084, 62, 3672, 62, 3104, 33411, 640, 1875, 5996, 13, 5824, 5357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 4511, 15016, 1271, 286, 257, 1048, 351, 257, 640, 286, 5996, 13, 5824, 351, 257, 10916, 326, 338, 5749, 621, 807, 30, 46506, 25882, 7, 33533, 8, 16034, 3084, 62, 3672, 62, 3104, 33411, 640, 1875, 5996, 13, 5824, 5357...
What grid features 6 laps?
SELECT "Grid" FROM table_55654 WHERE "Laps" = '6'
[ 2061, 10706, 3033, 718, 24590, 30, 46506, 366, 41339, 1, 16034, 3084, 62, 2816, 39111, 33411, 366, 43, 1686, 1, 796, 705, 21, 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 ]
[ 2061, 10706, 3033, 718, 24590, 30, 46506, 366, 41339, 1, 16034, 3084, 62, 2816, 39111, 33411, 366, 43, 1686, 1, 796, 705, 21, 6 ]
How many figures are provided for the team when the position drafted is center?
SELECT COUNT(nhl_team) FROM table_2897457_8 WHERE position = "Center"
[ 2437, 867, 5538, 389, 2810, 329, 262, 1074, 618, 262, 2292, 15937, 318, 3641, 30, 46506, 327, 28270, 7, 77, 18519, 62, 15097, 8, 16034, 3084, 62, 2078, 5607, 33032, 62, 23, 33411, 2292, 796, 366, 23656, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5538, 389, 2810, 329, 262, 1074, 618, 262, 2292, 15937, 318, 3641, 30, 46506, 327, 28270, 7, 77, 18519, 62, 15097, 8, 16034, 3084, 62, 2078, 5607, 33032, 62, 23, 33411, 2292, 796, 366, 23656, 1 ]
All my posts in desc.
SELECT COUNT(Id), PostTypeId FROM Posts WHERE OwnerUserId = @UserId AND CreationDate >= '##year##0101' AND CreationDate <= '##year##1231' GROUP BY PostTypeId
[ 3237, 616, 6851, 287, 1715, 13, 46506, 327, 28270, 7, 7390, 828, 2947, 6030, 7390, 16034, 12043, 33411, 23853, 12982, 7390, 796, 2488, 12982, 7390, 5357, 21582, 10430, 18189, 705, 2235, 1941, 2235, 486, 486, 6, 5357, 21582, 10430, 19841, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 3237, 616, 6851, 287, 1715, 13, 46506, 327, 28270, 7, 7390, 828, 2947, 6030, 7390, 16034, 12043, 33411, 23853, 12982, 7390, 796, 2488, 12982, 7390, 5357, 21582, 10430, 18189, 705, 2235, 1941, 2235, 486, 486, 6, 5357, 21582, 10430, 19841, ...
What is the latest year established that had 5 powiats?
SELECT MAX(year_established) FROM table_1784514_1 WHERE number_of_powiats = "5 powiats"
[ 2061, 318, 262, 3452, 614, 4920, 326, 550, 642, 7182, 72, 1381, 30, 46506, 25882, 7, 1941, 62, 27718, 8, 16034, 3084, 62, 23188, 2231, 1415, 62, 16, 33411, 1271, 62, 1659, 62, 79, 322, 72, 1381, 796, 366, 20, 7182, 72, 1381, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3452, 614, 4920, 326, 550, 642, 7182, 72, 1381, 30, 46506, 25882, 7, 1941, 62, 27718, 8, 16034, 3084, 62, 23188, 2231, 1415, 62, 16, 33411, 1271, 62, 1659, 62, 79, 322, 72, 1381, 796, 366, 20, 7182, 72, 1381, 1 ]
Who was the presenter on Monday of 'Big Brother 13' in which Alice Levine Jamie East presented on Sunday?
SELECT monday FROM table_name_45 WHERE sunday = "alice levine jamie east" AND series = "big brother 13"
[ 8241, 373, 262, 39597, 319, 3321, 286, 705, 12804, 8402, 1511, 6, 287, 543, 14862, 38294, 17826, 3687, 5545, 319, 3502, 30, 46506, 285, 3204, 16034, 3084, 62, 3672, 62, 2231, 33411, 37437, 323, 796, 366, 282, 501, 23145, 500, 16853, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 8241, 373, 262, 39597, 319, 3321, 286, 705, 12804, 8402, 1511, 6, 287, 543, 14862, 38294, 17826, 3687, 5545, 319, 3502, 30, 46506, 285, 3204, 16034, 3084, 62, 3672, 62, 2231, 33411, 37437, 323, 796, 366, 282, 501, 23145, 500, 16853, 4...
What is the week for the stadium that had an attendance of 22,286?
SELECT AVG("Week") FROM table_4795 WHERE "Attendance" = '22,286'
[ 2061, 318, 262, 1285, 329, 262, 10308, 326, 550, 281, 14858, 286, 2534, 11, 27033, 30, 46506, 35224, 7203, 20916, 4943, 16034, 3084, 62, 2857, 3865, 33411, 366, 8086, 437, 590, 1, 796, 705, 1828, 11, 27033, 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 ]
[ 2061, 318, 262, 1285, 329, 262, 10308, 326, 550, 281, 14858, 286, 2534, 11, 27033, 30, 46506, 35224, 7203, 20916, 4943, 16034, 3084, 62, 2857, 3865, 33411, 366, 8086, 437, 590, 1, 796, 705, 1828, 11, 27033, 6 ]
count the number of patients who have received a blood culture (post-mortem) microbiology testing until 2100.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'blood culture (post-mortem)' AND STRFTIME('%y', microbiologyevents.charttime) <= '2100')
[ 9127, 262, 1271, 286, 3871, 508, 423, 2722, 257, 2910, 3968, 357, 7353, 12, 46515, 8, 24559, 1435, 4856, 1566, 38123, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 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...
[ 9127, 262, 1271, 286, 3871, 508, 423, 2722, 257, 2910, 3968, 357, 7353, 12, 46515, 8, 24559, 1435, 4856, 1566, 38123, 13, 46506, 327, 28270, 7, 35, 8808, 1268, 4177, 25349, 13, 32796, 62, 312, 8, 16034, 25349, 33411, 25349, 13, 18108,...
What was the speed with a time of 1:03.41.86 and a rank smaller than 3?
SELECT "Speed" FROM table_65719 WHERE "Rank" < '3' AND "Time" = '1:03.41.86'
[ 2061, 373, 262, 2866, 351, 257, 640, 286, 352, 25, 3070, 13, 3901, 13, 4521, 290, 257, 4279, 4833, 621, 513, 30, 46506, 366, 22785, 1, 16034, 3084, 62, 37680, 1129, 33411, 366, 27520, 1, 1279, 705, 18, 6, 5357, 366, 7575, 1, 796, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 373, 262, 2866, 351, 257, 640, 286, 352, 25, 3070, 13, 3901, 13, 4521, 290, 257, 4279, 4833, 621, 513, 30, 46506, 366, 22785, 1, 16034, 3084, 62, 37680, 1129, 33411, 366, 27520, 1, 1279, 705, 18, 6, 5357, 366, 7575, 1, 796, ...
what is the most money ($) when the score is 71-74-69-72=286?
SELECT MAX("Money ( $ )") FROM table_77361 WHERE "Score" = '71-74-69-72=286'
[ 10919, 318, 262, 749, 1637, 45491, 618, 262, 4776, 318, 9166, 12, 4524, 12, 3388, 12, 4761, 28, 27033, 30, 46506, 25882, 7203, 26788, 357, 720, 1267, 4943, 16034, 3084, 62, 3324, 35195, 33411, 366, 26595, 1, 796, 705, 4869, 12, 4524, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 749, 1637, 45491, 618, 262, 4776, 318, 9166, 12, 4524, 12, 3388, 12, 4761, 28, 27033, 30, 46506, 25882, 7203, 26788, 357, 720, 1267, 4943, 16034, 3084, 62, 3324, 35195, 33411, 366, 26595, 1, 796, 705, 4869, 12, 4524, ...
How many years have a Result of nominated?
SELECT COUNT("Year") FROM table_61025 WHERE "Result" = 'nominated'
[ 2437, 867, 812, 423, 257, 25414, 286, 19332, 30, 46506, 327, 28270, 7203, 17688, 4943, 16034, 3084, 62, 39132, 1495, 33411, 366, 23004, 1, 796, 705, 26601, 3898, 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 ]
[ 2437, 867, 812, 423, 257, 25414, 286, 19332, 30, 46506, 327, 28270, 7203, 17688, 4943, 16034, 3084, 62, 39132, 1495, 33411, 366, 23004, 1, 796, 705, 26601, 3898, 6 ]
Display a bar chart for what are the names and average salaries for departments with average salary higher than 42000?, and display y axis in descending order.
SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC
[ 23114, 257, 2318, 8262, 329, 644, 389, 262, 3891, 290, 2811, 17058, 329, 13346, 351, 2811, 9588, 2440, 621, 5433, 830, 21747, 290, 3359, 331, 16488, 287, 31491, 1502, 13, 46506, 390, 457, 62, 3672, 11, 35224, 7, 21680, 560, 8, 16034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 23114, 257, 2318, 8262, 329, 644, 389, 262, 3891, 290, 2811, 17058, 329, 13346, 351, 2811, 9588, 2440, 621, 5433, 830, 21747, 290, 3359, 331, 16488, 287, 31491, 1502, 13, 46506, 390, 457, 62, 3672, 11, 35224, 7, 21680, 560, 8, 16034, ...
What is the location where enrollment is 266 and and the county is 18 Delaware?
SELECT location FROM table_name_30 WHERE _number___county = "18 delaware" AND enrollment = 266
[ 2061, 318, 262, 4067, 810, 20753, 318, 37737, 290, 290, 262, 7968, 318, 1248, 19603, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 1270, 33411, 4808, 17618, 17569, 9127, 88, 796, 366, 1507, 1619, 9685, 1, 5357, 20753, 796, 37737 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4067, 810, 20753, 318, 37737, 290, 290, 262, 7968, 318, 1248, 19603, 30, 46506, 4067, 16034, 3084, 62, 3672, 62, 1270, 33411, 4808, 17618, 17569, 9127, 88, 796, 366, 1507, 1619, 9685, 1, 5357, 20753, 796, 37737 ]
What is the Date of the game with a Record of 5-3?
SELECT date FROM table_name_53 WHERE record = "5-3"
[ 2061, 318, 262, 7536, 286, 262, 983, 351, 257, 13266, 286, 642, 12, 18, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4310, 33411, 1700, 796, 366, 20, 12, 18, 1 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 318, 262, 7536, 286, 262, 983, 351, 257, 13266, 286, 642, 12, 18, 30, 46506, 3128, 16034, 3084, 62, 3672, 62, 4310, 33411, 1700, 796, 366, 20, 12, 18, 1 ]
Average question size (with word count).
SELECT t.TagName, CEIL(AVG(LENGTH(p.Body)) / 5.1) AS average_word_length FROM Posts AS p INNER JOIN PostTags AS pg ON pg.PostId = p.Id INNER JOIN Tags AS t ON pg.TagId = t.Id WHERE p.PostTypeId = 1 GROUP BY t.TagName, t.Count ORDER BY t.Count DESC
[ 26287, 1808, 2546, 357, 4480, 1573, 954, 737, 46506, 256, 13, 24835, 5376, 11, 18671, 4146, 7, 10116, 38, 7, 43, 49494, 7, 79, 13, 25842, 4008, 1220, 642, 13, 16, 8, 7054, 2811, 62, 4775, 62, 13664, 16034, 12043, 7054, 279, 3268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 26287, 1808, 2546, 357, 4480, 1573, 954, 737, 46506, 256, 13, 24835, 5376, 11, 18671, 4146, 7, 10116, 38, 7, 43, 49494, 7, 79, 13, 25842, 4008, 1220, 642, 13, 16, 8, 7054, 2811, 62, 4775, 62, 13664, 16034, 12043, 7054, 279, 3268, ...
return me the number of citations of ' Making database systems usable ' .
SELECT citation_num FROM publication WHERE title = 'Making database systems usable'
[ 7783, 502, 262, 1271, 286, 33499, 286, 705, 16427, 6831, 3341, 24284, 705, 764, 46506, 27860, 62, 22510, 16034, 9207, 33411, 3670, 796, 705, 23874, 6831, 3341, 24284, 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 ]
[ 7783, 502, 262, 1271, 286, 33499, 286, 705, 16427, 6831, 3341, 24284, 705, 764, 46506, 27860, 62, 22510, 16034, 9207, 33411, 3670, 796, 705, 23874, 6831, 3341, 24284, 6 ]
Closed questions which you ANSWERED (and whether they were edited after close).
SELECT Id AS "post_link", Score, ViewCount AS "views", OwnerUserId AS "asker", CreationDate AS "asked", ClosedDate AS "closed", LastEditDate AS "edited", CASE WHEN LastEditDate > ClosedDate THEN 'yes' ELSE 'no' END AS "edited_after_close" FROM Posts WHERE NOT ClosedDate IS NULL AND Id IN (SELECT DISTINCT ParentId FROM ...
[ 2601, 1335, 2683, 543, 345, 3537, 17887, 1137, 1961, 357, 392, 1771, 484, 547, 13012, 706, 1969, 737, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 15178, 11, 3582, 12332, 7054, 366, 33571, 1600, 23853, 12982, 7390, 7054, 366, 2093, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 2601, 1335, 2683, 543, 345, 3537, 17887, 1137, 1961, 357, 392, 1771, 484, 547, 13012, 706, 1969, 737, 46506, 5121, 7054, 366, 7353, 62, 8726, 1600, 15178, 11, 3582, 12332, 7054, 366, 33571, 1600, 23853, 12982, 7390, 7054, 366, 2093, 263...
What are the names of the technicians and how many machines are they assigned to repair.
SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name
[ 2061, 389, 262, 3891, 286, 262, 33519, 290, 703, 867, 8217, 389, 484, 8686, 284, 9185, 13, 46506, 6530, 11, 327, 28270, 7, 28104, 16034, 9185, 62, 562, 16747, 7054, 309, 16, 32357, 1268, 33024, 7054, 309, 17, 6177, 309, 16, 13, 2387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 389, 262, 3891, 286, 262, 33519, 290, 703, 867, 8217, 389, 484, 8686, 284, 9185, 13, 46506, 6530, 11, 327, 28270, 7, 28104, 16034, 9185, 62, 562, 16747, 7054, 309, 16, 32357, 1268, 33024, 7054, 309, 17, 6177, 309, 16, 13, 2387...
What were the Points on December 13?
SELECT MAX("Points") FROM table_49959 WHERE "Date" = 'december 13'
[ 2061, 547, 262, 11045, 319, 3426, 1511, 30, 46506, 25882, 7203, 40710, 4943, 16034, 3084, 62, 28324, 3270, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 1511, 6 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 2061, 547, 262, 11045, 319, 3426, 1511, 30, 46506, 25882, 7203, 40710, 4943, 16034, 3084, 62, 28324, 3270, 33411, 366, 10430, 1, 796, 705, 2934, 3273, 1511, 6 ]