qnli question: What was used to power chain pumps to raise water to irrigation ditches? sentence: As mentioned by Huan Tan in about 20 AD, they were used to turn gears that lifted iron trip hammers, and were used in pounding, threshing and polishing grain.