Fact 1: a windmill converts wind energy into electricity primarily by using mechanical energy. 
Fact 2: Windmills are machines operated by windpower.
machines operated by windpower convert wind energy into electricity.