list the people with final resting place as hagia sophia and has walter iii as predecessor ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_restingPlace dbr_Hagia_Sophia sep_dot var_uri dbp_predecessor dbr_Walter_III,_Count_of_Brienne sep_dot var_uri a dbo_Person brack_close