Q: "A tan dog on a leash running in shallow ocean water." Does this mean that "The dog is in the sand."?
A: yes

Q: "A girl does gymnastics on a balance beam on the beach with an amusement park and people in the background." Does this mean that "A girl does gymnastics."?
A: yes

Q: "A dog with a toy runs through the grass." Does this mean that "A dog plays outdoors."?
A: yes

Q: "A man in blue overalls cooks barbecue." Does this mean that "A man is cooking out on the Fourth of July."?
A:
it is not possible to tell