The national anthem of the US, the “Star-Spangled Banner,” was written to the tune of a drinking song.