A young man sleeping next to a dog.
A dog has a man sleeping next to it.
Man sleeping next to a dog is a rephrasing of dog has a man sleeping next to it.
the man is sleeping
"A dog has a man sleeping next to it" is a rephrasing of "a young man sleeping next to a dog."