list the people with final resting place as mackay and has ted walsh as predecessor ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_restingPlace dbr_Mackay,_Queensland sep_dot var_uri dbp_predecessor dbr_Ted_Walsh_ attr_open politician attr_close sep_dot var_uri a dbo_Person brack_close