The rest of the options do not express this condition. They either mention actions that are happening in the present (Options B and C), or use the incorrect verb form 'went' (Option D) . While framing a question, we introduce the word 'did' (which means 'to perform an action') + base verb 'go'.
Hence these options are incorrect.