Complex sentence: Jesus replied that he should keep the commandments, to which the man stated he had done.
Split into simpler sentences: Jesus replied that he should keep the commandments. To which the man stated he had done.