Complex sentence: The Doctor eases her into death with the sonic screwdriver, which causes him to realise that the solution is to find the cancellation code for the inhibitor and feed it throughout the system.
Split into simpler sentences: The Doctor eases her into death with the sonic screwdriver. He realises that the solution is to find the cancellation code for the inhibitor and feed it throughout the system.