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 communityThis construct is called Ausrufesatz, see e. g. here, at leo.org or the grammar book of your choice. In such a sentence the verb may be located at the beginning or end of the sentence.
In your example the sentence (see subsection Ausrufesetz mit Frage in referenced page) expresses astonishment of the person itself, to which thoughts they deviated.