The people await to cross the street while walking the dog.
people are with a dog
People that are walking their dog are with a dog.
People walking a dog are people with a dog
They are with a dog because they are walking the dog.