Which and what are both used in questions.
What is used to ask a question when there are an unknown number of possible answers.
Which is used if you are choosing between a very small, or limited number of possible answers.
- What film did you go to see?
- Which shoes should I wear with this dress, my blue ones or my black ones?