In (21b) where there is no sentential antecedent, DBC tells the grammar to search for a most prominent NP in the previous sentences, which is John in this case.
the sentence obtains a proper interpretation on the basis of discourse information.