benchmarks.wiki / Public workspace
BIG-Bench Extra Hard (BBEH) / I have a table with 27 rows (including the header) and 18 columns. The table was…
Problem
Answer published by the source. Consult the official source to check your work against its answer.
input
I have a table with 27 rows (including the header) and 18 columns. The table was saved in a row-major format as follows: [date, num_steps, study_minutes, exercise_minutes, sleep_minutes, bed_time, num_messages, num_emails, num_calls, calories_burned, weekday, calories_consumed, num_meetings, coding_minutes, num_tasks_completed, water_intake_ml, phone_screen_time_minutes, music_listening_minutes, 2025-01-27, 19344, 96, 26, 534, 21:52, 81, 6, 336, Mon, 1106, 8, 60, 1579, 58, 12, 2025-01-26, 2575, 44, 555, 22:30, 46, 2, 2, 960, Tue, 1371, 3, 8, 8, 995, 52, 2025-01-25, 2845, 95, 51, 390, 22:43, 16, 10, 5, 375, Wed, 1, 6, 1866, 25, 20, 2025-01-24, 2362, 18, 54, 417, 22:28, 47, 2, 1, 786, Thu, 1043, 6, 16, 5, 1114, 25, 59, 2025-01-23, 11332, 38, 390, 21:21, 64, 2, 7, 270, Fri, 886, 4, 61, 6, 2272, 24, 50, 2025-01-22, 17241, 61, 577, 21:20, 79, 7, 1, 828, 1655, 7, 31, 6, 1406, 26, 29, 2025-01-21, 3768, 38, 57, 312, 23:57, 13, 5, 4, 550, Sun, 951, 21, 8, 1235, 16, 56, 2025-01-20, 18647, 58, 23, 420, 22:13, 84, 6, 3, 787, 1489, 5, 64, 10, 1127, 19, 30, 2025-01-19, 6114, 24, 38, 575, 21:45, 9, 7, 386, Tue, 1689, 6, 27, 10, 1557, 21, 15, 2025-01-18, 2923, 31, 88, 23:41, 82, 7, 460, Wed, 1546, 2, 10, 1766, 37, 2025-01-17, 8342, 83, 580, 22:47, 27, 3, 8, 192, Thu, 838, 5, 35, 6, 51, 54, 2025-01-16, 15793, 46, 56, 395, 21:27, 10, 538, 1828, 53, 6, 1024, 40, 29, 2025-01-15, 11352, 99, 46, 381, 41, 2, 2, 648, Sat, 1060, 12, 16, 7, 920, 2025-01-14, 19136, 25, 18, 381, 22:41, 52, 10, 2, Sun, 961, 3, 16, 7, 1437, 13, 60, 2025-01-13, 12663, 81, 93, 595, 22:45, 45, 1, 7, 653, 1279, 14, 3, 9, 524, 20, 34, 2025-01-12, 5821, 72, 381, 28, 3, 10, 925, Tue, 1460, 6, 63, 1, 705, 58, 2025-01-11, 61, 50, 440, 22:47, 17, 6, 512, Wed, 536, 1, 6, 7, 2254, 20, 50, 2025-01-10, 9697, 19, 22:56, 15, 5, 7, 507, Thu, 881, 8, 60, 3, 652, 57, 26, 2025-01-09, 26, 33, 570, 21:41, 52, 5, 860, Fri, 592, 7, 45, 2, 1362, 24, 2025-01-08, 13118, 89, 16, 351, 22:28, 51, 2, 9, 765, Sat, 1934, 3, 25, 6, 2998, 16, 33, 2025-01-07, 19171, 48, 32, 344, 21:41, 37, 4, 1, 110, Sun, 1410, 11, 51, 7, 2470, 47, 54, 2025-01-06, 1406, 19, 84, 587, 23:23, 78, 3, 2, Mon, 1377, 13, 65, 1, 2226, 30, 11, 2025-01-05, 2458, 60, 511, 23:49, 53, 6, 222, Tue, 424, 13, 52, 2338, 35, 32, 2025-01-04, 13, 362, 23:42, 91, 2, 7, 368, 1630, 14, 46, 6, 1179, 34, 50, 2025-01-03, 8752, 47, 53, 499, 22:52, 4, 6, 318, Thu, 543, 3, 24, 3, 1374, 44, 38, 2025-01-02, 4720, 48, 527, 23:47, 89, 2, 10, 477, Fri, 979, 4, 39, 1965, 39, 46]. However, the code to save the table was buggy and failed to save the null values. There were null values at the following locations (0-indexed -- table header included): [(23, 7), (12, 7), (12, 10), (11, 2), (13, 5), (26, 2), (18, 4), (6, 2), (13, 17), (26, 14), (12, 6), (12, 12), (14, 9), (5, 3), (3, 12), (17, 8), (24, 1), (19, 17), (25, 6), (2, 16), (24, 10), (1, 14), (1, 8), (13, 16), (15, 10), (7, 12), (23, 2), (6, 10), (22, 9), (23, 14), (3, 11), (17, 1), (19, 1), (19, 7), (10, 4), (9, 6), (8, 10), (10, 7), (10, 13), (2, 3), (16, 2), (10, 16), (24, 3), (11, 15), (16, 5), (18, 2), (16, 17)]. Compute the absolute difference between the mean of column coding_minutes and column study_minutes, only looking at the days where the number of steps was less than 17000 and the study minutes was greater than 20. Round the result to 2 decimal places. If it cannot be determined whether the condition is satisfied or not (e.g., due to null values that cannot be inferred from the rest of the table), assume the condition is not satisfied. If a value is null, ignore it from the computations. If any of the means cannot be computed due to there being no values, the final answer must be "0".
Discussion
No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
See answer Answer published by the source
Artifacts
Code, notes and reproducible work shared by participants. Files are served from a separate origin.
No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
Source and history
initial import