Two homeless men dressed in gray sit against a wall with a sleeping dog on a purple leash.
Two homeless men lean against a wall with a dog.
Sleeping dog is a type of dog, and sit against is a paraphrase of lean against.
Sitting against a wall is leaning against it.
against a wall with a sleeping dog is inferred as lean against a wall with a dog.