If "A girl in a skirt hugging a boy." does that mean that "Hugged a boy  by girl wearing skirt."?
Options:
- yes
- it is not possible to tell
- no
Let's solve step-by-step:
Hugged a boy by is a rephrase of hugging a boy. The answer is yes.