The rest of the options do not express this condition. They either mention actions that are happening or have happened in the present (options C and D), or use the incorrect verb form 'went' (option A). While framing a question in past, we introduce the word 'did' + base verb.
Hence these options are incorrect.