Ответ:

Mary asked if I had seen the film.

Вопрос с did передаётся через if; Past Simple переходит в Past Perfect.