What is that building behind the hospital?

Literal

Hospital [possessive-の] behind [at-に] exist that building [topic-は] what [question-ですか].

病院の後ろにあるあの建物 is a relative clause — 'that building which is behind the hospital.' なんですか uses the explanatory んです in a question, seeking information with curiosity.