[ { "video_index": 0, "video_filename": "videos/video_00000.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14201513451832787, "position": [ -0.23966961428725875, -1.462209019449065 ], "velocity": [ -0.8609936860984196, -0.5796115807438419 ], "spin": -0.3251429984155163, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.31837243571439555, "position": [ -1.164721842851352, 0.5289356855502538 ], "velocity": [ 0.0, 0.0 ], "spin": 1.170823056014377, "is_probe": false }, { "idx": 2, "color": "green", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.27405244964820474, "position": [ 0.4562874858801751, 0.357693845591887 ], "velocity": [ 0.18925657454551104, 1.3095824406480492 ], "spin": -1.2479539692528454, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1917907353409932, "position": [ -0.3605995817881613, 1.5413508009465542 ], "velocity": [ 0.0, 0.0 ], "spin": 0.9979324429601935, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1724876732149455, "position": [ 1.4905895502063131, 0.5751801518901536 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8612949224660502, "is_probe": false }, { "idx": 5, "color": "gray", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.28397695124299077, "position": [ 1.2074122864819008, 1.345534899464374 ], "velocity": [ 0.10522102901322228, 1.5729688697009279 ], "spin": -1.324295895584417, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 19, "objects": [ 4, 5 ], "description": "the purple sphere collided with the gray sphere" }, { "frame": 61, "objects": [ 2, 5 ], "description": "the green sphere collided with the gray sphere" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 19, "cause_collision": { "frame": 19, "objects": [ 4, 5 ] } } ], "initially_moving": [ 0, 2, 5 ] }, "raw_events": { "collisions": [ { "frame": 19, "objects": [ 4, 5 ] }, { "frame": 61, "objects": [ 2, 5 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 19 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 2, 5 ], "wall_hits": [ [ 5, 5, 1, 1 ], [ 17, 0, 1, -1 ], [ 27, 2, 1, 1 ], [ 30, 4, 0, 1 ], [ 52, 0, 0, -1 ], [ 62, 4, 1, -1 ] ] }, "questions": [ { "question": "Will the green sphere collide with the gray sphere by the end of the video?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide", "program": [ { "op": "find_collision", "objects": [ 2, 5 ] }, { "op": "query_existence" } ] }, { "question": "If the cyan cylinder were removed, would the purple sphere still collide with the gray sphere?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the green sphere collided with the gray sphere?", "answer": "the purple sphere collided with the gray sphere", "choices": [ "the purple sphere collided with the wall", "the purple sphere started moving", "the purple sphere collided with the gray sphere", "nothing happened" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 5 ] }, { "op": "query_before_event" } ] }, { "question": "What shape is the green object?", "answer": "sphere", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "green" }, { "op": "query_shape" } ] }, { "question": "What shape is the blue object?", "answer": "cube", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "What color is the object left of the blue cube?", "answer": "brown", "choices": [ "cyan", "green", "gray", "red", "brown", "blue", "yellow", "purple" ], "answer_index": 4, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "If the cyan cylinder were removed, would the purple sphere still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "filter_object", "idx": 4 }, { "op": "query_motion_start" } ] }, { "question": "How many objects were moving when the purple sphere collided with the gray sphere?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "count_moving_at_collision" } ] } ] }, { "video_index": 1, "video_filename": "videos/video_00001.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.17228859879315672, "position": [ -0.14415654260998023, -1.1344707385337893 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6693263878638875, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15978390298994555, "position": [ -0.7368286446302665, 0.776130485153163 ], "velocity": [ 0.8890070987191017, 1.4136185002086372 ], "spin": 0.04820575664363602, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cube", "material": "metal", "size": "large", "radius": 0.32307429627427237, "position": [ -0.6807328502432762, -0.04590797926193124 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1524031625876892, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2842555863433316, "position": [ 1.4902853193838397, 1.431137300357739 ], "velocity": [ -1.0540337912642956, -1.03421747570648 ], "spin": 0.3390099031591214, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 40, "objects": [ 2, 3 ], "description": "the red cube collided with the brown cylinder" }, { "frame": 55, "objects": [ 0, 3 ], "description": "the purple cylinder collided with the brown cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 55, "cause_collision": { "frame": 55, "objects": [ 0, 3 ] } }, { "object": 2, "type": "start", "frame": 40, "cause_collision": { "frame": 40, "objects": [ 2, 3 ] } } ], "initially_moving": [ 1, 3 ] }, "raw_events": { "collisions": [ { "frame": 40, "objects": [ 2, 3 ] }, { "frame": 55, "objects": [ 0, 3 ] } ], "starts": { "0": [ 55 ], "1": [], "2": [ 40 ], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 1, 3 ], "wall_hits": [ [ 19, 1, 1, 1 ] ] }, "questions": [ { "question": "After the red cube collided with the brown cylinder, will the red cube collide with something else?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What caused the purple cylinder to start moving?", "answer": "the collision with the brown cylinder", "choices": [ "it was pushed by the wall", "nothing - it was already moving", "the collision with the red cube", "the collision with the brown cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 0 }, { "op": "query_motion_cause" } ] }, { "question": "If the brown cylinder were removed, would the purple cylinder still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "If the gray sphere were removed, would the purple cylinder still collide with the brown cylinder?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "How many objects are there?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "How many sphere objects are there?", "answer": "1", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "What shape is the gray object?", "answer": "sphere", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "query_shape" } ] } ] }, { "video_index": 2, "video_filename": "videos/video_00002.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.33739487619949415, "position": [ 1.2127491694517956, 0.8542482216653375 ], "velocity": [ -0.36715859956078306, -0.9719919196853971 ], "spin": 0.0684855117712917, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cube", "material": "metal", "size": "large", "radius": 0.31464518578477, "position": [ -0.5637455380923395, 1.315072379171155 ], "velocity": [ 0.16865636414440546, 0.7827396049255161 ], "spin": -1.3841876102370936, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2913299866464021, "position": [ -0.09017935521115161, 0.6006524108269133 ], "velocity": [ -0.3438585017186605, -1.104125496358226 ], "spin": 1.1932024412795266, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1512351541832059, "position": [ -1.2176573437938771, -1.2259149688578814 ], "velocity": [ 0.0, 0.0 ], "spin": 1.005549614076839, "is_probe": false }, { "idx": 4, "color": "red", "shape": "cube", "material": "metal", "size": "small", "radius": 0.160757639934304, "position": [ 0.44775243453710445, -0.2897185672058369 ], "velocity": [ 0.0, 0.0 ], "spin": -0.3447145965575502, "is_probe": false }, { "idx": 5, "color": "green", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.3008852778855662, "position": [ 1.1225657532136475, -0.19162288490671253 ], "velocity": [ 0.0, 0.0 ], "spin": 1.421036309115669, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 10, "objects": [ 0, 5 ], "description": "the blue cylinder collided with the green sphere" }, { "frame": 48, "objects": [ 0, 4 ], "description": "the blue cylinder collided with the red cube" }, { "frame": 57, "objects": [ 0, 1 ], "description": "the blue cylinder collided with the yellow cube" }, { "frame": 61, "objects": [ 0, 4 ], "description": "the blue cylinder collided with the red cube" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 48, "cause_collision": { "frame": 48, "objects": [ 0, 4 ] } }, { "object": 5, "type": "start", "frame": 10, "cause_collision": { "frame": 10, "objects": [ 0, 5 ] } } ], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 10, "objects": [ 0, 5 ] }, { "frame": 48, "objects": [ 0, 4 ] }, { "frame": 57, "objects": [ 0, 1 ] }, { "frame": 61, "objects": [ 0, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 48 ], "5": [ 10 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 12, 1, 1, 1 ], [ 53, 5, 1, -1 ], [ 58, 2, 1, -1 ] ] }, "questions": [ { "question": "What happened right after the blue cylinder collided with the red cube?", "answer": "nothing happened", "choices": [ "the yellow cube collided with the wall", "nothing happened", "the cyan sphere collided with the wall", "the blue cylinder collided with the green sphere" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_after_event" } ] }, { "question": "If the green sphere were removed, would the blue cylinder still collide with the red cube?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the red cube were removed, would the blue cylinder still collide with the yellow cube?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "What material is the yellow cube made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "How many purple objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "count" } ] }, { "question": "After the blue cylinder collided with the red cube, will the blue cylinder collide with something else?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "How many objects were moving when the blue cylinder collided with the red cube?", "answer": "5", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What shape is the purple object?", "answer": "cube", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] } ] }, { "video_index": 3, "video_filename": "videos/video_00003.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cube", "material": "metal", "size": "large", "radius": 0.3190270229833728, "position": [ -1.545380741122608, 1.4677268517758797 ], "velocity": [ 0.653208134845669, -1.1901842959224622 ], "spin": 0.5483967235810505, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3365013803868879, "position": [ -0.6249562086476854, -0.576643393693556 ], "velocity": [ 0.0, 0.0 ], "spin": 0.960227250511605, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1570520698249275, "position": [ 1.2143043183799873, 0.2640051136618149 ], "velocity": [ 0.0, 0.0 ], "spin": -0.21428128710461403, "is_probe": false }, { "idx": 3, "color": "red", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1789128324247895, "position": [ -0.08894003793632277, 0.847158729911331 ], "velocity": [ 0.0, 0.0 ], "spin": 0.7761163834647569, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.31569727973361245, "position": [ 0.49755020902647407, 1.3375379496981992 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1354405539987615, "is_probe": false }, { "idx": 5, "color": "cyan", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.283417659920999, "position": [ -0.9077073789488962, 0.40327961933456313 ], "velocity": [ 1.2403780112124232, 0.9291094064281774 ], "spin": -0.31821800210299456, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 7, "objects": [ 3, 5 ], "description": "the red sphere collided with the cyan cube" }, { "frame": 11, "objects": [ 3, 4 ], "description": "the red sphere collided with the brown cube" }, { "frame": 31, "objects": [ 0, 1 ], "description": "the yellow cube collided with the gray sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 31, "cause_collision": { "frame": 31, "objects": [ 0, 1 ] } }, { "object": 3, "type": "start", "frame": 7, "cause_collision": { "frame": 7, "objects": [ 3, 5 ] } }, { "object": 4, "type": "start", "frame": 11, "cause_collision": { "frame": 11, "objects": [ 3, 4 ] } } ], "initially_moving": [ 0, 5 ] }, "raw_events": { "collisions": [ { "frame": 7, "objects": [ 3, 5 ] }, { "frame": 11, "objects": [ 3, 4 ] }, { "frame": 31, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [ 31 ], "2": [], "3": [ 7 ], "4": [ 11 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 5 ], "wall_hits": [ [ 26, 4, 1, 1 ], [ 51, 5, 1, 1 ], [ 59, 1, 1, -1 ] ] }, "questions": [ { "question": "If the cyan cube were removed, would the red sphere still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "If the blue sphere were removed, would the red sphere still collide with the cyan cube?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_existence" } ] }, { "question": "How many red objects are there?", "answer": "1", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 0, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "red" }, { "op": "count" } ] }, { "question": "What happened right after the red sphere collided with the cyan cube?", "answer": "the red sphere collided with the brown cube", "choices": [ "the red sphere collided with the brown cube", "the yellow cube collided with the gray sphere", "nothing happened", "the cyan cube collided with the wall" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_after_event" } ] }, { "question": "Will the red sphere collide with the cyan cube by the end of the video?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the red sphere collided with the brown cube?", "answer": "the yellow cube collided with the gray sphere", "choices": [ "nothing happened", "the gray sphere started moving", "the brown cube started moving", "the yellow cube collided with the gray sphere" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_after_event" } ] }, { "question": "What material is the brown cube made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "What color is the object in front of the blue sphere?", "answer": "gray", "choices": [ "blue", "yellow", "gray", "brown", "cyan", "red", "purple", "green" ], "answer_index": 2, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] } ] }, { "video_index": 4, "video_filename": "videos/video_00004.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1658297766637648, "position": [ 1.3299818020728005, -0.9991529841378586 ], "velocity": [ 0.0, 0.0 ], "spin": -0.07188326857379423, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3231157374035464, "position": [ 0.3374400122180976, 0.635080711250702 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8490599207340147, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1990491799958673, "position": [ 1.3726914053004184, 0.5135379925938357 ], "velocity": [ -0.519380992006974, -1.3758624215162312 ], "spin": -0.9276344842243871, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.28957806341219433, "position": [ -1.1364731580997514, -0.006610443765339147 ], "velocity": [ -1.0283166962197308, 0.26460535465147544 ], "spin": -0.9878105416611754, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1981359721589741, "position": [ 0.254248982005842, -0.7197164900960757 ], "velocity": [ 0.2976426213341292, 1.6356465885638267 ], "spin": 1.152669154895344, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 13, "objects": [ 1, 4 ], "description": "the cyan sphere collided with the yellow sphere" }, { "frame": 50, "objects": [ 0, 4 ], "description": "the red sphere collided with the yellow sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 50, "cause_collision": { "frame": 50, "objects": [ 0, 4 ] } }, { "object": 1, "type": "start", "frame": 13, "cause_collision": { "frame": 13, "objects": [ 1, 4 ] } } ], "initially_moving": [ 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 13, "objects": [ 1, 4 ] }, { "frame": 50, "objects": [ 0, 4 ] } ], "starts": { "0": [ 50 ], "1": [ 13 ], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 2, 3, 4 ], "wall_hits": [ [ 14, 3, 0, -1 ], [ 46, 2, 1, -1 ], [ 48, 1, 1, 1 ] ] }, "questions": [ { "question": "What happened right after the cyan sphere collided with the yellow sphere?", "answer": "the red sphere collided with the yellow sphere", "choices": [ "the red sphere started moving", "the red sphere collided with the yellow sphere", "the cyan sphere started moving", "the gray sphere collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_after_event" } ] }, { "question": "If the cyan sphere were removed, would the red sphere still start moving?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "What shape is the cyan object?", "answer": "sphere", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "query_shape" } ] }, { "question": "What shape is the red object?", "answer": "sphere", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "If the yellow sphere were removed, would the red sphere still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "What caused the red sphere to start moving?", "answer": "the collision with the yellow sphere", "choices": [ "the collision with the cyan sphere", "the collision with the yellow sphere", "nothing - it was already moving", "it was pushed by the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 0 }, { "op": "query_motion_cause" } ] }, { "question": "What shape is the yellow object?", "answer": "sphere", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "query_shape" } ] }, { "question": "Will the red sphere collide with the cyan sphere by the end of the video?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 5, "video_filename": "videos/video_00005.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.16609685313350853, "position": [ -0.02162864193159808, 0.5477369906763048 ], "velocity": [ 0.0, 0.0 ], "spin": -1.496400949239514, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.33793489546074046, "position": [ -1.3615115898300263, 0.17234796245424255 ], "velocity": [ -1.1364131596450517, -0.02402328219120739 ], "spin": -0.8902414916563056, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.19386065648651293, "position": [ -0.7085000259566853, 1.1769186373382585 ], "velocity": [ 0.0, 0.0 ], "spin": -0.5251720662731818, "is_probe": false }, { "idx": 3, "color": "green", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.3275384830086993, "position": [ 1.1472743572152606, -0.8453125720011849 ], "velocity": [ 0.0, 0.0 ], "spin": 0.9186459930811308, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2913923731467823, "position": [ 1.2258895421837905, 1.1538059508754384 ], "velocity": [ -0.34428904618230377, 0.7761002312894555 ], "spin": 0.5955359709549324, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 43, "objects": [ 0, 1 ], "description": "the red cylinder collided with the brown cube" }, { "frame": 52, "objects": [ 0, 4 ], "description": "the red cylinder collided with the gray sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 43, "cause_collision": { "frame": 43, "objects": [ 0, 1 ] } } ], "initially_moving": [ 1, 4 ] }, "raw_events": { "collisions": [ { "frame": 43, "objects": [ 0, 1 ] }, { "frame": 52, "objects": [ 0, 4 ] } ], "starts": { "0": [ 43 ], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 4 ], "wall_hits": [ [ 6, 1, 0, -1 ], [ 18, 4, 1, 1 ] ] }, "questions": [ { "question": "How many red objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "red" }, { "op": "count" } ] }, { "question": "How many green objects are there?", "answer": "1", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "green" }, { "op": "count" } ] }, { "question": "After the red cylinder collided with the gray sphere, will the red cylinder collide with something else?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the gray sphere were removed, would the red cylinder still collide with the brown cube?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "If the green sphere were removed, would the red cylinder still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "What material is the brown cube made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "What happened right before the red cylinder collided with the brown cube?", "answer": "nothing happened", "choices": [ "the brown cube collided with the wall", "the gray sphere collided with the wall", "nothing happened", "the red cylinder collided with the gray sphere" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] } ] }, { "video_index": 6, "video_filename": "videos/video_00006.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.30582561130513064, "position": [ 1.015313310209694, 1.530768557963947 ], "velocity": [ 0.9319215143021138, 1.3700450324185096 ], "spin": 1.4610128175207322, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.15881747166108884, "position": [ 1.0384166676550775, -1.366283580995418 ], "velocity": [ -0.13504772072375007, 1.651824808022114 ], "spin": -0.8753456925925228, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18688395948884723, "position": [ 1.1539508850452902, -0.025816298556336603 ], "velocity": [ 1.2339526958730866, 0.7270782658906909 ], "spin": 0.9492184377530788, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 18, "objects": [ 0, 2 ], "description": "the gray cylinder collided with the yellow sphere" }, { "frame": 30, "objects": [ 0, 1 ], "description": "the gray cylinder collided with the green cube" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 18, "objects": [ 0, 2 ] }, { "frame": 30, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 2, 0, 1, 1 ], [ 13, 2, 0, 1 ], [ 18, 0, 0, 1 ], [ 46, 2, 1, -1 ] ] }, "questions": [ { "question": "If the yellow sphere were removed, would the gray cylinder still collide with the green cube?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "After the gray cylinder collided with the yellow sphere, will the gray cylinder collide with something else?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "How many yellow objects are there?", "answer": "1", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "count" } ] }, { "question": "If the green cube were removed, would the gray cylinder still collide with the yellow sphere?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_existence" } ] }, { "question": "What color is the sphere?", "answer": "yellow", "choices": [ "yellow", "blue", "purple", "brown", "red", "gray", "cyan", "green" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "query_color" } ] }, { "question": "How many objects were moving when the gray cylinder collided with the green cube?", "answer": "3", "choices": [ "0", "1", "2", "3" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What material is the gray cylinder made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "What happened right after the gray cylinder collided with the green cube?", "answer": "nothing happened", "choices": [ "the gray cylinder collided with the wall", "the yellow sphere collided with the wall", "the gray cylinder collided with the yellow sphere", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 7, "video_filename": "videos/video_00007.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.16276677029301875, "position": [ 0.42778940044382985, 0.5469957558196439 ], "velocity": [ -0.435788272762294, -0.708289098056274 ], "spin": 1.0352229626236586, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.19872487306467332, "position": [ -1.0825571405780572, -0.18502825171661863 ], "velocity": [ 0.0, 0.0 ], "spin": 1.3348445134349385, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cube", "material": "metal", "size": "small", "radius": 0.17539950158063664, "position": [ -1.2502173088115887, 1.4502669582513465 ], "velocity": [ 0.0, 0.0 ], "spin": 1.2117503645877803, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3084045003063881, "position": [ -0.8834874841967719, 0.5324720040949835 ], "velocity": [ -0.7656290826407781, -0.358628834908836 ], "spin": -0.9226095150950029, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 34, "objects": [ 1, 3 ], "description": "the gray sphere collided with the purple cube" }, { "frame": 50, "objects": [ 0, 1 ], "description": "the green sphere collided with the gray sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 34, "cause_collision": { "frame": 34, "objects": [ 1, 3 ] } } ], "initially_moving": [ 0, 3 ] }, "raw_events": { "collisions": [ { "frame": 34, "objects": [ 1, 3 ] }, { "frame": 50, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [ 34 ], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 3 ], "wall_hits": [ [ 27, 3, 0, -1 ] ] }, "questions": [ { "question": "If the purple cube were removed, would the gray sphere still start moving?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "What happened right after the gray sphere collided with the purple cube?", "answer": "the green sphere collided with the gray sphere", "choices": [ "the green sphere collided with the gray sphere", "the purple cube collided with the wall", "the gray sphere started moving", "nothing happened" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_after_event" } ] }, { "question": "How many red objects are there?", "answer": "1", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "red" }, { "op": "count" } ] }, { "question": "If the red cube were removed, would the gray sphere still collide with the purple cube?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object in front of the purple cube?", "answer": "gray", "choices": [ "gray", "red", "blue", "cyan", "purple", "green", "yellow", "brown" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "How many cube objects are there?", "answer": "2", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "count" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "Will the gray sphere collide with the red cube by the end of the video?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] } ] } ]