Once inside, you will see how the mosque earned its familiar name.
You can see how the mosque earned its name when you enter.  
mnli hypothesis: You can see how the mosque earned its name when you enter.   premise: Once inside, you will see how the mosque earned its familiar name.