[verb phrase] + 的 + [noun]
[subject] + [verb] + 的 + [noun]
[clause] + 的 + 那 / 这 + [measure word] + [noun]
A relative clause – a clause that describes a noun, like English "the book that I bought" – goes in front of the noun, with 的 between them. There is no word for "who", "which" or "that"; 的 does the linking.
The clause is a sentence with one part taken out, and the noun fills that gap. Take out the subject and the noun is the doer; take out the object and the noun is what was done to.
The gap is left empty. Putting a pronoun back into it is wrong.
The noun can be a place or a time, where English uses "where" and "when".
A demonstrative and measure word can go on either side of the clause. In front of 那个 the clause picks out which one; after it the clause adds detail. Both are common.
English hangs the clause after the noun and links it with "who" or "which". Carried over, that puts the noun first and a question word in the middle.
Negation and aspect stay inside the clause: 没去过上海的同学, 刚来的学生.