Q: "two guys in red shirts playing basketball" Does this mean that "Two girls in red shirts playing basketball"?
A: no

Q: "One lady cutting a cake while the other is holding a plate with other plates stacked up in front of her." Does this mean that "two people near dessert and dishes"?
A: yes

Q: "A dog rests on a mattress while a old woman sits on the floor." Does this mean that "A dog and woman are both resting on a mattress"?
A: yes

Q: "The girl in a bright pink skirt dances near a stroller." Does this mean that "There is a baby in the stroller."?
A:
it is not possible to tell