The court pronounced the sentence on a 2019 incident of the convict raping a 6-year-old girl