In order to invert questions you just need to move the subject to the end of the sentence and start with the predicate, or leave the subject at the begining of the sentence and finish with the predicate, in this case Pablo is the subject, and the predicate would be cena en la cafetería so those are your options to move when inverting the question.