Original: Vocalist Chris Martin was inspired by the sight and the song's main melody, consisting of a chord pattern, popped into his head.
Simplified: The song's main melody popped into the head of Chris Martin, the band's vocalist. The melody was a chord pattern.