I think it's fair enough to link it back to the 1960s and Phil Spector's Wall Of Sound (rather than Motown), because that influenced early Abba so much. But yes, the direct rip off is Waterloo. And presumably very intentionally, as it was the 25th anniversary of it winning Eurovision.