“Hey Bulldog” is a song by the English rock band the Beatles from their 1969 soundtrack album Yellow Submarine. Credited to Lennon–McCartney but written primarily by John Lennon, it was finished in the studio by Lennon and McCartney. The song was recorded during the filming of the “Lady Madonna” promotional video, and like “Lady Madonna”, is one of the few Beatles’ songs based on a piano riff. It had a working title of “You Can Talk to Me”. (More from Wikipedia)
For Yellow Submarine, just four new songs were included on that album, and IMHO, George Harrison wrote the two best by far: “Only a Northern Song” and “It’s All Too Much”. The two Lennon/McCartney songs are “Hey Bulldog” and “All Together Now”; “Yellow Submarine” and “All You Need is Love” had been released previously.