[ { "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.17336532875503202, "position": [ 1.2591049290342815, 1.3226415485801926 ], "velocity": [ -1.2772707481391077, 0.778822823548911 ], "spin": 0.4298671924151094, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2839623833872926, "position": [ -0.4366706504798019, -0.2579021897830096 ], "velocity": [ 0.5777991117354735, -0.5544083415760667 ], "spin": -0.010955075621964516, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1674149851026246, "position": [ 0.05569643937443014, -1.227250231934295 ], "velocity": [ -0.48282867846125, 0.9565786751585439 ], "spin": 1.2709859043318228, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 8, "objects": [ 1, 2 ], "description": "the brown cylinder collided with the gray cylinder" }, { "frame": 34, "objects": [ 1, 2 ], "description": "the brown cylinder collided with the gray cylinder" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 8, "objects": [ 1, 2 ] }, { "frame": 34, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 16, 0, 1, 1 ], [ 22, 2, 1, -1 ], [ 51, 2, 1, -1 ] ] }, "questions": [ { "question": "Will the brown cylinder collide with the gray cylinder 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": "What happened right after the brown cylinder collided with the gray cylinder?", "answer": "nothing happened", "choices": [ "the brown cylinder collided with the gray cylinder", "the gray cylinder collided with the wall", "nothing happened", "the green sphere collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "How many objects were moving when the brown cylinder collided with the gray cylinder?", "answer": "3", "choices": [ "0", "1", "2", "3" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the green sphere were removed, would the brown cylinder 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": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many brown 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": "brown" }, { "op": "count" } ] }, { "question": "How many cylinder 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": "cylinder" }, { "op": "count" } ] }, { "question": "If the green sphere were removed, would the brown cylinder 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": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many rubber objects are there?", "answer": "1", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] } ] }, { "video_index": 1, "video_filename": "videos/video_00001.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.14008915143824283, "position": [ 0.9257070616146421, 0.9039705343878774 ], "velocity": [ 0.0, 0.0 ], "spin": 0.4882898261539046, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3028759663406672, "position": [ -0.2638363308068654, -0.028223426504353943 ], "velocity": [ 0.18490849689751243, 1.1953914966664414 ], "spin": -1.2978207721446675, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2831124885836957, "position": [ -0.7195643397853044, 0.8375115699639537 ], "velocity": [ 0.0, 0.0 ], "spin": 0.41320485786272876, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2726596326655059, "position": [ -0.988334870953556, -0.9466278818614481 ], "velocity": [ 0.0, 0.0 ], "spin": -1.4221931214439365, "is_probe": false }, { "idx": 4, "color": "green", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.14225760093327863, "position": [ 1.1777007449255834, 1.4669721472453718 ], "velocity": [ -1.5057082111605011, -0.7397661504482841 ], "spin": 0.3629033588376265, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 15, "objects": [ 1, 2 ], "description": "the cyan cylinder collided with the purple cylinder" }, { "frame": 16, "objects": [ 1, 4 ], "description": "the cyan cylinder collided with the green sphere" }, { "frame": 16, "objects": [ 1, 2 ], "description": "the cyan cylinder collided with the purple cylinder" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 15, "cause_collision": { "frame": 15, "objects": [ 1, 2 ] } } ], "initially_moving": [ 1, 4 ] }, "raw_events": { "collisions": [ { "frame": 15, "objects": [ 1, 2 ] }, { "frame": 16, "objects": [ 1, 4 ] }, { "frame": 16, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [ 15 ], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 4 ], "wall_hits": [ [ 31, 4, 1, 1 ], [ 42, 4, 0, 1 ], [ 53, 2, 0, -1 ], [ 61, 1, 1, 1 ] ] }, "questions": [ { "question": "If the gray sphere were removed, would the cyan cylinder still collide with the purple cylinder?", "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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the cyan cylinder collided with the purple cylinder?", "answer": "the cyan cylinder collided with the green sphere", "choices": [ "the cyan cylinder collided with the purple cylinder", "the purple cylinder started moving", "nothing happened", "the cyan cylinder collided with the green sphere" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] }, { "question": "What material is the green sphere made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "What shape is the green object?", "answer": "sphere", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "green" }, { "op": "query_shape" } ] }, { "question": "What happened right after the cyan cylinder collided with the purple cylinder?", "answer": "the cyan cylinder collided with the green sphere", "choices": [ "the cyan cylinder collided with the green sphere", "the cyan cylinder collided with the wall", "nothing happened", "the purple cylinder collided with the wall" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "Will the purple cylinder collide with the brown 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": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the green sphere were removed, would the cyan cylinder still collide with the purple cylinder?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the purple object?", "answer": "cylinder", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "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": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1899539811082689, "position": [ 0.8015841076722905, 1.0052594063951956 ], "velocity": [ 0.0, 0.0 ], "spin": -0.5234613624962698, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15544321063351305, "position": [ -0.08178010477643283, 1.0097284827468693 ], "velocity": [ 0.0, 0.0 ], "spin": -0.23959684619144728, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3397054555520127, "position": [ 1.4680617451689442, -0.25986493949631373 ], "velocity": [ 1.003353247198159, 1.0785214916479404 ], "spin": -0.7928054566666931, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2775286205440525, "position": [ 0.24185120669863558, -0.19476436699908972 ], "velocity": [ -1.0401404521914253, 0.439459307475099 ], "spin": -0.2996040349153135, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2724953281531798, "position": [ -0.9691493208070472, -0.8318728283260683 ], "velocity": [ 0.0, 0.0 ], "spin": -1.414707886565869, "is_probe": false }, { "idx": 5, "color": "cyan", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1965919909186668, "position": [ -0.8161434623457713, 0.13763030466474313 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0575455153222522, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 3, 5 ], "description": "the yellow sphere collided with the cyan cylinder" }, { "frame": 20, "objects": [ 0, 2 ], "description": "the green cylinder collided with the red cylinder" }, { "frame": 37, "objects": [ 3, 5 ], "description": "the yellow sphere collided with the cyan cylinder" }, { "frame": 41, "objects": [ 0, 1 ], "description": "the green cylinder collided with the brown sphere" }, { "frame": 48, "objects": [ 0, 3 ], "description": "the green cylinder collided with the yellow sphere" }, { "frame": 50, "objects": [ 3, 5 ], "description": "the yellow sphere collided with the cyan cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 20, "cause_collision": { "frame": 20, "objects": [ 0, 2 ] } }, { "object": 1, "type": "start", "frame": 41, "cause_collision": { "frame": 41, "objects": [ 0, 1 ] } }, { "object": 5, "type": "start", "frame": 14, "cause_collision": { "frame": 14, "objects": [ 3, 5 ] } } ], "initially_moving": [ 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 3, 5 ] }, { "frame": 20, "objects": [ 0, 2 ] }, { "frame": 37, "objects": [ 3, 5 ] }, { "frame": 41, "objects": [ 0, 1 ] }, { "frame": 48, "objects": [ 0, 3 ] }, { "frame": 50, "objects": [ 3, 5 ] } ], "starts": { "0": [ 20 ], "1": [ 41 ], "2": [], "3": [], "4": [], "5": [ 14 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 2, 3 ], "wall_hits": [ [ 4, 2, 0, 1 ], [ 30, 5, 0, -1 ], [ 32, 0, 1, 1 ], [ 43, 5, 0, -1 ], [ 57, 2, 1, 1 ], [ 62, 0, 1, 1 ], [ 63, 5, 0, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the green cylinder collided with the brown sphere?", "answer": "5", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What material is the green cylinder made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "What happened right after the yellow sphere collided with the cyan cylinder?", "answer": "nothing happened", "choices": [ "nothing happened", "the red cylinder collided with the wall", "the green cylinder collided with the yellow sphere", "the green cylinder started moving" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_after_event" } ] }, { "question": "If the cyan cylinder were removed, would the brown sphere still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "If the red cylinder were removed, would the green cylinder still collide with the brown sphere?", "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": "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": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "Will the brown sphere collide with the cyan cylinder 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": [ 1, 5 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 3, "video_filename": "videos/video_00003.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.16701405676120556, "position": [ 1.2083701977709123, -0.9711331835437186 ], "velocity": [ -1.0723043953693079, -1.0695773285882677 ], "spin": 0.4606695246268493, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.14589342445024162, "position": [ -0.8429555688665271, -0.30405697245168906 ], "velocity": [ 0.0, 0.0 ], "spin": 0.03504698414452778, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.33406530324667755, "position": [ 0.09546415625746763, -0.8452581982693447 ], "velocity": [ 0.5815216786203219, -1.2903104525145386 ], "spin": -0.09228067505203796, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 9, "objects": [ 0, 2 ], "description": "the blue cylinder collided with the red cylinder" }, { "frame": 52, "objects": [ 0, 2 ], "description": "the blue cylinder collided with the red cylinder" } ], "motion_events": [], "initially_moving": [ 0, 2 ] }, "raw_events": { "collisions": [ { "frame": 9, "objects": [ 0, 2 ] }, { "frame": 52, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 2 ], "wall_hits": [ [ 16, 2, 1, -1 ], [ 18, 0, 1, -1 ], [ 27, 0, 0, 1 ] ] }, "questions": [ { "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 yellow sphere were removed, would the blue cylinder still collide with the red 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What material is the blue cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "After the blue cylinder collided with the red cylinder, will the blue cylinder collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What shape is the red object?", "answer": "cylinder", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "How many metal objects are there?", "answer": "1", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "If the yellow sphere were removed, would the blue cylinder still collide with the red 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the blue cylinder collided with the red cylinder?", "answer": "nothing happened", "choices": [ "nothing happened", "the red cylinder collided with the wall", "the blue cylinder collided with the wall", "the blue cylinder collided with the red cylinder" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_before_event" } ] } ] }, { "video_index": 4, "video_filename": "videos/video_00004.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.16800113189554877, "position": [ -1.165884966013187, -1.5148977650082178 ], "velocity": [ -0.7918866638213787, 1.184247213769748 ], "spin": -0.4786038350955186, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1636956487281573, "position": [ 1.080599093998501, 0.5408011722398236 ], "velocity": [ 0.0, 0.0 ], "spin": -0.3360054426291854, "is_probe": false }, { "idx": 2, "color": "red", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.27815783906691427, "position": [ -0.13272588378220118, 0.042163739813447565 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7531065530506991, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.18048688050716957, "position": [ -0.9850427312740797, -0.4917178600104646 ], "velocity": [ 0.7193048333294806, 0.8172278612840148 ], "spin": -1.3996809004656767, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.27921831428268606, "position": [ -0.0987241822831515, -0.8556047481964961 ], "velocity": [ 0.0, 0.0 ], "spin": 0.35607347774166453, "is_probe": false }, { "idx": 5, "color": "brown", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.18059156691791203, "position": [ 1.370879265391623, 1.1581853053624365 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4962876948863606, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 2, 3 ], "description": "the red sphere collided with the blue cube" }, { "frame": 39, "objects": [ 0, 3 ], "description": "the cyan sphere collided with the blue cube" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 14, "cause_collision": { "frame": 14, "objects": [ 2, 3 ] } } ], "initially_moving": [ 0, 3 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 2, 3 ] }, { "frame": 39, "objects": [ 0, 3 ] } ], "starts": { "0": [], "1": [], "2": [ 14 ], "3": [], "4": [], "5": [] }, "stops": { "0": [ 39 ], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 3 ], "wall_hits": [ [ 21, 0, 0, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the cyan sphere collided with the blue cube?", "answer": "2", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the red sphere collide with the blue 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": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the red sphere were removed, would the cyan sphere still collide with the blue 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, 3 ] }, { "op": "query_existence" } ] }, { "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": "What happened right after the red sphere collided with the blue cube?", "answer": "the cyan sphere collided with the blue cube", "choices": [ "nothing happened", "the red sphere started moving", "the cyan sphere collided with the wall", "the cyan sphere collided with the blue cube" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] }, { "question": "What material is the gray cylinder made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the cyan sphere were removed, would the red sphere 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": 0 }, { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "What material is the red sphere made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "red" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] } ] }, { "video_index": 5, "video_filename": "videos/video_00005.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.32899807229627875, "position": [ -0.06697099098298875, -0.3263726791750978 ], "velocity": [ 0.0, 0.0 ], "spin": 0.01956996126445576, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.297277898757168, "position": [ -0.012884917031561027, 0.8892047652855901 ], "velocity": [ 1.5240619057297256, -0.1642044487799806 ], "spin": 0.8232519917548746, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.27643505201919466, "position": [ 1.5481358667391458, 1.1918591611468774 ], "velocity": [ -0.9582967763434389, -1.1746161385801361 ], "spin": -1.0696794658703537, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.17576387885460434, "position": [ 0.9172649410486577, -0.34071740441959997 ], "velocity": [ -0.8046450456522527, -1.0746013119161584 ], "spin": 1.3887862713253498, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1412769215705475, "position": [ -1.1934007258541284, -0.8852294751215662 ], "velocity": [ 0.0, 0.0 ], "spin": -0.45923558098810746, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 10, "objects": [ 1, 2 ], "description": "the cyan sphere collided with the brown cube" }, { "frame": 63, "objects": [ 3, 4 ], "description": "the blue cylinder collided with the purple cylinder" } ], "motion_events": [], "initially_moving": [ 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 10, "objects": [ 1, 2 ] }, { "frame": 63, "objects": [ 3, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 2, 3 ], "wall_hits": [ [ 21, 2, 0, 1 ], [ 37, 3, 1, -1 ], [ 52, 2, 1, -1 ] ] }, "questions": [ { "question": "What shape is the brown object?", "answer": "cube", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "What happened right before the blue cylinder collided with the purple cylinder?", "answer": "the cyan sphere collided with the brown cube", "choices": [ "the brown cube collided with the wall", "nothing happened", "the cyan sphere collided with the brown cube", "the blue cylinder collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_before_event" } ] }, { "question": "If the green sphere were removed, would the cyan sphere 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": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the cyan sphere collided with the brown cube?", "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, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What material is the purple cylinder made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "Will the blue cylinder collide with the purple cylinder 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, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the green sphere were removed, would the blue cylinder still collide with the purple cylinder?", "answer": "yes", "choices": [ "no", "yes" ], "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": "What shape is the blue object?", "answer": "cylinder", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] } ] }, { "video_index": 6, "video_filename": "videos/video_00006.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1707530363475153, "position": [ -0.9515920718857154, -1.1964606813248113 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7862688550368225, "is_probe": false }, { "idx": 1, "color": "green", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.15024715732586136, "position": [ 1.4958384651126309, 0.5227715748580624 ], "velocity": [ -0.7573030042682639, 0.39079495383963203 ], "spin": -0.5708371060060912, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.28790841514805104, "position": [ 0.8076315346605127, -0.9694538499754738 ], "velocity": [ 0.0, 0.0 ], "spin": 0.40081423369743163, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.16142064148027696, "position": [ 0.12576859569931376, -0.48754998560574925 ], "velocity": [ 0.0, 0.0 ], "spin": -0.9103561789797555, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.14785485342366103, "position": [ 1.4369888642902093, 1.1144863473739497 ], "velocity": [ 0.470968603415788, -1.5545564658803677 ], "spin": -1.1337823927638506, "is_probe": false }, { "idx": 5, "color": "cyan", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.27558599024294433, "position": [ -1.4119468946919387, 0.7095436198497918 ], "velocity": [ 0.0, 0.0 ], "spin": 0.17445633633595503, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 4, "objects": [ 1, 4 ], "description": "the green sphere collided with the yellow cylinder" }, { "frame": 58, "objects": [ 3, 4 ], "description": "the gray cube collided with the yellow cylinder" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 58, "cause_collision": { "frame": 58, "objects": [ 3, 4 ] } } ], "initially_moving": [ 1, 4 ] }, "raw_events": { "collisions": [ { "frame": 4, "objects": [ 1, 4 ] }, { "frame": 58, "objects": [ 3, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 58 ], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 4 ], "wall_hits": [ [ 13, 4, 0, 1 ] ] }, "questions": [ { "question": "What shape is the purple object?", "answer": "cylinder", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "If the brown cylinder were removed, would the gray cube still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "If the gray cube were removed, would the green sphere still collide with the yellow cylinder?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object in front of the gray cube?", "answer": "purple", "choices": [ "cyan", "yellow", "brown", "green", "gray", "blue", "purple", "red" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "What material is the brown cylinder 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": "cylinder" }, { "op": "query_material" } ] }, { "question": "What caused the gray cube to start moving?", "answer": "the collision with the yellow cylinder", "choices": [ "nothing - it was already moving", "the collision with the yellow cylinder", "it was pushed by the wall", "the collision with the green sphere" ], "answer_index": 1, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 3 }, { "op": "query_motion_cause" } ] }, { "question": "What happened right before the gray cube collided with the yellow cylinder?", "answer": "the green sphere collided with the yellow cylinder", "choices": [ "nothing happened", "the green sphere collided with the yellow cylinder", "the yellow cylinder collided with the wall", "the gray cube started moving" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_before_event" } ] }, { "question": "After the gray cube collided with the yellow cylinder, will the gray 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": [ 3, 4 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 7, "video_filename": "videos/video_00007.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3266912004657535, "position": [ 0.64477002231734, -1.3234599347415297 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7156122169158458, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.33531611518366966, "position": [ 0.6359703760881088, 0.4557907299727153 ], "velocity": [ 0.0, 0.0 ], "spin": 0.0987606571973143, "is_probe": false }, { "idx": 2, "color": "red", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.30475811031736444, "position": [ -1.1501418833945996, -0.38878558206700986 ], "velocity": [ -1.0134417324236564, -0.9874153687341539 ], "spin": 0.599129478595362, "is_probe": false }, { "idx": 3, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1807438246038805, "position": [ 1.396586810274097, -0.07786600923369025 ], "velocity": [ 0.0, 0.0 ], "spin": -0.18327973768600003, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19073278150287976, "position": [ -0.8432148708354537, 0.36543890630488063 ], "velocity": [ 0.324430065570919, -1.5639675555961567 ], "spin": 0.4827239363629423, "is_probe": false }, { "idx": 5, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.14895288119415187, "position": [ -1.1753426305457806, 1.4311542136302757 ], "velocity": [ 0.8238755127729172, 0.39698575554638565 ], "spin": -0.6226338554265373, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 40, "objects": [ 2, 4 ], "description": "the red sphere collided with the blue cylinder" }, { "frame": 50, "objects": [ 0, 4 ], "description": "the yellow sphere collided with the blue cylinder" }, { "frame": 54, "objects": [ 2, 4 ], "description": "the red sphere collided with the blue cylinder" }, { "frame": 59, "objects": [ 0, 4 ], "description": "the yellow sphere collided with the blue cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 50, "cause_collision": { "frame": 50, "objects": [ 0, 4 ] } } ], "initially_moving": [ 2, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 40, "objects": [ 2, 4 ] }, { "frame": 50, "objects": [ 0, 4 ] }, { "frame": 54, "objects": [ 2, 4 ] }, { "frame": 59, "objects": [ 0, 4 ] } ], "starts": { "0": [ 50 ], "1": [], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 2, 4, 5 ], "wall_hits": [ [ 13, 2, 0, -1 ], [ 27, 5, 1, 1 ], [ 35, 2, 1, -1 ], [ 37, 4, 1, -1 ] ] }, "questions": [ { "question": "What material is the gray cube made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "How many objects are there?", "answer": "6", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 5, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "Will the red sphere collide with the blue cylinder 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, 4 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the red sphere collided with the blue cylinder?", "answer": "the yellow sphere collided with the blue cylinder", "choices": [ "the cyan cylinder collided with the wall", "the yellow sphere collided with the blue cylinder", "the red sphere collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_after_event" } ] }, { "question": "What material is the yellow sphere 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": "sphere" }, { "op": "query_material" } ] }, { "question": "If the gray cube were removed, would the yellow sphere still collide with the blue 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, 4 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the red sphere collided with the blue cylinder?", "answer": "the yellow sphere collided with the blue cylinder", "choices": [ "the blue cylinder collided with the wall", "the yellow sphere started moving", "nothing happened", "the yellow sphere collided with the blue cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_after_event" } ] }, { "question": "If the gray cube were removed, would the yellow sphere still collide with the blue 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, 4 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 8, "video_filename": "videos/video_00008.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cube", "material": "metal", "size": "small", "radius": 0.16722941368195815, "position": [ 0.9714880994622146, 0.660429421559199 ], "velocity": [ 0.2637757549467948, 1.6317656230383872 ], "spin": 0.4910065678920392, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2999588384271035, "position": [ -0.1768921431741579, -0.7557596224725561 ], "velocity": [ -0.41818117041201497, 1.040050999471217 ], "spin": -1.3686788502100433, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3257776370850415, "position": [ -0.987445059040644, 1.3140439660277734 ], "velocity": [ -0.13408102692632706, -1.2686786684885474 ], "spin": -1.1054900058976118, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.14777818857539676, "position": [ 0.3315941418002559, -0.11467429570153409 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2673779964722858, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1864105330929546, "position": [ 0.2269705889150775, 1.2509712030428164 ], "velocity": [ 1.0060190882429203, 1.360925139049436 ], "spin": -0.5264532319958236, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 0, 4 ], "description": "the purple cube collided with the cyan sphere" }, { "frame": 20, "objects": [ 1, 2 ], "description": "the brown cube collided with the yellow sphere" }, { "frame": 40, "objects": [ 1, 4 ], "description": "the brown cube collided with the cyan sphere" }, { "frame": 52, "objects": [ 0, 1 ], "description": "the purple cube collided with the brown cube" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 0, 4 ] }, { "frame": 20, "objects": [ 1, 2 ] }, { "frame": 40, "objects": [ 1, 4 ] }, { "frame": 52, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 2, 4 ], "wall_hits": [ [ 10, 4, 1, 1 ], [ 19, 0, 1, 1 ], [ 31, 0, 0, 1 ], [ 47, 2, 0, -1 ] ] }, "questions": [ { "question": "After the purple cube collided with the brown cube, will the purple 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": [ 0, 1 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the yellow sphere were removed, would the brown cube still collide with the cyan sphere?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many metal objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What happened right before the purple cube collided with the cyan sphere?", "answer": "nothing happened", "choices": [ "nothing happened", "the brown cube collided with the cyan sphere", "the cyan sphere collided with the wall", "the brown cube collided with the yellow sphere" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_before_event" } ] }, { "question": "What material is the yellow sphere made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "How many brown 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": "brown" }, { "op": "count" } ] }, { "question": "If the yellow sphere were removed, would the purple cube still collide with the cyan sphere?", "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, 4 ] }, { "op": "query_existence" } ] }, { "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" } ] } ] }, { "video_index": 9, "video_filename": "videos/video_00009.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3013952444833068, "position": [ 0.40667553210356466, -0.2132903488408988 ], "velocity": [ -0.6131149173849777, -1.3913661783301607 ], "spin": 0.642774258468461, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2760807370077464, "position": [ -0.36809905499593687, 0.5154440744086706 ], "velocity": [ -0.84593051634308, -0.6388189072265578 ], "spin": 1.289565042438296, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.19033993058861615, "position": [ 1.1330971784303554, 0.40964962262977433 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1429818819250377, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.29752263868599, "position": [ -1.5237054974354223, 0.3471393222123338 ], "velocity": [ 1.3078215050861899, -0.07987918703131815 ], "spin": 1.1973809749376683, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15757893601623738, "position": [ 0.467430252506708, 0.7029095241963919 ], "velocity": [ -0.7841729668902093, -0.22935311416688037 ], "spin": -1.191284431400006, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 6, "objects": [ 1, 3 ], "description": "the purple cube collided with the blue sphere" }, { "frame": 32, "objects": [ 3, 4 ], "description": "the blue sphere collided with the brown sphere" }, { "frame": 52, "objects": [ 0, 3 ], "description": "the red cylinder collided with the blue sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 6, "objects": [ 1, 3 ] }, { "frame": 32, "objects": [ 3, 4 ] }, { "frame": 52, "objects": [ 0, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 3, 4 ], "wall_hits": [ [ 15, 3, 0, -1 ], [ 28, 0, 1, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the red cylinder collided with the blue 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": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the purple cube collide with the brown 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": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the red cylinder were removed, would the purple cube still collide with the blue 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, 3 ] }, { "op": "query_existence" } ] }, { "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": "What happened right after the red cylinder collided with the blue sphere?", "answer": "nothing happened", "choices": [ "nothing happened", "the red cylinder collided with the wall", "the blue sphere collided with the wall", "the blue sphere collided with the brown sphere" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_after_event" } ] }, { "question": "What shape is the purple object?", "answer": "cube", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "If the cyan cube were removed, would the red cylinder still collide with the blue sphere?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object right of the red cylinder?", "answer": "cyan", "choices": [ "gray", "cyan", "blue", "brown", "green", "yellow", "red", "purple" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] } ] }, { "video_index": 10, "video_filename": "videos/video_00010.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1564178669709449, "position": [ 0.9720212775200319, -0.8076811675701271 ], "velocity": [ 0.6645820934341591, -0.5436436782968902 ], "spin": 0.37191343531066856, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.33369251696066266, "position": [ 1.5255937192017723, 0.446707935889902 ], "velocity": [ 0.0, 0.0 ], "spin": -0.2167409897213397, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2714476535240615, "position": [ 0.35959078727330307, 0.120143211376466 ], "velocity": [ 0.0, 0.0 ], "spin": 0.024779601359683046, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17116283816648284, "position": [ 0.4384380471873899, -1.0794104213378883 ], "velocity": [ 1.176339750843146, -1.2002774294536611 ], "spin": 0.20916951177076304, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.33908280607151586, "position": [ -0.3041765017152631, -0.4949690676280045 ], "velocity": [ 0.7150493971492373, -1.5126166747307004 ], "spin": -0.24453183373034215, "is_probe": false }, { "idx": 5, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15857373064266436, "position": [ -1.1671493018473535, -0.6873898081961776 ], "velocity": [ -0.8797957026329079, 0.7694411363033108 ], "spin": -0.8265154742199543, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 22, "objects": [ 0, 3 ], "description": "the gray cylinder collided with the yellow cube" }, { "frame": 54, "objects": [ 1, 4 ], "description": "the purple cube collided with the blue cylinder" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 54, "cause_collision": { "frame": 54, "objects": [ 1, 4 ] } } ], "initially_moving": [ 0, 3, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 22, "objects": [ 0, 3 ] }, { "frame": 54, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [ 54 ], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 3, 4, 5 ], "wall_hits": [ [ 16, 3, 1, -1 ], [ 19, 5, 0, -1 ], [ 20, 4, 1, -1 ], [ 28, 3, 1, -1 ], [ 30, 0, 0, 1 ], [ 43, 3, 0, 1 ], [ 58, 1, 0, 1 ] ] }, "questions": [ { "question": "How many rubber objects are there?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 4, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "question": "How many objects were moving when the gray cylinder collided with the yellow cube?", "answer": "4", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What shape is the gray object?", "answer": "cylinder", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "query_shape" } ] }, { "question": "If the yellow cube were removed, would the purple cube 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": 1 }, { "op": "query_motion_start" } ] }, { "question": "After the gray cylinder collided with the yellow cube, will the gray 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, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the gray cylinder were removed, would the purple cube still collide with the blue cylinder?", "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": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "What happened right after the gray cylinder collided with the yellow cube?", "answer": "the purple cube collided with the blue cylinder", "choices": [ "the blue cylinder collided with the wall", "nothing happened", "the green sphere collided with the wall", "the purple cube collided with the blue cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 11, "video_filename": "videos/video_00011.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.30425601403887276, "position": [ -1.4404198245136317, 0.7679610156548906 ], "velocity": [ 0.8340572035173843, -1.1233231731642719 ], "spin": 0.3621068948035795, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.27408124459494415, "position": [ 1.3098490171270873, -0.2484946956098586 ], "velocity": [ -0.20684616028777406, -0.9244944392456517 ], "spin": -0.6191143281245522, "is_probe": false }, { "idx": 2, "color": "green", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.32084883891849386, "position": [ -0.370721174839612, -1.0621930471193632 ], "velocity": [ -1.4677200955601177, -0.14825240813625262 ], "spin": 1.225763029704079, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 46, "objects": [ 0, 2 ], "description": "the gray cylinder collided with the green cube" }, { "frame": 53, "objects": [ 0, 1 ], "description": "the gray cylinder collided with the purple cylinder" }, { "frame": 56, "objects": [ 0, 2 ], "description": "the gray cylinder collided with the green cube" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 46, "objects": [ 0, 2 ] }, { "frame": 53, "objects": [ 0, 1 ] }, { "frame": 56, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 23, 2, 0, -1 ], [ 43, 1, 1, -1 ] ] }, "questions": [ { "question": "If the purple cylinder were removed, would the gray 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": 1 }, { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_existence" } ] }, { "question": "What material is the green cube made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cube" }, { "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 purple cylinder", "the green cube collided with the wall", "the purple cylinder collided with the wall", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] }, { "question": "If the green cube were removed, would the gray cylinder still collide with the purple cylinder?", "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": "What color is the cube?", "answer": "green", "choices": [ "gray", "yellow", "blue", "red", "brown", "purple", "green", "cyan" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "query_color" } ] }, { "question": "What color is the object in front of the purple cylinder?", "answer": "green", "choices": [ "cyan", "yellow", "brown", "blue", "green", "gray", "red", "purple" ], "answer_index": 4, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "After the gray cylinder collided with the purple cylinder, 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, 1 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What happened right after the gray cylinder collided with the green cube?", "answer": "the gray cylinder collided with the purple cylinder", "choices": [ "the purple cylinder collided with the wall", "the green cube collided with the wall", "the gray cylinder collided with the purple cylinder", "the gray cylinder collided with the green cube" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 12, "video_filename": "videos/video_00012.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.27552445661529973, "position": [ 0.8382935412161359, 1.11441905850857 ], "velocity": [ 0.8936483756378947, -0.6237771550391453 ], "spin": 0.1585329373998019, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3149274051404385, "position": [ -0.4719256026442593, -0.8203019363608535 ], "velocity": [ 1.1512276865950672, 1.0391557455937956 ], "spin": 1.3095606267082545, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "cube", "material": "metal", "size": "large", "radius": 0.26657814097786214, "position": [ 0.9397374599449717, -1.0705108086751352 ], "velocity": [ 0.0, 0.0 ], "spin": 1.2509727833807998, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cube", "material": "metal", "size": "large", "radius": 0.26263826030178306, "position": [ -1.1846653237065212, -0.17410107772213612 ], "velocity": [ 0.0, 0.0 ], "spin": 1.013920391691875, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.32935210131097714, "position": [ -0.09245888637061284, 0.05682475661752062 ], "velocity": [ 0.0, 0.0 ], "spin": 0.19759136747101658, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 5, "objects": [ 1, 4 ], "description": "the gray cylinder collided with the purple cylinder" }, { "frame": 25, "objects": [ 1, 2 ], "description": "the gray cylinder collided with the cyan cube" }, { "frame": 49, "objects": [ 0, 1 ], "description": "the red cylinder collided with the gray cylinder" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 25, "cause_collision": { "frame": 25, "objects": [ 1, 2 ] } }, { "object": 4, "type": "start", "frame": 5, "cause_collision": { "frame": 5, "objects": [ 1, 4 ] } } ], "initially_moving": [ 0, 1 ] }, "raw_events": { "collisions": [ { "frame": 5, "objects": [ 1, 4 ] }, { "frame": 25, "objects": [ 1, 2 ] }, { "frame": 49, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [], "2": [ 25 ], "3": [], "4": [ 5 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1 ], "wall_hits": [ [ 26, 0, 0, 1 ], [ 45, 4, 1, 1 ] ] }, "questions": [ { "question": "What material is the purple cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the green cube were removed, would the red cylinder 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": 3 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "What material is the red cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "red" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the green cube were removed, would the cyan cube 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": 2 }, { "op": "query_motion_start" } ] }, { "question": "What happened right after the red cylinder collided with the gray cylinder?", "answer": "nothing happened", "choices": [ "the purple cylinder collided with the wall", "the red cylinder collided with the wall", "the cyan cube started moving", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "What happened right after the gray cylinder collided with the purple cylinder?", "answer": "the gray cylinder collided with the cyan cube", "choices": [ "the purple cylinder collided with the wall", "the gray cylinder collided with the cyan cube", "the purple cylinder started moving", "the cyan cube started moving" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_after_event" } ] }, { "question": "Will the gray cylinder collide with the purple cylinder 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": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object behind the purple cylinder?", "answer": "red", "choices": [ "purple", "blue", "cyan", "gray", "green", "brown", "yellow", "red" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] } ] }, { "video_index": 13, "video_filename": "videos/video_00013.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3218583459416648, "position": [ 1.3338184594584572, 0.6689313807602038 ], "velocity": [ -1.6287880753035948, -0.13566207812332992 ], "spin": -1.4621972915280248, "is_probe": false }, { "idx": 1, "color": "red", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15395626624822972, "position": [ -0.6398826887795467, 0.10661308450058793 ], "velocity": [ -1.0325078065266466, -0.6323454997345307 ], "spin": 0.18955105265368966, "is_probe": false }, { "idx": 2, "color": "green", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3053282589061524, "position": [ 0.977615779905775, -0.23971629329067312 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1978664355942144, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cube", "material": "metal", "size": "large", "radius": 0.3374591003472164, "position": [ -0.12413339236265375, 1.1215535851147107 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1851605270320933, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 17, "objects": [ 0, 3 ], "description": "the yellow cylinder collided with the cyan cube" }, { "frame": 50, "objects": [ 0, 1 ], "description": "the yellow cylinder collided with the red sphere" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 17, "cause_collision": { "frame": 17, "objects": [ 0, 3 ] } } ], "initially_moving": [ 0, 1 ] }, "raw_events": { "collisions": [ { "frame": 17, "objects": [ 0, 3 ] }, { "frame": 50, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 17 ] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 1 ], "wall_hits": [ [ 31, 1, 0, -1 ], [ 60, 1, 1, -1 ], [ 63, 3, 1, 1 ] ] }, "questions": [ { "question": "What happened right after the yellow cylinder collided with the red sphere?", "answer": "nothing happened", "choices": [ "the yellow cylinder collided with the cyan cube", "the cyan cube collided with the wall", "nothing happened", "the cyan cube started moving" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "What happened right before the yellow cylinder collided with the red sphere?", "answer": "the yellow cylinder collided with the cyan cube", "choices": [ "the red sphere collided with the wall", "nothing happened", "the cyan cube collided with the wall", "the yellow cylinder collided with the cyan cube" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "If the green sphere were removed, would the yellow cylinder still collide with the red sphere?", "answer": "yes", "choices": [ "no", "yes" ], "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 yellow cylinder collided with the cyan cube, will the yellow 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, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "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": "What material is the yellow cylinder 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": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the red sphere were removed, would the yellow cylinder 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": 1 }, { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the red object?", "answer": "sphere", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] } ] }, { "video_index": 14, "video_filename": "videos/video_00014.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1612525109677472, "position": [ 0.332130958803329, 1.210882015421584 ], "velocity": [ 0.0, 0.0 ], "spin": 0.3547475898297998, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3153190647285622, "position": [ 0.7855886982277667, -0.24831738227984146 ], "velocity": [ -0.4116289989841569, 1.0662492844243332 ], "spin": 0.6321025463678143, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3194197920385808, "position": [ -1.233446161125587, -0.049415824426647825 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2812699248938904, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3242880376768677, "position": [ 0.21019825546829995, -1.2801254956804085 ], "velocity": [ 0.2824052664533337, 0.6534965487746007 ], "spin": -0.29047786428992595, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 24, "objects": [ 0, 1 ], "description": "the red cylinder collided with the brown cube" }, { "frame": 49, "objects": [ 0, 1 ], "description": "the red cylinder collided with the brown cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 24, "cause_collision": { "frame": 24, "objects": [ 0, 1 ] } } ], "initially_moving": [ 1, 3 ] }, "raw_events": { "collisions": [ { "frame": 24, "objects": [ 0, 1 ] }, { "frame": 49, "objects": [ 0, 1 ] } ], "starts": { "0": [ 24 ], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 1, 3 ], "wall_hits": [ [ 38, 0, 1, 1 ] ] }, "questions": [ { "question": "What happened right after the red cylinder collided with the brown cube?", "answer": "nothing happened", "choices": [ "the red cylinder collided with the wall", "nothing happened", "the red cylinder started moving", "the red cylinder collided with the brown cube" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "Will the red cylinder collide with the brown cube 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": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the red cylinder collided with the brown cube?", "answer": "3", "choices": [ "0", "1", "2", "3", "4" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the green cube 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": 3 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object left of the green cube?", "answer": "yellow", "choices": [ "blue", "green", "cyan", "brown", "purple", "gray", "red", "yellow" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "green" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "How many cube objects are there?", "answer": "3", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "count" } ] }, { "question": "How many metal objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 1, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "If the yellow cube were removed, would the red cylinder still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 15, "video_filename": "videos/video_00015.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2794528622122747, "position": [ -0.6706389273783772, 0.7816314197779872 ], "velocity": [ 0.0, 0.0 ], "spin": 1.477195006302276, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.19994935593365062, "position": [ 1.4788737873380773, 1.5329203994519964 ], "velocity": [ 1.4489188682387524, 0.6017458517857737 ], "spin": 1.1881450687638306, "is_probe": false }, { "idx": 2, "color": "green", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.325614170222378, "position": [ 1.026441267489625, 0.1770619720733857 ], "velocity": [ 0.19003738182560947, -1.5569230728900596 ], "spin": 0.29364966611094, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cube", "material": "metal", "size": "large", "radius": 0.32656852081647214, "position": [ -0.8754993130698444, -1.1395827104561103 ], "velocity": [ 0.48931581256418427, 0.7696413606408093 ], "spin": 0.19662838265026394, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.32832726586875816, "position": [ 0.4727830537800888, 1.2836425056504412 ], "velocity": [ 0.24571291977124843, 1.331885797861792 ], "spin": -1.114199218962499, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 50, "objects": [ 0, 1 ], "description": "the brown sphere collided with the gray cylinder" }, { "frame": 52, "objects": [ 2, 4 ], "description": "the green cylinder collided with the purple cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 50, "cause_collision": { "frame": 50, "objects": [ 0, 1 ] } } ], "initially_moving": [ 1, 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 50, "objects": [ 0, 1 ] }, { "frame": 52, "objects": [ 2, 4 ] } ], "starts": { "0": [ 50 ], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 2, 3, 4 ], "wall_hits": [ [ 5, 1, 0, 1 ], [ 7, 4, 1, 1 ], [ 11, 1, 1, 1 ], [ 31, 2, 1, -1 ], [ 58, 2, 0, 1 ] ] }, "questions": [ { "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": "What happened right after the green cylinder collided with the purple cube?", "answer": "nothing happened", "choices": [ "the purple cube collided with the wall", "the green cylinder collided with the wall", "the gray cylinder collided with the wall", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_after_event" } ] }, { "question": "If the yellow cube were removed, would the green cylinder 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": 3 }, { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the purple cube were removed, would the brown sphere still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "What color is the object in front of the green cylinder?", "answer": "yellow", "choices": [ "brown", "purple", "red", "cyan", "blue", "gray", "yellow", "green" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "green" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "After the brown sphere collided with the gray cylinder, will the brown sphere 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, 1 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What happened right after the brown sphere collided with the gray cylinder?", "answer": "the green cylinder collided with the purple cube", "choices": [ "the green cylinder collided with the purple cube", "the green cylinder collided with the wall", "nothing happened", "the brown sphere started moving" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "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" } ] } ] }, { "video_index": 16, "video_filename": "videos/video_00016.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3236214435815414, "position": [ -0.8068513131703776, 1.4454266100717799 ], "velocity": [ 1.116921490615093, -1.0749238768180973 ], "spin": 0.5898550207237641, "is_probe": false }, { "idx": 1, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1943030228160586, "position": [ 0.37318465217198216, 1.21176572002587 ], "velocity": [ 1.181846316890385, -0.9440786228290825 ], "spin": 0.052720262235250726, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19510766589209969, "position": [ -0.1283222618602773, -1.2343111902553168 ], "velocity": [ 1.511781351265251, -0.5600577076927598 ], "spin": -0.1435459647919255, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 42, "objects": [ 0, 1 ], "description": "the yellow cube collided with the green sphere" }, { "frame": 53, "objects": [ 0, 1 ], "description": "the yellow cube collided with the green sphere" }, { "frame": 58, "objects": [ 0, 2 ], "description": "the yellow cube collided with the red cylinder" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 42, "objects": [ 0, 1 ] }, { "frame": 53, "objects": [ 0, 1 ] }, { "frame": 58, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 26, 2, 1, -1 ], [ 32, 1, 0, 1 ], [ 34, 2, 0, 1 ], [ 47, 1, 0, 1 ] ] }, "questions": [ { "question": "What happened right before the yellow cube collided with the red cylinder?", "answer": "the yellow cube collided with the green sphere", "choices": [ "the green sphere collided with the wall", "the yellow cube collided with the green sphere", "nothing happened" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_before_event" } ] }, { "question": "Will the green sphere collide with the red cylinder 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" } ] }, { "question": "What color is the object left of the red cylinder?", "answer": "yellow", "choices": [ "brown", "yellow", "gray", "red", "green", "purple", "blue", "cyan" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "If the green sphere were removed, would the yellow cube still collide with the red cylinder?", "answer": "no", "choices": [ "no", "yes" ], "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": "How many cube objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "count" } ] }, { "question": "If the red cylinder were removed, would the yellow cube still collide with the green sphere?", "answer": "yes", "choices": [ "no", "yes" ], "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": "How many collisions happened in the video?", "answer": "3", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "What color is the object in front of the green sphere?", "answer": "red", "choices": [ "red", "blue", "brown", "cyan", "green", "yellow", "purple", "gray" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "green" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] } ] }, { "video_index": 17, "video_filename": "videos/video_00017.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3062710348545072, "position": [ 0.35050664270213816, -0.5318074805427881 ], "velocity": [ -1.189443058660773, 0.6835366735033038 ], "spin": 0.09844923646529935, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.14438201008774798, "position": [ -0.14649973794786741, 0.12872099916704038 ], "velocity": [ 0.0, 0.0 ], "spin": 0.548285443993199, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.27691927146658907, "position": [ -0.9016839322195643, -1.0862184731563012 ], "velocity": [ 0.5083921438570477, 0.848353851455362 ], "spin": 1.0194307750959095, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 8, "objects": [ 0, 1 ], "description": "the red cube collided with the brown cube" }, { "frame": 12, "objects": [ 0, 2 ], "description": "the red cube collided with the gray cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 8, "cause_collision": { "frame": 8, "objects": [ 0, 1 ] } } ], "initially_moving": [ 0, 2 ] }, "raw_events": { "collisions": [ { "frame": 8, "objects": [ 0, 1 ] }, { "frame": 12, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [ 8 ], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 2 ], "wall_hits": [ [ 40, 1, 1, 1 ], [ 44, 0, 1, 1 ] ] }, "questions": [ { "question": "How many cube objects are there?", "answer": "3", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "count" } ] }, { "question": "If the brown cube were removed, would the red cube still collide with the gray cube?", "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, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the red cube collided with the gray cube?", "answer": "3", "choices": [ "0", "1", "2", "3" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the gray cube were removed, would the brown cube still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "What happened right before the red cube collided with the brown cube?", "answer": "nothing happened", "choices": [ "the brown cube collided with the wall", "nothing happened", "the brown cube started moving", "the red cube collided with the gray cube" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "What color is the object left of the brown cube?", "answer": "gray", "choices": [ "yellow", "brown", "cyan", "red", "green", "gray", "blue", "purple" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "What color is the object behind the gray cube?", "answer": "brown", "choices": [ "gray", "purple", "brown", "cyan", "yellow", "red", "blue", "green" ], "answer_index": 2, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "After the red cube collided with the brown cube, will the red 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": [ 0, 1 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 18, "video_filename": "videos/video_00018.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14005256845861463, "position": [ 0.3935790919910416, -1.0509175880468509 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8885424688552759, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2900725045132531, "position": [ 0.5169104767540971, 0.19545161577929182 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1657441466014742, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2857068233190302, "position": [ -0.42740587380840567, -0.5159548820906039 ], "velocity": [ 0.0, 0.0 ], "spin": -0.26204294020022445, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.19142350147311826, "position": [ -0.8331783365956289, 1.1148166804749422 ], "velocity": [ 1.6391162906680774, -0.34832742771925645 ], "spin": 0.9108485750970061, "is_probe": false }, { "idx": 4, "color": "red", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1794725659279512, "position": [ -0.5449828802455416, -1.286121637400136 ], "velocity": [ 0.0, 0.0 ], "spin": -0.22950927894396655, "is_probe": false }, { "idx": 5, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.3230821014961879, "position": [ -1.3934729817726856, -0.9963817258710435 ], "velocity": [ 1.212415956593504, 0.27626843318994376 ], "spin": -0.2423698202006812, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 10, "objects": [ 2, 5 ], "description": "the purple sphere collided with the gray cube" }, { "frame": 12, "objects": [ 4, 5 ], "description": "the red sphere collided with the gray cube" }, { "frame": 19, "objects": [ 1, 2 ], "description": "the brown sphere collided with the purple sphere" }, { "frame": 25, "objects": [ 1, 3 ], "description": "the brown sphere collided with the cyan cube" }, { "frame": 30, "objects": [ 2, 5 ], "description": "the purple sphere collided with the gray cube" }, { "frame": 44, "objects": [ 0, 5 ], "description": "the green cube collided with the gray cube" }, { "frame": 46, "objects": [ 4, 5 ], "description": "the red sphere collided with the gray cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 44, "cause_collision": { "frame": 44, "objects": [ 0, 5 ] } }, { "object": 1, "type": "start", "frame": 19, "cause_collision": { "frame": 19, "objects": [ 1, 2 ] } }, { "object": 2, "type": "start", "frame": 10, "cause_collision": { "frame": 10, "objects": [ 2, 5 ] } }, { "object": 4, "type": "start", "frame": 12, "cause_collision": { "frame": 12, "objects": [ 4, 5 ] } } ], "initially_moving": [ 3, 5 ] }, "raw_events": { "collisions": [ { "frame": 10, "objects": [ 2, 5 ] }, { "frame": 12, "objects": [ 4, 5 ] }, { "frame": 19, "objects": [ 1, 2 ] }, { "frame": 25, "objects": [ 1, 3 ] }, { "frame": 30, "objects": [ 2, 5 ] }, { "frame": 44, "objects": [ 0, 5 ] }, { "frame": 46, "objects": [ 4, 5 ] } ], "starts": { "0": [ 44 ], "1": [ 19 ], "2": [ 10 ], "3": [], "4": [ 12 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 3, 5 ], "wall_hits": [ [ 32, 4, 1, -1 ], [ 41, 3, 0, 1 ], [ 59, 4, 1, -1 ], [ 62, 3, 1, 1 ] ] }, "questions": [ { "question": "After the red sphere collided with the gray cube, will the red sphere collide with something else?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What material is the purple sphere made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "If the cyan cube were removed, would the purple sphere still collide with the gray 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": [ 2, 5 ] }, { "op": "query_existence" } ] }, { "question": "How many gray 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": "gray" }, { "op": "count" } ] }, { "question": "What happened right after the purple sphere collided with the gray cube?", "answer": "the green cube collided with the gray cube", "choices": [ "the red sphere collided with the wall", "the green cube started moving", "the green cube collided with the gray cube", "the cyan cube collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 5 ] }, { "op": "query_after_event" } ] }, { "question": "If the brown sphere were removed, would the purple sphere still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 2 }, { "op": "query_motion_start" } ] }, { "question": "Which object started moving right before the red sphere collided with the gray cube?", "answer": "the green cube", "choices": [ "none of them", "the purple sphere", "the brown sphere", "the green cube" ], "answer_index": 3, "question_type": "explanatory", "template": "who_started_before", "program": [ { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "query_before_motion_start" } ] }, { "question": "What color is the object behind the brown sphere?", "answer": "cyan", "choices": [ "red", "gray", "yellow", "purple", "brown", "cyan", "blue", "green" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] } ] }, { "video_index": 19, "video_filename": "videos/video_00019.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2628134768042118, "position": [ -0.6743222929218735, -1.4666285348155985 ], "velocity": [ 0.9402486216402479, 1.1480119765446117 ], "spin": -0.3494369301685687, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1823469989593459, "position": [ 0.32553804195805247, -0.689808628440286 ], "velocity": [ 0.4640312478902081, 1.0385631587322948 ], "spin": 0.15748898144517276, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2863186898607125, "position": [ 1.4715443765767657, 0.44599986970024785 ], "velocity": [ 0.6055440979316069, 0.4489699304411602 ], "spin": -1.1599628473259518, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 34, "objects": [ 1, 2 ], "description": "the cyan sphere collided with the yellow sphere" }, { "frame": 41, "objects": [ 0, 1 ], "description": "the brown cylinder collided with the cyan sphere" }, { "frame": 51, "objects": [ 1, 2 ], "description": "the cyan sphere collided with the yellow sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 34, "objects": [ 1, 2 ] }, { "frame": 41, "objects": [ 0, 1 ] }, { "frame": 51, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 10, 2, 0, 1 ], [ 50, 2, 1, 1 ], [ 54, 2, 1, 1 ], [ 60, 2, 0, 1 ] ] }, "questions": [ { "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 shape is the yellow object?", "answer": "sphere", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "query_shape" } ] }, { "question": "If the brown cylinder were removed, would the cyan sphere still collide with the yellow sphere?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the cyan sphere collided with the yellow sphere?", "answer": "nothing happened", "choices": [ "the brown cylinder collided with the cyan sphere", "the yellow sphere collided with the wall", "nothing happened", "the cyan sphere collided with the yellow sphere" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "What happened right before the cyan sphere collided with the yellow sphere?", "answer": "nothing happened", "choices": [ "the brown cylinder collided with the cyan sphere", "the yellow sphere collided with the wall", "the cyan sphere collided with the yellow sphere", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] }, { "question": "How many yellow objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "count" } ] }, { "question": "If the yellow sphere were removed, would the brown cylinder still collide with the cyan sphere?", "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 cyan sphere collided with the yellow sphere, will the cyan sphere collide with something else?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 20, "video_filename": "videos/video_00020.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2941538557576296, "position": [ -0.44140629953298105, -1.1490606397887295 ], "velocity": [ 0.7056255410177106, -0.09338781824739269 ], "spin": -0.11224900552526362, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.17365826815902763, "position": [ 1.2952174287729237, -0.12605606427488625 ], "velocity": [ 1.4395742487807082, -0.3316026183729675 ], "spin": -0.5347919778608115, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2615908864418633, "position": [ -0.7574534643940498, -0.13189682606801956 ], "velocity": [ 0.7087873920472912, -0.9137382198222012 ], "spin": -1.0596075598153165, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 17, "objects": [ 0, 2 ], "description": "the gray cube collided with the purple cylinder" }, { "frame": 44, "objects": [ 1, 2 ], "description": "the brown cylinder collided with the purple cylinder" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 17, "objects": [ 0, 2 ] }, { "frame": 44, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 9, 1, 0, 1 ], [ 41, 0, 1, -1 ] ] }, "questions": [ { "question": "If the brown cylinder were removed, would the gray cube still collide with the purple 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object in front of the purple cylinder?", "answer": "gray", "choices": [ "cyan", "brown", "purple", "yellow", "blue", "red", "gray", "green" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "Will the gray cube collide with the brown cylinder 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, 1 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the gray cube collided with the purple cylinder?", "answer": "the brown cylinder collided with the purple cylinder", "choices": [ "the brown cylinder collided with the wall", "the gray cube collided with the wall", "nothing happened", "the brown cylinder collided with the purple cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] }, { "question": "What color is the object right of the purple cylinder?", "answer": "brown", "choices": [ "brown", "green", "gray", "red", "purple", "cyan", "yellow", "blue" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "How many cylinder objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "op": "count" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "If the gray cube were removed, would the brown cylinder still collide with the purple cylinder?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 21, "video_filename": "videos/video_00021.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17419816838620855, "position": [ 0.2573044199243135, -1.171492365597207 ], "velocity": [ -0.7032462196088511, 1.156143786437707 ], "spin": -1.1923487885358812, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.16825065775921952, "position": [ 1.0332800487963214, 0.9497850580672587 ], "velocity": [ -0.19686671018865687, 1.531098923326865 ], "spin": -0.39635996505404525, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18483176062559944, "position": [ 1.0744794294663629, -1.0226355889234888 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4231387762477334, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.19187737866678356, "position": [ -1.0583739169478268, -1.1611625453392758 ], "velocity": [ 0.878387291863859, 0.9195112245322754 ], "spin": -1.2871513113320041, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17998757871664628, "position": [ 0.45747410261522314, 0.04981531929130267 ], "velocity": [ 1.1864062612349238, -0.01333407781537064 ], "spin": 0.5129487850015524, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.18927774015213575, "position": [ -0.891942906145786, 0.3096349798008653 ], "velocity": [ 0.0, 0.0 ], "spin": 0.14271911511684432, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 15, "objects": [ 0, 3 ], "description": "the brown sphere collided with the yellow cylinder" }, { "frame": 48, "objects": [ 3, 5 ], "description": "the yellow cylinder collided with the purple cylinder" }, { "frame": 53, "objects": [ 1, 4 ], "description": "the blue cylinder collided with the green cube" } ], "motion_events": [ { "object": 5, "type": "start", "frame": 48, "cause_collision": { "frame": 48, "objects": [ 3, 5 ] } } ], "initially_moving": [ 0, 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 15, "objects": [ 0, 3 ] }, { "frame": 48, "objects": [ 3, 5 ] }, { "frame": 53, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [ 48 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 3, 4 ], "wall_hits": [ [ 14, 1, 1, 1 ], [ 30, 4, 0, 1 ], [ 54, 0, 1, 1 ] ] }, "questions": [ { "question": "What happened right before the blue cylinder collided with the green cube?", "answer": "the yellow cylinder collided with the purple cylinder", "choices": [ "the yellow cylinder collided with the purple cylinder", "the purple cylinder started moving", "the brown sphere collided with the yellow cylinder", "the green cube collided with the wall" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_before_event" } ] }, { "question": "What material is the green cube made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "Will the yellow cylinder collide with the purple cylinder 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 shape is the brown object?", "answer": "sphere", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "What material is the yellow cylinder 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": "cylinder" }, { "op": "query_material" } ] }, { "question": "What happened right after the blue cylinder collided with the green cube?", "answer": "nothing happened", "choices": [ "the brown sphere collided with the yellow cylinder", "the yellow cylinder collided with the purple cylinder", "the green cube collided with the wall", "nothing happened" ], "answer_index": 3, "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 brown sphere still collide with the yellow cylinder?", "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": "If the green cube 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": 4 }, { "op": "filter_object", "idx": 5 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 22, "video_filename": "videos/video_00022.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1873264953923664, "position": [ 0.9703920910013972, 0.5120817025717355 ], "velocity": [ -0.4281181066193127, 1.4863008508372537 ], "spin": -1.165478513331827, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.17976987633313, "position": [ -0.09887521568678026, -1.4727228275255704 ], "velocity": [ -0.1802451823712818, 0.6823818380774057 ], "spin": -1.4932127007474811, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "metal", "size": "large", "radius": 0.33712972016885623, "position": [ -0.010140024177883289, -0.17234385686270604 ], "velocity": [ 0.0, 0.0 ], "spin": 1.3076480891110287, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 35, "objects": [ 1, 2 ], "description": "the purple sphere collided with the brown cube" }, { "frame": 54, "objects": [ 0, 2 ], "description": "the cyan sphere collided with the brown cube" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 54, "cause_collision": { "frame": 54, "objects": [ 0, 2 ] } } ], "initially_moving": [ 0, 1 ] }, "raw_events": { "collisions": [ { "frame": 35, "objects": [ 1, 2 ] }, { "frame": 54, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [ 54 ] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1 ], "wall_hits": [ [ 22, 0, 1, 1 ] ] }, "questions": [ { "question": "What color is the object right of the brown cube?", "answer": "cyan", "choices": [ "blue", "cyan", "purple", "red", "brown", "gray", "yellow", "green" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "After the cyan sphere collided with the brown cube, will the cyan sphere collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What happened right before the cyan sphere collided with the brown cube?", "answer": "the purple sphere collided with the brown cube", "choices": [ "the brown cube started moving", "nothing happened", "the cyan sphere collided with the wall", "the purple sphere collided with the brown cube" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_before_event" } ] }, { "question": "What color is the object right of the purple sphere?", "answer": "cyan", "choices": [ "brown", "purple", "green", "red", "gray", "yellow", "blue", "cyan" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "If the purple sphere were removed, would the brown cube still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 2 }, { "op": "query_motion_start" } ] }, { "question": "How many cube objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "count" } ] }, { "question": "How many objects were moving when the purple sphere collided with the brown cube?", "answer": "2", "choices": [ "0", "1", "2", "3" ], "answer_index": 2, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the purple sphere were removed, would the cyan sphere 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": 1 }, { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 23, "video_filename": "videos/video_00023.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17198819500069515, "position": [ -0.2628731288183217, 1.4616213440104724 ], "velocity": [ 1.050731545793249, -0.7155424681506983 ], "spin": 0.27238793443677145, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cube", "material": "metal", "size": "small", "radius": 0.15213934957958258, "position": [ 1.4238294336931567, -1.1861791064933465 ], "velocity": [ 0.7569417022156762, 0.8380545559966698 ], "spin": -0.7191297879599837, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.26463103525780757, "position": [ -1.22821480215636, -0.010901915613935387 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1214213302108442, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1446389922988808, "position": [ 1.3964972565006957, 0.3124338115690488 ], "velocity": [ 0.0, 0.0 ], "spin": -1.4960591866339579, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cube", "material": "metal", "size": "large", "radius": 0.33499024118012594, "position": [ 0.45271606298873546, 0.8854776783965674 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3981536715894078, "is_probe": false }, { "idx": 5, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1695958821256641, "position": [ -1.1667494701474206, -1.2511721744625974 ], "velocity": [ 0.0, 0.0 ], "spin": 0.9413325540106503, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 8, "objects": [ 0, 4 ], "description": "the yellow sphere collided with the brown cube" }, { "frame": 41, "objects": [ 1, 4 ], "description": "the red cube collided with the brown cube" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 8, "cause_collision": { "frame": 8, "objects": [ 0, 4 ] } } ], "initially_moving": [ 0, 1 ] }, "raw_events": { "collisions": [ { "frame": 8, "objects": [ 0, 4 ] }, { "frame": 41, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 8 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [ 41 ], "5": [] }, "initially_moving": [ 0, 1 ], "wall_hits": [ [ 14, 1, 0, 1 ], [ 35, 0, 1, 1 ], [ 63, 1, 0, 1 ] ] }, "questions": [ { "question": "What shape is the red object?", "answer": "cube", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "If the cyan cylinder were removed, would the red cube still collide with the brown 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, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the cyan cylinder were removed, would the brown cube still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 4 }, { "op": "query_motion_start" } ] }, { "question": "After the yellow sphere collided with the brown cube, will the yellow sphere 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": "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": "How many metal objects are there?", "answer": "4", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What happened right before the yellow sphere collided with the brown cube?", "answer": "nothing happened", "choices": [ "nothing happened", "the yellow sphere collided with the wall", "the red cube collided with the wall", "the brown cube started moving" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_before_event" } ] }, { "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" } ] } ] }, { "video_index": 24, "video_filename": "videos/video_00024.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1494378821139393, "position": [ -0.2967881019525964, 0.8874564680151786 ], "velocity": [ 1.5814696319730555, 0.6142207107945844 ], "spin": -0.0555381444747467, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.155428670201647, "position": [ 0.6151998959926377, 0.26265824900838175 ], "velocity": [ -0.4394644254584987, 1.5439084719831968 ], "spin": 1.1265211024142587, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.17989188470201184, "position": [ -0.9300417258140973, -0.1568106049291127 ], "velocity": [ 0.314556067391592, 1.6465360407395282 ], "spin": -1.331545250871204, "is_probe": false }, { "idx": 3, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.19514698530711388, "position": [ 0.5560414697755915, 1.1535569787856443 ], "velocity": [ 0.29805439386180604, 1.1055280274868162 ], "spin": 1.1676333950814293, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 9, "objects": [ 0, 1 ], "description": "the purple cube collided with the cyan cylinder" }, { "frame": 15, "objects": [ 0, 3 ], "description": "the purple cube collided with the green sphere" }, { "frame": 21, "objects": [ 0, 1 ], "description": "the purple cube collided with the cyan cylinder" }, { "frame": 30, "objects": [ 0, 2 ], "description": "the purple cube collided with the gray cube" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 9, "objects": [ 0, 1 ] }, { "frame": 15, "objects": [ 0, 3 ] }, { "frame": 21, "objects": [ 0, 1 ] }, { "frame": 30, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 15, 3, 1, 1 ], [ 16, 0, 1, 1 ], [ 29, 0, 1, 1 ], [ 31, 2, 1, 1 ], [ 56, 3, 0, 1 ] ] }, "questions": [ { "question": "What color is the object left of the purple cube?", "answer": "gray", "choices": [ "green", "brown", "blue", "cyan", "yellow", "purple", "red", "gray" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "How many collisions happened in the video?", "answer": "4", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "How many objects are there?", "answer": "4", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "How many objects were moving when the purple cube collided with the gray 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, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What color is the sphere?", "answer": "green", "choices": [ "gray", "cyan", "brown", "green", "blue", "purple", "yellow", "red" ], "answer_index": 3, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "query_color" } ] }, { "question": "If the cyan cylinder were removed, would the purple cube still collide with the gray cube?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_existence" } ] }, { "question": "After the purple cube collided with the gray cube, will the purple cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the gray cube were removed, would the purple cube still collide with the cyan cylinder?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 25, "video_filename": "videos/video_00025.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.15733416273254033, "position": [ -1.499289452932488, -1.3715696500066696 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8055246177897999, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cube", "material": "metal", "size": "small", "radius": 0.18785581822146985, "position": [ 0.364120331611266, -0.6213704916206129 ], "velocity": [ 0.5392838261514307, 0.9967254625373807 ], "spin": -1.1274156345075703, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.29619163717840685, "position": [ -0.005282355150872053, -1.5210092266750523 ], "velocity": [ 0.5465022250689724, 0.9541949405465864 ], "spin": 0.2639390431966264, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.31234982324252286, "position": [ 1.1767152817292634, 0.8745590699262082 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8061092310660216, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1467710497408332, "position": [ -0.925118204087703, 1.4198933509187806 ], "velocity": [ -0.30371419770168634, -1.1241726211118659 ], "spin": -0.12531199621771227, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1572138813042087, "position": [ 0.8181302046223513, -1.3570154204853573 ], "velocity": [ 0.0, 0.0 ], "spin": 0.7184532888189925, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 28, "objects": [ 1, 3 ], "description": "the green cube collided with the cyan sphere" }, { "frame": 41, "objects": [ 1, 2 ], "description": "the green cube collided with the blue sphere" }, { "frame": 63, "objects": [ 0, 4 ], "description": "the gray cube collided with the yellow cylinder" }, { "frame": 63, "objects": [ 1, 3 ], "description": "the green cube collided with the cyan sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 41, "cause_collision": { "frame": 41, "objects": [ 1, 2 ] } }, { "object": 3, "type": "start", "frame": 28, "cause_collision": { "frame": 28, "objects": [ 1, 3 ] } } ], "initially_moving": [ 1, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 28, "objects": [ 1, 3 ] }, { "frame": 41, "objects": [ 1, 2 ] }, { "frame": 63, "objects": [ 0, 4 ] }, { "frame": 63, "objects": [ 1, 3 ] } ], "starts": { "0": [], "1": [ 41 ], "2": [], "3": [ 28 ], "4": [], "5": [] }, "stops": { "0": [], "1": [ 28 ], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 2, 4 ], "wall_hits": [ [ 54, 3, 1, 1 ], [ 58, 3, 0, 1 ] ] }, "questions": [ { "question": "After the green cube collided with the cyan sphere, will the green cube collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "What material is the purple sphere made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "If the gray cube were removed, would the green cube still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "If the blue sphere were removed, would the green cube still collide with the cyan sphere?", "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": "How many collisions happened in the video?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "How many sphere objects are there?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "What happened right after the gray cube collided with the yellow cylinder?", "answer": "the green cube collided with the cyan sphere", "choices": [ "the cyan sphere collided with the wall", "the green cube collided with the cyan sphere", "the cyan sphere started moving" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 26, "video_filename": "videos/video_00026.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cube", "material": "metal", "size": "small", "radius": 0.16749606851101329, "position": [ 0.8998220423835865, 0.7543410434150417 ], "velocity": [ 0.0, 0.0 ], "spin": 1.3084669197117673, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cube", "material": "metal", "size": "small", "radius": 0.16115465471792453, "position": [ 0.6720902304936225, -1.2313159646670508 ], "velocity": [ 0.0, 0.0 ], "spin": 1.0923567636650002, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.17946761963615185, "position": [ -0.2534894670966865, -0.42084134556977637 ], "velocity": [ -0.24940656574752398, 0.8122157422799987 ], "spin": -0.18563570045962452, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.30366876110354113, "position": [ -1.5054099958010811, -1.4196450758645593 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8095784807565326, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.14760386860741304, "position": [ -0.92115789870509, 1.3057522425804062 ], "velocity": [ 0.0, 0.0 ], "spin": 0.5097054300455395, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1589479719656154, "position": [ 0.7893345323614909, -0.7012881153173453 ], "velocity": [ -1.3219719343643817, -0.782286472073619 ], "spin": 0.6113687249274231, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 41, "objects": [ 3, 5 ], "description": "the cyan cube collided with the purple cylinder" }, { "frame": 50, "objects": [ 2, 4 ], "description": "the gray cylinder collided with the yellow sphere" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 41, "cause_collision": { "frame": 41, "objects": [ 3, 5 ] } }, { "object": 4, "type": "start", "frame": 50, "cause_collision": { "frame": 50, "objects": [ 2, 4 ] } } ], "initially_moving": [ 2, 5 ] }, "raw_events": { "collisions": [ { "frame": 41, "objects": [ 3, 5 ] }, { "frame": 50, "objects": [ 2, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 41 ], "4": [ 50 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 2, 5 ], "wall_hits": [ [ 39, 5, 1, -1 ], [ 44, 5, 1, -1 ], [ 50, 3, 0, -1 ] ] }, "questions": [ { "question": "What material is the cyan cube made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "If the red cube were removed, would the yellow sphere still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 4 }, { "op": "query_motion_start" } ] }, { "question": "What caused the cyan cube to start moving?", "answer": "the collision with the purple cylinder", "choices": [ "the collision with the purple cylinder", "the collision with the yellow sphere", "nothing - it was already moving", "the collision with the gray cylinder" ], "answer_index": 0, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 3 }, { "op": "query_motion_cause" } ] }, { "question": "After the cyan cube collided with the purple cylinder, will the cyan cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "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": "How many objects are there?", "answer": "6", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 5, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "If the green cube were removed, would the gray cylinder still collide with the yellow 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, 4 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the cyan cube collided with the purple cylinder?", "answer": "the gray cylinder collided with the yellow sphere", "choices": [ "the purple cylinder collided with the wall", "nothing happened", "the gray cylinder collided with the yellow sphere", "the yellow sphere started moving" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 27, "video_filename": "videos/video_00027.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.15187646271551347, "position": [ -0.561579130240116, -0.42174732058105313 ], "velocity": [ -0.922864884837867, 0.9531872203291333 ], "spin": 0.8960364739317992, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.3029556864311026, "position": [ -0.82616826367945, 0.45743734059436014 ], "velocity": [ -0.24264056586064311, 0.9659411098565217 ], "spin": -1.0809386254639226, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.183618149344358, "position": [ 1.141561836752562, -0.8742743580563452 ], "velocity": [ -1.1345732321511701, 0.8588405322585906 ], "spin": -0.05797506156481935, "is_probe": false }, { "idx": 3, "color": "green", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1622435840592788, "position": [ -0.5496062603248415, 1.3711983601141038 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2577558013748726, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.27055639970616724, "position": [ 0.017991517397611068, -1.0137896523506664 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0952577326903228, "is_probe": false }, { "idx": 5, "color": "red", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1825482143551623, "position": [ 0.5408071228766949, -0.4974703196718626 ], "velocity": [ 0.9436981013118398, 0.41577617300819547 ], "spin": -0.46870666729810306, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 4, "objects": [ 2, 5 ], "description": "the purple sphere collided with the red cube" }, { "frame": 45, "objects": [ 0, 1 ], "description": "the gray cube collided with the brown sphere" }, { "frame": 56, "objects": [ 0, 1 ], "description": "the gray cube collided with the brown sphere" }, { "frame": 62, "objects": [ 1, 3 ], "description": "the brown sphere collided with the green sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 5 ] }, "raw_events": { "collisions": [ { "frame": 4, "objects": [ 2, 5 ] }, { "frame": 45, "objects": [ 0, 1 ] }, { "frame": 56, "objects": [ 0, 1 ] }, { "frame": 62, "objects": [ 1, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 2, 5 ], "wall_hits": [ [ 32, 5, 1, 1 ], [ 34, 1, 1, 1 ], [ 37, 0, 0, -1 ], [ 49, 0, 0, -1 ] ] }, "questions": [ { "question": "What material is the purple sphere made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "What material is the gray cube made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "If the red cube were removed, would the gray cube still collide with the brown sphere?", "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, 1 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the purple sphere collided with the red cube?", "answer": "nothing happened", "choices": [ "the gray cube collided with the wall", "the brown sphere collided with the wall", "nothing happened", "the brown sphere collided with the green sphere" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 5 ] }, { "op": "query_before_event" } ] }, { "question": "If the purple sphere were removed, would the gray cube still collide with the brown sphere?", "answer": "yes", "choices": [ "no", "yes" ], "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": "What happened right before the gray cube collided with the brown sphere?", "answer": "the purple sphere collided with the red cube", "choices": [ "the brown sphere collided with the green sphere", "the gray cube collided with the wall", "the purple sphere collided with the red cube", "the brown sphere collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "What color is the object right of the yellow sphere?", "answer": "purple", "choices": [ "yellow", "brown", "green", "gray", "blue", "red", "purple", "cyan" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "Will the gray cube collide with the brown 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": [ 0, 1 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 28, "video_filename": "videos/video_00028.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2886269446966424, "position": [ 0.5613361709343165, -0.6730998948055561 ], "velocity": [ 1.398646109307217, -0.00682305563272107 ], "spin": 0.1663872963212527, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2792277546949308, "position": [ 1.4245785524391497, -0.5634388623648136 ], "velocity": [ 0.0, 0.0 ], "spin": 0.5762476442821023, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.18561018786835218, "position": [ 0.2672541360631431, -1.496263849523818 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8584385094038951, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.16885735960865395, "position": [ 0.9078362601755272, 0.5993028617692795 ], "velocity": [ -0.7157765482436184, 0.7574341910707618 ], "spin": 1.334591200201448, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 5, "objects": [ 0, 1 ], "description": "the brown sphere collided with the yellow cylinder" }, { "frame": 12, "objects": [ 0, 1 ], "description": "the brown sphere collided with the yellow cylinder" }, { "frame": 48, "objects": [ 0, 2 ], "description": "the brown sphere collided with the blue sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 5, "cause_collision": { "frame": 5, "objects": [ 0, 1 ] } }, { "object": 2, "type": "start", "frame": 48, "cause_collision": { "frame": 48, "objects": [ 0, 2 ] } } ], "initially_moving": [ 0, 3 ] }, "raw_events": { "collisions": [ { "frame": 5, "objects": [ 0, 1 ] }, { "frame": 12, "objects": [ 0, 1 ] }, { "frame": 48, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [ 5 ], "2": [ 48 ], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 3 ], "wall_hits": [ [ 9, 1, 0, 1 ], [ 18, 1, 0, 1 ], [ 44, 3, 1, 1 ], [ 51, 1, 1, 1 ], [ 60, 0, 1, -1 ] ] }, "questions": [ { "question": "If the yellow cylinder were removed, would the blue sphere still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 2 }, { "op": "query_motion_start" } ] }, { "question": "How many objects were moving when the brown sphere collided with the yellow cylinder?", "answer": "3", "choices": [ "0", "1", "2", "3", "4" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many brown objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "count" } ] }, { "question": "Will the yellow cylinder collide with the blue 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": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "If the gray sphere were removed, would the yellow 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": 1 }, { "op": "query_motion_start" } ] }, { "question": "What shape is the blue object?", "answer": "sphere", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "What happened right after the brown sphere collided with the blue sphere?", "answer": "nothing happened", "choices": [ "nothing happened", "the blue sphere started moving", "the gray sphere collided with the wall", "the brown sphere collided with the yellow cylinder" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 29, "video_filename": "videos/video_00029.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3190374134289683, "position": [ -0.19071564639112282, -0.08257420627018264 ], "velocity": [ 0.6624976583779667, 0.36671803889291915 ], "spin": -1.032452314999642, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.15939441656707223, "position": [ 0.7186859934264043, -0.7468818156833722 ], "velocity": [ 0.0783004732103361, 1.2382266194477047 ], "spin": -1.3107476054036837, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.14376335213993252, "position": [ -0.40084657757250985, 0.8897052732810733 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2037112287591851, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2917455464428362, "position": [ 0.640701883947026, -0.047849546015907185 ], "velocity": [ 0.5188519749946793, 0.9346457239615452 ], "spin": -0.9844062656837353, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2637582529045427, "position": [ -1.2421730963820923, 0.8482891753206732 ], "velocity": [ 1.1357826145918994, 0.917924126546267 ], "spin": 0.4269259876923277, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 19, "objects": [ 0, 1 ], "description": "the brown sphere collided with the blue cylinder" }, { "frame": 24, "objects": [ 1, 3 ], "description": "the blue cylinder collided with the cyan cylinder" }, { "frame": 46, "objects": [ 0, 4 ], "description": "the brown sphere collided with the green cube" }, { "frame": 55, "objects": [ 1, 3 ], "description": "the blue cylinder collided with the cyan cylinder" }, { "frame": 57, "objects": [ 3, 4 ], "description": "the cyan cylinder collided with the green cube" } ], "motion_events": [], "initially_moving": [ 0, 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 19, "objects": [ 0, 1 ] }, { "frame": 24, "objects": [ 1, 3 ] }, { "frame": 46, "objects": [ 0, 4 ] }, { "frame": 55, "objects": [ 1, 3 ] }, { "frame": 57, "objects": [ 3, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 3, 4 ], "wall_hits": [ [ 25, 4, 1, 1 ], [ 47, 3, 1, 1 ], [ 53, 3, 0, 1 ], [ 54, 1, 0, 1 ], [ 63, 4, 1, 1 ] ] }, "questions": [ { "question": "What material is the green cube made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "If the gray sphere were removed, would the blue cylinder still collide with the cyan cylinder?", "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 happened right before the brown sphere collided with the blue cylinder?", "answer": "nothing happened", "choices": [ "the brown sphere collided with the green cube", "the blue cylinder collided with the cyan cylinder", "the green cube collided with the wall", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "How many brown 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": "brown" }, { "op": "count" } ] }, { "question": "What shape is the brown object?", "answer": "sphere", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "How many objects were moving when the blue cylinder collided with the cyan cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the brown sphere were removed, would the cyan 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": 0 }, { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_existence" } ] }, { "question": "After the brown sphere collided with the blue cylinder, will the brown sphere 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, 1 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 30, "video_filename": "videos/video_00030.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.16537739987451158, "position": [ -0.575956078303278, -0.017740510858165193 ], "velocity": [ 0.0, 0.0 ], "spin": 0.5565859658515766, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.171939716818743, "position": [ 1.2213890306141322, 0.7701304012058865 ], "velocity": [ -1.0208113866767017, -0.42259786398548294 ], "spin": -0.04121742050569166, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.18839028942266067, "position": [ -0.2503219050151557, 1.3084852935288545 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1681012737961438, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.33032609078099884, "position": [ -1.3309968187736612, 0.48162028597992346 ], "velocity": [ 0.8788973362617603, 0.04333514430013679 ], "spin": 0.1362225258315788, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.16190485473740493, "position": [ 0.5300368046912796, 0.18071795277284908 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6297568917642982, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 15, "objects": [ 1, 4 ], "description": "the purple sphere collided with the cyan cube" }, { "frame": 29, "objects": [ 1, 3 ], "description": "the purple sphere collided with the brown cylinder" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 15, "cause_collision": { "frame": 15, "objects": [ 1, 4 ] } } ], "initially_moving": [ 1, 3 ] }, "raw_events": { "collisions": [ { "frame": 15, "objects": [ 1, 4 ] }, { "frame": 29, "objects": [ 1, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 15 ] }, "stops": { "0": [], "1": [], "2": [], "3": [ 29 ], "4": [] }, "initially_moving": [ 1, 3 ], "wall_hits": [ [ 56, 1, 0, 1 ] ] }, "questions": [ { "question": "What caused the cyan cube to start moving?", "answer": "the collision with the purple sphere", "choices": [ "it was pushed by the wall", "the collision with the purple sphere", "nothing - it was already moving", "the collision with the brown cylinder" ], "answer_index": 1, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 4 }, { "op": "query_motion_cause" } ] }, { "question": "If the brown cylinder were removed, would the cyan cube 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": 4 }, { "op": "query_motion_start" } ] }, { "question": "What happened right before the purple sphere collided with the brown cylinder?", "answer": "the purple sphere collided with the cyan cube", "choices": [ "the purple sphere collided with the cyan cube", "nothing happened", "the purple sphere collided with the wall", "the cyan cube started moving" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_before_event" } ] }, { "question": "If the purple sphere were removed, would the cyan cube 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": 4 }, { "op": "query_motion_start" } ] }, { "question": "What material is the purple sphere made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "What shape is the cyan object?", "answer": "cube", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "query_shape" } ] }, { "question": "How many cube objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "count" } ] }, { "question": "Will the purple sphere collide with the brown cylinder 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, 3 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 31, "video_filename": "videos/video_00031.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3253280152274838, "position": [ -0.7088506106316514, 0.6902964956701132 ], "velocity": [ 0.14602673757875695, 1.4997967641389929 ], "spin": 1.3292702282708233, "is_probe": false }, { "idx": 1, "color": "green", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3038911427289897, "position": [ 0.2137423689705189, 1.5189804225165127 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6857076395824121, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1464490697289272, "position": [ 1.526615448901233, -0.8162247229696581 ], "velocity": [ -0.809677086178537, 1.2054828506741249 ], "spin": -0.7761567873554908, "is_probe": false }, { "idx": 3, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.16859360468677886, "position": [ -0.5996655348214834, -0.29133547819392236 ], "velocity": [ 0.0, 0.0 ], "spin": 0.4538628211668758, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2953751607690904, "position": [ 0.5995554987813441, 0.5131094470739013 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8100258757273378, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 21, "objects": [ 2, 4 ], "description": "the purple cylinder collided with the yellow cylinder" }, { "frame": 48, "objects": [ 0, 3 ], "description": "the blue cylinder collided with the red cylinder" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 48, "cause_collision": { "frame": 48, "objects": [ 0, 3 ] } }, { "object": 4, "type": "start", "frame": 21, "cause_collision": { "frame": 21, "objects": [ 2, 4 ] } } ], "initially_moving": [ 0, 2 ] }, "raw_events": { "collisions": [ { "frame": 21, "objects": [ 2, 4 ] }, { "frame": 48, "objects": [ 0, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 48 ], "4": [ 21 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2 ], "wall_hits": [ [ 16, 0, 1, 1 ], [ 59, 2, 0, 1 ] ] }, "questions": [ { "question": "What happened right before the purple cylinder collided with the yellow cylinder?", "answer": "nothing happened", "choices": [ "the blue cylinder collided with the red cylinder", "the blue cylinder collided with the wall", "the red cylinder started moving", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_before_event" } ] }, { "question": "If the green sphere were removed, would the purple cylinder still collide with the yellow 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": [ 2, 4 ] }, { "op": "query_existence" } ] }, { "question": "After the blue cylinder collided with the red cylinder, will the blue cylinder collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the blue cylinder were removed, would the red cylinder still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "How many metal objects are there?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 2, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "How many rubber objects are there?", "answer": "2", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "question": "How many blue 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": "blue" }, { "op": "count" } ] } ] }, { "video_index": 32, "video_filename": "videos/video_00032.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14793106088735652, "position": [ 1.0953522396235116, -1.3031123173549064 ], "velocity": [ -1.1362555388169946, 0.15561936142915395 ], "spin": 0.47564994724530285, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1746564083166548, "position": [ -0.8587550913683005, -1.035723176757265 ], "velocity": [ 0.8634433796541463, -1.1286781965714099 ], "spin": -0.5958960339516779, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.302962112944945, "position": [ 0.6210561869357651, 1.0451012080508602 ], "velocity": [ -0.7495785953229787, 1.2696654855451295 ], "spin": -1.002382777915034, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18276243974764536, "position": [ 0.4531862862390723, -0.24546836428514696 ], "velocity": [ -0.17599054192430288, -1.163620089450346 ], "spin": 1.313398494477727, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 0, 3 ], "description": "the yellow cube collided with the blue sphere" }, { "frame": 23, "objects": [ 0, 1 ], "description": "the yellow cube collided with the red cube" }, { "frame": 48, "objects": [ 2, 3 ], "description": "the brown cube collided with the blue sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 0, 3 ] }, { "frame": 23, "objects": [ 0, 1 ] }, { "frame": 48, "objects": [ 2, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 13, 2, 1, 1 ], [ 18, 1, 1, -1 ], [ 51, 1, 0, -1 ], [ 53, 0, 1, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the yellow cube collided with the blue sphere?", "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": "What happened right after the brown cube collided with the blue sphere?", "answer": "nothing happened", "choices": [ "the yellow cube collided with the wall", "the red cube collided with the wall", "the yellow cube collided with the blue sphere", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] }, { "question": "If the brown cube were removed, would the yellow cube still collide with the blue sphere?", "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": "What material is the red cube made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "red" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "How many blue objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "count" } ] }, { "question": "What shape is the blue object?", "answer": "sphere", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "If the red cube were removed, would the yellow cube still collide with the blue 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, 3 ] }, { "op": "query_existence" } ] }, { "question": "After the yellow cube collided with the red cube, will the yellow cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 33, "video_filename": "videos/video_00033.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cube", "material": "metal", "size": "large", "radius": 0.32873755103676594, "position": [ 0.7168624792872367, 1.3022854095080418 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3218577237809808, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17536395859318193, "position": [ 0.5811514042665393, -0.8570228796531842 ], "velocity": [ 0.11113316265318295, -0.8269323523100197 ], "spin": -0.8816056777680172, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3184067297431331, "position": [ -0.7715487958143666, 0.5022345471752476 ], "velocity": [ 1.1736126333540864, 0.891110067102097 ], "spin": -0.5856373408354645, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.17214354671300403, "position": [ -0.32510605398069736, 1.2230856722014816 ], "velocity": [ 1.5407928021036135, 0.0863050958949843 ], "spin": -0.45167038503486223, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 8, "objects": [ 0, 3 ], "description": "the blue cube collided with the yellow cylinder" }, { "frame": 11, "objects": [ 2, 3 ], "description": "the red cube collided with the yellow cylinder" }, { "frame": 27, "objects": [ 0, 3 ], "description": "the blue cube collided with the yellow cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 8, "cause_collision": { "frame": 8, "objects": [ 0, 3 ] } } ], "initially_moving": [ 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 8, "objects": [ 0, 3 ] }, { "frame": 11, "objects": [ 2, 3 ] }, { "frame": 27, "objects": [ 0, 3 ] } ], "starts": { "0": [ 8 ], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 1, 2, 3 ], "wall_hits": [ [ 22, 3, 1, 1 ], [ 31, 1, 1, -1 ], [ 42, 0, 0, 1 ] ] }, "questions": [ { "question": "If the red cube were removed, would the blue cube still collide with the yellow cylinder?", "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": "What color is the sphere?", "answer": "cyan", "choices": [ "purple", "green", "blue", "brown", "gray", "red", "yellow", "cyan" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "query_color" } ] }, { "question": "If the cyan sphere were removed, would the red cube still collide with the yellow 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": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "After the blue cube collided with the yellow cylinder, will the blue cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What shape is the blue object?", "answer": "cube", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "How many objects are there?", "answer": "4", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "What happened right after the blue cube collided with the yellow cylinder?", "answer": "the red cube collided with the yellow cylinder", "choices": [ "the red cube collided with the yellow cylinder", "the cyan sphere collided with the wall", "the blue cube collided with the yellow cylinder", "the blue cube started moving" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_after_event" } ] }, { "question": "What happened right after the blue cube collided with the yellow cylinder?", "answer": "nothing happened", "choices": [ "the red cube collided with the yellow cylinder", "the cyan sphere collided with the wall", "nothing happened", "the yellow cylinder collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 34, "video_filename": "videos/video_00034.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "cube", "material": "metal", "size": "large", "radius": 0.31790494750323384, "position": [ -0.8197185247874776, -0.5002451997050024 ], "velocity": [ -1.033338683654779, 0.4768343563031309 ], "spin": 0.6977794017699939, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.33092005100403993, "position": [ 1.0984876761584392, -0.19257643484098086 ], "velocity": [ 0.0, 0.0 ], "spin": 1.354441984485395, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3339083391368025, "position": [ 0.22711347761751788, 0.2787497877638361 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7065051840149361, "is_probe": false }, { "idx": 3, "color": "red", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3380846560560862, "position": [ -1.0146710124861054, 0.9251874306527863 ], "velocity": [ 0.0, 0.0 ], "spin": 0.682610781919915, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "cube", "material": "metal", "size": "small", "radius": 0.15208125437785588, "position": [ 0.8537975092395305, -1.1516153349426168 ], "velocity": [ 0.7216787486689777, -0.852102922096921 ], "spin": -0.3311336738453652, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 44, "objects": [ 0, 3 ], "description": "the green cube collided with the red sphere" }, { "frame": 61, "objects": [ 0, 2 ], "description": "the green cube collided with the blue cube" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 44, "cause_collision": { "frame": 44, "objects": [ 0, 3 ] } } ], "initially_moving": [ 0, 4 ] }, "raw_events": { "collisions": [ { "frame": 44, "objects": [ 0, 3 ] }, { "frame": 61, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 44 ], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 4 ], "wall_hits": [ [ 21, 4, 1, -1 ], [ 21, 0, 0, -1 ], [ 37, 4, 0, 1 ] ] }, "questions": [ { "question": "What happened right after the green cube collided with the red sphere?", "answer": "the green cube collided with the blue cube", "choices": [ "the green cube collided with the blue cube", "the red sphere started moving", "the green cube collided with the wall", "the yellow cube collided with the wall" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_after_event" } ] }, { "question": "If the yellow cube were removed, would the red sphere 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": 3 }, { "op": "query_motion_start" } ] }, { "question": "How many blue objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "count" } ] }, { "question": "How many sphere objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "If the blue cube were removed, would the red sphere still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "What happened right before the green cube collided with the blue cube?", "answer": "the green cube collided with the red sphere", "choices": [ "the red sphere started moving", "nothing happened", "the green cube collided with the red sphere", "the green cube collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_before_event" } ] }, { "question": "After the green cube collided with the blue cube, will the green 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": [ 0, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What color is the object in front of the green cube?", "answer": "yellow", "choices": [ "purple", "green", "red", "cyan", "gray", "yellow", "blue", "brown" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "green" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] } ] }, { "video_index": 35, "video_filename": "videos/video_00035.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.16802415860670905, "position": [ 0.23412136211027734, -1.0079759691906212 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4314795766748873, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2932380968217743, "position": [ -1.2105938247984063, 1.02937731130467 ], "velocity": [ -1.0037758274936257, -1.0944426398459657 ], "spin": -0.17706617407761005, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3085323494689882, "position": [ 0.6419035145918641, -0.21340671267374045 ], "velocity": [ 0.0, 0.0 ], "spin": -0.42739525650846577, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.14246428089870367, "position": [ -1.119253032723606, 0.36575321130747374 ], "velocity": [ 0.7407550662035354, -0.942735149415946 ], "spin": 1.264271256689561, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cube", "material": "metal", "size": "large", "radius": 0.3300625696052394, "position": [ -0.4461581519978135, -1.261782904075401 ], "velocity": [ 0.0, 0.0 ], "spin": 0.24892895146423832, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 38, "objects": [ 0, 3 ], "description": "the purple sphere collided with the cyan cube" }, { "frame": 38, "objects": [ 3, 4 ], "description": "the cyan cube collided with the brown cube" }, { "frame": 38, "objects": [ 0, 3 ], "description": "the purple sphere collided with the cyan cube" }, { "frame": 43, "objects": [ 1, 4 ], "description": "the yellow cylinder collided with the brown cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 38, "cause_collision": { "frame": 38, "objects": [ 0, 3 ] } }, { "object": 4, "type": "start", "frame": 43, "cause_collision": { "frame": 43, "objects": [ 1, 4 ] } } ], "initially_moving": [ 1, 3 ] }, "raw_events": { "collisions": [ { "frame": 38, "objects": [ 0, 3 ] }, { "frame": 38, "objects": [ 3, 4 ] }, { "frame": 38, "objects": [ 0, 3 ] }, { "frame": 43, "objects": [ 1, 4 ] } ], "starts": { "0": [ 38 ], "1": [], "2": [], "3": [], "4": [ 43 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 3 ], "wall_hits": [ [ 12, 1, 0, -1 ], [ 53, 4, 1, -1 ] ] }, "questions": [ { "question": "How many red objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "red" }, { "op": "count" } ] }, { "question": "If the cyan cube were removed, would the purple sphere 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": "Which object started moving right after the purple sphere collided with the cyan cube?", "answer": "the brown cube", "choices": [ "the yellow cylinder", "the red cylinder", "the brown cube", "none of them" ], "answer_index": 2, "question_type": "explanatory", "template": "who_started_after", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_after_motion_start" } ] }, { "question": "If the yellow 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": 1 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "After the purple sphere collided with the cyan cube, will the purple sphere 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, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What material is the red cylinder made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "red" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "How many metal objects are there?", "answer": "4", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What caused the brown cube to start moving?", "answer": "the collision with the yellow cylinder", "choices": [ "the collision with the cyan cube", "it was pushed by the wall", "the collision with the purple sphere", "the collision with the yellow cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 4 }, { "op": "query_motion_cause" } ] } ] }, { "video_index": 36, "video_filename": "videos/video_00036.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1839166471822687, "position": [ 0.7557794002286051, -0.8671204511280804 ], "velocity": [ -0.33372773860617627, 1.0192186276149384 ], "spin": 0.6588347231780145, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18596928553788344, "position": [ -0.5076873727108793, -1.3997123924344752 ], "velocity": [ 0.0, 0.0 ], "spin": -0.3122068477138422, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3107614191997298, "position": [ 0.7747473470737358, 0.31185833029637333 ], "velocity": [ 0.4437302247802879, -1.3866173265379218 ], "spin": -0.7738046301833774, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18625641693729458, "position": [ -0.5169034512830277, 0.5675257878924571 ], "velocity": [ 0.7900022059875259, -0.3943733021676127 ], "spin": -1.025269189091215, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 8, "objects": [ 0, 2 ], "description": "the red cylinder collided with the blue cylinder" }, { "frame": 24, "objects": [ 0, 1 ], "description": "the red cylinder collided with the gray sphere" }, { "frame": 36, "objects": [ 0, 1 ], "description": "the red cylinder collided with the gray sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 24, "cause_collision": { "frame": 24, "objects": [ 0, 1 ] } } ], "initially_moving": [ 0, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 8, "objects": [ 0, 2 ] }, { "frame": 24, "objects": [ 0, 1 ] }, { "frame": 36, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [ 24 ], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 2, 3 ], "wall_hits": [ [ 31, 1, 1, -1 ], [ 31, 2, 0, 1 ], [ 49, 1, 1, -1 ], [ 60, 1, 0, -1 ], [ 62, 0, 0, -1 ] ] }, "questions": [ { "question": "If the purple sphere were removed, would the red cylinder still collide with the gray sphere?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "What material is the blue cylinder made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "How many objects were moving when the red cylinder collided with the blue cylinder?", "answer": "3", "choices": [ "0", "1", "2", "3", "4" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the gray sphere were removed, would the red cylinder still collide with the blue 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the red cylinder collided with the gray sphere?", "answer": "4", "choices": [ "0", "1", "2", "3", "4" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many gray 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": "gray" }, { "op": "count" } ] }, { "question": "How many metal objects are there?", "answer": "2", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "After the red cylinder collided with the blue cylinder, will the red 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" } ] } ] }, { "video_index": 37, "video_filename": "videos/video_00037.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.14234757077512647, "position": [ 0.9761992196120428, -1.420807086865874 ], "velocity": [ 0.21728139087942352, -0.7530372499610998 ], "spin": 0.9588794404506782, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.15675767862134435, "position": [ -0.21294972624427677, -0.6145302139181318 ], "velocity": [ 0.8383691375429493, 0.518442158546215 ], "spin": -0.13253438629554304, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.15148083818676836, "position": [ -0.8998982609428224, 0.5666553369023883 ], "velocity": [ -0.8317772247843364, -0.07174273627186518 ], "spin": -1.30985078462449, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.16170751478202683, "position": [ 0.31186625386268263, -0.04044061331754367 ], "velocity": [ -1.4376066043258717, -0.6711185293350115 ], "spin": -0.3507024605377862, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 5, "objects": [ 1, 3 ], "description": "the green cylinder collided with the blue cylinder" }, { "frame": 34, "objects": [ 2, 3 ], "description": "the gray cylinder collided with the blue cylinder" }, { "frame": 41, "objects": [ 2, 3 ], "description": "the gray cylinder collided with the blue cylinder" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 5, "objects": [ 1, 3 ] }, { "frame": 34, "objects": [ 2, 3 ] }, { "frame": 41, "objects": [ 2, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 14, 0, 1, -1 ], [ 30, 2, 0, -1 ], [ 36, 2, 0, -1 ], [ 51, 1, 1, -1 ] ] }, "questions": [ { "question": "What shape is the purple object?", "answer": "sphere", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "After the green cylinder collided with the blue cylinder, will the green cylinder collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the gray cylinder were removed, would the green cylinder still collide with the blue cylinder?", "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 happened right before the gray cylinder collided with the blue cylinder?", "answer": "the gray cylinder collided with the blue cylinder", "choices": [ "the gray cylinder collided with the blue cylinder", "the purple sphere collided with the wall", "the green cylinder collided with the blue cylinder", "nothing happened" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_before_event" } ] }, { "question": "What material is the green cylinder made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "How many objects were moving when the green cylinder collided with the blue cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many objects are there?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 4, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "If the green cylinder were removed, would the gray cylinder still collide with the blue cylinder?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 38, "video_filename": "videos/video_00038.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14254056350911734, "position": [ -0.6981296466844642, 0.45887655198069743 ], "velocity": [ 0.5836462747833147, -1.2582295302952047 ], "spin": -0.07649460534277264, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2995240571264693, "position": [ -0.08594174498479612, 1.440000776501366 ], "velocity": [ 1.6573830925049655, -0.10563235600134989 ], "spin": -0.6775652981190385, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2822458835660445, "position": [ -1.3297212359732267, -1.4046978559230066 ], "velocity": [ 0.0, 0.0 ], "spin": -0.289571052141528, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.19318913118609898, "position": [ 1.3887290530591347, -0.2519501112547573 ], "velocity": [ 0.8478962258205048, -0.7824185474949615 ], "spin": -1.4961695172058445, "is_probe": false }, { "idx": 4, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1473016432516823, "position": [ 1.3340586854624676, 1.276425410090596 ], "velocity": [ -0.566752614941486, 1.1293246035892854 ], "spin": -0.21309508239269914, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 1, 4 ], "description": "the blue cylinder collided with the red cylinder" }, { "frame": 52, "objects": [ 0, 3 ], "description": "the brown cube collided with the yellow cube" } ], "motion_events": [], "initially_moving": [ 0, 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 1, 4 ] }, { "frame": 52, "objects": [ 0, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 3, 4 ], "wall_hits": [ [ 12, 3, 0, 1 ], [ 13, 4, 1, 1 ], [ 16, 4, 1, 1 ], [ 32, 1, 0, 1 ], [ 50, 0, 1, -1 ], [ 57, 3, 1, -1 ] ] }, "questions": [ { "question": "What happened right after the blue cylinder collided with the red cylinder?", "answer": "the brown cube collided with the yellow cube", "choices": [ "nothing happened", "the red cylinder collided with the wall", "the brown cube collided with the yellow cube", "the brown cube collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_after_event" } ] }, { "question": "How many metal objects are there?", "answer": "2", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What material is the yellow cube made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "If the purple cube were removed, would the blue cylinder still collide with the red cylinder?", "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, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the brown cube collided with the yellow cube?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "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 blue cylinder were removed, would the brown cube 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": 1 }, { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "Will the brown cube collide with the yellow cube 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": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "How many blue objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "count" } ] } ] }, { "video_index": 39, "video_filename": "videos/video_00039.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3118515307421313, "position": [ -1.430675593626427, 0.8441437798203466 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3394291902272486, "is_probe": false }, { "idx": 1, "color": "green", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.27488595556068507, "position": [ 0.4042574995073558, 1.0539322541947331 ], "velocity": [ 1.3500316330709938, 0.4354267196757818 ], "spin": -0.9944512305324147, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.28087766070377895, "position": [ 1.530326139625225, 0.6488692431969663 ], "velocity": [ 0.24405675757404005, -1.129814882704979 ], "spin": 1.1838070348824576, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cube", "material": "metal", "size": "small", "radius": 0.1654086170486947, "position": [ 1.40707577862398, -0.7113115728456701 ], "velocity": [ 0.0, 0.0 ], "spin": 1.3669983762695601, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.31432453669447147, "position": [ -0.26865764920851176, -1.5431813910956085 ], "velocity": [ 0.8809271833999541, 0.33983270009164224 ], "spin": -0.7628928584223283, "is_probe": false }, { "idx": 5, "color": "red", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.27274360628024824, "position": [ -0.6626195418147649, -0.6202685170229993 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2498559076013542, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 23, "objects": [ 2, 3 ], "description": "the cyan sphere collided with the blue cube" }, { "frame": 31, "objects": [ 3, 4 ], "description": "the blue cube collided with the gray cube" }, { "frame": 34, "objects": [ 2, 3 ], "description": "the cyan sphere collided with the blue cube" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 23, "cause_collision": { "frame": 23, "objects": [ 2, 3 ] } } ], "initially_moving": [ 1, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 23, "objects": [ 2, 3 ] }, { "frame": 31, "objects": [ 3, 4 ] }, { "frame": 34, "objects": [ 2, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 23 ], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [ 59 ], "5": [] }, "initially_moving": [ 1, 2, 4 ], "wall_hits": [ [ 20, 2, 0, 1 ], [ 25, 1, 0, 1 ], [ 25, 2, 0, 1 ], [ 39, 2, 0, 1 ], [ 41, 1, 1, 1 ], [ 47, 3, 0, 1 ], [ 55, 3, 1, -1 ] ] }, "questions": [ { "question": "What color is the object in front of the red sphere?", "answer": "gray", "choices": [ "green", "brown", "cyan", "purple", "yellow", "red", "blue", "gray" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "How many objects were moving when the cyan sphere collided with the blue cube?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the cyan sphere were removed, would the blue cube still collide with the gray 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": [ 3, 4 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the blue cube collided with the gray cube?", "answer": "the cyan sphere collided with the blue cube", "choices": [ "the blue cube started moving", "nothing happened", "the blue cube collided with the wall", "the cyan sphere collided with the blue cube" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_after_event" } ] }, { "question": "Will the cyan sphere collide with the blue cube 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, 3 ] }, { "op": "query_existence" } ] }, { "question": "How many metal objects are there?", "answer": "3", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "If the green sphere were removed, would the blue cube still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "How many cube objects are there?", "answer": "2", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "count" } ] } ] }, { "video_index": 40, "video_filename": "videos/video_00040.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19903446991895726, "position": [ -0.10138458919970161, -0.8102331488187491 ], "velocity": [ 0.14500149350852065, 1.6212212052848192 ], "spin": 1.2840763008100398, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.336098764458414, "position": [ 0.6052548966341027, 1.3856690527920843 ], "velocity": [ 0.0, 0.0 ], "spin": 1.459149966185576, "is_probe": false }, { "idx": 2, "color": "green", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2908275917408903, "position": [ 1.272267990978251, -0.7474214015470945 ], "velocity": [ 0.0, 0.0 ], "spin": 0.15246704907717157, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1695657328120264, "position": [ -1.5041718548005134, 0.2679655807321186 ], "velocity": [ -1.2111916608720579, -0.3363780630757837 ], "spin": -0.936572556109875, "is_probe": false }, { "idx": 4, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1630211472508416, "position": [ -0.28059763987778275, 0.06710418352601821 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8778322777850976, "is_probe": false }, { "idx": 5, "color": "yellow", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.19667701312659003, "position": [ -1.0660672132319544, -1.0377760468066068 ], "velocity": [ 1.182833467010604, 1.010958120109487 ], "spin": 1.150346214330476, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 9, "objects": [ 0, 4 ], "description": "the purple cylinder collided with the red cylinder" }, { "frame": 61, "objects": [ 0, 5 ], "description": "the purple cylinder collided with the yellow cube" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 9, "cause_collision": { "frame": 9, "objects": [ 0, 4 ] } } ], "initially_moving": [ 0, 3, 5 ] }, "raw_events": { "collisions": [ { "frame": 9, "objects": [ 0, 4 ] }, { "frame": 61, "objects": [ 0, 5 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 9 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 3, 5 ], "wall_hits": [ [ 6, 3, 0, -1 ], [ 60, 0, 0, 1 ] ] }, "questions": [ { "question": "What happened right after the purple cylinder collided with the yellow cube?", "answer": "nothing happened", "choices": [ "the cyan sphere collided with the wall", "the purple cylinder collided with the red cylinder", "the purple cylinder collided with the wall", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "query_after_event" } ] }, { "question": "Will the purple cylinder 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, 3 ] }, { "op": "query_existence" } ] }, { "question": "How many cylinder 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": "cylinder" }, { "op": "count" } ] }, { "question": "If the red cylinder were removed, would the purple cylinder still collide with the yellow 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": [ 0, 5 ] }, { "op": "query_existence" } ] }, { "question": "How many sphere objects are there?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 3, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "How many objects were moving when the purple cylinder collided with the red cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "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 color is the object behind the cyan sphere?", "answer": "blue", "choices": [ "red", "gray", "brown", "yellow", "green", "cyan", "blue", "purple" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "If the green sphere were removed, would the purple cylinder still collide with the red cylinder?", "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, 4 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 41, "video_filename": "videos/video_00041.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2840333607108395, "position": [ -0.787667266862593, 1.0665851905547308 ], "velocity": [ -1.0308721289943907, -0.8513830391507992 ], "spin": -1.1931976181546622, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3011180618318304, "position": [ -1.4614116062451226, -0.2524759097726448 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8248530861004529, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.18171486811155385, "position": [ 0.2337342395445785, -0.4110593321991389 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7234625031772398, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3021004741566109, "position": [ -0.2853320741182688, 0.29819590060356904 ], "velocity": [ 0.14125904760690008, -0.8877204534582056 ], "spin": -1.2060412826334632, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19373437102217708, "position": [ 0.6206654812704822, -1.0889100545194117 ], "velocity": [ 0.8889860112440761, -0.10666301585730126 ], "spin": -0.5489772177756568, "is_probe": false }, { "idx": 5, "color": "brown", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1588736238261323, "position": [ 0.43634806815021565, 0.7234042210730196 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4442049740359661, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 2, 3 ], "description": "the blue cylinder collided with the green cube" }, { "frame": 24, "objects": [ 0, 1 ], "description": "the gray cube collided with the yellow cylinder" }, { "frame": 59, "objects": [ 1, 3 ], "description": "the yellow cylinder collided with the green cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 24, "cause_collision": { "frame": 24, "objects": [ 0, 1 ] } }, { "object": 2, "type": "start", "frame": 14, "cause_collision": { "frame": 14, "objects": [ 2, 3 ] } } ], "initially_moving": [ 0, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 2, 3 ] }, { "frame": 24, "objects": [ 0, 1 ] }, { "frame": 59, "objects": [ 1, 3 ] } ], "starts": { "0": [], "1": [ 24 ], "2": [ 14 ], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 3, 4 ], "wall_hits": [ [ 23, 0, 0, -1 ], [ 35, 4, 0, 1 ] ] }, "questions": [ { "question": "If the brown cylinder were removed, would the yellow cylinder still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "How many green objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "green" }, { "op": "count" } ] }, { "question": "How many yellow 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": "yellow" }, { "op": "count" } ] }, { "question": "What happened right before the gray cube collided with the yellow cylinder?", "answer": "the blue cylinder collided with the green cube", "choices": [ "the blue cylinder collided with the green cube", "the blue cylinder started moving", "nothing happened", "the yellow cylinder collided with the green cube" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "If the purple cylinder were removed, would the yellow cylinder still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "What shape is the brown object?", "answer": "cylinder", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "What happened right after the gray cube collided with the yellow cylinder?", "answer": "the yellow cylinder collided with the green cube", "choices": [ "the blue cylinder started moving", "the blue cylinder collided with the green cube", "nothing happened", "the yellow cylinder collided with the green cube" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "Will the yellow cylinder collide with the brown cylinder 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, 5 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 42, "video_filename": "videos/video_00042.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.18207816078518468, "position": [ -0.22649991882756804, -0.3593046478409523 ], "velocity": [ 1.1976663604127693, 0.11385034079035392 ], "spin": -0.26854576575923295, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.3167029862503955, "position": [ 0.04346741505461349, 1.1970010609084547 ], "velocity": [ 1.533707486065173, -0.6453272579400147 ], "spin": 1.4090456716279256, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17476777429247575, "position": [ -1.3892999963491237, -0.7148941824901722 ], "velocity": [ 0.0, 0.0 ], "spin": -0.49311211841161295, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3263583350754559, "position": [ -1.360682654961937, 0.4329179126386895 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4288938829702933, "is_probe": false }, { "idx": 4, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.19835962806071322, "position": [ 0.7778327375700351, -0.5995615083793392 ], "velocity": [ 0.6993567516480942, 0.5713579560497677 ], "spin": -0.06514464010882826, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.15233458058556984, "position": [ -0.940402809369185, -1.3344789569545426 ], "velocity": [ -1.053491806565, 1.0482531648346254 ], "spin": 0.7877009472736844, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 7, "objects": [ 2, 5 ], "description": "the yellow cube collided with the purple sphere" }, { "frame": 20, "objects": [ 2, 3 ], "description": "the yellow cube collided with the blue cylinder" }, { "frame": 28, "objects": [ 1, 4 ], "description": "the brown sphere collided with the green sphere" }, { "frame": 30, "objects": [ 0, 4 ], "description": "the red cube collided with the green sphere" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 7, "cause_collision": { "frame": 7, "objects": [ 2, 5 ] } }, { "object": 3, "type": "start", "frame": 20, "cause_collision": { "frame": 20, "objects": [ 2, 3 ] } } ], "initially_moving": [ 0, 1, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 7, "objects": [ 2, 5 ] }, { "frame": 20, "objects": [ 2, 3 ] }, { "frame": 28, "objects": [ 1, 4 ] }, { "frame": 30, "objects": [ 0, 4 ] } ], "starts": { "0": [], "1": [], "2": [ 7 ], "3": [ 20 ], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 4, 5 ], "wall_hits": [ [ 22, 2, 0, -1 ], [ 26, 2, 0, -1 ], [ 28, 1, 0, 1 ], [ 30, 5, 0, -1 ], [ 36, 4, 0, 1 ] ] }, "questions": [ { "question": "If the red cube were removed, would the yellow cube still collide with the blue cylinder?", "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 caused the yellow cube to start moving?", "answer": "the collision with the purple sphere", "choices": [ "nothing - it was already moving", "the collision with the purple sphere", "the collision with the brown sphere", "it was pushed by the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 2 }, { "op": "query_motion_cause" } ] }, { "question": "Will the yellow cube collide with the green 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": [ 2, 4 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the green object?", "answer": "sphere", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "green" }, { "op": "query_shape" } ] }, { "question": "If the blue cylinder were removed, would the red cube still collide with the green 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": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "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 objects were moving when the red cube collided with the green sphere?", "answer": "6", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What material is the brown sphere 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": "sphere" }, { "op": "query_material" } ] } ] }, { "video_index": 43, "video_filename": "videos/video_00043.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14223923696476806, "position": [ 0.924525446924316, 1.1303930123330554 ], "velocity": [ -0.009689111838918317, -1.1682135553825426 ], "spin": -0.4783686418006323, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.17294404977127315, "position": [ 1.404874425283612, -1.2090350582804952 ], "velocity": [ 0.0, 0.0 ], "spin": 1.0787403393554844, "is_probe": false }, { "idx": 2, "color": "green", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.16767750269531184, "position": [ -0.7214565825127344, -0.670544567851041 ], "velocity": [ 1.031982314233691, -0.34138448108707736 ], "spin": 0.7698592915721711, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.19417339541964695, "position": [ -0.4830032617494129, 0.3558796919387395 ], "velocity": [ 1.1651126545482564, 0.6074819660896524 ], "spin": 0.08788047139985622, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "cube", "material": "metal", "size": "large", "radius": 0.29732900587981637, "position": [ -1.438633831043135, -0.3286262520719734 ], "velocity": [ 1.2410508412607664, -0.20461469255767845 ], "spin": 0.4974830651728692, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 41, "objects": [ 0, 4 ], "description": "the gray cube collided with the cyan cube" }, { "frame": 47, "objects": [ 0, 1 ], "description": "the gray cube collided with the purple sphere" }, { "frame": 47, "objects": [ 1, 2 ], "description": "the purple sphere collided with the green sphere" }, { "frame": 60, "objects": [ 1, 2 ], "description": "the purple sphere collided with the green sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 47, "cause_collision": { "frame": 47, "objects": [ 0, 1 ] } } ], "initially_moving": [ 0, 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 41, "objects": [ 0, 4 ] }, { "frame": 47, "objects": [ 0, 1 ] }, { "frame": 47, "objects": [ 1, 2 ] }, { "frame": 60, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [ 47 ], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 3, 4 ], "wall_hits": [ [ 54, 3, 0, 1 ], [ 56, 1, 0, 1 ], [ 56, 1, 1, -1 ], [ 60, 0, 0, 1 ], [ 63, 1, 0, 1 ] ] }, "questions": [ { "question": "What shape is the gray object?", "answer": "cube", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "query_shape" } ] }, { "question": "If the brown sphere were removed, would the purple sphere still collide with the green sphere?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the purple sphere collided with the green sphere?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the gray cube collide with the cyan cube 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": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "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": "If the brown sphere were removed, would the gray cube still collide with the cyan 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": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "What caused the purple sphere to start moving?", "answer": "the collision with the gray cube", "choices": [ "the collision with the gray cube", "nothing - it was already moving", "the collision with the cyan cube", "it was pushed by the wall" ], "answer_index": 0, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 1 }, { "op": "query_motion_cause" } ] } ] }, { "video_index": 44, "video_filename": "videos/video_00044.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2741640706988671, "position": [ 0.8913766521247413, 0.7005982521211587 ], "velocity": [ -0.22216665101925914, 1.1367414316686462 ], "spin": 0.42498065689097686, "is_probe": false }, { "idx": 1, "color": "red", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1908349467671183, "position": [ 1.2607245072768143, -0.10025735037167993 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3413118745727801, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.3367936878838721, "position": [ -1.3368648204878888, -0.6460127006957695 ], "velocity": [ 0.0, 0.0 ], "spin": 1.423569366965312, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2850918275284639, "position": [ 0.5570869206765712, -1.4693476748842225 ], "velocity": [ 1.605118736213044, 0.10477485499008068 ], "spin": 0.011173998127457452, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "cube", "material": "metal", "size": "small", "radius": 0.1893880184037186, "position": [ -0.12575187884431793, 0.43284351085101713 ], "velocity": [ 1.0624873108203354, 0.9081769083120995 ], "spin": 0.7604859843105118, "is_probe": false }, { "idx": 5, "color": "green", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.16669331431576065, "position": [ -1.169960510491684, 1.0119442332916038 ], "velocity": [ -0.059627715076694364, 1.6158125921132778 ], "spin": 0.4258664323570449, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 16, "objects": [ 0, 4 ], "description": "the yellow sphere collided with the cyan cube" }, { "frame": 23, "objects": [ 0, 4 ], "description": "the yellow sphere collided with the cyan cube" }, { "frame": 51, "objects": [ 2, 5 ], "description": "the blue cube collided with the green cube" }, { "frame": 56, "objects": [ 1, 4 ], "description": "the red sphere collided with the cyan cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 56, "cause_collision": { "frame": 56, "objects": [ 1, 4 ] } }, { "object": 2, "type": "start", "frame": 51, "cause_collision": { "frame": 51, "objects": [ 2, 5 ] } } ], "initially_moving": [ 0, 3, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 16, "objects": [ 0, 4 ] }, { "frame": 23, "objects": [ 0, 4 ] }, { "frame": 51, "objects": [ 2, 5 ] }, { "frame": 56, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [ 56 ], "2": [ 51 ], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 3, 4, 5 ], "wall_hits": [ [ 13, 5, 1, 1 ], [ 18, 3, 0, 1 ], [ 21, 0, 1, 1 ], [ 28, 0, 1, 1 ], [ 50, 4, 0, 1 ] ] }, "questions": [ { "question": "If the cyan cube were removed, would the blue cube 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": 2 }, { "op": "query_motion_start" } ] }, { "question": "What happened right before the blue cube collided with the green cube?", "answer": "the yellow sphere collided with the cyan cube", "choices": [ "the red sphere collided with the cyan cube", "nothing happened", "the green cube collided with the wall", "the yellow sphere collided with the cyan cube" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 5 ] }, { "op": "query_before_event" } ] }, { "question": "What caused the red sphere to start moving?", "answer": "the collision with the cyan cube", "choices": [ "it was pushed by the wall", "nothing - it was already moving", "the collision with the cyan cube", "the collision with the yellow sphere" ], "answer_index": 2, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 1 }, { "op": "query_motion_cause" } ] }, { "question": "What shape is the red object?", "answer": "sphere", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "After the red sphere collided with the cyan cube, will the red sphere collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the blue cube were removed, would the yellow 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": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "question": "What material is the blue cube made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] } ] }, { "video_index": 45, "video_filename": "videos/video_00045.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.28817501155575426, "position": [ -1.2809149828290476, 0.4645960076675373 ], "velocity": [ 1.274141921987719, 0.8037744387592017 ], "spin": -0.3817712311615389, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.31604095483962175, "position": [ -0.0973730448984731, 0.6216672567963453 ], "velocity": [ 0.0, 0.0 ], "spin": -0.5414880560872322, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.14445027078143646, "position": [ 0.2562689091175028, -1.5063977844623724 ], "velocity": [ 0.562610492410058, -1.540931980963373 ], "spin": 1.0466417851945198, "is_probe": false }, { "idx": 3, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.19078710892606898, "position": [ -0.7596241135364391, -1.0072123042434886 ], "velocity": [ 0.0, 0.0 ], "spin": -0.273749273282448, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2727801794366717, "position": [ 1.0959540425726055, 0.7293190799933489 ], "velocity": [ -0.46331396257598984, 1.252059589924797 ], "spin": 1.3794325521882937, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 12, "objects": [ 0, 1 ], "description": "the yellow sphere collided with the gray cube" }, { "frame": 38, "objects": [ 1, 4 ], "description": "the gray cube collided with the purple cylinder" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 12, "cause_collision": { "frame": 12, "objects": [ 0, 1 ] } } ], "initially_moving": [ 0, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 12, "objects": [ 0, 1 ] }, { "frame": 38, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [ 12 ], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 4 ], "wall_hits": [ [ 5, 2, 1, -1 ], [ 20, 4, 1, 1 ], [ 30, 0, 1, 1 ] ] }, "questions": [ { "question": "Will the green sphere collide with the purple cylinder 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": [ 3, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the green sphere were removed, would the gray 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": 1 }, { "op": "query_motion_start" } ] }, { "question": "If the brown sphere were removed, would the yellow sphere still collide with the gray 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, 1 ] }, { "op": "query_existence" } ] }, { "question": "How many sphere objects are there?", "answer": "3", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "What caused the gray cube to start moving?", "answer": "the collision with the yellow sphere", "choices": [ "the collision with the purple cylinder", "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": 1 }, { "op": "query_motion_cause" } ] }, { "question": "How many cylinder objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 1, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "op": "count" } ] }, { "question": "How many metal objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What happened right before the gray cube collided with the purple cylinder?", "answer": "the yellow sphere collided with the gray cube", "choices": [ "the yellow sphere collided with the wall", "the yellow sphere collided with the gray cube", "nothing happened", "the purple cylinder collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_before_event" } ] } ] }, { "video_index": 46, "video_filename": "videos/video_00046.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2748073063779615, "position": [ 0.20498197993834477, -0.5484398745699182 ], "velocity": [ 0.0, 0.0 ], "spin": 0.49874460442821533, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.19303922090652692, "position": [ -0.6012613553485954, -0.177085244149908 ], "velocity": [ 0.7836833361195258, -0.8308135071607285 ], "spin": 1.0952921283684702, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17677715680782194, "position": [ 0.180295669906807, -1.4655154616592774 ], "velocity": [ -0.0062524677695176435, -0.7004211589458301 ], "spin": -0.25736596777974396, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.32543213792327863, "position": [ -0.6574341782841117, 0.7905783810858227 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8769098988518067, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.19095083665688137, "position": [ -1.4558298790689335, 0.6672839095613388 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1541638513468166, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 11, "objects": [ 0, 1 ], "description": "the yellow sphere collided with the purple sphere" }, { "frame": 34, "objects": [ 1, 2 ], "description": "the purple sphere collided with the blue cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 11, "cause_collision": { "frame": 11, "objects": [ 0, 1 ] } } ], "initially_moving": [ 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 11, "objects": [ 0, 1 ] }, { "frame": 34, "objects": [ 1, 2 ] } ], "starts": { "0": [ 11 ], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 2 ], "wall_hits": [ [ 13, 2, 1, -1 ], [ 56, 1, 1, -1 ], [ 62, 0, 0, 1 ] ] }, "questions": [ { "question": "How many metal objects are there?", "answer": "3", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What happened right after the purple sphere collided with the blue cube?", "answer": "nothing happened", "choices": [ "the yellow sphere started moving", "nothing happened", "the yellow sphere collided with the wall", "the purple sphere collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "Will the purple sphere collide with the gray 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": [ 1, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the purple sphere were removed, would the yellow sphere still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "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 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": "How many rubber objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "question": "How many objects were moving when the yellow sphere collided with the purple 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": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the cyan sphere were removed, would the yellow sphere 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": 0 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 47, "video_filename": "videos/video_00047.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.33808516430629076, "position": [ 7.276985361026611e-05, 1.441970024542355 ], "velocity": [ -1.4421876597857775, 0.6195260275676254 ], "spin": 0.2938049250031538, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3381394541083633, "position": [ 1.0854420871770858, 0.4005991732931877 ], "velocity": [ -0.6495716840001585, -1.3005666496008017 ], "spin": -1.3283788326483998, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19564929558978292, "position": [ 0.41049645803921586, -1.1573136835289777 ], "velocity": [ 0.5054417379602195, 0.8012071938491251 ], "spin": -0.9017463311879201, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3320185520756519, "position": [ 0.014032632383668808, -0.090203357035189 ], "velocity": [ 0.0, 0.0 ], "spin": 1.2049033447367203, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1860677137838327, "position": [ -0.5894153124409217, -1.302103700528997 ], "velocity": [ 0.0, 0.0 ], "spin": 0.7159739262455913, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 12, "objects": [ 1, 2 ], "description": "the purple cylinder collided with the brown cylinder" }, { "frame": 27, "objects": [ 1, 2 ], "description": "the purple cylinder collided with the brown cylinder" }, { "frame": 33, "objects": [ 1, 3 ], "description": "the purple cylinder collided with the green cylinder" }, { "frame": 58, "objects": [ 0, 3 ], "description": "the gray cube collided with the green cylinder" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 33, "cause_collision": { "frame": 33, "objects": [ 1, 3 ] } } ], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 12, "objects": [ 1, 2 ] }, { "frame": 27, "objects": [ 1, 2 ] }, { "frame": 33, "objects": [ 1, 3 ] }, { "frame": 58, "objects": [ 0, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 33 ], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 9, 0, 1, 1 ], [ 21, 2, 1, -1 ], [ 30, 0, 0, -1 ], [ 33, 2, 1, -1 ] ] }, "questions": [ { "question": "What shape is the brown object?", "answer": "cylinder", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "After the gray cube collided with the green cylinder, will the gray cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the gray cube were removed, would the green cylinder still start moving?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "What happened right after the purple cylinder collided with the brown cylinder?", "answer": "the purple cylinder collided with the green cylinder", "choices": [ "the purple cylinder collided with the green cylinder", "the purple cylinder collided with the brown cylinder", "the green cylinder started moving", "the brown cylinder collided with the wall" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "If the green cylinder were removed, would the purple cylinder still collide with the brown cylinder?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "What material is the cyan sphere made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "What material is the green cylinder made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "What happened right before the purple cylinder collided with the brown cylinder?", "answer": "nothing happened", "choices": [ "the brown cylinder collided with the wall", "nothing happened", "the gray cube collided with the green cylinder", "the gray cube collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] } ] }, { "video_index": 48, "video_filename": "videos/video_00048.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14970509821798447, "position": [ 1.3919072904580585, 0.35596722468466546 ], "velocity": [ -1.1047969095559127, 0.029832651625506565 ], "spin": -0.08927871250386232, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2782920938176409, "position": [ -0.7063932777507779, -1.4347467310666038 ], "velocity": [ -0.15696784155846916, -1.5791587024826215 ], "spin": -0.6857293248231112, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2888582172319276, "position": [ -0.6579142095620416, 0.4858025713318963 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4452884988270291, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 37, "objects": [ 1, 2 ], "description": "the purple cube collided with the brown sphere" }, { "frame": 39, "objects": [ 0, 2 ], "description": "the gray cube collided with the brown sphere" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 37, "cause_collision": { "frame": 37, "objects": [ 1, 2 ] } } ], "initially_moving": [ 0, 1 ] }, "raw_events": { "collisions": [ { "frame": 37, "objects": [ 1, 2 ] }, { "frame": 39, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [ 37 ] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1 ], "wall_hits": [ [ 4, 1, 1, -1 ] ] }, "questions": [ { "question": "After the purple cube collided with the brown sphere, will the purple 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": [ 1, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "How many objects are there?", "answer": "3", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "How many objects were moving when the purple cube collided with the brown sphere?", "answer": "3", "choices": [ "0", "1", "2", "3" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the gray cube were removed, would the purple cube still collide with the brown 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "If the purple cube were removed, would the brown sphere still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 2 }, { "op": "query_motion_start" } ] }, { "question": "What material is the purple cube made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "What caused the brown sphere to start moving?", "answer": "the collision with the purple cube", "choices": [ "nothing - it was already moving", "the collision with the purple cube", "the collision with the gray cube", "it was pushed by the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 2 }, { "op": "query_motion_cause" } ] }, { "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" } ] } ] }, { "video_index": 49, "video_filename": "videos/video_00049.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3221512914326215, "position": [ -0.7024188928415003, 0.8292267492367784 ], "velocity": [ 0.0, 0.0 ], "spin": 1.0047400355429543, "is_probe": false }, { "idx": 1, "color": "green", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.3225235262094551, "position": [ 0.9735246149095078, -0.10567535705673592 ], "velocity": [ 1.4137124564523595, -0.6532150815949831 ], "spin": 0.3380844422375553, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19202318483183986, "position": [ -0.48395159411008337, -0.9331346149881079 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8861065650235833, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3188909350880065, "position": [ -0.9757312504675342, -0.0020620474180599313 ], "velocity": [ 0.0, 0.0 ], "spin": -0.28197351700223283, "is_probe": false }, { "idx": 4, "color": "red", "shape": "cube", "material": "metal", "size": "large", "radius": 0.31779600407823183, "position": [ 0.6016187163995392, -1.4992980067385375 ], "velocity": [ 0.0, 0.0 ], "spin": 0.12045697815893819, "is_probe": false }, { "idx": 5, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3013456573663664, "position": [ -0.9753449138840373, -1.5347245039594468 ], "velocity": [ -0.36627653451813214, -1.1869120014172947 ], "spin": -0.342931117284466, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 31, "objects": [ 1, 4 ], "description": "the green sphere collided with the red cube" }, { "frame": 37, "objects": [ 3, 5 ], "description": "the blue cylinder collided with the cyan cylinder" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 37, "cause_collision": { "frame": 37, "objects": [ 3, 5 ] } }, { "object": 4, "type": "start", "frame": 31, "cause_collision": { "frame": 31, "objects": [ 1, 4 ] } } ], "initially_moving": [ 1, 5 ] }, "raw_events": { "collisions": [ { "frame": 31, "objects": [ 1, 4 ] }, { "frame": 37, "objects": [ 3, 5 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 37 ], "4": [ 31 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 5 ], "wall_hits": [ [ 3, 5, 1, -1 ], [ 12, 1, 0, 1 ], [ 41, 4, 1, -1 ], [ 48, 5, 0, -1 ] ] }, "questions": [ { "question": "If the cyan cylinder were removed, would the blue cylinder still start moving?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "What material is the purple cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "How many objects were moving when the green sphere collided with the red cube?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many objects were moving when the blue cylinder collided with the cyan cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many rubber objects are there?", "answer": "2", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "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": "Will the blue cylinder collide with the cyan cylinder 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": "If the green sphere were removed, would the blue cylinder 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": 3 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 50, "video_filename": "videos/video_00050.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18823177562134746, "position": [ -0.04198955807020455, -0.24877966292502185 ], "velocity": [ -1.0465450361412025, 0.13090263223710755 ], "spin": 0.04155908722925927, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.31921514227856745, "position": [ 1.3998891316463562, 0.3163518696231251 ], "velocity": [ 1.3392364328138642, 0.8932711130941999 ], "spin": -1.4505840071463951, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.26355734081167825, "position": [ -0.8632398583743011, 1.054895737003011 ], "velocity": [ -0.53250308046621, -1.1034774702277803 ], "spin": -0.23811520524915597, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 22, "objects": [ 0, 2 ], "description": "the blue sphere collided with the purple sphere" }, { "frame": 46, "objects": [ 0, 2 ], "description": "the blue sphere collided with the purple sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 22, "objects": [ 0, 2 ] }, { "frame": 46, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 5, 1, 0, 1 ], [ 32, 2, 0, -1 ], [ 41, 1, 1, 1 ] ] }, "questions": [ { "question": "If the brown cube were removed, would the blue sphere still collide with the purple 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": [ 0, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the blue sphere collided with the purple sphere?", "answer": "nothing happened", "choices": [ "the purple sphere collided with the wall", "the blue sphere collided with the purple sphere", "the brown cube collided with the wall", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] }, { "question": "What happened right after the blue sphere collided with the purple sphere?", "answer": "the blue sphere collided with the purple sphere", "choices": [ "the brown cube collided with the wall", "the blue sphere collided with the purple sphere", "nothing happened", "the purple sphere collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] }, { "question": "If the brown cube were removed, would the blue sphere still collide with the purple 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": [ 0, 2 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object right of the blue sphere?", "answer": "brown", "choices": [ "blue", "cyan", "yellow", "gray", "red", "green", "brown", "purple" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "Will the blue sphere collide with the purple 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": [ 0, 2 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object left of the blue sphere?", "answer": "purple", "choices": [ "green", "yellow", "purple", "blue", "cyan", "gray", "red", "brown" ], "answer_index": 2, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "What shape is the brown object?", "answer": "cube", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] } ] }, { "video_index": 51, "video_filename": "videos/video_00051.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.19842462128813815, "position": [ -0.838327732220764, -0.09050613030142984 ], "velocity": [ -0.26030856351871334, 1.1493283794130202 ], "spin": 0.8751773486736001, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.14328422426654783, "position": [ -0.3544440874267867, -1.3738520996854349 ], "velocity": [ -0.057283232376871905, 1.154483186518269 ], "spin": 0.025863519060886242, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2959770698440133, "position": [ -0.21009473843599102, 0.7892034240097001 ], "velocity": [ -0.7748624468827884, -1.2516323863296064 ], "spin": -1.3331435469228912, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 7, "objects": [ 0, 2 ], "description": "the yellow cylinder collided with the purple sphere" }, { "frame": 20, "objects": [ 1, 2 ], "description": "the red cube collided with the purple sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 7, "objects": [ 0, 2 ] }, { "frame": 20, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 25, 0, 0, -1 ], [ 49, 1, 1, -1 ], [ 60, 0, 1, 1 ], [ 62, 1, 0, -1 ] ] }, "questions": [ { "question": "What happened right after the red cube collided with the purple sphere?", "answer": "nothing happened", "choices": [ "the yellow cylinder collided with the purple sphere", "the yellow cylinder collided with the wall", "nothing happened", "the red cube collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "What color is the sphere?", "answer": "purple", "choices": [ "purple", "red", "green", "brown", "gray", "cyan", "blue", "yellow" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "query_color" } ] }, { "question": "What color is the object behind the yellow cylinder?", "answer": "purple", "choices": [ "cyan", "gray", "green", "purple", "brown", "yellow", "blue", "red" ], "answer_index": 3, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "What material is the purple sphere made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "If the red cube were removed, would the yellow cylinder still collide with the purple 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": "If the yellow cylinder were removed, would the red cube still collide with the purple 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": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the yellow cylinder collided with the purple sphere?", "answer": "the red cube collided with the purple sphere", "choices": [ "the red cube collided with the purple sphere", "the red cube collided with the wall", "the yellow cylinder collided with the wall", "nothing happened" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] }, { "question": "After the red cube collided with the purple sphere, will the red cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 52, "video_filename": "videos/video_00052.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17056868773914022, "position": [ -0.9434189318296152, 0.23858276342609863 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0658371080629614, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3330630423030232, "position": [ 0.2092467974726533, 1.2820324314845493 ], "velocity": [ -0.34736333774592987, 1.0038342186757423 ], "spin": 0.8967027062615864, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2775078655053792, "position": [ 0.8058468566739128, -0.8579761902159037 ], "velocity": [ 0.6290412255683995, -0.32987326692995605 ], "spin": 0.5397966344488334, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.14871313582912513, "position": [ -0.8247467390359164, 0.9351154853105899 ], "velocity": [ 1.3241529280413666, 0.08789856866556883 ], "spin": -0.3494071028708854, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2645063530542181, "position": [ 1.3463365767327284, 0.9283432220086192 ], "velocity": [ 0.22180142283178822, 1.0997196208899214 ], "spin": -0.5020303706066872, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 15, "objects": [ 1, 3 ], "description": "the blue cylinder collided with the green cylinder" }, { "frame": 50, "objects": [ 2, 3 ], "description": "the gray sphere collided with the green cylinder" }, { "frame": 63, "objects": [ 0, 1 ], "description": "the yellow sphere collided with the blue cylinder" } ], "motion_events": [], "initially_moving": [ 1, 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 15, "objects": [ 1, 3 ] }, { "frame": 50, "objects": [ 2, 3 ] }, { "frame": 63, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 2, 3, 4 ], "wall_hits": [ [ 9, 1, 1, 1 ], [ 19, 4, 1, 1 ], [ 39, 2, 0, 1 ], [ 48, 4, 0, 1 ], [ 59, 3, 0, 1 ], [ 59, 2, 1, -1 ] ] }, "questions": [ { "question": "What shape is the purple object?", "answer": "cylinder", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "How many objects were moving when the blue cylinder collided with the green cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "After the gray sphere collided with the green cylinder, will the gray sphere 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 color is the object right of the blue cylinder?", "answer": "purple", "choices": [ "cyan", "purple", "green", "red", "gray", "blue", "yellow", "brown" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "If the purple cylinder were removed, would the gray sphere still collide with the green cylinder?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the yellow sphere collided with the blue cylinder?", "answer": "the gray sphere collided with the green cylinder", "choices": [ "the green cylinder collided with the wall", "the blue cylinder collided with the wall", "the purple cylinder collided with the wall", "the gray sphere collided with the green cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "If the purple cylinder were removed, would the yellow sphere still collide with the blue cylinder?", "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" } ] } ] }, { "video_index": 53, "video_filename": "videos/video_00053.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "cube", "material": "metal", "size": "small", "radius": 0.15425207709629635, "position": [ 1.108619916258928, -0.5622560303877915 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8145799563146636, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14188098279541467, "position": [ 0.10287048376032049, -1.5315700599533224 ], "velocity": [ 0.6576821354577405, 0.8561067341579007 ], "spin": -0.3906590605562106, "is_probe": false }, { "idx": 2, "color": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.18414473666472284, "position": [ -0.6274538588196669, -1.1211049542674236 ], "velocity": [ 0.11889305429618019, -0.7057928439982797 ], "spin": 0.1834074780764201, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3032499676120687, "position": [ -0.8937540279525646, 1.4181276695360772 ], "velocity": [ -0.833566025704609, 1.393215149587373 ], "spin": -1.353580087987786, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 28, "objects": [ 0, 1 ], "description": "the brown cube collided with the yellow cube" }, { "frame": 61, "objects": [ 2, 3 ], "description": "the green cylinder collided with the purple sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 28, "cause_collision": { "frame": 28, "objects": [ 0, 1 ] } } ], "initially_moving": [ 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 28, "objects": [ 0, 1 ] }, { "frame": 61, "objects": [ 2, 3 ] } ], "starts": { "0": [ 28 ], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 1, 2, 3 ], "wall_hits": [ [ 5, 3, 1, 1 ], [ 25, 3, 0, -1 ], [ 25, 2, 1, -1 ], [ 61, 0, 0, 1 ] ] }, "questions": [ { "question": "What color is the cylinder?", "answer": "green", "choices": [ "brown", "cyan", "yellow", "purple", "green", "blue", "gray", "red" ], "answer_index": 4, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "op": "query_color" } ] }, { "question": "What happened right after the brown cube collided with the yellow cube?", "answer": "the green cylinder collided with the purple sphere", "choices": [ "the brown cube collided with the wall", "the purple sphere collided with the wall", "the green cylinder collided with the wall", "the green cylinder collided with the purple sphere" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "If the brown cube were removed, would the green cylinder still collide with the purple 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": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the yellow cube were removed, would the green cylinder still collide with the purple 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": "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 yellow 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": "yellow" }, { "op": "count" } ] }, { "question": "What shape is the purple object?", "answer": "sphere", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "After the green cylinder collided with the purple sphere, will the green 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": [ 2, 3 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 54, "video_filename": "videos/video_00054.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.30045834201183574, "position": [ 1.2339348744122358, -1.4058442504292226 ], "velocity": [ -0.7816237350682382, 1.394686703858609 ], "spin": -0.7356670911249782, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.32828836244556137, "position": [ -1.0166714535488324, -0.641710387247785 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7258186403193754, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3043697653100657, "position": [ 1.2287541845948178, 0.897882769278253 ], "velocity": [ 0.4205410571041697, 0.5899341392479512 ], "spin": 0.47489988937211014, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.14320921324009042, "position": [ -0.0745621179358038, -1.5115844921549193 ], "velocity": [ 0.0, 0.0 ], "spin": 1.2529846586096762, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3344522963497582, "position": [ 1.2558095178392688, -0.03935500753207166 ], "velocity": [ -0.6490240950424943, -1.50282241665328 ], "spin": 0.6963530071852708, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 6, "objects": [ 0, 4 ], "description": "the yellow sphere collided with the blue cylinder" }, { "frame": 19, "objects": [ 0, 4 ], "description": "the yellow sphere collided with the blue cylinder" }, { "frame": 28, "objects": [ 0, 1 ], "description": "the yellow sphere collided with the gray cube" }, { "frame": 38, "objects": [ 0, 3 ], "description": "the yellow sphere collided with the brown cylinder" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 28, "cause_collision": { "frame": 28, "objects": [ 0, 1 ] } }, { "object": 3, "type": "start", "frame": 38, "cause_collision": { "frame": 38, "objects": [ 0, 3 ] } } ], "initially_moving": [ 0, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 6, "objects": [ 0, 4 ] }, { "frame": 19, "objects": [ 0, 4 ] }, { "frame": 28, "objects": [ 0, 1 ] }, { "frame": 38, "objects": [ 0, 3 ] } ], "starts": { "0": [], "1": [ 28 ], "2": [], "3": [ 38 ], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 4 ], "wall_hits": [ [ 12, 0, 1, -1 ], [ 29, 2, 0, 1 ], [ 36, 2, 1, 1 ], [ 43, 1, 0, -1 ], [ 53, 3, 1, -1 ] ] }, "questions": [ { "question": "What happened right before the yellow sphere collided with the brown cylinder?", "answer": "the yellow sphere collided with the gray cube", "choices": [ "the brown cylinder started moving", "the gray cube collided with the wall", "the yellow sphere collided with the gray cube", "the yellow sphere collided with the blue cylinder" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_before_event" } ] }, { "question": "After the yellow sphere collided with the brown cylinder, will the yellow sphere 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, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "How many metal objects are there?", "answer": "3", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What material is the cyan cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the brown cylinder were removed, would the yellow sphere still collide with the blue cylinder?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the yellow object?", "answer": "sphere", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "query_shape" } ] }, { "question": "If the brown cylinder were removed, would the gray cube 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": 1 }, { "op": "query_motion_start" } ] }, { "question": "How many objects were moving when the yellow sphere collided with the brown cylinder?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] } ] }, { "video_index": 55, "video_filename": "videos/video_00055.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.30628209364164094, "position": [ -0.4729264478856461, 0.18976283427715224 ], "velocity": [ 0.18741624708270505, -0.8790593639829544 ], "spin": 1.0139236151022772, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cube", "material": "metal", "size": "large", "radius": 0.315863123969153, "position": [ -1.4670753008532904, 1.0569728432412397 ], "velocity": [ -0.2889828224149369, 0.6601087495029146 ], "spin": -1.1733405096524852, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.16540127588591014, "position": [ -0.7469238995483958, 1.3019150654488596 ], "velocity": [ -1.429785923048856, 0.7654771626534672 ], "spin": -1.1971776545622723, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2795517150265686, "position": [ -0.3883171729650763, -1.4042315317228824 ], "velocity": [ 0.0, 0.0 ], "spin": 1.012073374829228, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cube", "material": "metal", "size": "small", "radius": 0.1714401190446626, "position": [ 1.3008864609682298, -0.04732479385372801 ], "velocity": [ 0.0, 0.0 ], "spin": 0.03834327072606181, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.16173802669931372, "position": [ 0.5854646169126043, -1.0102989403136915 ], "velocity": [ -1.438883218960468, -0.5374302433727127 ], "spin": 0.4698719218146754, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 7, "objects": [ 1, 2 ], "description": "the green cube collided with the cyan sphere" }, { "frame": 10, "objects": [ 3, 5 ], "description": "the gray cube collided with the purple cube" }, { "frame": 15, "objects": [ 1, 2 ], "description": "the green cube collided with the cyan sphere" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 10, "cause_collision": { "frame": 10, "objects": [ 3, 5 ] } } ], "initially_moving": [ 0, 1, 2, 5 ] }, "raw_events": { "collisions": [ { "frame": 7, "objects": [ 1, 2 ] }, { "frame": 10, "objects": [ 3, 5 ] }, { "frame": 15, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 10 ], "4": [], "5": [] }, "stops": { "0": [], "1": [ 15 ], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 2, 5 ], "wall_hits": [ [ 12, 2, 1, 1 ], [ 13, 1, 0, -1 ], [ 25, 2, 1, 1 ], [ 33, 1, 0, -1 ], [ 60, 0, 1, -1 ] ] }, "questions": [ { "question": "What color is the object left of the gray cube?", "answer": "green", "choices": [ "cyan", "green", "red", "yellow", "brown", "purple", "blue", "gray" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "If the red cylinder were removed, would the green cube still collide with the cyan sphere?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "If the brown cube were removed, would the green cube still collide with the cyan sphere?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the green cube collided with the cyan 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": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What material is the cyan sphere made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "After the green cube collided with the cyan sphere, will the green cube collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What happened right after the gray cube collided with the purple cube?", "answer": "the green cube collided with the cyan sphere", "choices": [ "the green cube collided with the cyan sphere", "nothing happened", "the red cylinder 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" } ] } ] }, { "video_index": 56, "video_filename": "videos/video_00056.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2711170109050525, "position": [ -1.3445371445028496, -1.1111498046011041 ], "velocity": [ 0.0, 0.0 ], "spin": -0.08197330574922179, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3017078789846094, "position": [ 0.9065727723798942, 0.9344286170103178 ], "velocity": [ -0.9900693386028226, -0.9686028434411598 ], "spin": -0.9771222567886421, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15367634431832888, "position": [ -0.25556099075106253, 0.25456200459805545 ], "velocity": [ 0.4962296353048517, 1.0746214251146544 ], "spin": 1.014992543675881, "is_probe": false }, { "idx": 3, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.19515079154669, "position": [ 1.1374135765014166, 0.024487304079729322 ], "velocity": [ -0.7701665197326185, -1.1334644529903142 ], "spin": -1.25153817975206, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.15237035510023655, "position": [ -0.734026992764782, 0.8930035720180858 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3678987620508847, "is_probe": false }, { "idx": 5, "color": "brown", "shape": "cube", "material": "metal", "size": "large", "radius": 0.3225693016963659, "position": [ 0.8037893460752523, -0.9912676234253055 ], "velocity": [ 0.09608573180171533, -1.670150571988848 ], "spin": 1.397084645971522, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 18, "objects": [ 3, 5 ], "description": "the green sphere collided with the brown cube" }, { "frame": 25, "objects": [ 1, 3 ], "description": "the red cylinder collided with the green sphere" }, { "frame": 36, "objects": [ 0, 3 ], "description": "the yellow cylinder collided with the green sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 36, "cause_collision": { "frame": 36, "objects": [ 0, 3 ] } } ], "initially_moving": [ 1, 2, 3, 5 ] }, "raw_events": { "collisions": [ { "frame": 18, "objects": [ 3, 5 ] }, { "frame": 25, "objects": [ 1, 3 ] }, { "frame": 36, "objects": [ 0, 3 ] } ], "starts": { "0": [ 36 ], "1": [], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 2, 3, 5 ], "wall_hits": [ [ 10, 5, 1, -1 ], [ 40, 2, 1, 1 ], [ 43, 3, 1, -1 ], [ 58, 0, 0, -1 ] ] }, "questions": [ { "question": "What happened right before the red cylinder collided with the green sphere?", "answer": "the green sphere collided with the brown cube", "choices": [ "the green sphere collided with the wall", "the yellow cylinder collided with the wall", "the green sphere collided with the brown cube", "the blue sphere collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_before_event" } ] }, { "question": "If the blue sphere were removed, would the green sphere 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": 2 }, { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_existence" } ] }, { "question": "How many red objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "red" }, { "op": "count" } ] }, { "question": "If the yellow cylinder were removed, would the red cylinder still collide with the green 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, 3 ] }, { "op": "query_existence" } ] }, { "question": "What material is the brown cube made of?", "answer": "metal", "choices": [ "rubber", "metal" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "After the green sphere collided with the brown cube, will the green sphere collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What caused the yellow cylinder to start moving?", "answer": "the collision with the green sphere", "choices": [ "it was pushed by the wall", "the collision with the red cylinder", "nothing - it was already moving", "the collision with the green sphere" ], "answer_index": 3, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 0 }, { "op": "query_motion_cause" } ] }, { "question": "How many cylinder 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": "cylinder" }, { "op": "count" } ] } ] }, { "video_index": 57, "video_filename": "videos/video_00057.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.14137194980013915, "position": [ 0.168117964990123, 0.5719215783568685 ], "velocity": [ 0.8241986172368657, -0.4176481062451952 ], "spin": -1.4569455063203354, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1426178483808892, "position": [ 0.13158019080952044, -0.4091651188579406 ], "velocity": [ 0.4968260191227518, 1.5133439787174388 ], "spin": -0.3546445703717036, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.15788635169826465, "position": [ -0.8253850258648742, -1.4312465588272851 ], "velocity": [ -1.2496138393446896, -0.9949251934686055 ], "spin": 1.3031752203685767, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 9, "objects": [ 0, 1 ], "description": "the red cylinder collided with the yellow sphere" }, { "frame": 50, "objects": [ 0, 1 ], "description": "the red cylinder collided with the yellow sphere" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 9, "objects": [ 0, 1 ] }, { "frame": 50, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 10, 2, 1, -1 ], [ 21, 2, 0, -1 ], [ 28, 0, 0, 1 ], [ 46, 0, 1, 1 ], [ 52, 0, 1, 1 ] ] }, "questions": [ { "question": "How many metal objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "How many objects were moving when the red cylinder collided with the yellow sphere?", "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": "After the red cylinder collided with the yellow sphere, will the red 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, 1 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the blue cylinder were removed, would the red cylinder still collide with the yellow sphere?", "answer": "yes", "choices": [ "no", "yes" ], "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": "How many objects were moving when the red cylinder collided with the yellow sphere?", "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": "If the blue cylinder were removed, would the red cylinder still collide with the yellow sphere?", "answer": "yes", "choices": [ "no", "yes" ], "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": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "How many cylinder objects are there?", "answer": "2", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "op": "count" } ] } ] }, { "video_index": 58, "video_filename": "videos/video_00058.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1627573571242549, "position": [ 1.1989197704886394, 0.41685886553615714 ], "velocity": [ 0.0, 0.0 ], "spin": -1.075193464234828, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1990489943358516, "position": [ 0.3170500589843086, -0.7184293306722295 ], "velocity": [ 0.5184274753448751, -0.7157894834876797 ], "spin": 0.2444314436874402, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "metal", "size": "small", "radius": 0.1845646765078675, "position": [ 0.49367413989187914, 0.36416104800220617 ], "velocity": [ -1.6639011353655089, 0.2599069794194902 ], "spin": -0.759591650686168, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.32866457779162356, "position": [ 1.3512262744828638, -1.3246937132715706 ], "velocity": [ -0.034005953095485826, 1.6977882926235521 ], "spin": -0.008985554941339569, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.14537424970314594, "position": [ 0.5758945302715668, -1.2528678244762297 ], "velocity": [ 0.0, 0.0 ], "spin": 1.32728750041682, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.17261439757894267, "position": [ -1.2797971444771368, 1.151548234910689 ], "velocity": [ 0.4530427482038978, 0.6180189746925187 ], "spin": 0.23421228074087175, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 7, "objects": [ 1, 4 ], "description": "the red cylinder collided with the cyan cylinder" }, { "frame": 19, "objects": [ 0, 3 ], "description": "the green sphere collided with the gray cube" }, { "frame": 36, "objects": [ 1, 4 ], "description": "the red cylinder collided with the cyan cylinder" }, { "frame": 63, "objects": [ 2, 5 ], "description": "the brown cube collided with the purple cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 19, "cause_collision": { "frame": 19, "objects": [ 0, 3 ] } }, { "object": 4, "type": "start", "frame": 7, "cause_collision": { "frame": 7, "objects": [ 1, 4 ] } } ], "initially_moving": [ 1, 2, 3, 5 ] }, "raw_events": { "collisions": [ { "frame": 7, "objects": [ 1, 4 ] }, { "frame": 19, "objects": [ 0, 3 ] }, { "frame": 36, "objects": [ 1, 4 ] }, { "frame": 63, "objects": [ 2, 5 ] } ], "starts": { "0": [ 19 ], "1": [], "2": [], "3": [], "4": [ 7 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 2, 3, 5 ], "wall_hits": [ [ 23, 4, 1, -1 ], [ 28, 5, 1, 1 ], [ 35, 0, 1, 1 ], [ 37, 2, 0, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the green sphere collided with the gray cube?", "answer": "6", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What material is the gray cube made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "What material is the green sphere made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "What happened right after the red cylinder collided with the cyan cylinder?", "answer": "the green sphere collided with the gray cube", "choices": [ "the brown cube collided with the purple cylinder", "the green sphere collided with the gray cube", "the cyan cylinder started moving", "the red cylinder collided with the cyan cylinder" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_after_event" } ] }, { "question": "If the red cylinder were removed, would the brown cube still collide with the purple 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": [ 2, 5 ] }, { "op": "query_existence" } ] }, { "question": "If the gray cube were removed, would the red cylinder still collide with the cyan cylinder?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "What material is the red cylinder made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "red" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "Will the gray cube collide with the cyan cylinder 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": [ 3, 4 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 59, "video_filename": "videos/video_00059.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2600031675703948, "position": [ -0.2858282961329792, 0.035295728599958 ], "velocity": [ 0.0, 0.0 ], "spin": 1.328045682129798, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3298972810119346, "position": [ 0.22519080622696852, -1.258024342928707 ], "velocity": [ 0.0, 0.0 ], "spin": 0.48614090313392566, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.15741856449572025, "position": [ 0.5066751042575637, 0.7224708385267069 ], "velocity": [ 0.8998247308075921, -1.3202057425851783 ], "spin": 0.2721312769899735, "is_probe": false }, { "idx": 3, "color": "red", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2623596129048702, "position": [ -1.350117149802748, 1.5334288099717737 ], "velocity": [ 0.8857058559076418, -0.9317357805838574 ], "spin": 0.03902115817177365, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.32622788303035055, "position": [ -0.157381249322337, 1.269199904935144 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3319167129406844, "is_probe": false }, { "idx": 5, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1780925512106894, "position": [ -1.3474897789917528, -1.5393254936700407 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6834999248054018, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 28, "objects": [ 0, 3 ], "description": "the brown cylinder collided with the red cylinder" }, { "frame": 50, "objects": [ 0, 1 ], "description": "the brown cylinder collided with the green cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 28, "cause_collision": { "frame": 28, "objects": [ 0, 3 ] } }, { "object": 1, "type": "start", "frame": 50, "cause_collision": { "frame": 50, "objects": [ 0, 1 ] } } ], "initially_moving": [ 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 28, "objects": [ 0, 3 ] }, { "frame": 50, "objects": [ 0, 1 ] } ], "starts": { "0": [ 28 ], "1": [ 50 ], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 2, 3 ], "wall_hits": [ [ 40, 2, 0, 1 ], [ 53, 2, 1, -1 ] ] }, "questions": [ { "question": "What color is the object behind the gray cylinder?", "answer": "red", "choices": [ "purple", "yellow", "green", "blue", "brown", "gray", "red", "cyan" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "What caused the brown cylinder to start moving?", "answer": "the collision with the red cylinder", "choices": [ "the collision with the green cylinder", "the collision with the red cylinder", "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": "How many objects were moving when the brown cylinder collided with the green cylinder?", "answer": "4", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the brown cylinder were removed, would the green cylinder still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "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": "After the brown cylinder collided with the green cylinder, will the brown 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, 1 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the blue cylinder were removed, would the green cylinder still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 60, "video_filename": "videos/video_00060.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15022517990475803, "position": [ 1.5325402378401745, 1.4764222335861288 ], "velocity": [ 0.8831118631285123, -0.8458854607703361 ], "spin": -1.015095411468021, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14411058469499713, "position": [ -0.15751179069885213, 1.3489600989547432 ], "velocity": [ -0.9193748404519725, -0.44110647721468904 ], "spin": -1.3362633772006074, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "metal", "size": "small", "radius": 0.16756770484692796, "position": [ -1.4201341433366519, 1.1147277510325366 ], "velocity": [ -0.05684999077134137, 1.347768978701116 ], "spin": -1.240051928448871, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2827471043781164, "position": [ 1.3637225410701024, -0.33844729400008844 ], "velocity": [ 0.0, 0.0 ], "spin": 1.3149512165449178, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1747087190266406, "position": [ -0.02218690803734491, 0.07664475118181913 ], "velocity": [ 0.0, 0.0 ], "spin": 0.11237861285504769, "is_probe": false }, { "idx": 5, "color": "green", "shape": "cube", "material": "metal", "size": "large", "radius": 0.3082167783360492, "position": [ 1.3537286783710039, 0.7248325819675754 ], "velocity": [ 1.1225526201003533, -0.2940405968616117 ], "spin": -0.665910091926594, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 18, "objects": [ 0, 5 ], "description": "the purple sphere collided with the green cube" }, { "frame": 31, "objects": [ 1, 2 ], "description": "the cyan cube collided with the brown cube" }, { "frame": 41, "objects": [ 4, 5 ], "description": "the blue sphere collided with the green cube" }, { "frame": 60, "objects": [ 1, 4 ], "description": "the cyan cube collided with the blue sphere" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 41, "cause_collision": { "frame": 41, "objects": [ 4, 5 ] } } ], "initially_moving": [ 0, 1, 2, 5 ] }, "raw_events": { "collisions": [ { "frame": 18, "objects": [ 0, 5 ] }, { "frame": 31, "objects": [ 1, 2 ] }, { "frame": 41, "objects": [ 4, 5 ] }, { "frame": 60, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 41 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 2, 5 ], "wall_hits": [ [ 7, 5, 0, 1 ], [ 9, 0, 0, 1 ], [ 13, 2, 1, 1 ], [ 45, 2, 0, -1 ] ] }, "questions": [ { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "What happened right before the purple sphere collided with the green cube?", "answer": "nothing happened", "choices": [ "nothing happened", "the purple sphere collided with the wall", "the blue sphere started moving", "the cyan cube collided with the blue sphere" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "query_before_event" } ] }, { "question": "If the purple sphere were removed, would the cyan cube 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": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "After the cyan cube collided with the blue sphere, will the cyan cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "How many brown 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": "brown" }, { "op": "count" } ] }, { "question": "If the yellow sphere were removed, would the cyan cube still collide with the blue 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": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "What material is the brown cube made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "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 cyan cube collided with the brown cube?", "answer": "the purple sphere collided with the green cube", "choices": [ "the purple sphere collided with the wall", "the purple sphere collided with the green cube", "the blue sphere collided with the green cube", "the cyan cube collided with the blue sphere" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] } ] }, { "video_index": 61, "video_filename": "videos/video_00061.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.32158404429998033, "position": [ -1.091723503296173, 1.0452164012880758 ], "velocity": [ 0.0, 0.0 ], "spin": -0.04242092361115635, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1678004555323758, "position": [ -1.2042388805921185, 0.11528431426980079 ], "velocity": [ 0.0, 0.0 ], "spin": -0.9288688875846289, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15535094704874405, "position": [ 0.4577813232760166, 1.5172177167781438 ], "velocity": [ 0.12333130532640563, -1.2233440317096653 ], "spin": 0.7822521647119074, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.19868658015744758, "position": [ -0.43198386560234536, -0.47241890182578294 ], "velocity": [ 0.0, 0.0 ], "spin": 0.7397854473851035, "is_probe": false }, { "idx": 4, "color": "red", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.31502595779609965, "position": [ 0.91891196082148, -0.4238148192103468 ], "velocity": [ -0.4785480428657276, 1.1945927040963622 ], "spin": -0.5622608843126662, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 15, "objects": [ 2, 4 ], "description": "the blue sphere collided with the red cube" }, { "frame": 40, "objects": [ 2, 4 ], "description": "the blue sphere collided with the red cube" }, { "frame": 52, "objects": [ 1, 2 ], "description": "the gray sphere collided with the blue sphere" }, { "frame": 60, "objects": [ 2, 3 ], "description": "the blue sphere collided with the purple cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 52, "cause_collision": { "frame": 52, "objects": [ 1, 2 ] } }, { "object": 3, "type": "start", "frame": 60, "cause_collision": { "frame": 60, "objects": [ 2, 3 ] } } ], "initially_moving": [ 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 15, "objects": [ 2, 4 ] }, { "frame": 40, "objects": [ 2, 4 ] }, { "frame": 52, "objects": [ 1, 2 ] }, { "frame": 60, "objects": [ 2, 3 ] } ], "starts": { "0": [], "1": [ 52 ], "2": [], "3": [ 60 ], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [ 40 ] }, "initially_moving": [ 2, 4 ], "wall_hits": [ [ 27, 2, 1, 1 ] ] }, "questions": [ { "question": "If the purple cube were removed, would the gray 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": 1 }, { "op": "query_motion_start" } ] }, { "question": "How many objects were moving when the blue sphere collided with the purple cube?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What material is the blue sphere made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "What happened right before the blue sphere collided with the red cube?", "answer": "nothing happened", "choices": [ "nothing happened", "the gray sphere collided with the blue sphere", "the blue sphere collided with the red cube", "the purple cube started moving" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_before_event" } ] }, { "question": "What shape is the gray object?", "answer": "sphere", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "query_shape" } ] }, { "question": "Will the purple cube collide with the red 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": [ 3, 4 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the red object?", "answer": "cube", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "If the purple cube were removed, would the blue sphere 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": 3 }, { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 62, "video_filename": "videos/video_00062.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.14587068962198582, "position": [ -1.3572594054722231, -1.4818644007244557 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0254115565417008, "is_probe": false }, { "idx": 1, "color": "red", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1575444897426061, "position": [ -1.386437428220622, -0.6578784112644992 ], "velocity": [ -1.107829454692827, -0.0836677308912411 ], "spin": 0.18653056214753283, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2966144046250653, "position": [ -0.3954966338150947, -0.9367956806350206 ], "velocity": [ 0.0, 0.0 ], "spin": -1.1993573721809794, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.15574196758095532, "position": [ 0.9900143403344017, -1.02706229896208 ], "velocity": [ 1.2249661327475951, -0.3156367094787262 ], "spin": 0.3311788040798076, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1803826713874381, "position": [ 0.5230805573799777, 1.285594286100581 ], "velocity": [ -0.7001756500434052, -0.6328291025347678 ], "spin": 1.3510938437442475, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 38, "objects": [ 1, 2 ], "description": "the red sphere collided with the cyan sphere" }, { "frame": 62, "objects": [ 1, 4 ], "description": "the red sphere collided with the yellow sphere" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 38, "cause_collision": { "frame": 38, "objects": [ 1, 2 ] } } ], "initially_moving": [ 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 38, "objects": [ 1, 2 ] }, { "frame": 62, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [ 38 ], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 3, 4 ], "wall_hits": [ [ 10, 1, 0, -1 ], [ 18, 3, 0, 1 ] ] }, "questions": [ { "question": "How many cylinder 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": "cylinder" }, { "op": "count" } ] }, { "question": "How many sphere objects are there?", "answer": "3", "choices": [ "1", "2", "3", "4", "5", "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 cyan 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the red sphere collided with the cyan sphere?", "answer": "nothing happened", "choices": [ "the brown cylinder collided with the wall", "the cyan sphere started moving", "nothing happened", "the red sphere collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] }, { "question": "If the brown cylinder were removed, would the red sphere still collide with the cyan sphere?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "What caused the cyan sphere to start moving?", "answer": "the collision with the red sphere", "choices": [ "the collision with the yellow sphere", "nothing - it was already moving", "the collision with the red sphere", "it was pushed by the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 2 }, { "op": "query_motion_cause" } ] }, { "question": "If the brown cylinder were removed, would the red sphere 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": 3 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object behind the cyan sphere?", "answer": "yellow", "choices": [ "blue", "cyan", "red", "purple", "green", "gray", "brown", "yellow" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] } ] }, { "video_index": 63, "video_filename": "videos/video_00063.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2950255238678782, "position": [ 0.9747797449699538, -0.5202340310127946 ], "velocity": [ 0.13419161097805404, -1.677413237484004 ], "spin": 0.005013475400645895, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3178666526950169, "position": [ 0.5753943573508369, 0.28767797138747997 ], "velocity": [ -0.9283632006378767, 0.6083067460748955 ], "spin": -0.3142572366830736, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "metal", "size": "large", "radius": 0.3047532824062428, "position": [ -0.06452461074796756, -1.4367024714149947 ], "velocity": [ -0.709857457891414, 1.2779241430564354 ], "spin": -1.4401020741721207, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 47, "objects": [ 1, 2 ], "description": "the gray cylinder collided with the brown cube" }, { "frame": 60, "objects": [ 1, 2 ], "description": "the gray cylinder collided with the brown cube" } ], "motion_events": [], "initially_moving": [ 0, 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 47, "objects": [ 1, 2 ] }, { "frame": 60, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 0, 1, 2 ], "wall_hits": [ [ 18, 0, 1, -1 ], [ 56, 1, 1, 1 ], [ 59, 2, 0, -1 ], [ 61, 2, 0, -1 ] ] }, "questions": [ { "question": "What happened right after the gray cylinder collided with the brown cube?", "answer": "nothing happened", "choices": [ "nothing happened", "the red cylinder collided with the wall", "the brown cube collided with the wall", "the gray cylinder collided with the brown cube" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "After the gray cylinder collided with the brown cube, will the gray 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": [ 1, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What color is the cube?", "answer": "brown", "choices": [ "yellow", "blue", "red", "cyan", "green", "gray", "brown", "purple" ], "answer_index": 6, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "query_color" } ] }, { "question": "If the red cylinder were removed, would the gray cylinder still collide with the brown cube?", "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, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many gray 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": "gray" }, { "op": "count" } ] }, { "question": "What happened right before the gray cylinder collided with the brown cube?", "answer": "nothing happened", "choices": [ "nothing happened", "the brown cube collided with the wall", "the gray cylinder collided with the wall", "the gray cylinder collided with the brown cube" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] }, { "question": "If the red cylinder were removed, would the gray cylinder still collide with the brown cube?", "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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the gray object?", "answer": "cylinder", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "query_shape" } ] } ] }, { "video_index": 64, "video_filename": "videos/video_00064.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3059222528951024, "position": [ 0.4490146309950551, -0.15098327018570923 ], "velocity": [ 0.0, 0.0 ], "spin": 0.636590355507447, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2743964108083641, "position": [ 0.6418391188120791, -1.115484890852802 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2654814754886337, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18597175360290036, "position": [ -0.8009081757553409, -0.5459127948119065 ], "velocity": [ -0.6682749876184699, 0.4884736651087952 ], "spin": 0.06855620816810681, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3183320341960232, "position": [ -0.40643798262880293, 1.0764543239679514 ], "velocity": [ 0.5969192534137282, 1.1880412605772914 ], "spin": -0.8105765713950406, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cube", "material": "metal", "size": "small", "radius": 0.18696043892392555, "position": [ 1.2195789163828155, 0.38090767684289784 ], "velocity": [ -0.5428272702407608, 1.4305045450012868 ], "spin": -1.094813455241682, "is_probe": false }, { "idx": 5, "color": "red", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2900245326134441, "position": [ 1.4494969930379467, -0.5347824154614906 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2338171657856032, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 45, "objects": [ 0, 3 ], "description": "the cyan cylinder collided with the gray cylinder" }, { "frame": 56, "objects": [ 0, 1 ], "description": "the cyan cylinder collided with the blue cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 45, "cause_collision": { "frame": 45, "objects": [ 0, 3 ] } }, { "object": 1, "type": "start", "frame": 56, "cause_collision": { "frame": 56, "objects": [ 0, 1 ] } } ], "initially_moving": [ 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 45, "objects": [ 0, 3 ] }, { "frame": 56, "objects": [ 0, 1 ] } ], "starts": { "0": [ 45 ], "1": [ 56 ], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 2, 3, 4 ], "wall_hits": [ [ 13, 3, 1, 1 ], [ 26, 4, 1, 1 ], [ 41, 2, 0, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the cyan cylinder collided with the gray cylinder?", "answer": "4", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the cyan cylinder collide with the gray cylinder 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": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "How many gray 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": "gray" }, { "op": "count" } ] }, { "question": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "What happened right after the cyan cylinder collided with the blue cylinder?", "answer": "nothing happened", "choices": [ "the cyan cylinder started moving", "the blue cylinder started moving", "nothing happened", "the green cube collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "What shape is the green object?", "answer": "cube", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "green" }, { "op": "query_shape" } ] }, { "question": "If the yellow cylinder were removed, would the cyan cylinder still collide with the blue cylinder?", "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, 1 ] }, { "op": "query_existence" } ] }, { "question": "If the gray cylinder were removed, would the blue cylinder 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" } ] } ] }, { "video_index": 65, "video_filename": "videos/video_00065.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2835262349012743, "position": [ -1.3790027789987875, -0.5159428230169032 ], "velocity": [ -0.5776165779126939, -1.2130768586360527 ], "spin": -0.3442499661371252, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cube", "material": "metal", "size": "small", "radius": 0.18259287136652266, "position": [ -1.539387450694942, 0.9615358151371132 ], "velocity": [ 0.0, 0.0 ], "spin": -0.9938254859113111, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18509687796877133, "position": [ -0.4176794210517605, -1.4941424665324587 ], "velocity": [ 0.9430055197995468, 0.43156936413155617 ], "spin": -0.5441147186975331, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.26777369970121306, "position": [ 0.6748286474265333, -1.461045627873586 ], "velocity": [ 1.4884048530102467, -0.23195540914996668 ], "spin": 1.3031322285917168, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3271776320802168, "position": [ 1.4894429762094907, 1.0494180653534235 ], "velocity": [ 0.0, 0.0 ], "spin": -0.36932152886804515, "is_probe": false }, { "idx": 5, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1798698598412164, "position": [ -0.641040573971116, 0.08815331128621251 ], "velocity": [ -0.4493098998192371, -1.6271239170656304 ], "spin": -1.4149941424825734, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 26, "objects": [ 0, 5 ], "description": "the blue cube collided with the red cylinder" }, { "frame": 54, "objects": [ 3, 5 ], "description": "the green cylinder collided with the red cylinder" } ], "motion_events": [], "initially_moving": [ 0, 2, 3, 5 ] }, "raw_events": { "collisions": [ { "frame": 26, "objects": [ 0, 5 ] }, { "frame": 54, "objects": [ 3, 5 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 2, 3, 5 ], "wall_hits": [ [ 15, 0, 0, -1 ], [ 18, 3, 0, 1 ], [ 26, 0, 1, -1 ], [ 31, 3, 1, -1 ], [ 34, 5, 1, -1 ] ] }, "questions": [ { "question": "What happened right before the blue cube collided with the red cylinder?", "answer": "nothing happened", "choices": [ "the blue cube collided with the wall", "the green cylinder collided with the red cylinder", "the red cylinder collided with the wall", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "query_before_event" } ] }, { "question": "After the green cylinder collided with the red cylinder, will the green cylinder collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What material is the green cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the green cylinder were removed, would the blue cube still collide with the red cylinder?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the green object?", "answer": "cylinder", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "green" }, { "op": "query_shape" } ] }, { "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 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": "If the purple cube were removed, would the green cylinder still collide with the red 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": [ 3, 5 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 66, "video_filename": "videos/video_00066.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.33985617848253197, "position": [ 0.4163216068664155, -1.4780134425126343 ], "velocity": [ 1.1395013587737757, 1.007810005608451 ], "spin": 0.2841371108161628, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cube", "material": "metal", "size": "small", "radius": 0.18738753182885198, "position": [ 0.8514032794746498, 0.004672877100926787 ], "velocity": [ 0.5673823548641719, 1.169731074901505 ], "spin": 1.3965341980343586, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2952048957868609, "position": [ -1.3328772522426566, 1.4943767070949743 ], "velocity": [ 1.0328348262024536, 0.8852747943081267 ], "spin": -0.24120156636105783, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.32386141480773895, "position": [ -0.4755364477538526, -1.113271972271775 ], "velocity": [ 0.3045876330809768, 0.7360284601385126 ], "spin": 1.1827016567333408, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 44, "objects": [ 2, 3 ], "description": "the blue cylinder collided with the yellow sphere" }, { "frame": 47, "objects": [ 0, 2 ], "description": "the gray sphere collided with the blue cylinder" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 44, "objects": [ 2, 3 ] }, { "frame": 47, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 6, 2, 1, 1 ], [ 28, 0, 0, 1 ], [ 41, 1, 1, 1 ], [ 46, 1, 0, 1 ], [ 63, 2, 1, 1 ] ] }, "questions": [ { "question": "How many cylinder 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": "cylinder" }, { "op": "count" } ] }, { "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": "What happened right before the blue cylinder collided with the yellow sphere?", "answer": "nothing happened", "choices": [ "the cyan cube collided with the wall", "nothing happened", "the gray sphere collided with the blue cylinder", "the blue cylinder collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_before_event" } ] }, { "question": "After the blue cylinder collided with the yellow sphere, 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": [ 2, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What happened right after the blue cylinder collided with the yellow sphere?", "answer": "the gray sphere collided with the blue cylinder", "choices": [ "the blue cylinder collided with the wall", "the gray sphere collided with the blue cylinder", "nothing happened", "the gray sphere collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] }, { "question": "If the cyan cube were removed, would the gray sphere still collide with the blue 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What color is the cylinder?", "answer": "blue", "choices": [ "yellow", "gray", "brown", "cyan", "blue", "purple", "green", "red" ], "answer_index": 4, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "op": "query_color" } ] }, { "question": "If the cyan cube were removed, would the blue cylinder still collide with the yellow 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" } ] } ] }, { "video_index": 67, "video_filename": "videos/video_00067.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2732815439230292, "position": [ -0.7637549310639757, -0.8925045725568281 ], "velocity": [ 0.28105041956337534, -0.848850175693753 ], "spin": 1.2094076637326197, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.17532271577440234, "position": [ 0.14826592512176373, 0.6991678592243653 ], "velocity": [ 0.0, 0.0 ], "spin": -0.9510726936510898, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3251179927421028, "position": [ 0.7229413790138286, -0.09109271297850463 ], "velocity": [ -0.808802453641422, 1.1064840724647864 ], "spin": -1.085859545923173, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18849138485126177, "position": [ 0.9094607393053227, 0.9229935758781125 ], "velocity": [ 1.2729361168555462, -0.7787968464223499 ], "spin": -0.4268370166101214, "is_probe": false }, { "idx": 4, "color": "red", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.28264445014187267, "position": [ -0.4709531299293488, 0.9760404766061275 ], "velocity": [ 0.8161471283636111, -0.2577797978492529 ], "spin": 1.0917640558421762, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 6, "objects": [ 1, 4 ], "description": "the purple cylinder collided with the red cylinder" }, { "frame": 8, "objects": [ 1, 2 ], "description": "the purple cylinder collided with the yellow sphere" }, { "frame": 8, "objects": [ 1, 4 ], "description": "the purple cylinder collided with the red cylinder" }, { "frame": 58, "objects": [ 0, 3 ], "description": "the brown cylinder collided with the blue cylinder" }, { "frame": 60, "objects": [ 2, 4 ], "description": "the yellow sphere collided with the red cylinder" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 6, "cause_collision": { "frame": 6, "objects": [ 1, 4 ] } } ], "initially_moving": [ 0, 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 6, "objects": [ 1, 4 ] }, { "frame": 8, "objects": [ 1, 2 ] }, { "frame": 8, "objects": [ 1, 4 ] }, { "frame": 58, "objects": [ 0, 3 ] }, { "frame": 60, "objects": [ 2, 4 ] } ], "starts": { "0": [], "1": [ 6 ], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 3, 4 ], "wall_hits": [ [ 18, 3, 0, 1 ], [ 25, 0, 1, -1 ], [ 27, 1, 1, 1 ], [ 35, 4, 0, -1 ], [ 37, 4, 1, 1 ] ] }, "questions": [ { "question": "After the brown cylinder collided with the blue cylinder, will the brown 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, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the yellow sphere were removed, would the purple 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": "What color is the object right of the purple cylinder?", "answer": "blue", "choices": [ "brown", "blue", "yellow", "purple", "cyan", "gray", "green", "red" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "How many red objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "red" }, { "op": "count" } ] }, { "question": "How many collisions happened in the video?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "How many objects are there?", "answer": "5", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 4, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "How many objects were moving when the yellow sphere collided with the red cylinder?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the purple cylinder were removed, would the yellow sphere still collide with the red 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": [ 2, 4 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 68, "video_filename": "videos/video_00068.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.28011711935078976, "position": [ 0.3851636117434454, -0.5309838876981203 ], "velocity": [ 1.0593427116555094, 1.0068492095581094 ], "spin": -0.034715415187763554, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.14529256822324063, "position": [ -0.018552952280653345, 0.6811684097395256 ], "velocity": [ 1.24439897598285, 0.16909569588000684 ], "spin": 0.7508327197731859, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17236057529661958, "position": [ -1.0025761223024223, 1.4502780860661775 ], "velocity": [ 0.0, 0.0 ], "spin": -0.9054802468855464, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2824078754755802, "position": [ 1.3568472895528825, -0.5685193541400237 ], "velocity": [ 0.5521739471092615, 1.3902516538947556 ], "spin": -0.09524520680225579, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18574312065710286, "position": [ -1.025120276001172, -0.3240048695653328 ], "velocity": [ 1.4217754057168543, 0.6473192499660934 ], "spin": -0.8491940645401654, "is_probe": false }, { "idx": 5, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.16000248943759038, "position": [ 1.4493222641900363, 0.619130186037842 ], "velocity": [ 0.0, 0.0 ], "spin": 0.9306273011349591, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 3, 5 ], "description": "the blue cylinder collided with the red cylinder" }, { "frame": 18, "objects": [ 0, 3 ], "description": "the cyan cylinder collided with the blue cylinder" }, { "frame": 20, "objects": [ 1, 5 ], "description": "the yellow cylinder collided with the red cylinder" }, { "frame": 24, "objects": [ 3, 5 ], "description": "the blue cylinder collided with the red cylinder" }, { "frame": 27, "objects": [ 0, 1 ], "description": "the cyan cylinder collided with the yellow cylinder" }, { "frame": 30, "objects": [ 0, 4 ], "description": "the cyan cylinder collided with the green cylinder" }, { "frame": 33, "objects": [ 3, 5 ], "description": "the blue cylinder collided with the red cylinder" }, { "frame": 37, "objects": [ 1, 3 ], "description": "the yellow cylinder collided with the blue cylinder" }, { "frame": 53, "objects": [ 1, 5 ], "description": "the yellow cylinder collided with the red cylinder" }, { "frame": 61, "objects": [ 3, 4 ], "description": "the blue cylinder collided with the green cylinder" } ], "motion_events": [ { "object": 5, "type": "start", "frame": 14, "cause_collision": { "frame": 14, "objects": [ 3, 5 ] } } ], "initially_moving": [ 0, 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 3, 5 ] }, { "frame": 18, "objects": [ 0, 3 ] }, { "frame": 20, "objects": [ 1, 5 ] }, { "frame": 24, "objects": [ 3, 5 ] }, { "frame": 27, "objects": [ 0, 1 ] }, { "frame": 30, "objects": [ 0, 4 ] }, { "frame": 33, "objects": [ 3, 5 ] }, { "frame": 37, "objects": [ 1, 3 ] }, { "frame": 53, "objects": [ 1, 5 ] }, { "frame": 61, "objects": [ 3, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [ 14 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [ 53 ] }, "initially_moving": [ 0, 1, 3, 4 ], "wall_hits": [ [ 16, 3, 0, 1 ], [ 20, 3, 0, 1 ], [ 31, 5, 1, 1 ], [ 34, 5, 0, 1 ], [ 35, 5, 1, 1 ], [ 38, 5, 1, 1 ], [ 40, 5, 0, 1 ], [ 47, 3, 1, 1 ], [ 58, 0, 0, 1 ] ] }, "questions": [ { "question": "If the blue cylinder were removed, would the yellow cylinder still collide with the red cylinder?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 5 ] }, { "op": "query_existence" } ] }, { "question": "What material is the cyan cylinder 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": "cylinder" }, { "op": "query_material" } ] }, { "question": "What caused the red cylinder to start moving?", "answer": "the collision with the blue cylinder", "choices": [ "the collision with the green cylinder", "the collision with the blue cylinder", "it was pushed by the wall", "the collision with the yellow cylinder" ], "answer_index": 1, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 5 }, { "op": "query_motion_cause" } ] }, { "question": "If the cyan cylinder were removed, would the yellow cylinder still collide with the red cylinder?", "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, 5 ] }, { "op": "query_existence" } ] }, { "question": "Will the yellow cylinder collide with the green cylinder 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": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many metal objects are there?", "answer": "4", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "How many objects were moving when the cyan cylinder collided with the blue cylinder?", "answer": "5", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What color is the object behind the yellow cylinder?", "answer": "brown", "choices": [ "blue", "green", "purple", "red", "gray", "cyan", "yellow", "brown" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] } ] }, { "video_index": 69, "video_filename": "videos/video_00069.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2610214029560615, "position": [ 0.1551488134098793, -1.2657481536263906 ], "velocity": [ 0.0, 0.0 ], "spin": -0.48200120542769165, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1831114331588154, "position": [ -1.3686110628247188, 0.06201590308021632 ], "velocity": [ 0.0, 0.0 ], "spin": -0.45072098617450296, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.31532542303310784, "position": [ -0.3750073987399205, -0.612024917826975 ], "velocity": [ 0.0, 0.0 ], "spin": 0.2946948289272071, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1523496522381007, "position": [ 1.4029988852925086, 0.7662233753065573 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1157795049992085, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.15105391255038855, "position": [ -1.316440157741578, -1.1346794803649056 ], "velocity": [ -0.21384260236961072, -0.9050924883841258 ], "spin": -1.2735123382189957, "is_probe": false }, { "idx": 5, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1658677617179745, "position": [ 1.4311356981364776, -0.44933419342950875 ], "velocity": [ -1.0089937957623771, -0.26762819712313235 ], "spin": 1.3712184306437987, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 36, "objects": [ 2, 5 ], "description": "the red cylinder collided with the green sphere" }, { "frame": 37, "objects": [ 0, 5 ], "description": "the blue cube collided with the green sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 37, "cause_collision": { "frame": 37, "objects": [ 0, 5 ] } }, { "object": 2, "type": "start", "frame": 36, "cause_collision": { "frame": 36, "objects": [ 2, 5 ] } } ], "initially_moving": [ 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 36, "objects": [ 2, 5 ] }, { "frame": 37, "objects": [ 0, 5 ] } ], "starts": { "0": [ 37 ], "1": [], "2": [ 36 ], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 4, 5 ], "wall_hits": [ [ 20, 4, 1, -1 ] ] }, "questions": [ { "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" } ] }, { "question": "If the cyan cube were removed, would the blue cube still collide with the green 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": [ 0, 5 ] }, { "op": "query_existence" } ] }, { "question": "What material is the cyan cube made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "Which object started moving right after the red cylinder collided with the green sphere?", "answer": "the blue cube", "choices": [ "the yellow cylinder", "the gray sphere", "the cyan cube", "the blue cube" ], "answer_index": 3, "question_type": "explanatory", "template": "who_started_after", "program": [ { "op": "find_collision", "objects": [ 2, 5 ] }, { "op": "query_after_motion_start" } ] }, { "question": "What material is the green sphere made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "What happened right before the blue cube collided with the green sphere?", "answer": "the red cylinder collided with the green sphere", "choices": [ "the red cylinder collided with the green sphere", "the blue cube started moving", "the red cylinder started moving", "nothing happened" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "query_before_event" } ] }, { "question": "If the yellow cylinder were removed, would the blue cube still collide with the green 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": [ 0, 5 ] }, { "op": "query_existence" } ] }, { "question": "After the red cylinder collided with the green sphere, will the red cylinder collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 2, 5 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 70, "video_filename": "videos/video_00070.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.32312401440776384, "position": [ -0.7750274644379946, 0.7240192551925408 ], "velocity": [ 0.9712867198643503, 1.1262482711681403 ], "spin": -1.2103404788082384, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2856902505378898, "position": [ -0.6201903765559351, -0.14617309284823277 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7270944684582059, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.29799497098949385, "position": [ -1.536074745667347, 0.2500958364578145 ], "velocity": [ -1.0325344542105825, 0.1735284517136128 ], "spin": -0.6559896257819164, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1480622252854537, "position": [ 0.859129832698718, 0.3852318471344227 ], "velocity": [ -1.5012479907057301, 0.24036003062381991 ], "spin": -0.20524126730760273, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 25, "objects": [ 2, 3 ], "description": "the gray cylinder collided with the blue cylinder" }, { "frame": 32, "objects": [ 1, 2 ], "description": "the red cube collided with the gray cylinder" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 32, "cause_collision": { "frame": 32, "objects": [ 1, 2 ] } } ], "initially_moving": [ 0, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 25, "objects": [ 2, 3 ] }, { "frame": 32, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [ 32 ], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [ 32 ], "3": [] }, "initially_moving": [ 0, 2, 3 ], "wall_hits": [ [ 4, 2, 0, -1 ], [ 22, 0, 1, 1 ], [ 45, 3, 1, 1 ] ] }, "questions": [ { "question": "How many objects were moving when the red cube collided with the gray cylinder?", "answer": "3", "choices": [ "0", "1", "2", "3", "4" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the gray cylinder were removed, would the red cube still start moving?", "answer": "no", "choices": [ "no", "yes" ], "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": "What shape is the purple object?", "answer": "sphere", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "What color is the cube?", "answer": "red", "choices": [ "red", "brown", "cyan", "gray", "yellow", "green", "purple", "blue" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "cube" }, { "op": "query_color" } ] }, { "question": "What color is the object behind the red cube?", "answer": "purple", "choices": [ "cyan", "purple", "brown", "red", "green", "gray", "blue", "yellow" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "If the purple sphere were removed, would the red cube still start moving?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "What happened right after the gray cylinder collided with the blue cylinder?", "answer": "the red cube collided with the gray cylinder", "choices": [ "the red cube started moving", "nothing happened", "the blue cylinder collided with the wall", "the red cube collided with the gray cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] }, { "question": "After the red cube collided with the gray 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": [ 1, 2 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 71, "video_filename": "videos/video_00071.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.1520109618374348, "position": [ 1.0700791167239296, -1.188811704667038 ], "velocity": [ 0.9031459934230582, 0.40013101684564506 ], "spin": -1.3153500144861279, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19588035805931772, "position": [ 0.061446227788988894, -0.6217715539248132 ], "velocity": [ -0.5580828288269717, 1.234633361651774 ], "spin": 0.8823989340467815, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3334698728470114, "position": [ -1.0308697505390292, 1.5029481282327997 ], "velocity": [ -0.6498063990042827, 1.2636374262079548 ], "spin": 1.4403145735851464, "is_probe": false }, { "idx": 3, "color": "red", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.26342379576994324, "position": [ -0.08181117848768649, 0.28323495915802344 ], "velocity": [ -1.5088150063404062, 0.2388637859841569 ], "spin": 0.8616413964825118, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17210761253665904, "position": [ -0.006140781042149657, 1.1813687919817097 ], "velocity": [ 0.0, 0.0 ], "spin": 0.6251337662551242, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 19, "objects": [ 2, 3 ], "description": "the cyan sphere collided with the red cylinder" }, { "frame": 34, "objects": [ 1, 2 ], "description": "the green cylinder collided with the cyan sphere" }, { "frame": 38, "objects": [ 1, 4 ], "description": "the green cylinder collided with the brown sphere" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 38, "cause_collision": { "frame": 38, "objects": [ 1, 4 ] } } ], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 19, "objects": [ 2, 3 ] }, { "frame": 34, "objects": [ 1, 2 ] }, { "frame": 38, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 38 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 3, 2, 1, 1 ], [ 22, 0, 0, 1 ], [ 22, 2, 0, -1 ], [ 49, 3, 0, -1 ], [ 52, 1, 1, 1 ] ] }, "questions": [ { "question": "What material is the green cylinder made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "After the green cylinder collided with the cyan sphere, will the green cylinder collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What happened right after the green cylinder collided with the brown sphere?", "answer": "nothing happened", "choices": [ "the brown sphere started moving", "nothing happened", "the green cylinder collided with the wall", "the cyan sphere collided with the red cylinder" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_after_event" } ] }, { "question": "If the red cylinder were removed, would the green cylinder still collide with the brown sphere?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object right of the red cylinder?", "answer": "blue", "choices": [ "blue", "green", "gray", "yellow", "red", "cyan", "brown", "purple" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "What color is the object left of the brown sphere?", "answer": "cyan", "choices": [ "yellow", "blue", "gray", "cyan", "red", "purple", "green", "brown" ], "answer_index": 3, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "How many objects were moving when the cyan sphere collided with the red cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the blue sphere were removed, would the green cylinder still collide with the cyan sphere?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 72, "video_filename": "videos/video_00072.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.17032776449823445, "position": [ -0.8723361764380729, 1.4923979563159684 ], "velocity": [ -0.8974828156640458, -0.04461494406224958 ], "spin": 1.0904732259991654, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.17160700675512036, "position": [ -0.5910421876881152, 0.7001464782123274 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0241001123326936, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2606029473833331, "position": [ -1.4490461147671925, 0.6883599481834917 ], "velocity": [ -1.234055104603461, 0.27333211952965336 ], "spin": 0.11737563487229519, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.30398886760179666, "position": [ -0.957267205437931, -0.46177154295863154 ], "velocity": [ 0.418188706743657, 1.3845232842402524 ], "spin": 1.1247803511451386, "is_probe": false }, { "idx": 4, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.14826732344841004, "position": [ 1.2610524502286744, 0.16480550022997864 ], "velocity": [ 0.6768365714813294, -0.5124439827621213 ], "spin": -0.41026663066669133, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 13, "objects": [ 1, 3 ], "description": "the gray sphere collided with the purple cylinder" }, { "frame": 21, "objects": [ 2, 3 ], "description": "the red cylinder collided with the purple cylinder" }, { "frame": 33, "objects": [ 1, 3 ], "description": "the gray sphere collided with the purple cylinder" }, { "frame": 45, "objects": [ 0, 2 ], "description": "the yellow cylinder collided with the red cylinder" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 13, "cause_collision": { "frame": 13, "objects": [ 1, 3 ] } } ], "initially_moving": [ 0, 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 13, "objects": [ 1, 3 ] }, { "frame": 21, "objects": [ 2, 3 ] }, { "frame": 33, "objects": [ 1, 3 ] }, { "frame": 45, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [ 13 ], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 3, 4 ], "wall_hits": [ [ 5, 2, 0, -1 ], [ 22, 4, 0, 1 ], [ 26, 1, 1, 1 ], [ 28, 0, 0, -1 ], [ 42, 1, 1, 1 ], [ 44, 2, 1, 1 ], [ 56, 1, 0, 1 ] ] }, "questions": [ { "question": "If the red cylinder were removed, would the gray sphere still collide with the purple cylinder?", "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": "How many objects were moving when the gray sphere collided with the purple cylinder?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many yellow objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "count" } ] }, { "question": "After the gray sphere collided with the purple cylinder, will the gray sphere collide with something else?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What color is the object behind the gray sphere?", "answer": "yellow", "choices": [ "yellow", "green", "purple", "cyan", "red", "blue", "brown", "gray" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "What color is the object right of the yellow cylinder?", "answer": "green", "choices": [ "brown", "green", "gray", "yellow", "blue", "cyan", "red", "purple" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "If the green sphere were removed, would the yellow cylinder still collide with the red cylinder?", "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, 2 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the red cylinder collided with the purple cylinder?", "answer": "the gray sphere collided with the purple cylinder", "choices": [ "nothing happened", "the gray sphere started moving", "the gray sphere collided with the purple cylinder", "the yellow cylinder collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 73, "video_filename": "videos/video_00073.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14614621637164318, "position": [ 0.3499715085427313, 0.5568458276411776 ], "velocity": [ 0.0, 0.0 ], "spin": 0.875901637422503, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2966348098694248, "position": [ -1.5308210922958105, -0.883311569817196 ], "velocity": [ 0.46474067870530256, 1.3961813569273152 ], "spin": 0.13416532035621653, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.27432399978259636, "position": [ 0.9962432578992269, 0.6243985736017466 ], "velocity": [ -0.38236197140467276, 1.3901647294778476 ], "spin": 1.1838420413286772, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1610944509923382, "position": [ -0.4198542380568202, -0.7397589195088261 ], "velocity": [ 1.1882371821599536, -0.5068327450650165 ], "spin": -0.4803945739848636, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.18137896723150626, "position": [ 0.6462620633244913, -0.7180497471417255 ], "velocity": [ -0.341758154901906, -0.6337539588859635 ], "spin": 0.9011387299577871, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 12, "objects": [ 3, 4 ], "description": "the purple sphere collided with the gray cylinder" }, { "frame": 37, "objects": [ 0, 2 ], "description": "the yellow cube collided with the brown sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 37, "cause_collision": { "frame": 37, "objects": [ 0, 2 ] } } ], "initially_moving": [ 1, 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 12, "objects": [ 3, 4 ] }, { "frame": 37, "objects": [ 0, 2 ] } ], "starts": { "0": [ 37 ], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 1, 2, 3, 4 ], "wall_hits": [ [ 20, 2, 1, 1 ], [ 40, 4, 1, -1 ], [ 51, 1, 1, 1 ], [ 52, 4, 0, 1 ] ] }, "questions": [ { "question": "If the brown sphere were removed, would the yellow cube still start moving?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "How many objects were moving when the purple sphere collided with the gray cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "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": "After the yellow cube collided with the brown sphere, will the yellow cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What material is the brown sphere made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "If the purple sphere were removed, would the yellow 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 happened right after the purple sphere collided with the gray cylinder?", "answer": "the yellow cube collided with the brown sphere", "choices": [ "nothing happened", "the brown sphere collided with the wall", "the yellow cube collided with the brown sphere", "the gray cylinder collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 4 ] }, { "op": "query_after_event" } ] }, { "question": "How many green 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": "green" }, { "op": "count" } ] } ] }, { "video_index": 74, "video_filename": "videos/video_00074.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.30189420929868555, "position": [ -0.63172555376201, 0.40008053551618983 ], "velocity": [ 0.22533180926277657, -0.9652130795758864 ], "spin": 0.5380266751413423, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17584961097193502, "position": [ 1.4935607500861299, 1.4014686638406675 ], "velocity": [ -0.8442492979845655, -1.0077449193819463 ], "spin": 0.9335783982163726, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2912162197980571, "position": [ 1.3059578434905033, -1.0644582340197455 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3466613510444554, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.3132625587697496, "position": [ -0.11869096159621861, -1.4144613441623954 ], "velocity": [ 0.0, 0.0 ], "spin": 0.5000030588605648, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19070288766272592, "position": [ -1.0787072582000587, -0.4912288625220518 ], "velocity": [ 1.4236561442270828, -0.3611625888164481 ], "spin": -0.31911211678404783, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.30118336840591536, "position": [ 0.42164094524893403, -0.6851858497755254 ], "velocity": [ 0.7677545085808546, -1.0079122093531359 ], "spin": 0.6266109559030357, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 9, "objects": [ 2, 5 ], "description": "the blue cylinder collided with the purple cylinder" }, { "frame": 34, "objects": [ 4, 5 ], "description": "the green cylinder collided with the purple cylinder" }, { "frame": 34, "objects": [ 0, 3 ], "description": "the yellow cylinder collided with the cyan cylinder" }, { "frame": 42, "objects": [ 2, 5 ], "description": "the blue cylinder collided with the purple cylinder" }, { "frame": 50, "objects": [ 3, 5 ], "description": "the cyan cylinder collided with the purple cylinder" }, { "frame": 52, "objects": [ 0, 1 ], "description": "the yellow cylinder collided with the red cube" }, { "frame": 57, "objects": [ 0, 3 ], "description": "the yellow cylinder collided with the cyan cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 52, "cause_collision": { "frame": 52, "objects": [ 0, 1 ] } }, { "object": 2, "type": "start", "frame": 9, "cause_collision": { "frame": 9, "objects": [ 2, 5 ] } }, { "object": 3, "type": "start", "frame": 34, "cause_collision": { "frame": 34, "objects": [ 0, 3 ] } } ], "initially_moving": [ 0, 1, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 9, "objects": [ 2, 5 ] }, { "frame": 34, "objects": [ 4, 5 ] }, { "frame": 34, "objects": [ 0, 3 ] }, { "frame": 42, "objects": [ 2, 5 ] }, { "frame": 50, "objects": [ 3, 5 ] }, { "frame": 52, "objects": [ 0, 1 ] }, { "frame": 57, "objects": [ 0, 3 ] } ], "starts": { "0": [ 52 ], "1": [], "2": [ 9 ], "3": [ 34 ], "4": [], "5": [] }, "stops": { "0": [ 42 ], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 4, 5 ], "wall_hits": [ [ 23, 2, 0, 1 ], [ 26, 5, 1, -1 ], [ 43, 3, 1, -1 ], [ 57, 4, 0, 1 ] ] }, "questions": [ { "question": "How many objects are there?", "answer": "6", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 5, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "What shape is the blue object?", "answer": "cylinder", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "What happened right after the cyan cylinder collided with the purple cylinder?", "answer": "the yellow cylinder collided with the red cube", "choices": [ "the blue cylinder collided with the wall", "the yellow cylinder collided with the red cube", "the yellow cylinder collided with the cyan cylinder", "nothing happened" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_after_event" } ] }, { "question": "How many objects were moving when the green cylinder collided with the purple cylinder?", "answer": "6", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the red cube were removed, would the blue cylinder still collide with the purple 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": [ 2, 5 ] }, { "op": "query_existence" } ] }, { "question": "After the yellow cylinder collided with the cyan cylinder, will the yellow cylinder collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the blue cylinder were removed, would the yellow cylinder still collide with the red 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": [ 0, 1 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 75, "video_filename": "videos/video_00075.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cube", "material": "metal", "size": "large", "radius": 0.33632554853403995, "position": [ 1.4156468793504444, 1.3207188980276177 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4003634857696392, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.31235899336556283, "position": [ 0.15768829556382924, 0.606562720791173 ], "velocity": [ 0.925454346718553, 0.3790994705620675 ], "spin": -0.9921044231687386, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3110707361769539, "position": [ -0.8925362613071036, -1.4246515934837474 ], "velocity": [ 0.0, 0.0 ], "spin": -0.2724510385186234, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1936663142319656, "position": [ -1.1926678893291038, 0.4399430756920586 ], "velocity": [ 0.7839517740301694, -0.2975259953775679 ], "spin": -0.7828715594691537, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.29905897123547903, "position": [ -0.7300695299599623, 1.5073769840097435 ], "velocity": [ 0.0, 0.0 ], "spin": 0.2916190655054949, "is_probe": false }, { "idx": 5, "color": "green", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1917374243336743, "position": [ -0.13283854138525397, -0.8964396561209517 ], "velocity": [ 0.0, 0.0 ], "spin": -0.09304223562193759, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 21, "objects": [ 0, 1 ], "description": "the blue cube collided with the gray cube" }, { "frame": 60, "objects": [ 1, 3 ], "description": "the gray cube collided with the brown cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 21, "cause_collision": { "frame": 21, "objects": [ 0, 1 ] } } ], "initially_moving": [ 1, 3 ] }, "raw_events": { "collisions": [ { "frame": 21, "objects": [ 0, 1 ] }, { "frame": 60, "objects": [ 1, 3 ] } ], "starts": { "0": [ 21 ], "1": [], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [ 60 ], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 3 ], "wall_hits": [ [ 39, 0, 0, 1 ], [ 54, 0, 1, 1 ] ] }, "questions": [ { "question": "What shape is the brown object?", "answer": "cylinder", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "How many objects were moving when the blue cube collided with the gray cube?", "answer": "3", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 2, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What caused the blue cube to start moving?", "answer": "the collision with the gray cube", "choices": [ "nothing - it was already moving", "it was pushed by the wall", "the collision with the brown cylinder", "the collision with the gray cube" ], "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 blue 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": "Will the purple sphere collide with the brown cylinder 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": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the blue object?", "answer": "cube", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "What shape is the purple object?", "answer": "sphere", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "If the cyan cylinder were removed, would the blue cube 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": 0 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 76, "video_filename": "videos/video_00076.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.278826163729584, "position": [ -0.4403742636578447, -1.0107254112081814 ], "velocity": [ 1.0944638767472268, 1.1725874877819074 ], "spin": -0.7702430382501851, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.16030316277325826, "position": [ -1.5335969162262255, -0.7336497668305831 ], "velocity": [ 0.012611701484186421, -0.9190693158611629 ], "spin": 0.5930222999287338, "is_probe": false }, { "idx": 2, "color": "red", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.16255396288539986, "position": [ -1.383103821107026, 0.024264780113348206 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8787308643330608, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.18061029277525456, "position": [ 1.2625955333181385, 0.44267735754964566 ], "velocity": [ 1.0122384188690312, 1.010492297674868 ], "spin": 0.8703686346215371, "is_probe": false }, { "idx": 4, "color": "cyan", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.14119816505865798, "position": [ -0.9140086382604327, 1.4218944594500111 ], "velocity": [ -0.04693084173144399, -1.3908174897777112 ], "spin": 0.8244384927974284, "is_probe": false }, { "idx": 5, "color": "blue", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1974848121668705, "position": [ -1.1596113110453363, -1.2016711924776589 ], "velocity": [ 0.0, 0.0 ], "spin": 0.18780032032994765, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 45, "objects": [ 4, 5 ], "description": "the cyan cylinder collided with the blue sphere" }, { "frame": 47, "objects": [ 1, 5 ], "description": "the brown cylinder collided with the blue sphere" } ], "motion_events": [ { "object": 5, "type": "start", "frame": 45, "cause_collision": { "frame": 45, "objects": [ 4, 5 ] } } ], "initially_moving": [ 0, 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 45, "objects": [ 4, 5 ] }, { "frame": 47, "objects": [ 1, 5 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [ 45 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 3, 4 ], "wall_hits": [ [ 14, 3, 0, 1 ], [ 32, 1, 1, -1 ], [ 36, 3, 1, 1 ], [ 54, 0, 0, 1 ], [ 63, 1, 0, -1 ] ] }, "questions": [ { "question": "How many gray 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": "gray" }, { "op": "count" } ] }, { "question": "How many objects were moving when the brown cylinder collided with the blue sphere?", "answer": "5", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 5 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What happened right before the brown cylinder collided with the blue sphere?", "answer": "the cyan cylinder collided with the blue sphere", "choices": [ "the cyan cylinder collided with the blue sphere", "the purple cylinder collided with the wall", "nothing happened", "the gray cube collided with the wall" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 5 ] }, { "op": "query_before_event" } ] }, { "question": "After the brown cylinder collided with the blue sphere, will the brown 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": [ 1, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the red sphere were removed, would the cyan cylinder still collide with the blue sphere?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "query_existence" } ] }, { "question": "If the purple cylinder were removed, would the blue sphere still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 5 }, { "op": "query_motion_start" } ] }, { "question": "How many rubber objects are there?", "answer": "4", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "question": "How many red objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "red" }, { "op": "count" } ] } ] }, { "video_index": 77, "video_filename": "videos/video_00077.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18493930688760687, "position": [ -0.20533262571138944, 0.023121674289264815 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0882839407602032, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.33928723535585675, "position": [ 0.8478117063380697, -1.3087559799488593 ], "velocity": [ 1.0413093400375848, -0.24559235886270273 ], "spin": 0.4526475601637876, "is_probe": false }, { "idx": 2, "color": "red", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2679395333399903, "position": [ 1.4821001605542705, 0.9067414099113347 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4470958900953605, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.16578380174754645, "position": [ -1.3019723609274516, 1.4659875322036753 ], "velocity": [ -0.08736099048839625, 1.5916863595486657 ], "spin": -0.059341278800201014, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2872537859629681, "position": [ 0.9031369879422437, 0.05912455331455857 ], "velocity": [ 0.0, 0.0 ], "spin": -0.3967720495815876, "is_probe": false }, { "idx": 5, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.19105655226559504, "position": [ -1.1058932761049711, 0.4868096232838164 ], "velocity": [ 0.0, 0.0 ], "spin": -0.29699690774301746, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 27, "objects": [ 3, 5 ], "description": "the purple sphere collided with the gray cube" }, { "frame": 57, "objects": [ 0, 5 ], "description": "the green sphere collided with the gray cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 57, "cause_collision": { "frame": 57, "objects": [ 0, 5 ] } }, { "object": 5, "type": "start", "frame": 27, "cause_collision": { "frame": 27, "objects": [ 3, 5 ] } } ], "initially_moving": [ 1, 3 ] }, "raw_events": { "collisions": [ { "frame": 27, "objects": [ 3, 5 ] }, { "frame": 57, "objects": [ 0, 5 ] } ], "starts": { "0": [ 57 ], "1": [], "2": [], "3": [], "4": [], "5": [ 27 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 3 ], "wall_hits": [ [ 5, 3, 1, 1 ], [ 20, 1, 0, 1 ], [ 38, 1, 1, -1 ], [ 43, 3, 0, -1 ] ] }, "questions": [ { "question": "If the purple sphere were removed, would the gray cube 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": 5 }, { "op": "query_motion_start" } ] }, { "question": "What color is the object in front of the yellow sphere?", "answer": "cyan", "choices": [ "red", "brown", "purple", "cyan", "gray", "green", "yellow", "blue" ], "answer_index": 3, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "After the purple sphere collided with the gray cube, will the purple sphere collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What caused the green sphere to start moving?", "answer": "the collision with the gray cube", "choices": [ "the collision with the purple sphere", "nothing - it was already moving", "it was pushed by the wall", "the collision with the gray cube" ], "answer_index": 3, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 0 }, { "op": "query_motion_cause" } ] }, { "question": "What material is the yellow sphere made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "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": "What happened right after the purple sphere collided with the gray cube?", "answer": "the green sphere collided with the gray cube", "choices": [ "the purple sphere collided with the wall", "the cyan cube collided with the wall", "the green sphere collided with the gray cube", "the green sphere started moving" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_after_event" } ] }, { "question": "If the green sphere were removed, would the gray cube still start moving?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 5 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 78, "video_filename": "videos/video_00078.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2693131917185662, "position": [ -1.3252361643199733, -1.4868397262970963 ], "velocity": [ -0.31902816755254404, 1.2435533175543034 ], "spin": -1.2777467244912808, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.31016271727446965, "position": [ -0.29552710586929454, -1.202330467676701 ], "velocity": [ -1.1347692723651395, -0.24820364349019533 ], "spin": -1.113162608660594, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.29889099403753655, "position": [ 0.5472826209626163, -0.8988933462906803 ], "velocity": [ 0.0, 0.0 ], "spin": 0.43297658053199894, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.29993041015337535, "position": [ 1.0144036011846354, 1.087846157849299 ], "velocity": [ 0.4004352543584915, 1.197021292542255 ], "spin": 0.594041915266871, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.33892961010293043, "position": [ -0.9704274051964725, -0.5944826616645078 ], "velocity": [ -1.1105823001605644, -1.2075006710276113 ], "spin": 0.8528714828281458, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 3, "objects": [ 0, 4 ], "description": "the red cube collided with the yellow cylinder" }, { "frame": 11, "objects": [ 0, 4 ], "description": "the red cube collided with the yellow cylinder" }, { "frame": 15, "objects": [ 0, 1 ], "description": "the red cube collided with the green cylinder" }, { "frame": 22, "objects": [ 0, 1 ], "description": "the red cube collided with the green cylinder" }, { "frame": 30, "objects": [ 0, 1 ], "description": "the red cube collided with the green cylinder" } ], "motion_events": [], "initially_moving": [ 0, 1, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 3, "objects": [ 0, 4 ] }, { "frame": 11, "objects": [ 0, 4 ] }, { "frame": 15, "objects": [ 0, 1 ] }, { "frame": 22, "objects": [ 0, 1 ] }, { "frame": 30, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 3, 4 ], "wall_hits": [ [ 8, 0, 1, -1 ], [ 8, 0, 0, -1 ], [ 13, 3, 1, 1 ], [ 15, 0, 1, -1 ], [ 17, 0, 1, -1 ], [ 18, 0, 0, -1 ], [ 23, 0, 1, -1 ], [ 33, 4, 0, -1 ], [ 46, 3, 0, 1 ] ] }, "questions": [ { "question": "How many collisions happened in the video?", "answer": "5", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 4, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "After the red cube collided with the green cylinder, will the red cube collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the brown cylinder were removed, would the red cube still collide with the green cylinder?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the red cube collided with the green cylinder?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What shape is the yellow object?", "answer": "cylinder", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "query_shape" } ] }, { "question": "How many metal objects are there?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 3, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "metal" }, { "op": "count" } ] }, { "question": "What material is the red cube made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "red" }, { "op": "filter_shape", "value": "cube" }, { "op": "query_material" } ] }, { "question": "If the brown cylinder were removed, would the red cube still collide with the yellow cylinder?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 79, "video_filename": "videos/video_00079.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cube", "material": "metal", "size": "large", "radius": 0.32347716423741146, "position": [ -0.18860713504010707, 0.4072920003828031 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7332498183081616, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.16833157499112197, "position": [ 1.4469043297599746, 0.42901154600291025 ], "velocity": [ 0.0, 0.0 ], "spin": -1.4393992706376828, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.31666533175159295, "position": [ -0.3564524586053357, 1.257153846608661 ], "velocity": [ 0.42239869375669303, -0.568466388245834 ], "spin": -0.5419521946360282, "is_probe": false }, { "idx": 3, "color": "red", "shape": "cube", "material": "metal", "size": "small", "radius": 0.1595019413380649, "position": [ 0.662714251114177, 0.40870542326032955 ], "velocity": [ -0.03353866554359142, 1.6994271652343398 ], "spin": 1.390667000419108, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1934530779711599, "position": [ 0.602698371206255, -0.7546437546148275 ], "velocity": [ -0.901405081670014, 0.7777485219883084 ], "spin": 0.4586793238949678, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 9, "objects": [ 0, 2 ], "description": "the blue cube collided with the brown cube" }, { "frame": 18, "objects": [ 0, 4 ], "description": "the blue cube collided with the green cube" }, { "frame": 32, "objects": [ 2, 3 ], "description": "the brown cube collided with the red cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 9, "cause_collision": { "frame": 9, "objects": [ 0, 2 ] } } ], "initially_moving": [ 2, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 9, "objects": [ 0, 2 ] }, { "frame": 18, "objects": [ 0, 4 ] }, { "frame": 32, "objects": [ 2, 3 ] } ], "starts": { "0": [ 9 ], "1": [], "2": [], "3": [], "4": [] }, "stops": { "0": [ 18 ], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 2, 3, 4 ], "wall_hits": [ [ 21, 3, 1, 1 ], [ 52, 4, 1, -1 ] ] }, "questions": [ { "question": "If the yellow cylinder were removed, would the blue cube still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "How many brown 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": "brown" }, { "op": "count" } ] }, { "question": "What happened right before the blue cube collided with the green cube?", "answer": "the blue cube collided with the brown cube", "choices": [ "the green cube collided with the wall", "the blue cube collided with the brown cube", "the brown cube collided with the red cube", "the blue cube started moving" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_before_event" } ] }, { "question": "Will the blue cube collide with the green 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": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the blue cube were removed, would the brown cube still collide with the red 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 blue cube collided with the green cube?", "answer": "the brown cube collided with the red cube", "choices": [ "the brown cube collided with the red cube", "nothing happened", "the blue cube started moving", "the blue cube collided with the brown cube" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 4 ] }, { "op": "query_after_event" } ] }, { "question": "What color is the object behind the blue cube?", "answer": "brown", "choices": [ "green", "brown", "gray", "purple", "red", "blue", "yellow", "cyan" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "What color is the object in front of the red cube?", "answer": "green", "choices": [ "green", "gray", "yellow", "brown", "red", "cyan", "purple", "blue" ], "answer_index": 0, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] } ] }, { "video_index": 80, "video_filename": "videos/video_00080.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "cube", "material": "metal", "size": "large", "radius": 0.29397265668095174, "position": [ 0.55782637790897, -0.4174999870382723 ], "velocity": [ 0.5866486908917932, -1.583061575708469 ], "spin": 0.2742036553128666, "is_probe": false }, { "idx": 1, "color": "green", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18239671396195273, "position": [ -0.2878764204385056, -0.5738861825887571 ], "velocity": [ -1.1750323838479506, 0.16262054874645368 ], "spin": 1.4560000506832256, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2930061117502982, "position": [ 0.009906933432691778, 1.0574838477939614 ], "velocity": [ 0.6185615040161498, 1.4915843083754545 ], "spin": -0.9878410069249498, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.31194258487804916, "position": [ -1.3617165201383852, 1.0359556300411976 ], "velocity": [ 0.48860629013260753, -0.6938547500311136 ], "spin": 0.8120382754125703, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cube", "material": "metal", "size": "large", "radius": 0.31844925082368614, "position": [ -0.29408281070110376, 0.25098854128008474 ], "velocity": [ 0.0, 0.0 ], "spin": -1.473675882196574, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 24, "objects": [ 3, 4 ], "description": "the yellow sphere collided with the purple cube" }, { "frame": 43, "objects": [ 1, 3 ], "description": "the green cylinder collided with the yellow sphere" }, { "frame": 48, "objects": [ 0, 2 ], "description": "the cyan cube collided with the brown sphere" }, { "frame": 60, "objects": [ 2, 4 ], "description": "the brown sphere collided with the purple cube" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 24, "cause_collision": { "frame": 24, "objects": [ 3, 4 ] } } ], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 24, "objects": [ 3, 4 ] }, { "frame": 43, "objects": [ 1, 3 ] }, { "frame": 48, "objects": [ 0, 2 ] }, { "frame": 60, "objects": [ 2, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 24 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 11, 2, 1, 1 ], [ 21, 0, 1, -1 ], [ 34, 1, 0, -1 ], [ 50, 0, 0, 1 ] ] }, "questions": [ { "question": "What shape is the brown object?", "answer": "sphere", "choices": [ "cylinder", "cube", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "What happened right after the brown sphere collided with the purple cube?", "answer": "nothing happened", "choices": [ "the green cylinder collided with the wall", "the purple cube started moving", "the cyan cube collided with the brown sphere", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_after_event" } ] }, { "question": "Will the cyan cube collide with the purple 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": [ 0, 4 ] }, { "op": "query_existence" } ] }, { "question": "If the brown sphere were removed, would the yellow sphere still collide with the purple 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": [ 3, 4 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the brown sphere collided with the purple cube?", "answer": "the cyan cube collided with the brown sphere", "choices": [ "the green cylinder collided with the wall", "the brown sphere collided with the wall", "the cyan cube collided with the brown sphere", "the cyan cube collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_before_event" } ] }, { "question": "How many brown objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "count" } ] }, { "question": "If the purple cube were removed, would the green cylinder still collide with the yellow sphere?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 4 }, { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "query_existence" } ] }, { "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" } ] } ] }, { "video_index": 81, "video_filename": "videos/video_00081.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1516229496499144, "position": [ -1.406489629340747, -0.33895023372914257 ], "velocity": [ 0.0, 0.0 ], "spin": 0.4108697947683735, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.17431457430117087, "position": [ 1.2347934581560038, -0.7074459978389027 ], "velocity": [ -0.9817911214822106, -0.4255548833973308 ], "spin": 1.459281637762043, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19452155958042683, "position": [ -1.1953208895296126, 0.8477090842703652 ], "velocity": [ -0.7785942292091822, 0.21044702178359076 ], "spin": 1.0188064333203304, "is_probe": false }, { "idx": 3, "color": "red", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1662133487070914, "position": [ -1.0009181638792106, -1.3212419472574337 ], "velocity": [ 0.0, 0.0 ], "spin": -0.9759877049619597, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.2708758937998012, "position": [ -0.9127579764575164, 1.5300206538566965 ], "velocity": [ 0.17934395015106125, 0.9155291273229117 ], "spin": -1.1379574532828671, "is_probe": false }, { "idx": 5, "color": "green", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3161043679603127, "position": [ 0.09014006796699081, 0.7156256281292068 ], "velocity": [ -0.961885173996531, -1.0655632423087762 ], "spin": -0.7276837672343521, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 28, "objects": [ 0, 5 ], "description": "the yellow cylinder collided with the green sphere" }, { "frame": 40, "objects": [ 3, 5 ], "description": "the red cube collided with the green sphere" }, { "frame": 49, "objects": [ 1, 3 ], "description": "the cyan cylinder collided with the red cube" }, { "frame": 59, "objects": [ 3, 5 ], "description": "the red cube collided with the green sphere" }, { "frame": 61, "objects": [ 1, 3 ], "description": "the cyan cylinder collided with the red cube" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 28, "cause_collision": { "frame": 28, "objects": [ 0, 5 ] } }, { "object": 3, "type": "start", "frame": 40, "cause_collision": { "frame": 40, "objects": [ 3, 5 ] } } ], "initially_moving": [ 1, 2, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 28, "objects": [ 0, 5 ] }, { "frame": 40, "objects": [ 3, 5 ] }, { "frame": 49, "objects": [ 1, 3 ] }, { "frame": 59, "objects": [ 3, 5 ] }, { "frame": 61, "objects": [ 1, 3 ] } ], "starts": { "0": [ 28 ], "1": [], "2": [], "3": [ 40 ], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 2, 4, 5 ], "wall_hits": [ [ 5, 4, 1, 1 ], [ 20, 2, 0, -1 ], [ 39, 0, 0, -1 ], [ 54, 3, 1, -1 ], [ 58, 5, 0, -1 ] ] }, "questions": [ { "question": "If the cyan cylinder were removed, would the red cube still collide with the green 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": [ 3, 5 ] }, { "op": "query_existence" } ] }, { "question": "What color is the object behind the green sphere?", "answer": "brown", "choices": [ "yellow", "green", "blue", "red", "cyan", "brown", "purple", "gray" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "green" }, { "op": "relate", "direction": "behind" }, { "op": "query_color" } ] }, { "question": "Which object started moving right after the yellow cylinder collided with the green sphere?", "answer": "the red cube", "choices": [ "the red cube", "the cyan cylinder", "none of them", "the brown cylinder" ], "answer_index": 0, "question_type": "explanatory", "template": "who_started_after", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "query_after_motion_start" } ] }, { "question": "What happened right after the yellow cylinder collided with the green sphere?", "answer": "the red cube collided with the green sphere", "choices": [ "the red cube collided with the green sphere", "the brown cylinder collided with the wall", "nothing happened" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "query_after_event" } ] }, { "question": "How many cylinder objects are there?", "answer": "4", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "op": "count" } ] }, { "question": "What shape is the blue object?", "answer": "cylinder", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "Will the yellow cylinder collide with the green 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": [ 0, 5 ] }, { "op": "query_existence" } ] }, { "question": "If the green sphere were removed, would the yellow cylinder 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": 0 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 82, "video_filename": "videos/video_00082.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2620651563415073, "position": [ 0.7299544483961606, 1.0068145619281939 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6156594211706128, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.14129075074008823, "position": [ -0.47152007033379695, 1.3053031033556517 ], "velocity": [ -0.6853576934246728, 1.3769564012878661 ], "spin": 0.19734940885502317, "is_probe": false }, { "idx": 2, "color": "red", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.18692624067309047, "position": [ 1.4100152823695165, 0.21803411430331487 ], "velocity": [ 0.0, 0.0 ], "spin": 0.7330546544070571, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17087552610419587, "position": [ 0.7700350654668087, -0.09404558388685169 ], "velocity": [ 0.2232853008316784, -0.8170366215733229 ], "spin": 0.9438437246788913, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.18111725471590323, "position": [ 0.12365420349530498, 0.23501962461118286 ], "velocity": [ 0.7452036064160908, -0.06887475543576721 ], "spin": 1.397973181291901, "is_probe": false }, { "idx": 5, "color": "yellow", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2742535251322962, "position": [ 1.448961579127521, -1.5229817859625259 ], "velocity": [ 0.5861428086576115, 0.40014992260686266 ], "spin": -0.9512710099272138, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 27, "objects": [ 3, 5 ], "description": "the cyan cube collided with the yellow cube" }, { "frame": 33, "objects": [ 2, 4 ], "description": "the red sphere collided with the brown cube" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 33, "cause_collision": { "frame": 33, "objects": [ 2, 4 ] } } ], "initially_moving": [ 1, 3, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 27, "objects": [ 3, 5 ] }, { "frame": 33, "objects": [ 2, 4 ] } ], "starts": { "0": [], "1": [], "2": [ 33 ], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 3, 4, 5 ], "wall_hits": [ [ 10, 1, 1, 1 ], [ 12, 5, 0, 1 ], [ 56, 1, 0, -1 ] ] }, "questions": [ { "question": "If the yellow cube were removed, would the red sphere still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "filter_object", "idx": 2 }, { "op": "query_motion_start" } ] }, { "question": "What shape is the yellow object?", "answer": "cube", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "query_shape" } ] }, { "question": "What caused the red sphere to start moving?", "answer": "the collision with the brown cube", "choices": [ "nothing - it was already moving", "the collision with the cyan cube", "the collision with the brown cube", "it was pushed by the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 2 }, { "op": "query_motion_cause" } ] }, { "question": "How many objects were moving when the red sphere collided with the brown cube?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What shape is the brown object?", "answer": "cube", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] }, { "question": "After the red sphere collided with the brown cube, will the red sphere 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, 4 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "If the yellow cube were removed, would the red sphere still collide with the brown 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": [ 2, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many objects are there?", "answer": "6", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 5, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] } ] }, { "video_index": 83, "video_filename": "videos/video_00083.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.3060920248686375, "position": [ -0.09040478185404655, 1.063152084158039 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1310169639488068, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.17819707496053863, "position": [ -1.0220100455963572, 0.20151599161816858 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7787513040734434, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.26396271525846066, "position": [ -0.6224134166584899, -1.4051601202933544 ], "velocity": [ -0.5923985821272783, 0.8378064948508879 ], "spin": 0.7076713337738783, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1756829752649674, "position": [ 1.341700688857146, -1.014590242084069 ], "velocity": [ 1.288400539497956, -0.19635940361551832 ], "spin": 0.24355727984394226, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14879833530762326, "position": [ -1.2905900882051689, -0.7132722498550457 ], "velocity": [ 0.0, 0.0 ], "spin": 0.0863654247078871, "is_probe": false }, { "idx": 5, "color": "blue", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.27393684639411603, "position": [ 0.7896671972210922, 0.004222567221688234 ], "velocity": [ 0.0, 0.0 ], "spin": -0.8271814398846885, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 14, "objects": [ 2, 4 ], "description": "the cyan sphere collided with the green cube" }, { "frame": 52, "objects": [ 1, 4 ], "description": "the gray cylinder collided with the green cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 52, "cause_collision": { "frame": 52, "objects": [ 1, 4 ] } }, { "object": 4, "type": "start", "frame": 14, "cause_collision": { "frame": 14, "objects": [ 2, 4 ] } } ], "initially_moving": [ 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 14, "objects": [ 2, 4 ] }, { "frame": 52, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [ 52 ], "2": [], "3": [], "4": [ 14 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 2, 3 ], "wall_hits": [ [ 9, 3, 0, 1 ], [ 31, 4, 0, -1 ] ] }, "questions": [ { "question": "What color is the object in front of the green cube?", "answer": "cyan", "choices": [ "purple", "green", "red", "blue", "gray", "cyan", "yellow", "brown" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "green" }, { "op": "relate", "direction": "in_front_of" }, { "op": "query_color" } ] }, { "question": "If the blue cube were removed, would the gray cylinder still collide with the green 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": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the cyan sphere collided with the green cube?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "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": "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": "Will the gray cylinder collide with the green cube 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, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many rubber objects are there?", "answer": "5", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 4, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "question": "If the blue cube 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": 5 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 84, "video_filename": "videos/video_00084.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cube", "material": "metal", "size": "large", "radius": 0.27791692588624495, "position": [ -0.9267349320551037, -1.4569651180931518 ], "velocity": [ 0.0, 0.0 ], "spin": 0.029466088199317175, "is_probe": false }, { "idx": 1, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2907970275409931, "position": [ 0.3202629909575547, 0.10619084032735171 ], "velocity": [ 0.17408234617255405, -0.865295911634676 ], "spin": -0.4502759136480772, "is_probe": false }, { "idx": 2, "color": "green", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14480769156081075, "position": [ 1.4760135767722822, -0.31208857340359164 ], "velocity": [ -1.013448359685312, -0.7557337167562531 ], "spin": -0.5547443643018437, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 19, "objects": [ 1, 2 ], "description": "the yellow sphere collided with the green cube" }, { "frame": 48, "objects": [ 1, 2 ], "description": "the yellow sphere collided with the green cube" } ], "motion_events": [], "initially_moving": [ 1, 2 ] }, "raw_events": { "collisions": [ { "frame": 19, "objects": [ 1, 2 ] }, { "frame": 48, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [] }, "stops": { "0": [], "1": [], "2": [] }, "initially_moving": [ 1, 2 ], "wall_hits": [ [ 37, 2, 1, -1 ] ] }, "questions": [ { "question": "How many cube 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": "cube" }, { "op": "count" } ] }, { "question": "If the red cube were removed, would the yellow sphere 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": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the yellow sphere collided with the green cube?", "answer": "2", "choices": [ "0", "1", "2", "3" ], "answer_index": 2, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What color is the sphere?", "answer": "yellow", "choices": [ "gray", "green", "brown", "cyan", "red", "yellow", "blue", "purple" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "query_color" } ] }, { "question": "How many red objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "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 yellow sphere 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": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the yellow sphere collided with the green cube?", "answer": "2", "choices": [ "0", "1", "2", "3" ], "answer_index": 2, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the red cube collide with the yellow 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, 1 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 85, "video_filename": "videos/video_00085.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17765635177004813, "position": [ -0.155124038810887, -1.4348037745895268 ], "velocity": [ 0.5418393144671918, 0.6397138497251904 ], "spin": -0.9275178644866178, "is_probe": false }, { "idx": 1, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.26801214063326484, "position": [ 0.37092358999347086, 0.8138629901538235 ], "velocity": [ 0.572380191675747, -1.1437269866753854 ], "spin": 1.2951151247045933, "is_probe": false }, { "idx": 2, "color": "green", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2725142445109186, "position": [ 0.4096677190525997, 0.03507616324029583 ], "velocity": [ 0.0, 0.0 ], "spin": 0.3395376462727535, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.29600211270020566, "position": [ -0.4127954056904304, -0.5468251760252536 ], "velocity": [ 0.0, 0.0 ], "spin": -0.011194347294943174, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.1563592461312689, "position": [ 0.7810275043831625, -1.3126164481731042 ], "velocity": [ 0.0, 0.0 ], "spin": -0.4207667011346423, "is_probe": false }, { "idx": 5, "color": "yellow", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.16606514499944902, "position": [ 0.9432318972358014, -0.6829686059323808 ], "velocity": [ 0.31852486566894217, 1.0682681562733969 ], "spin": 1.2499148757377845, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 5, "objects": [ 1, 2 ], "description": "the brown cylinder collided with the green cylinder" }, { "frame": 16, "objects": [ 0, 2 ], "description": "the gray sphere collided with the green cylinder" }, { "frame": 17, "objects": [ 1, 5 ], "description": "the brown cylinder collided with the yellow cylinder" }, { "frame": 32, "objects": [ 1, 5 ], "description": "the brown cylinder collided with the yellow cylinder" }, { "frame": 36, "objects": [ 1, 2 ], "description": "the brown cylinder collided with the green cylinder" }, { "frame": 57, "objects": [ 4, 5 ], "description": "the blue cube collided with the yellow cylinder" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 5, "cause_collision": { "frame": 5, "objects": [ 1, 2 ] } }, { "object": 4, "type": "start", "frame": 57, "cause_collision": { "frame": 57, "objects": [ 4, 5 ] } } ], "initially_moving": [ 0, 1, 5 ] }, "raw_events": { "collisions": [ { "frame": 5, "objects": [ 1, 2 ] }, { "frame": 16, "objects": [ 0, 2 ] }, { "frame": 17, "objects": [ 1, 5 ] }, { "frame": 32, "objects": [ 1, 5 ] }, { "frame": 36, "objects": [ 1, 2 ] }, { "frame": 57, "objects": [ 4, 5 ] } ], "starts": { "0": [], "1": [], "2": [ 5 ], "3": [], "4": [ 57 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 5 ], "wall_hits": [ [ 26, 5, 0, 1 ], [ 33, 0, 1, -1 ], [ 39, 5, 0, 1 ] ] }, "questions": [ { "question": "How many yellow objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "count" } ] }, { "question": "If the gray sphere were removed, would the green cylinder still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "filter_object", "idx": 2 }, { "op": "query_motion_start" } ] }, { "question": "After the brown cylinder collided with the yellow cylinder, will the brown 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": [ 1, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What shape is the blue object?", "answer": "cube", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "If the brown cylinder were removed, would the blue cube still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 4 }, { "op": "query_motion_start" } ] }, { "question": "What happened right before the brown cylinder collided with the yellow cylinder?", "answer": "the gray sphere collided with the green cylinder", "choices": [ "the brown cylinder collided with the green cylinder", "the gray sphere collided with the green cylinder", "the yellow cylinder collided with the wall", "the gray sphere collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 5 ] }, { "op": "query_before_event" } ] }, { "question": "What shape is the green object?", "answer": "cylinder", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "green" }, { "op": "query_shape" } ] }, { "question": "What happened right before the brown cylinder collided with the green cylinder?", "answer": "the brown cylinder collided with the yellow cylinder", "choices": [ "the brown cylinder collided with the yellow cylinder", "the blue cube collided with the yellow cylinder", "nothing happened" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] } ] }, { "video_index": 86, "video_filename": "videos/video_00086.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.2737508631464402, "position": [ 0.08518955689882302, -0.7547355937577517 ], "velocity": [ 0.5054609642049747, -1.2514704994426322 ], "spin": -0.10089565918754007, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2839957847149214, "position": [ 1.0340665003234675, -0.4181566018924472 ], "velocity": [ 0.0, 0.0 ], "spin": 1.3572987445969966, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2834792819481047, "position": [ -1.0413571000381137, -0.5078703466807006 ], "velocity": [ 0.0, 0.0 ], "spin": 0.5306097383226298, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.28526042508492905, "position": [ 1.3894736582549136, 0.5982860538870296 ], "velocity": [ -0.7069368936913293, 0.42819993284287894 ], "spin": -0.9056916119441083, "is_probe": false }, { "idx": 4, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19401577665430125, "position": [ 0.5550329464918449, 1.0935945432307064 ], "velocity": [ -1.3201421727084535, -0.6958986846533364 ], "spin": -1.075195219085252, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 39, "objects": [ 0, 1 ], "description": "the gray sphere collided with the blue sphere" }, { "frame": 57, "objects": [ 2, 4 ], "description": "the yellow cube collided with the purple cylinder" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 39, "cause_collision": { "frame": 39, "objects": [ 0, 1 ] } }, { "object": 2, "type": "start", "frame": 57, "cause_collision": { "frame": 57, "objects": [ 2, 4 ] } } ], "initially_moving": [ 0, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 39, "objects": [ 0, 1 ] }, { "frame": 57, "objects": [ 2, 4 ] } ], "starts": { "0": [], "1": [ 39 ], "2": [ 57 ], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 3, 4 ], "wall_hits": [ [ 20, 0, 1, -1 ], [ 49, 4, 0, -1 ] ] }, "questions": [ { "question": "What material is the purple cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the green cylinder were removed, would the yellow cube still collide with the purple cylinder?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the gray sphere collided with the blue sphere?", "answer": "nothing happened", "choices": [ "the blue sphere started moving", "the yellow cube started moving", "the yellow cube collided with the purple cylinder", "nothing happened" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "What material is the green cylinder made of?", "answer": "rubber", "choices": [ "metal", "rubber" ], "answer_index": 1, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "If the yellow cube were removed, would the blue sphere still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 1 }, { "op": "query_motion_start" } ] }, { "question": "What shape is the yellow object?", "answer": "cube", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "query_shape" } ] }, { "question": "How many objects were moving when the yellow cube collided with the purple cylinder?", "answer": "5", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 5, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the gray sphere collide with the yellow 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" } ] } ] }, { "video_index": 87, "video_filename": "videos/video_00087.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.16957900393962036, "position": [ -0.48688759866895004, -0.7308551391164799 ], "velocity": [ 0.9829407127492552, 0.6794377934000522 ], "spin": 1.377758271067254, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2840339863305415, "position": [ 0.4629968404617093, 1.2815634064318593 ], "velocity": [ -0.16329314236755477, -0.8712104746354331 ], "spin": 0.7923331504225324, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.18723932946663538, "position": [ 0.21266100126067244, -0.3571435305649042 ], "velocity": [ -1.1690401128664654, -0.24395038317697007 ], "spin": 1.186060899798409, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18071499271262775, "position": [ 1.191637278526134, 0.9724253576211332 ], "velocity": [ 1.1425204015450727, 0.8391948605581945 ], "spin": 0.039983219160663275, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 4, "objects": [ 0, 2 ], "description": "the cyan sphere collided with the purple sphere" }, { "frame": 17, "objects": [ 1, 2 ], "description": "the red cylinder collided with the purple sphere" }, { "frame": 50, "objects": [ 2, 3 ], "description": "the purple sphere collided with the brown cylinder" } ], "motion_events": [], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 4, "objects": [ 0, 2 ] }, { "frame": 17, "objects": [ 1, 2 ] }, { "frame": 50, "objects": [ 2, 3 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 14, 3, 0, 1 ], [ 26, 3, 1, 1 ], [ 33, 2, 0, 1 ] ] }, "questions": [ { "question": "What happened right after the cyan sphere collided with the purple sphere?", "answer": "the red cylinder collided with the purple sphere", "choices": [ "nothing happened", "the brown cylinder collided with the wall", "the purple sphere collided with the wall", "the red cylinder collided with the purple sphere" ], "answer_index": 3, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] }, { "question": "If the red cylinder were removed, would the cyan sphere still collide with the purple 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": "If the brown cylinder were removed, would the red cylinder still collide with the purple sphere?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_existence" } ] }, { "question": "After the purple sphere collided with the brown cylinder, will the purple sphere 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 material is the red cylinder made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "red" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "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 happened right after the purple sphere collided with the brown cylinder?", "answer": "nothing happened", "choices": [ "the red cylinder collided with the purple sphere", "the purple sphere collided with the wall", "nothing happened", "the cyan sphere collided with the purple sphere" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] }, { "question": "What shape is the brown object?", "answer": "cylinder", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "brown" }, { "op": "query_shape" } ] } ] }, { "video_index": 88, "video_filename": "videos/video_00088.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.19299762127572856, "position": [ 1.4902866175168124, -0.0635371992730176 ], "velocity": [ -0.2476320158501836, -1.282418215772447 ], "spin": 0.8724196530336661, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1606803218304003, "position": [ -1.4697617486457122, 1.014361431750949 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2960297485891799, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.31125351640588145, "position": [ -0.4595970690563098, 1.3311385793696953 ], "velocity": [ -1.5474096769600139, 0.35438416946954826 ], "spin": 0.39677359171844184, "is_probe": false }, { "idx": 3, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1885732917730741, "position": [ 0.46852276122147285, 1.54329199559718 ], "velocity": [ 0.0, 0.0 ], "spin": 0.6183035662115759, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2707531820144445, "position": [ -0.44453227370726345, -1.3410327507403481 ], "velocity": [ 0.33115641386437533, 0.9047362211036104 ], "spin": 0.7809777829699165, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 56, "objects": [ 2, 3 ], "description": "the brown cylinder collided with the red cylinder" }, { "frame": 63, "objects": [ 2, 4 ], "description": "the brown cylinder collided with the yellow cube" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 56, "cause_collision": { "frame": 56, "objects": [ 2, 3 ] } } ], "initially_moving": [ 0, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 56, "objects": [ 2, 3 ] }, { "frame": 63, "objects": [ 2, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 56 ], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 2, 4 ], "wall_hits": [ [ 20, 2, 0, -1 ], [ 26, 2, 1, 1 ], [ 36, 0, 1, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the brown cylinder collided with the yellow cube?", "answer": "4", "choices": [ "0", "1", "2", "3", "4", "5" ], "answer_index": 4, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 2, 4 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "What color is the object left of the yellow cube?", "answer": "cyan", "choices": [ "green", "brown", "purple", "gray", "yellow", "cyan", "red", "blue" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "After the brown cylinder collided with the red cylinder, will the brown 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": [ 2, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "What color is the object right of the red cylinder?", "answer": "purple", "choices": [ "green", "blue", "red", "purple", "cyan", "brown", "yellow", "gray" ], "answer_index": 3, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "red" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "If the purple sphere were removed, would the brown cylinder still collide with the red cylinder?", "answer": "yes", "choices": [ "yes", "no" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 0 }, { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the cyan cylinder were removed, would the red cylinder still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 1 }, { "op": "filter_object", "idx": 3 }, { "op": "query_motion_start" } ] }, { "question": "What caused the red cylinder to start moving?", "answer": "the collision with the brown cylinder", "choices": [ "the collision with the yellow cube", "it was pushed by the wall", "nothing - it was already moving", "the collision with the brown cylinder" ], "answer_index": 3, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 3 }, { "op": "query_motion_cause" } ] } ] }, { "video_index": 89, "video_filename": "videos/video_00089.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "cube", "material": "metal", "size": "large", "radius": 0.27013472744985134, "position": [ -0.042205320796436574, -1.029030121460101 ], "velocity": [ 0.0, 0.0 ], "spin": -1.2155038504609879, "is_probe": false }, { "idx": 1, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.14301255806395485, "position": [ 0.473366959516601, -0.6180619167216778 ], "velocity": [ 0.47315282809123543, 0.6047126728529073 ], "spin": 0.4361888935760523, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.26269846006115843, "position": [ 0.6617892895384825, 0.3176627158694312 ], "velocity": [ 0.0, 0.0 ], "spin": 0.12386752155021297, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1525263537812739, "position": [ -0.4714593994884382, 1.35879653282794 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3166212342670662, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cube", "material": "metal", "size": "large", "radius": 0.28802847379486013, "position": [ -1.4688596142277968, -1.3728257555188983 ], "velocity": [ 0.0, 0.0 ], "spin": 0.34459051708238375, "is_probe": false }, { "idx": 5, "color": "red", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2726518533265188, "position": [ -0.19902142832715053, -0.2109422928324669 ], "velocity": [ -1.4398485447755576, -0.47965285899121735 ], "spin": -1.3061832940827753, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 33, "objects": [ 4, 5 ], "description": "the brown cube collided with the red sphere" }, { "frame": 59, "objects": [ 0, 5 ], "description": "the cyan cube collided with the red sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 59, "cause_collision": { "frame": 59, "objects": [ 0, 5 ] } }, { "object": 4, "type": "start", "frame": 33, "cause_collision": { "frame": 33, "objects": [ 4, 5 ] } } ], "initially_moving": [ 1, 5 ] }, "raw_events": { "collisions": [ { "frame": 33, "objects": [ 4, 5 ] }, { "frame": 59, "objects": [ 0, 5 ] } ], "starts": { "0": [ 59 ], "1": [], "2": [], "3": [], "4": [ 33 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 5 ], "wall_hits": [ [ 28, 5, 0, -1 ] ] }, "questions": [ { "question": "How many objects were moving when the cyan cube collided with the red sphere?", "answer": "4", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the brown cube collide with the red 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": [ 4, 5 ] }, { "op": "query_existence" } ] }, { "question": "If the purple cylinder were removed, would the brown cube still collide with the red 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": "How many blue 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": "blue" }, { "op": "count" } ] }, { "question": "What shape is the cyan object?", "answer": "cube", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "cyan" }, { "op": "query_shape" } ] }, { "question": "If the blue sphere were removed, would the cyan cube still start moving?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_motion", "program": [ { "op": "remove_object", "idx": 2 }, { "op": "filter_object", "idx": 0 }, { "op": "query_motion_start" } ] }, { "question": "What caused the cyan cube to start moving?", "answer": "the collision with the red sphere", "choices": [ "it was pushed by the wall", "nothing - it was already moving", "the collision with the brown cube", "the collision with the red sphere" ], "answer_index": 3, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 0 }, { "op": "query_motion_cause" } ] }, { "question": "How many purple 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": "purple" }, { "op": "count" } ] } ] }, { "video_index": 90, "video_filename": "videos/video_00090.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "blue", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.14138526389736716, "position": [ 1.1635996711255807, 0.40897295945761214 ], "velocity": [ -0.9459868133249585, 0.7212328725738875 ], "spin": 1.1310090533013466, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cube", "material": "metal", "size": "small", "radius": 0.14220623550185066, "position": [ -0.6941860114319423, -0.9281921338900946 ], "velocity": [ 0.0, 0.0 ], "spin": 1.4725102513719515, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.16915041104999257, "position": [ -0.03729201507834712, -1.0457383007552705 ], "velocity": [ 0.0, 0.0 ], "spin": 0.7548878377878139, "is_probe": false }, { "idx": 3, "color": "red", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17446987921290671, "position": [ 1.5364192098103382, -0.892942249785069 ], "velocity": [ -1.4480184862726755, 0.0009723989061280607 ], "spin": -0.3348992532795658, "is_probe": false }, { "idx": 4, "color": "green", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.19801058960207268, "position": [ 0.9010287673282418, -0.8106338461248378 ], "velocity": [ -0.39746324651918524, -0.6394073325240855 ], "spin": -1.4364476751299966, "is_probe": false }, { "idx": 5, "color": "brown", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.27197959610517053, "position": [ 0.5490159651177156, 1.3196457761638947 ], "velocity": [ 0.0, 0.0 ], "spin": 0.1251358837212473, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 6, "objects": [ 3, 4 ], "description": "the red cube collided with the green cylinder" }, { "frame": 17, "objects": [ 0, 5 ], "description": "the blue cube collided with the brown sphere" }, { "frame": 62, "objects": [ 1, 4 ], "description": "the cyan cube collided with the green cylinder" } ], "motion_events": [ { "object": 5, "type": "start", "frame": 17, "cause_collision": { "frame": 17, "objects": [ 0, 5 ] } } ], "initially_moving": [ 0, 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 6, "objects": [ 3, 4 ] }, { "frame": 17, "objects": [ 0, 5 ] }, { "frame": 62, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [ 17 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 3, 4 ], "wall_hits": [ [ 37, 4, 1, -1 ] ] }, "questions": [ { "question": "Will the blue cube collide with the brown 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": [ 0, 5 ] }, { "op": "query_existence" } ] }, { "question": "If the green cylinder were removed, would the blue cube still collide with the brown sphere?", "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, 5 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the blue cube collided with the brown sphere?", "answer": "4", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 0, 5 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many collisions happened in the video?", "answer": "3", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "If the red cube were removed, would the cyan cube still collide with the green cylinder?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "What material is the green cylinder made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "green" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "What color is the object right of the green cylinder?", "answer": "red", "choices": [ "brown", "gray", "blue", "cyan", "green", "red", "yellow", "purple" ], "answer_index": 5, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "green" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] } ] }, { "video_index": 91, "video_filename": "videos/video_00091.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "green", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.296353305946717, "position": [ 1.0972221542579728, 1.0421384551336768 ], "velocity": [ -0.6079194249473848, -0.8273084996636403 ], "spin": 0.9970953501600253, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.18491122568636437, "position": [ -1.4498116492419941, 1.2132865379087077 ], "velocity": [ 1.1993572854466323, -0.06186694617088883 ], "spin": 0.3446685715348303, "is_probe": false }, { "idx": 2, "color": "brown", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1796229509479084, "position": [ -0.3828965946773071, -1.4679876094788658 ], "velocity": [ -0.8189047223346773, -1.1342551212494478 ], "spin": -0.28877634667631447, "is_probe": false }, { "idx": 3, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.2804887214933166, "position": [ -1.3012170952473974, 0.4325959321269668 ], "velocity": [ -0.9543995690903835, 0.7125328454227892 ], "spin": -1.4605897189693768, "is_probe": false }, { "idx": 4, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.15651230116119738, "position": [ -0.940080418706556, -0.26310013354789064 ], "velocity": [ 0.0, 0.0 ], "spin": -0.7417486720270806, "is_probe": false }, { "idx": 5, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.1987230801433122, "position": [ 0.45799780634864873, 0.4010957909062345 ], "velocity": [ 0.0, 0.0 ], "spin": 1.0702088067533837, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 10, "objects": [ 0, 5 ], "description": "the green cube collided with the gray cube" }, { "frame": 53, "objects": [ 4, 5 ], "description": "the red cylinder collided with the gray cube" } ], "motion_events": [ { "object": 4, "type": "start", "frame": 53, "cause_collision": { "frame": 53, "objects": [ 4, 5 ] } }, { "object": 5, "type": "start", "frame": 10, "cause_collision": { "frame": 10, "objects": [ 0, 5 ] } } ], "initially_moving": [ 0, 1, 2, 3 ] }, "raw_events": { "collisions": [ { "frame": 10, "objects": [ 0, 5 ] }, { "frame": 53, "objects": [ 4, 5 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [], "4": [ 53 ], "5": [ 10 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 1, 2, 3 ], "wall_hits": [ [ 7, 2, 1, -1 ], [ 11, 3, 0, -1 ], [ 48, 2, 0, -1 ], [ 49, 3, 1, 1 ] ] }, "questions": [ { "question": "If the blue cylinder were removed, would the gray cube 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": 5 }, { "op": "query_motion_start" } ] }, { "question": "If the red cylinder were removed, would the gray cube 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": 5 }, { "op": "query_motion_start" } ] }, { "question": "What color is the object right of the gray cube?", "answer": "green", "choices": [ "cyan", "blue", "yellow", "gray", "red", "brown", "purple", "green" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "Will the red cylinder collide with the gray 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": [ 4, 5 ] }, { "op": "query_existence" } ] }, { "question": "What shape is the blue object?", "answer": "cylinder", "choices": [ "cube", "sphere", "cylinder" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "How many collisions happened in the video?", "answer": "2", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "explanatory", "template": "count_collisions", "program": [ { "op": "filter_event", "type": "collision" }, { "op": "count" } ] }, { "question": "What shape is the purple object?", "answer": "cube", "choices": [ "sphere", "cube", "cylinder" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "How many objects were moving when the green cube collided with the gray 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, 5 ] }, { "op": "count_moving_at_collision" } ] } ] }, { "video_index": 92, "video_filename": "videos/video_00092.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "cyan", "shape": "cube", "material": "metal", "size": "large", "radius": 0.2797355226979047, "position": [ -1.3506636081046024, 0.0187968758696071 ], "velocity": [ 0.0, 0.0 ], "spin": 1.2389092409554685, "is_probe": false }, { "idx": 1, "color": "purple", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.28192544352717386, "position": [ 1.1517050962798014, -0.6570218383457267 ], "velocity": [ -1.0330782537824494, -0.6018316569680451 ], "spin": -1.225586626512181, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.19927014419485323, "position": [ -0.5755167076630451, -0.020678000804508656 ], "velocity": [ -0.8276499795130272, 0.6806528808088437 ], "spin": 0.8634885541280126, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.17067323326981101, "position": [ -0.04519911783735431, 1.2261805162059087 ], "velocity": [ 0.0, 0.0 ], "spin": 0.8911065935623399, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "cube", "material": "metal", "size": "large", "radius": 0.29924728085840374, "position": [ 0.05348277113185662, -1.062869459537959 ], "velocity": [ -1.5264204083083561, 0.4362675279445252 ], "spin": 0.06303656179028372, "is_probe": false }, { "idx": 5, "color": "blue", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.3223943938202834, "position": [ -0.8599863131915048, -0.9309063091510095 ], "velocity": [ 0.0, 0.0 ], "spin": -0.681024885413718, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 4, "objects": [ 4, 5 ], "description": "the gray cube collided with the blue sphere" }, { "frame": 11, "objects": [ 0, 2 ], "description": "the cyan cube collided with the red cylinder" }, { "frame": 42, "objects": [ 4, 5 ], "description": "the gray cube collided with the blue sphere" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 11, "cause_collision": { "frame": 11, "objects": [ 0, 2 ] } }, { "object": 5, "type": "start", "frame": 4, "cause_collision": { "frame": 4, "objects": [ 4, 5 ] } } ], "initially_moving": [ 1, 2, 4 ] }, "raw_events": { "collisions": [ { "frame": 4, "objects": [ 4, 5 ] }, { "frame": 11, "objects": [ 0, 2 ] }, { "frame": 42, "objects": [ 4, 5 ] } ], "starts": { "0": [ 11 ], "1": [], "2": [], "3": [], "4": [], "5": [ 4 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 2, 4 ], "wall_hits": [ [ 20, 5, 0, -1 ], [ 48, 1, 1, -1 ], [ 56, 2, 0, -1 ], [ 60, 2, 1, 1 ] ] }, "questions": [ { "question": "If the gray cube were removed, would the cyan cube 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": 0 }, { "op": "query_motion_start" } ] }, { "question": "What color is the object right of the yellow cube?", "answer": "purple", "choices": [ "yellow", "purple", "cyan", "green", "brown", "gray", "blue", "red" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "How many rubber objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "4", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_material", "program": [ { "op": "filter_material", "value": "rubber" }, { "op": "count" } ] }, { "question": "What material is the gray cube 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": "cube" }, { "op": "query_material" } ] }, { "question": "What happened right after the gray cube collided with the blue sphere?", "answer": "the cyan cube collided with the red cylinder", "choices": [ "the blue sphere collided with the wall", "the cyan cube started moving", "the cyan cube collided with the red cylinder", "the purple sphere collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "query_after_event" } ] }, { "question": "How many objects were moving when the gray cube collided with the blue sphere?", "answer": "4", "choices": [ "0", "1", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "If the purple sphere were removed, would the cyan cube still collide with the red 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, 2 ] }, { "op": "query_existence" } ] }, { "question": "After the gray cube collided with the blue sphere, will the gray cube collide with something else?", "answer": "yes", "choices": [ "no", "yes" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 4, 5 ] }, { "op": "query_subsequent_collision" } ] } ] }, { "video_index": 93, "video_filename": "videos/video_00093.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "cylinder", "material": "metal", "size": "large", "radius": 0.3379211487339627, "position": [ 1.272443505935504, -0.131827891326747 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0287569831873404, "is_probe": false }, { "idx": 1, "color": "red", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2906311700653814, "position": [ 0.43998537896191636, 1.3433357317202688 ], "velocity": [ 0.0, 0.0 ], "spin": 0.11032561757474002, "is_probe": false }, { "idx": 2, "color": "cyan", "shape": "sphere", "material": "metal", "size": "large", "radius": 0.29756983869628345, "position": [ 0.8658254350320262, -1.4246027895117883 ], "velocity": [ 0.0, 0.0 ], "spin": 1.1859576999549808, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19151593531359326, "position": [ -0.320582431539014, -0.4639281233198276 ], "velocity": [ 1.511495121366996, -0.6844995356324208 ], "spin": -0.4534989942619245, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.1712586312818196, "position": [ -0.34664292206708924, 1.290013445984447 ], "velocity": [ 1.0452740026147378, -0.19105412050648216 ], "spin": -0.4579503826046021, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 8, "objects": [ 1, 4 ], "description": "the red sphere collided with the brown sphere" }, { "frame": 18, "objects": [ 2, 3 ], "description": "the cyan sphere collided with the green cylinder" }, { "frame": 27, "objects": [ 0, 3 ], "description": "the purple cylinder collided with the green cylinder" } ], "motion_events": [ { "object": 0, "type": "start", "frame": 27, "cause_collision": { "frame": 27, "objects": [ 0, 3 ] } }, { "object": 1, "type": "start", "frame": 8, "cause_collision": { "frame": 8, "objects": [ 1, 4 ] } }, { "object": 2, "type": "start", "frame": 18, "cause_collision": { "frame": 18, "objects": [ 2, 3 ] } } ], "initially_moving": [ 3, 4 ] }, "raw_events": { "collisions": [ { "frame": 8, "objects": [ 1, 4 ] }, { "frame": 18, "objects": [ 2, 3 ] }, { "frame": 27, "objects": [ 0, 3 ] } ], "starts": { "0": [ 27 ], "1": [ 8 ], "2": [ 18 ], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 3, 4 ], "wall_hits": [ [ 47, 2, 1, -1 ], [ 58, 3, 1, -1 ] ] }, "questions": [ { "question": "After the cyan sphere collided with the green cylinder, will the cyan sphere collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_subsequent_collision" } ] }, { "question": "What happened right after the cyan sphere collided with the green cylinder?", "answer": "the purple cylinder collided with the green cylinder", "choices": [ "the green cylinder collided with the wall", "the purple cylinder collided with the green cylinder", "the cyan sphere started moving", "the red sphere collided with the brown sphere" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_after_event" } ] }, { "question": "What shape is the purple object?", "answer": "cylinder", "choices": [ "sphere", "cylinder", "cube" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "query_shape" } ] }, { "question": "What caused the cyan sphere to start moving?", "answer": "the collision with the green cylinder", "choices": [ "the collision with the red sphere", "the collision with the purple cylinder", "the collision with the green cylinder", "the collision with the brown sphere" ], "answer_index": 2, "question_type": "explanatory", "template": "cause_of_motion", "program": [ { "op": "filter_object", "idx": 2 }, { "op": "query_motion_cause" } ] }, { "question": "What shape is the green object?", "answer": "cylinder", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "green" }, { "op": "query_shape" } ] }, { "question": "How many objects are there?", "answer": "5", "choices": [ "0", "2", "3", "4", "5", "6" ], "answer_index": 4, "question_type": "descriptive", "template": "count_all", "program": [ { "op": "count" } ] }, { "question": "If the cyan sphere were removed, would the purple cylinder still collide with the green cylinder?", "answer": "no", "choices": [ "no", "yes" ], "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": "If the green cylinder were removed, would the cyan 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": 2 }, { "op": "query_motion_start" } ] } ] }, { "video_index": 94, "video_filename": "videos/video_00094.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.297004480360104, "position": [ -0.19621914946726848, 0.7249248505355246 ], "velocity": [ -0.9144651485133355, 0.2683363451097237 ], "spin": -0.03815890878893624, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18475124464942486, "position": [ 0.38661147717006505, 0.3308329233311027 ], "velocity": [ 1.0185227367200553, -0.49065671754780116 ], "spin": -0.7394673594392133, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.142506441766628, "position": [ 1.3478320882940673, -0.6101307494664561 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6158011947739616, "is_probe": false }, { "idx": 3, "color": "brown", "shape": "cube", "material": "metal", "size": "large", "radius": 0.26165306885255557, "position": [ -0.996437883442854, 0.40699192609081236 ], "velocity": [ 0.0, 0.0 ], "spin": -0.9830532080296099, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 13, "objects": [ 0, 3 ], "description": "the gray cylinder collided with the brown cube" }, { "frame": 43, "objects": [ 1, 2 ], "description": "the cyan cylinder collided with the yellow sphere" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 43, "cause_collision": { "frame": 43, "objects": [ 1, 2 ] } }, { "object": 3, "type": "start", "frame": 13, "cause_collision": { "frame": 13, "objects": [ 0, 3 ] } } ], "initially_moving": [ 0, 1 ] }, "raw_events": { "collisions": [ { "frame": 13, "objects": [ 0, 3 ] }, { "frame": 43, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [ 43 ], "3": [ 13 ] }, "stops": { "0": [], "1": [], "2": [], "3": [] }, "initially_moving": [ 0, 1 ], "wall_hits": [ [ 37, 1, 0, 1 ], [ 54, 0, 1, 1 ], [ 55, 0, 0, -1 ] ] }, "questions": [ { "question": "What color is the object left of the gray cylinder?", "answer": "brown", "choices": [ "blue", "brown", "green", "yellow", "red", "purple", "cyan", "gray" ], "answer_index": 1, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "Will the cyan cylinder collide with the brown 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": [ 1, 3 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the cyan cylinder collided with the yellow sphere?", "answer": "the gray cylinder collided with the brown cube", "choices": [ "the yellow sphere started moving", "nothing happened", "the gray cylinder collided with the brown cube", "the cyan cylinder collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_before_event" } ] }, { "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 cyan cylinder were removed, would the gray 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": 1 }, { "op": "find_collision", "objects": [ 0, 3 ] }, { "op": "query_existence" } ] }, { "question": "If the brown cube were removed, would the yellow sphere 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": 2 }, { "op": "query_motion_start" } ] }, { "question": "How many cylinder objects are there?", "answer": "2", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 2, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "cylinder" }, { "op": "count" } ] }, { "question": "What happened right after the cyan cylinder collided with the yellow sphere?", "answer": "nothing happened", "choices": [ "the gray cylinder collided with the wall", "the gray cylinder collided with the brown cube", "nothing happened", "the yellow sphere started moving" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] } ] }, { "video_index": 95, "video_filename": "videos/video_00095.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "red", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.15716566589113778, "position": [ 1.2723621483961096, -0.5637829780863403 ], "velocity": [ 1.2489195536306998, -0.1753297571408314 ], "spin": -1.0058925575876203, "is_probe": false }, { "idx": 1, "color": "blue", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17611186482516827, "position": [ 0.5231179742816312, -0.4151199887117163 ], "velocity": [ 0.0, 0.0 ], "spin": 0.0877635700785575, "is_probe": false }, { "idx": 2, "color": "purple", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.32646020761494593, "position": [ -0.5268135164968495, 0.8335609554419288 ], "velocity": [ 0.0, 0.0 ], "spin": -1.182819680440843, "is_probe": false }, { "idx": 3, "color": "cyan", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.17578191267039353, "position": [ -0.041693898584022726, -0.058896774654046746 ], "velocity": [ 1.4348496623807447, -0.3771203188878653 ], "spin": -1.3003131147642386, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.17752036147211028, "position": [ 1.3496871166666786, 0.5443182837168459 ], "velocity": [ 0.0, 0.0 ], "spin": 1.2897911310214698, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 5, "objects": [ 1, 3 ], "description": "the blue sphere collided with the cyan sphere" }, { "frame": 27, "objects": [ 0, 1 ], "description": "the red cylinder collided with the blue sphere" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 5, "cause_collision": { "frame": 5, "objects": [ 1, 3 ] } } ], "initially_moving": [ 0, 3 ] }, "raw_events": { "collisions": [ { "frame": 5, "objects": [ 1, 3 ] }, { "frame": 27, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [ 5 ], "2": [], "3": [], "4": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [] }, "initially_moving": [ 0, 3 ], "wall_hits": [ [ 11, 0, 0, 1 ], [ 48, 0, 0, 1 ] ] }, "questions": [ { "question": "If the purple sphere were removed, would the red cylinder still collide with the blue sphere?", "answer": "yes", "choices": [ "no", "yes" ], "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": "What shape is the blue object?", "answer": "sphere", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "If the cyan sphere were removed, would the red 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": 3 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "How many cylinder 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": "cylinder" }, { "op": "count" } ] }, { "question": "What happened right before the red cylinder collided with the blue sphere?", "answer": "the blue sphere collided with the cyan sphere", "choices": [ "nothing happened", "the blue sphere collided with the cyan sphere", "the red cylinder collided with the wall", "the blue sphere started moving" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "What material is the purple sphere made of?", "answer": "rubber", "choices": [ "rubber", "metal" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "filter_shape", "value": "sphere" }, { "op": "query_material" } ] }, { "question": "How many objects were moving when the red cylinder collided with the blue 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": [ 0, 1 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "Will the blue sphere collide with the cyan 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": [ 1, 3 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 96, "video_filename": "videos/video_00096.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "cube", "material": "rubber", "size": "small", "radius": 0.14662920381640968, "position": [ -0.25791430367471, -0.3118244266877124 ], "velocity": [ -0.5687282158673638, -1.0978768559306564 ], "spin": 0.6453834809719132, "is_probe": false }, { "idx": 1, "color": "red", "shape": "cube", "material": "metal", "size": "large", "radius": 0.27680042971711705, "position": [ 1.3681545904850065, -1.5053975201549634 ], "velocity": [ 0.0, 0.0 ], "spin": 0.030504737025808915, "is_probe": false }, { "idx": 2, "color": "gray", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.19447693589469875, "position": [ 0.11186326503231192, 0.7900417481209854 ], "velocity": [ 0.7296239400496638, 0.7656381945034259 ], "spin": 0.6646655736734264, "is_probe": false }, { "idx": 3, "color": "purple", "shape": "sphere", "material": "rubber", "size": "small", "radius": 0.16807300863062075, "position": [ 0.1561137634489802, 0.10012678505941719 ], "velocity": [ 1.3030447373414165, 0.7001186279743357 ], "spin": 0.9274358881343523, "is_probe": false }, { "idx": 4, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.16217467771969224, "position": [ -0.26086554458344513, 1.4616699936023945 ], "velocity": [ 0.0, 0.0 ], "spin": -0.45296471177334086, "is_probe": false }, { "idx": 5, "color": "blue", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.15740161151517168, "position": [ -1.3060005600087368, -0.7326502809779111 ], "velocity": [ 0.553846419414524, -0.5227263772187349 ], "spin": -0.5027661915875576, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 17, "objects": [ 0, 5 ], "description": "the brown cube collided with the blue cylinder" }, { "frame": 44, "objects": [ 2, 3 ], "description": "the gray cylinder collided with the purple sphere" }, { "frame": 57, "objects": [ 0, 1 ], "description": "the brown cube collided with the red cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 57, "cause_collision": { "frame": 57, "objects": [ 0, 1 ] } } ], "initially_moving": [ 0, 2, 3, 5 ] }, "raw_events": { "collisions": [ { "frame": 17, "objects": [ 0, 5 ] }, { "frame": 44, "objects": [ 2, 3 ] }, { "frame": 57, "objects": [ 0, 1 ] } ], "starts": { "0": [], "1": [ 57 ], "2": [], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 2, 3, 5 ], "wall_hits": [ [ 34, 3, 0, 1 ], [ 35, 2, 1, 1 ], [ 43, 0, 1, -1 ], [ 53, 5, 1, -1 ] ] }, "questions": [ { "question": "If the purple sphere were removed, would the brown cube 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": 3 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "What material is the blue cylinder made of?", "answer": "metal", "choices": [ "metal", "rubber" ], "answer_index": 0, "question_type": "descriptive", "template": "query_material", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "filter_shape", "value": "cylinder" }, { "op": "query_material" } ] }, { "question": "What color is the object left of the yellow cylinder?", "answer": "blue", "choices": [ "gray", "purple", "red", "blue", "brown", "yellow", "cyan", "green" ], "answer_index": 3, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "relate", "direction": "left_of" }, { "op": "query_color" } ] }, { "question": "What shape is the red object?", "answer": "cube", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 2, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "What happened right before the brown cube collided with the red cube?", "answer": "the gray cylinder collided with the purple sphere", "choices": [ "the brown cube collided with the wall", "the gray cylinder collided with the purple sphere", "the red cube started moving", "nothing happened" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_before_event" } ] }, { "question": "If the brown cube were removed, would the gray cylinder still collide with the purple sphere?", "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": "Will the red 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": [ 1, 3 ] }, { "op": "query_existence" } ] }, { "question": "What happened right before the gray cylinder collided with the purple sphere?", "answer": "the brown cube collided with the blue cylinder", "choices": [ "nothing happened", "the brown cube collided with the blue cylinder", "the gray cylinder collided with the wall", "the brown cube collided with the wall" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 2, 3 ] }, { "op": "query_before_event" } ] } ] }, { "video_index": 97, "video_filename": "videos/video_00097.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "brown", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17906567735387996, "position": [ -0.41295837919693645, -0.38437817322883205 ], "velocity": [ 0.0, 0.0 ], "spin": 0.09861352928584965, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.15514958512241572, "position": [ 0.5714542533189169, -1.4812640589927213 ], "velocity": [ -0.3654206867935444, 1.4752223342896882 ], "spin": 1.2095165549668208, "is_probe": false }, { "idx": 2, "color": "red", "shape": "cube", "material": "metal", "size": "small", "radius": 0.19590448425477602, "position": [ -1.3750639832816562, 0.9514999133985207 ], "velocity": [ 0.0, 0.0 ], "spin": 0.21171194151218042, "is_probe": false }, { "idx": 3, "color": "green", "shape": "cube", "material": "metal", "size": "large", "radius": 0.297909129754223, "position": [ -0.03477853955357402, 0.9768426454435646 ], "velocity": [ 0.0, 0.0 ], "spin": 0.677980177482103, "is_probe": false }, { "idx": 4, "color": "gray", "shape": "cylinder", "material": "rubber", "size": "large", "radius": 0.32398938719543446, "position": [ -1.076315542953834, 0.1473609718842086 ], "velocity": [ 0.0, 0.0 ], "spin": -1.0378210786301465, "is_probe": false }, { "idx": 5, "color": "purple", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.29474691953172016, "position": [ 1.1821589479426187, -1.113045402800843 ], "velocity": [ -0.602786788780864, 1.2706973548774418 ], "spin": -0.6441699672409104, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 22, "objects": [ 1, 5 ], "description": "the cyan cylinder collided with the purple cube" }, { "frame": 36, "objects": [ 3, 5 ], "description": "the green cube collided with the purple cube" }, { "frame": 38, "objects": [ 1, 3 ], "description": "the cyan cylinder collided with the green cube" }, { "frame": 57, "objects": [ 1, 4 ], "description": "the cyan cylinder collided with the gray cylinder" } ], "motion_events": [ { "object": 3, "type": "start", "frame": 36, "cause_collision": { "frame": 36, "objects": [ 3, 5 ] } }, { "object": 4, "type": "start", "frame": 57, "cause_collision": { "frame": 57, "objects": [ 1, 4 ] } } ], "initially_moving": [ 1, 5 ] }, "raw_events": { "collisions": [ { "frame": 22, "objects": [ 1, 5 ] }, { "frame": 36, "objects": [ 3, 5 ] }, { "frame": 38, "objects": [ 1, 3 ] }, { "frame": 57, "objects": [ 1, 4 ] } ], "starts": { "0": [], "1": [], "2": [], "3": [ 36 ], "4": [ 57 ], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 5 ], "wall_hits": [] }, "questions": [ { "question": "What happened right before the cyan cylinder collided with the purple cube?", "answer": "nothing happened", "choices": [ "the gray cylinder started moving", "nothing happened", "the green cube started moving", "the green cube collided with the purple cube" ], "answer_index": 1, "question_type": "explanatory", "template": "what_happened_before", "program": [ { "op": "find_collision", "objects": [ 1, 5 ] }, { "op": "query_before_event" } ] }, { "question": "If the purple cube were removed, would the cyan cylinder still collide with the gray cylinder?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 5 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many purple objects are there?", "answer": "1", "choices": [ "0", "1", "2", "3", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_color", "program": [ { "op": "filter_color", "value": "purple" }, { "op": "count" } ] }, { "question": "If the green cube were removed, would the cyan cylinder still collide with the gray cylinder?", "answer": "no", "choices": [ "no", "yes" ], "answer_index": 0, "question_type": "counterfactual", "template": "cf_collision", "program": [ { "op": "remove_object", "idx": 3 }, { "op": "find_collision", "objects": [ 1, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many sphere objects are there?", "answer": "1", "choices": [ "0", "1", "2", "4", "5", "6" ], "answer_index": 1, "question_type": "descriptive", "template": "count_shape", "program": [ { "op": "filter_shape", "value": "sphere" }, { "op": "count" } ] }, { "question": "How many cyan 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": "cyan" }, { "op": "count" } ] }, { "question": "Will the red cube collide with the gray cylinder 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": [ 2, 4 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the cyan cylinder collided with the purple cube?", "answer": "2", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 1, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 5 ] }, { "op": "count_moving_at_collision" } ] } ] }, { "video_index": 98, "video_filename": "videos/video_00098.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "purple", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.2930473706383269, "position": [ 0.15373831936703364, 1.0102196499259406 ], "velocity": [ -0.9173040512272687, 1.167336849190356 ], "spin": 1.0233288982867075, "is_probe": false }, { "idx": 1, "color": "red", "shape": "sphere", "material": "rubber", "size": "large", "radius": 0.3071986414338716, "position": [ -1.2454494462275576, 1.333488222492923 ], "velocity": [ 0.0, 0.0 ], "spin": -1.3685593908137514, "is_probe": false }, { "idx": 2, "color": "yellow", "shape": "cube", "material": "metal", "size": "small", "radius": 0.18557249002506843, "position": [ -0.798082631942513, -0.05569458798407734 ], "velocity": [ 0.0, 0.0 ], "spin": 1.3286189728773001, "is_probe": false }, { "idx": 3, "color": "gray", "shape": "cube", "material": "metal", "size": "small", "radius": 0.15175506613554995, "position": [ 0.16723128021479594, -0.0678711201372928 ], "velocity": [ 0.8966446883462027, -1.4025676553012194 ], "spin": -0.2908705701569585, "is_probe": false }, { "idx": 4, "color": "blue", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.26023651676138965, "position": [ 1.0267635122773002, 0.6414039047294426 ], "velocity": [ 0.0, 0.0 ], "spin": -0.0999026468406159, "is_probe": false }, { "idx": 5, "color": "green", "shape": "cube", "material": "metal", "size": "large", "radius": 0.27588468442185465, "position": [ 0.7309322509394918, -0.38690508212230146 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6551127469765594, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 4, "objects": [ 3, 5 ], "description": "the gray cube collided with the green cube" }, { "frame": 22, "objects": [ 0, 1 ], "description": "the purple sphere collided with the red sphere" }, { "frame": 58, "objects": [ 0, 2 ], "description": "the purple sphere collided with the yellow cube" } ], "motion_events": [ { "object": 1, "type": "start", "frame": 22, "cause_collision": { "frame": 22, "objects": [ 0, 1 ] } }, { "object": 2, "type": "start", "frame": 58, "cause_collision": { "frame": 58, "objects": [ 0, 2 ] } }, { "object": 5, "type": "start", "frame": 4, "cause_collision": { "frame": 4, "objects": [ 3, 5 ] } } ], "initially_moving": [ 0, 3 ] }, "raw_events": { "collisions": [ { "frame": 4, "objects": [ 3, 5 ] }, { "frame": 22, "objects": [ 0, 1 ] }, { "frame": 58, "objects": [ 0, 2 ] } ], "starts": { "0": [], "1": [ 22 ], "2": [ 58 ], "3": [], "4": [], "5": [ 4 ] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 0, 3 ], "wall_hits": [ [ 15, 0, 1, 1 ], [ 36, 1, 0, -1 ], [ 44, 3, 1, -1 ], [ 58, 5, 0, 1 ] ] }, "questions": [ { "question": "After the gray cube collided with the green cube, will the gray cube collide with something else?", "answer": "no", "choices": [ "yes", "no" ], "answer_index": 1, "question_type": "predictive", "template": "will_collide_again", "program": [ { "op": "find_collision", "objects": [ 3, 5 ] }, { "op": "query_subsequent_collision" } ] }, { "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": "If the blue cube were removed, would the purple sphere 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": 4 }, { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_existence" } ] }, { "question": "What happened right after the purple sphere collided with the yellow cube?", "answer": "nothing happened", "choices": [ "the purple sphere collided with the red sphere", "the gray cube collided with the green cube", "nothing happened", "the gray cube collided with the wall" ], "answer_index": 2, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_after_event" } ] }, { "question": "What shape is the red object?", "answer": "sphere", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "red" }, { "op": "query_shape" } ] }, { "question": "What happened right after the purple sphere collided with the red sphere?", "answer": "the purple sphere collided with the yellow cube", "choices": [ "the purple sphere collided with the yellow cube", "the gray cube collided with the green cube", "the yellow cube started moving", "nothing happened" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 0, 1 ] }, { "op": "query_after_event" } ] }, { "question": "What color is the object right of the gray cube?", "answer": "blue", "choices": [ "purple", "cyan", "gray", "red", "brown", "green", "yellow", "blue" ], "answer_index": 7, "question_type": "descriptive", "template": "query_color_rel", "program": [ { "op": "filter_color", "value": "gray" }, { "op": "relate", "direction": "right_of" }, { "op": "query_color" } ] }, { "question": "If the green cube were removed, would the purple sphere 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": 5 }, { "op": "find_collision", "objects": [ 0, 2 ] }, { "op": "query_existence" } ] } ] }, { "video_index": 99, "video_filename": "videos/video_00099.gif", "num_frames": 64, "frame_size": 128, "fps": 25, "scene": { "objects": [ { "idx": 0, "color": "gray", "shape": "sphere", "material": "metal", "size": "small", "radius": 0.17324877045931147, "position": [ 0.9521493378190098, -0.7512091282886527 ], "velocity": [ 0.0, 0.0 ], "spin": -0.6024543553107463, "is_probe": false }, { "idx": 1, "color": "cyan", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.1450703519214281, "position": [ -0.6246893301399945, 0.2903654360136734 ], "velocity": [ -0.33044758365776983, 0.6520462457460796 ], "spin": -0.024393498638709987, "is_probe": false }, { "idx": 2, "color": "blue", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.19438747436091042, "position": [ 0.22812304226378233, 0.8996654228394363 ], "velocity": [ 0.0, 0.0 ], "spin": 0.1341856398957333, "is_probe": false }, { "idx": 3, "color": "yellow", "shape": "cylinder", "material": "metal", "size": "small", "radius": 0.18940428668715145, "position": [ -1.3109974307766894, 1.4028092118898396 ], "velocity": [ -1.310101952970369, -0.13717228430914766 ], "spin": -1.1810507361202847, "is_probe": false }, { "idx": 4, "color": "brown", "shape": "cylinder", "material": "rubber", "size": "small", "radius": 0.1490496267279234, "position": [ -1.2228500263582256, -0.0184779541959339 ], "velocity": [ -0.09014583750029093, 0.8852840099641544 ], "spin": 0.37831920391091467, "is_probe": false }, { "idx": 5, "color": "green", "shape": "cube", "material": "rubber", "size": "large", "radius": 0.2672977792423377, "position": [ 0.9900564993348688, 1.0475746423538757 ], "velocity": [ -0.33033125137007846, 1.3093298037610812 ], "spin": 0.7633069063399311, "is_probe": false } ] }, "events": { "collision_events": [ { "frame": 26, "objects": [ 1, 3 ], "description": "the cyan cylinder collided with the yellow cylinder" }, { "frame": 27, "objects": [ 2, 5 ], "description": "the blue cylinder collided with the green cube" }, { "frame": 53, "objects": [ 1, 2 ], "description": "the cyan cylinder collided with the blue cylinder" } ], "motion_events": [ { "object": 2, "type": "start", "frame": 27, "cause_collision": { "frame": 27, "objects": [ 2, 5 ] } } ], "initially_moving": [ 1, 3, 4, 5 ] }, "raw_events": { "collisions": [ { "frame": 26, "objects": [ 1, 3 ] }, { "frame": 27, "objects": [ 2, 5 ] }, { "frame": 53, "objects": [ 1, 2 ] } ], "starts": { "0": [], "1": [], "2": [ 27 ], "3": [], "4": [], "5": [] }, "stops": { "0": [], "1": [], "2": [], "3": [], "4": [], "5": [] }, "initially_moving": [ 1, 3, 4, 5 ], "wall_hits": [ [ 9, 3, 0, -1 ], [ 13, 5, 1, 1 ], [ 49, 3, 1, 1 ], [ 59, 4, 1, 1 ] ] }, "questions": [ { "question": "What shape is the yellow object?", "answer": "cylinder", "choices": [ "cylinder", "sphere", "cube" ], "answer_index": 0, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "yellow" }, { "op": "query_shape" } ] }, { "question": "What shape is the blue object?", "answer": "cylinder", "choices": [ "cube", "cylinder", "sphere" ], "answer_index": 1, "question_type": "descriptive", "template": "query_shape", "program": [ { "op": "filter_color", "value": "blue" }, { "op": "query_shape" } ] }, { "question": "If the gray sphere were removed, would the cyan cylinder still collide with the blue cylinder?", "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, 2 ] }, { "op": "query_existence" } ] }, { "question": "How many objects were moving when the cyan cylinder collided with the yellow cylinder?", "answer": "4", "choices": [ "1", "2", "3", "4", "5", "6" ], "answer_index": 3, "question_type": "explanatory", "template": "count_moving_at", "program": [ { "op": "find_collision", "objects": [ 1, 3 ] }, { "op": "count_moving_at_collision" } ] }, { "question": "How many green 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": "green" }, { "op": "count" } ] }, { "question": "What happened right after the cyan cylinder collided with the blue cylinder?", "answer": "nothing happened", "choices": [ "nothing happened", "the blue cylinder started moving", "the cyan cylinder collided with the yellow cylinder", "the blue cylinder collided with the green cube" ], "answer_index": 0, "question_type": "explanatory", "template": "what_happened_after", "program": [ { "op": "find_collision", "objects": [ 1, 2 ] }, { "op": "query_after_event" } ] }, { "question": "Will the cyan cylinder collide with the blue cylinder 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": "If the blue cylinder were removed, would the cyan cylinder still collide with the yellow cylinder?", "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" } ] } ] } ]