a guy with long hair is making a sand sculpture
A long haired guy is working with sand.
A guy with long hair can be called a long haired guy and of him making a sand sculpture means working with sand.
A sand sculpture can be made using the sand.
Guy with long hair is a rephrasing of long haired guy, and sand sculpture is working with sand.