This task requires filling in the blanks with the correct past tense form of the verb 'to be'. The subject 'a café' is singular, so we use 'was' for both the question and the affirmative answer.
Answers:
Was there a café in the shopping centre before? – Yes, there was.