Complex sentence: If an offender is competent to stand trial; whether or not an offender was sane/insane at the time of the offense.
Split into simpler sentences: If an offender is competent to stand trial. And the question or not an offender was sane/insane at the time of the offense.