[ { "video_index": 0, "video_filename": "videos/video_00000.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17842001197571544, "position": [ -1.2831097060758159, 1.5288077338159394 ], "velocity": [ 1.1371823363112574, -0.11074127183419899 ], "spin": -0.5939286623808103, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.154432119580624, "position": [ -0.8708611043042649, 0.054353195533162424 ], "velocity": [ 0.0, 0.0 ], "spin": 0.11806818455827983, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "cube", "material": "metal", "size": "small", "radius": 0.19868537328535812, "position": [ 0.8721745689170637, -1.3597977677396367 ], "velocity": [ -1.4882262414474734, -0.04543232351084633 ], "spin": 1.030820521509165, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.32575232189106446, "position": [ -0.049645682448904216, 1.2157209887264557 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1281667447008625, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.16909070171130455, "position": [ 1.3628906433149324, 0.5471300435364592 ], "velocity": [ -0.33766236838990094, 1.286019909253896 ], "spin": -0.9553850118896718, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 17, "objects": [ 0, 3 ], "description": "the green sphere collided with the gray cylinder" }, { "frame": 43, "objects": [ 3, 4 ], "description": "the gray cylinder collided with the blue sphere" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 17, "cause_collision": { "frame": 17, "objects": [ 0, 3 ] } } ], "initially_moving": [ 0, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 17, "objects": [ 0, 3 ] }, { "frame": 43, "objects": [ 3, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 17 ], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 4 ], "wall_hits": [ [ 26, 4, 1, 1 ], [ 34, 0, 1, 1 ], [ 49, 2, 0, -1 ] ] }, "questions": [ { "question": "If the green sphere were removed, would the gray cylinder still collide with the blue sphere?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "How many objects are there?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "If the brown cylinder were removed, would the green sphere still collide with the gray cylinder?", "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, 3 ] }, { "op": "query_existence" } ] }, { "question": "Will the green sphere collide with the cyan cube 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the green sphere collided with the gray cylinder?", "answer": "the gray cylinder collided with the blue sphere", "choices": [ "the cyan cube collided with the wall", "the gray cylinder collided with the blue sphere", "the blue sphere collided with the wall", "the green sphere collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_after_event" } ] }, { "question": "What material is the gray cylinder made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] } ] }, { "video_index": 1, "video_filename": "videos/video_00001.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.17194511077705654, "position": [ 0.5796384023853001, -1.0471068851015883 ], "velocity": [ -0.4951135576929051, 0.5860746736244568 ], "spin": -0.9543318844641451, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.27926592201093065, "position": [ 0.4218088731419638, -0.2710085277481875 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6868362200648936, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1438823708338223, "position": [ -0.8144907872073245, 1.034296218872339 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2493020228412863, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1447590419189412, "position": [ -0.5913193846125204, 0.5041660293584826 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1836896724488324, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.26006196040065005, "position": [ -0.19293347948416484, -1.1616843963130732 ], "velocity": [ -0.41415738673125596, 1.5975746335488124 ], "spin": -1.073993869404907, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 15, "objects": [ 0, 1 ], "description": "the yellow sphere collided with the gray cube" }, { "frame": 20, "objects": [ 3, 4 ], "description": "the green cube collided with the blue cylinder" }, { "frame": 24, "objects": [ 2, 3 ], "description": "the red cylinder collided with the green cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 15, "cause_collision": { "frame": 15, "objects": [ 0, 1 ] } }, { "object": 2, "type": "start", "frame": 24, "cause_collision": { "frame": 24, "objects": [ 2, 3 ] } }, { "object": 3, "type": "start", "frame": 20, "cause_collision": { "frame": 20, "objects": [ 3, 4 ] } } ], "initially_moving": [ 0, 4 ] }, "raw_events": { "collisions": [ { "frame": 15, "objects": [ 0, 1 ] }, { "frame": 20, "objects": [ 3, 4 ] }, { "frame": 24, "objects": [ 2, 3 ] } ], "starts": { "0": [], "1": [ 15 ], "2": [ 24 ], "3": [ 20 ], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 4 ], "wall_hits": [ [ 37, 2, 1, 1 ], [ 47, 2, 0, -1 ] ] }, "questions": [ { "question": "If the yellow sphere were removed, would the red cylinder still collide with the green cube?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the yellow sphere collided with the gray cube?", "answer": "the green cube collided with the blue cylinder", "choices": [ "the red cylinder collided with the wall", "the green cube collided with the blue cylinder", "the red cylinder collided with the green cube", "the red cylinder started moving" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "How many objects are there?", "answer": "5", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 4, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "What material is the yellow sphere made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "If the blue cylinder were removed, would the red cylinder still collide with the green cube?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "How many collisions happened in the video?", "answer": "3", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "What shape is the red object?", "answer": "cylinder", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "After the green cube collided with the blue cylinder, will the green cube collide with something else?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 2, "video_filename": "videos/video_00002.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2671369516764458, "position": [ -0.8819517402395182, 1.2867540872990217 ], "velocity": [ 0.20425879685480974, -1.0761339015142637 ], "spin": -1.0366489856614496, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1421069078249453, "position": [ -0.9860567941452067, -0.20730587719521054 ], "velocity": [ 0.0, 0.0 ], "spin": 0.5177516767984613, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.14580005751436406, "position": [ 0.43376748327964165, 0.38471635297408313 ], "velocity": [ -1.321944719132612, -0.33669199770755437 ], "spin": -0.8457837324623861, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17144959321973907, "position": [ -0.9144942291227166, -0.9397851828534602 ], "velocity": [ -0.09523747360122295, 1.0171860809833726 ], "spin": 1.031638460826092, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.17795025156168076, "position": [ 1.0496910561894988, -1.0128425467875481 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6294061698231067, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 10, "objects": [ 1, 3 ], "description": "the gray cylinder collided with the blue sphere" }, { "frame": 18, "objects": [ 0, 1 ], "description": "the green cylinder collided with the gray cylinder" }, { "frame": 19, "objects": [ 0, 2 ], "description": "the green cylinder collided with the purple cylinder" }, { "frame": 23, "objects": [ 2, 3 ], "description": "the purple cylinder collided with the blue sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 10, "cause_collision": { "frame": 10, "objects": [ 1, 3 ] } } ], "initially_moving": [ 0, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 10, "objects": [ 1, 3 ] }, { "frame": 18, "objects": [ 0, 1 ] }, { "frame": 19, "objects": [ 0, 2 ] }, { "frame": 23, "objects": [ 2, 3 ] } ], "starts": { "0": [], "1": [ 10 ], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 3 ], "wall_hits": [ [ 30, 1, 0, -1 ], [ 45, 3, 0, -1 ] ] }, "questions": [ { "question": "If the purple cylinder were removed, would the gray cylinder still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "Will the purple cylinder collide with the blue sphere 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": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the brown sphere were removed, would the gray cylinder still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "What color is the object behind the purple cylinder?", "answer": "green", "choices": [ "purple", "red", "brown", "yellow", "gray", "cyan", "blue", "green" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "How many collisions happened in the video?", "answer": "4", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "How many rubber objects are there?", "answer": "3", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "question": "What happened right before the green cylinder collided with the purple cylinder?", "answer": "the green cylinder collided with the gray cylinder", "choices": [ "the gray cylinder collided with the blue sphere", "the green cylinder collided with the gray cylinder", "the blue sphere collided with the wall", "the gray cylinder collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_before_event" } ] }, { "question": "How many metal objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] } ] }, { "video_index": 3, "video_filename": "videos/video_00003.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.19085985909319655, "position": [ -1.4685318846561954, 0.6839252395492907 ], "velocity": [ -1.5012803734515086, 0.04895061953893949 ], "spin": 1.2762174346429003, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1522940905161822, "position": [ 0.5752418008382836, 0.7558888144938571 ], "velocity": [ -1.2670726686631102, -0.06153339003960453 ], "spin": 0.5603151656491567, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1975906316014229, "position": [ 0.7590047987434374, -0.6973025188600902 ], "velocity": [ -0.719946505105959, 0.5721720011698309 ], "spin": 0.7491642485674976, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cube", "material": "metal", "size": "small", "radius": 0.16927309984738334, "position": [ -0.2855083313941338, -0.8084296967711194 ], "velocity": [ -0.2717168191053021, 1.6377648394724293 ], "spin": 1.3579646543150146, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 19, "objects": [ 1, 3 ], "description": "the gray cylinder collided with the yellow cube" }, { "frame": 24, "objects": [ 0, 3 ], "description": "the green sphere collided with the yellow cube" }, { "frame": 57, "objects": [ 1, 2 ], "description": "the gray cylinder collided with the purple sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 19, "objects": [ 1, 3 ] }, { "frame": 24, "objects": [ 0, 3 ] }, { "frame": 57, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [ 57 ], "3": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 5, 0, 0, -1 ], [ 36, 1, 1, 1 ], [ 60, 0, 1, 1 ] ] }, "questions": [ { "question": "What happened right before the green sphere collided with the yellow cube?", "answer": "the gray cylinder collided with the yellow cube", "choices": [ "the gray cylinder collided with the wall", "the gray cylinder collided with the yellow cube", "the green sphere collided with the wall", "nothing happened" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_before_event" } ] }, { "question": "If the purple sphere were removed, would the green sphere 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": 2 }, { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "How many green 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": "green" }, { "op": "count" } ] }, { "question": "How many sphere objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "Will the gray cylinder collide with the purple 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": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the green sphere collided with the yellow cube?", "answer": "4", "choices": [ "0", "1", "2", "3", "4" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the purple sphere were removed, would the gray cylinder still collide with the yellow cube?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "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 cylinder?", "answer": "gray", "choices": [ "purple", "green", "gray", "brown", "yellow", "red", "cyan", "blue" ], "answer_index": 2, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "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": "cube", "material": "rubber", "size": "large", "radius": 0.2687185426571089, "position": [ -1.0042108580877231, 0.14071961358691176 ], "velocity": [ 0.0, 0.0 ], "spin": 1.2568453724186748, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.276438709218918, "position": [ 0.24789874469824347, 0.5415941333323582 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1294198021195976, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "metal", "size": "small", "radius": 0.15214322790465903, "position": [ 0.7191892360319618, -0.24228887700128965 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0083550552298082, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.15257314525758128, "position": [ 1.4783863928722398, 0.06952797106628061 ], "velocity": [ -1.1201438372382773, -0.9338284803080776 ], "spin": 0.4203376074696228, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "cube", "material": "metal", "size": "small", "radius": 0.17210005146997123, "position": [ -0.23955287228925748, 1.5323973260503172 ], "velocity": [ -0.5641199733880975, 1.5406646466961555 ], "spin": 0.6164386232065584, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 10, "objects": [ 2, 3 ], "description": "the brown cube collided with the gray sphere" }, { "frame": 29, "objects": [ 0, 4 ], "description": "the red cube collided with the cyan cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 29, "cause_collision": { "frame": 29, "objects": [ 0, 4 ] } }, { "object": 2, "type": "start", "frame": 10, "cause_collision": { "frame": 10, "objects": [ 2, 3 ] } } ], "initially_moving": [ 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 10, "objects": [ 2, 3 ] }, { "frame": 29, "objects": [ 0, 4 ] } ], "starts": { "0": [ 29 ], "1": [], "2": [ 10 ], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [ 29 ] }, "initially_moving": [ 3, 4 ], "wall_hits": [ [ 4, 4, 1, 1 ], [ 48, 3, 1, -1 ] ] }, "questions": [ { "question": "What happened right after the brown cube collided with the gray sphere?", "answer": "the red cube collided with the cyan cube", "choices": [ "nothing happened", "the red cube collided with the cyan cube", "the cyan cube collided with the wall", "the brown cube started moving" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] }, { "question": "What happened right before the red cube collided with the cyan cube?", "answer": "the brown cube collided with the gray sphere", "choices": [ "the brown cube started moving", "the gray sphere collided with the wall", "the brown cube collided with the gray sphere", "the red cube started moving" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_before_event" } ] }, { "question": "After the brown cube collided with the gray sphere, will the brown 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": "If the blue sphere were removed, would the brown cube 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": 1 }, { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object left of the blue sphere?", "answer": "red", "choices": [ "yellow", "blue", "purple", "gray", "red", "cyan", "brown", "green" ], "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": "What material is the cyan cube made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "If the gray sphere were removed, would the red cube 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": 0 }, { "op": "query_motion_start" } ] }, { "question": "What color is the object behind the blue sphere?", "answer": "cyan", "choices": [ "yellow", "gray", "green", "blue", "red", "brown", "cyan", "purple" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] } ] }, { "video_index": 5, "video_filename": "videos/video_00005.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.19138711777661502, "position": [ 0.44545785178566155, 1.106707110817401 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4349981853321045, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3319841220957937, "position": [ -0.9941523293346598, -0.368084890349631 ], "velocity": [ 0.6989804924915608, 0.3080716645940766 ], "spin": 1.1940520225764595, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3352222128598705, "position": [ -0.0641559351151475, -0.6188884240280297 ], "velocity": [ -0.37582567398611605, 0.6086788097463455 ], "spin": 0.3656054513786171, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.29517770729696136, "position": [ -0.37760581713592933, -1.492925254422702 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4267790982768842, "is_probe": false }, { "idx": 4, "color": "red", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.15491085651499883, "position": [ -0.17459392911703175, 0.4495987495804026 ], "velocity": [ -0.4179262149507641, 1.1366455963762732 ], "spin": 1.4159802579610448, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 6, "objects": [ 1, 2 ], "description": "the yellow cube collided with the blue cube" }, { "frame": 57, "objects": [ 1, 4 ], "description": "the yellow cube collided with the red sphere" } ], "motion_events": [], "initially_moving": [ 1, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 6, "objects": [ 1, 2 ] }, { "frame": 57, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 2, 4 ], "wall_hits": [ [ 32, 4, 1, 1 ] ] }, "questions": [ { "question": "How many objects were moving when the yellow cube collided with the red sphere?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What shape is the blue object?", "answer": "cube", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "Will the cyan cube collide with the purple sphere 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": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the cyan cube were removed, would the yellow cube still collide with the red sphere?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the purple sphere were removed, would the yellow cube still collide with the blue cube?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many sphere objects are there?", "answer": "2", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "What color is the object behind the red sphere?", "answer": "cyan", "choices": [ "green", "purple", "blue", "yellow", "brown", "gray", "cyan", "red" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] } ] } ]