Can you identify the set? Maybe a crane?
Based on the pieces in the photo is looks like the remains of set# 4957 Ferris Wheel.  



They had apparently built one of the secondary/alternative models from the set.  

(Building instructions here: https://www.lego.com/en-us/service/buildinginstructions/search#?search&amp;text=4957)