תשובה אחת
after.

the model of past perfect is an instantaneous action that happened in an unknown time, then another action that happened.

so, after the lecture had finished, we want for a meal.