Does the sentence "Waterwheels were also used to power chain pumps that lifted water to raised irrigation ditches." answer the question "What was used to power chain pumps to raise water to irrigation ditches?"
yes