Question: Who wrote the song that was recorded as the debut single by American country artist Connie Smith, that was only surpassed as most weeks spent at number one by a female country artist by a song recorded  by American singer-songwriter Taylor Swift for her fourth studio album, "Red"? 

 It was produced by Bob Ferguson for her self-titled debut album.  The song was released in August 1964, topping the "Billboard" country music chart for eight weeks between late 1964 and early 1965. "Once a Day" is a song written by Bill Anderson and recorded as the debut single by American country artist Connie Smith.  It was the first debut single by a female country artist to reach number one, and held the record for the most weeks spent at number one by a female country artist until it was surpassed by Taylor Swift's "We Are Never Ever Getting Back Together" in December 2012. <SEP> Red is the fourth studio album by American singer-songwriter Taylor Swift.  It was released on October 22, 2012, by Big Machine Records, as the follow-up to her third studio album, "Speak Now".  The album title was inspired by the "semi-toxic relationships" that Swift experienced during the process of conceiving this album, which Swift described the emotions she felt as "red emotions" due to their intense and tumultuous nature.  "Red" touches on Swift's signature themes of love and heartbreak, however, from a more mature perspective while exploring other themes such as fame and the pressure of being in the limelight.  The album features collaborations with producers and guest artists such as Gary Lightbody of Snow Patrol and Ed Sheeran and is noted for Swift's experimentation with new musical genres.  Swift completed The Red Tour in support of the album on June 12, 2014, which became the highest-grossing tour of all time by a country artist, grossing over $150 million. <SEP> "Tim McGraw" is the debut single and first published song recorded by American singer-songwriter Taylor Swift.  The song was written by Swift and Liz Rose, and produced by Nathan Chapman.  It was released on June 19, 2006 by Big Machine Records as Swift's debut single and the lead single from Swift's eponymous debut album.  Swift wrote "Tim McGraw" during her freshman year of high school, knowing that she and her senior boyfriend would break up at the end of the year when he left for college.  The song was written about all the different things that would remind the subject of Swift and their time spent together, once he departed.  "Tim McGraw" is a musical interconnection of traditional and modern country music.  Lyrically, the track lists items in order to associate a past relationship, one of them being country artist Tim McGraw's music. <SEP>  Swift co-wrote the song with its producers, Max Martin and Shellback.  The song was released as the lead single from "Red" on August 13, 2012, by Big Machine Records.  Its lyrics depict Swift's frustrations at an ex-lover who wants to re-kindle their relationship. " "We Are Never Ever Getting Back Together" is a song recorded by American singer-songwriter Taylor Swift for her fourth studio album, "Red" (2012). Rolling Stone" magazine named the song the second best song of 2012 while it took the fourth spot in "Time"' s end-of-year poll.  It has received a Grammy Award nomination for Record of the Year.  It also received a People's Choice Awards nomination for Favorite Song of the Year.