Here is a sentence:
Woran er nur wieder gedacht hatte!
I don't quite understand why this sentence follows the Nebensatz word order pattern. Is this a special type of a sentence?
German Language Stack Exchange is a bilingual question and answer site for speakers of all levels who want to share and increase their knowledge of the German language. It's 100% free, no registration required.Sign up to join this community
In your example the sentence (see subsection Ausrufesetz mit Frage in referenced page) expresses astonishment of the person itself, to which thoughts they deviated.