The haunted house sat with floating ghosts under the moon because no one lives there.
The subject of the sentence is house.
The predicate of the sentence is sat.
The how detail is with floating ghosts. The where detail is under the moon. The why detail is because no one lives there.