Mary said: "I have been to Sidney twice" (В КОСВЕННУЮ РЕЧЬ)
Mary said that she had been to Sydney twice.