Complex sentence: It was written by Stefani and Pharrell Williams, who also solely produced the song.
Split into simpler sentences: It was written by Stefani and Pharrell Williams. Williams also solely produced the song.