Watch the If I Had a Hammer online guitar lesson by Jon Finn from 30 Melodic Modal Rock Licks You MUST Know
Full disclosure: This lick took me quite a few takes to get nice and clean for the video. It's all scale A Aeolian scale passages with lots of hammer-ons and pull-offs. It's pretty fast, so it takes a little while to get it all up to speed.
The main thing with this one is to spend lots of time playing it slowly with accurate timing, tone, and technique. Check the notation and tablature to get the finer details. Practice with the backing track, then invent your own version of this lick!