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"? 

<P0-S0> Red is the fourth studio album by American singer-songwriter Taylor Swift. <P0-S1>  It was released on October 22, 2012, by Big Machine Records, as the follow-up to her third studio album, "Speak Now". <P0-S2>  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. <P0-S3>  "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. <P0-S4>  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. <P0-S5>  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> <P1-S0> "Tim McGraw" is the debut single and first published song recorded by American singer-songwriter Taylor Swift. <P1-S1>  The song was written by Swift and Liz Rose, and produced by Nathan Chapman. <P1-S2>  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. <P1-S3>  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. <P1-S4>  The song was written about all the different things that would remind the subject of Swift and their time spent together, once he departed. <P1-S5>  "Tim McGraw" is a musical interconnection of traditional and modern country music. <P1-S6>  Lyrically, the track lists items in order to associate a past relationship, one of them being country artist Tim McGraw's music. <SEP> <P2-S0> "Once a Day" is a song written by Bill Anderson and recorded as the debut single by American country artist Connie Smith. <P2-S1>  It was produced by Bob Ferguson for her self-titled debut album. <P2-S2>  The song was released in August 1964, topping the "Billboard" country music chart for eight weeks between late 1964 and early 1965. <P2-S3>  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> <P3-S0> "We Are Never Ever Getting Back Together" is a song recorded by American singer-songwriter Taylor Swift for her fourth studio album, "Red" (2012). <P3-S1>  Swift co-wrote the song with its producers, Max Martin and Shellback. <P3-S2>  The song was released as the lead single from "Red" on August 13, 2012, by Big Machine Records. <P3-S3>  Its lyrics depict Swift's frustrations at an ex-lover who wants to re-kindle their relationship. " <P3-S4> 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. <P3-S5>  It has received a Grammy Award nomination for Record of the Year. <P3-S6>  It also received a People's Choice Awards nomination for Favorite Song of the Year.