The iconic Village People riff translates to this melodic sequence (approximate rhythm):
F# – G – A – B – C# – D – E – F# – G – A – B – C# – D – E – F# – G – A – B
This outlines an F# minor / A major pentatonic-ish pattern. The harmonic cycle underneath: F#m – A – E – Bm (each chord two bars). For piano: right hand plays the riff; left hand holds the chords.