which office holder's predecessor is john fogarty and his associate is james tolmie ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_predecessor dbr_John_Fogarty_ attr_open Australian_politician attr_close sep_dot var_uri dbo_associate dbr_James_Tolmie_ attr_open Australian_politician attr_close sep_dot var_uri a dbo_OfficeHolder brack_close