Question: When was the song as time goes by written?

context: "As Time Goes By" is a song written by Herman Hupfeld in 1931. It became famous when it was featured in the 1942 Warner Bros. film "Casablanca" performed by Dooley Wilson as Sam. The song was voted No. 2 on the AFI's 100 Years...100 Songs special, commemorating the best songs in film (only surpassed by "Over the Rainbow" by Judy Garland). The song has since become the signature tune of Warner Bros. and used as such in the production logos at the beginning of many Warner Bros. films since 1999, as well as the closing logos to most Warner Bros. Television shows since 2003. It was also the title and theme song of the 1990s British romantic comedy series "As Time Goes By".
question: When was the song "As Time Goes By" written by Herman Hupfeld?
short_answers: 1931
context: No context provided
question: When was the song 'As Time Goes By' (as performed by Hiroko Shimabukuro) written?
short_answers: 1999

Answer: There is more than one song called As Time Goes By. Herman Hupfeld wrote a song called  As Time Goes By in 1931 which became famous when it was featured in the film Casablanca, and was also used as the theme song of a 1990s British romantic comedy series with the same title. Japanese singer Hiroko Shimabukuro performed a song called As Time Goes By that was written in 1999.