Answer: who. The missing word introduces a relative clause describing people. Within that clause, it is the subject of “were”, so the subject pronoun who is required: “The people who were at the demonstration …”. Whom is an object pronoun, whose expresses possession, and which is not the appropriate choice for these people.