Input: Who turned the hagia sophia into a mosque?
Output: 

 Who is the group that turned the hagia sophia into a mosque? 
 Ottoman Empire