He asked the girl to 'look at the moon' before attacking her, the court heard.