benchmarks.wiki / Public workspace

BIG-Bench Extra Hard (BBEH) / I have a table with 29 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 29 rows (including the header) and 18 columns. The table was saved in a column-major format as follows:

[date, 2025-01-27, 2025-01-26, 2025-01-25, 2025-01-24, 2025-01-23, 2025-01-22, 2025-01-21, 2025-01-20, 2025-01-19, 2025-01-18, 2025-01-17, 2025-01-16, 2025-01-15, 2025-01-14, 2025-01-13, 2025-01-12, 2025-01-11, 2025-01-10, 2025-01-09, 2025-01-08, 2025-01-07, 2025-01-06, 2025-01-05, 2025-01-04, 2025-01-03, 2025-01-02, 2025-01-01, 2024-12-31, num_steps, 10405, 2134, 7155, 11825, 9338, 18522, 1709, 12845, 11300, 11690, 2466, 10780, 3361, 15178, 4846, 15069, 3681, 18194, 13893, 16794, 13391, 7714, 11362, study_minutes, 71, 36, 64, 66, 92, 95, 81, 33, 20, 72, 100, 95, 76, 31, 16, 24, 60, 52, 90, 21, 91, 73, 36, 21, 83, exercise_minutes, 46, 55, 11, 58, 90, 33, 93, 40, 89, 28, 48, 99, 56, 36, 78, 42, 43, 25, 96, 64, 88, 46, 36, 32, 89, sleep_minutes, 584, 427, 450, 483, 543, 551, 507, 369, 409, 511, 442, 529, 511, 589, 368, 509, 359, 307, 343, 541, 567, 486, 432, 454, 357, 410, bed_time, 22:49, 21:48, 22:56, 23:55, 21:56, 21:32, 22:56, 22:49, 21:24, 22:32, 23:38, 21:34, 23:24, 22:42, 21:56, 22:30, 23:34, 22:11, 23:31, 21:25, 21:33, 22:31, 21:23, 21:21, num_messages, 84, 52, 34, 85, 59, 39, 38, 100, 50, 26, 79, 62, 36, 97, 41, 21, 19, 17, 69, 65, 96, 85, 82, 61, 29, 42, num_emails, 10, 7, 3, 1, 2, 8, 10, 8, 1, 7, 8, 7, 10, 2, 6, 4, 7, 2, 5, 5, 9, 2, 9, 6, 10, 5, 1, 3, num_calls, 7, 9, 8, 4, 4, 2, 3, 1, 9, 6, 4, 2, 2, 4, 4, 6, 10, 10, 2, 6, 3, 8, 9, 8, calories_burned, 485, 750, 341, 271, 206, 650, 621, 394, 257, 337, 241, 193, 997, 335, 707, 638, 418, 305, 418, 723, 587, 180, 379, 474, 828, 600, weekday, Tue, Wed, Thu, Fri, Sat, Sun, Mon, Tue, Wed, Thu, Fri, Sat, Sun, Tue, Wed, Thu, Fri, Sat, Tue, Thu, Fri, Sun, calories_consumed, 1987, 1282, 1434, 1434, 1950, 909, 1194, 850, 663, 1081, 697, 663, 1273, 457, 1715, 1183, 819, 998, 887, 1712, 1279, 1553, 449, 318, 1388, num_meetings, 8, 14, 3, 4, 4, 3, 3, 2, 11, 8, 3, 9, 14, 4, 6, 13, 10, 3, 3, 9, 9, 10, 15, 1, 4, 13, 11, coding_minutes, 54, 27, 35, 61, 42, 54, 23, 4, 0, 34, 21, 3, 25, 12, 16, 6, 2, 49, 2, 54, 21, 44, 50, 31, 35, num_tasks_completed, 3, 6, 10, 10, 2, 5, 9, 2, 7, 8, 2, 10, 2, 4, 5, 8, 6, 4, 10, 9, 8, 10, 4, 2, 9, water_intake_ml, 679, 1072, 2264, 1030, 2120, 1602, 1940, 2679, 1640, 1171, 1410, 699, 1972, 1222, 1542, 2940, 1031, 1496, 1983, 1406, 1154, 1054, 1768, phone_screen_time_minutes, 38, 59, 16, 59, 42, 28, 59, 34, 40, 42, 31, 21, 47, 26, 29, 33, 40, 53, 59, 15, 54, 47, 51, 33, music_listening_minutes, 49, 50, 35, 13, 38, 32, 48, 16, 20, 14, 10, 58, 58, 32, 49, 56, 26, 14, 31, 15, 53, 26, 58, 44, 13, 44, 52].

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): [(12, 4), (6, 12), (21, 10), (20, 8), (20, 14), (12, 1), (27, 1), (23, 16), (4, 15), (19, 9), (27, 10), (9, 8), (28, 15), (10, 3), (2, 2), (11, 8), (24, 5), (16, 1), (2, 14), (25, 16), (18, 4), (15, 11), (15, 14), (20, 13), (22, 10), (3, 6), (5, 3), (9, 1), (14, 15), (8, 5), (5, 15), (24, 1), (2, 16), (24, 10), (24, 13), (1, 17), (15, 10), (6, 13), (18, 6), (14, 11), (5, 11), (8, 16), (2, 9), (25, 8), (16, 5), (7, 2), (1, 10), (7, 5), (6, 3), (20, 2), (15, 15)]. Compute the absolute difference between the sum of column music_listening_minutes and column phone_screen_time_minutes, only looking at the days where the phone screen time minutes was greater than 25 and the number of calls was greater than 2. 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 sums cannot be computed due to there being no values, the final answer must be "0". 

Discussion

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

Official source

initial import