"The Star-spangled Banner" became the American national anthem in 1931
Before that, it was "My Country 'Tis of Thee," which had the same tune as Britain's national anthem
"God Save the Queen",
This is based on music written by John Bull in 1619
Bull's melody has been used more than any other song in national anthems