Two men wearing dirty clothing are sitting on a sidewalk with their dog and begging for money using a cardboard sign.
Two men sit outdoors in an urban area.
Two men sit outside on a sidewalk.
Two men sitting on a sidewalk must be sitting outdoors because sidewalks are always outdoors.
sitting on a sidewalk is inferred as sit outdoors.