Breakdown of Der Arzt, auf den wir im Wartezimmer gewartet haben, kam schließlich doch pünktlich.
Questions & Answers about Der Arzt, auf den wir im Wartezimmer gewartet haben, kam schließlich doch pünktlich.
Because the verb is warten auf = to wait for, and the preposition auf in this expression always takes the accusative.
So inside the relative clause, den refers back to der Arzt, but its form is determined by its role in the clause, not by the form of the noun in the main clause.
- main clause: Der Arzt = nominative, because he is the subject of kam
- relative clause: auf den = accusative, because warten auf requires it
That is why German says:
- der Arzt in the main clause
- auf den in the relative clause
Not auf dem, because that would be dative, and warten auf does not use dative.
In German, a relative pronoun changes form depending on its grammatical function inside the relative clause.
The noun it refers to is der Arzt, but inside the relative clause, that noun is not the subject. It is the object of the preposition auf in auf den wir ... gewartet haben.
So the relative pronoun has to match:
- gender/number of the noun: masculine singular, because it refers to der Arzt
- case required in the relative clause: accusative, because of warten auf
That gives den.
A useful way to think about it is:
- der Arzt tells you who we are talking about
- den tells you what role that person plays inside the relative clause