list the people with final resting place as wawel cathedral and has john iii sobieski as predecessor ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_restingPlace dbr_Wawel_Cathedral sep_dot var_uri dbp_predecessor dbr_John_III_Sobieski sep_dot var_uri a dbo_Person brack_close