list the people with final resting place as nudgee cemetery and has thomas foley as predecessor ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_restingPlace dbr_Nudgee_Cemetery sep_dot var_uri dbp_predecessor dbr_Thomas_Foley_ attr_open Australian_politician attr_close sep_dot var_uri a dbo_Person brack_close