what was missingThe verb can change tense and agree with the thing that is missing, as in «lo que falta» (what is missing) or «lo que faltan» (the things that are missing).
SP: Ya he comprado lo que faltaba para la cena.
EN: I've already bought what was missing for dinner.