The Pills reference is vol III, 1719-20, pp 252-3; Simpson (The British Broadside Ballad and Its Music) states that the music was written by Samuel Akeroyde, while the lyric appears first (?) as a poem in The Theater of Music, 1685, and with music in 180 Loyal Songs (same year).