The relative pronoun dem is neuter singular to agree with Haus , but dative .
Dem follows a preposition in dem 's own clause .
The relative pronoun dem is neuter singular to agree with Haus , but dative because it follows a preposition in its own clause .