The song written by Benny Andersson, Björn Ulvaeus, and Stig Anderson had a varied chart history around the world.