The mosque and tomb were erected on the bed of sand that covered the temple and now sit five m (20 ft) or so above the excavated floor level.
The temple was completely destroyed by all the sand.  
mnli hypothesis: The temple was completely destroyed by all the sand.   premise: The mosque and tomb were erected on the bed of sand that covered the temple and now sit five m (20 ft) or so above the excavated floor level.