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

Context articles: We Are Never Ever Getting Back Together
Tim McGraw (song)
Once a Day
The Essential Connie Smith
Kitty Wells singles discography
Red (Taylor Swift album)
Connie Smith albums discography
Trisha Yearwood discography
Connie Smith singles discography
If I Talk to Him

"We Are Never Ever Getting Back Together" is a song recorded by American singer-songwriter Taylor Swift for her fourth studio album, "Red" (2012).
 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. "
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.
"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.
"Once a Day" is a song written by Bill Anderson and recorded as the debut single by American country artist Connie Smith.
 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.
 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.
The Essential Connie Smith is a compilation album by the American country artist Connie Smith.
 It was released in April 1996 by RCA Records and was produced by Bob Ferguson and Ethel Gabriel.
 The album is a collection of Smith's major hits between 1964 and 1972.
The singles discography of Kitty Wells, an American country artist, consists of ninety singles, nineteen B-sides, and two music videos.
 In 1949 she was signed to RCA Victor Records, where she released her debut single, "Death at the Bar" also in 1949.
 Dropped from RCA in 1950, Wells signed with Decca Records and released the single "It Wasn't God Who Made Honky Tonk Angels" in 1952.
 The song was an answer song to Hank Thompson's hit, "The Wild Side of Life", spending six weeks at number one on the "Billboard Magazine" Hot C&W Sides chart.
 The single sold one million copies and made Wells the first female country artist to have a single reach number one on the "Billboard" country list.
 Until the end of the decade, Wells became the only woman on the country chart that would consistently receive radio airplay.
 In 1953 the song, "Paying for That Back Street Affair" reached #6 on the "Billboard" Hot C&W Sides list, as well as twenty one additional Top Ten singles on the same chart between 1953 and 1959.
 This included singles such as the Red Foley duet "One by One" (1954), "Making Believe" (1955), "I Can't Stop Loving You" (1958), "Mommy for a Day" (1959), and "Amigo's Guitar" (1959).
 The latter song was written by Wells herself and later won her a BMI Songwriter's Award.
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.
The albums discography of Connie Smith, an American country artist, consists of thirty four studio albums, one live album, thirteen compilation albums, two box sets, and fifteen other appearances.
 After the success of her 1964 single "Once a Day", Smith's self-titled debut album was released in March 1965 on RCA Victor Records.
 The album reached number one on the "Billboard" Top Country Albums, spending thirty weeks on the chart, while also becoming her only album to reach the "Billboard" 200 list (#105).
 Smith's next two secular albums, "Cute 'n' Country" and "Miss Smith Goes to Nashville" went to number one and number two respectively between 1965 and 1966.
 In September 1966 Smith released her fifth studio album, "Born to Sing", which was her third album to reach the top spot on the "Billboard" country albums chart.
 Due to Smith's popularity, RCA Victor issued five albums between 1967 and 1968 including "Downtown Country" (1967), "Connie Smith Sings Bill Anderson" (1967), and "I Love Charley Brown" (1968).
 In 1969, Smith collaborated with country artist Nat Stuckey on the album "Young Love".
American country artist Trisha Yearwood has released twelve studio albums, seven compilation albums, one additional album, forty one music videos, fifty-eight singles and has appeared on twenty eight albums.
 Yearwood's self-titled debut album was released in 1991, peaking at number two on the "Billboard" Top Country Albums chart and number thirty one on the Billboard 200.
 It became the first debut female country album to sell one million copies, eventually certifying double platinum by the Recording Industry Association of America. "
She's in Love with the Boy" became the first female debut single since 1964 to top the "Billboard" Hot Country Singles chart.
 The album would spawn an additional three singles, including "The Woman Before Me".
 Her second studio album was the critically acclaimed "Hearts in Armor" (1992).
 It spawned the top five country hits "Wrong Side of Memphis" and "Walkaway Joe".
 Her third studio record "The Song Remembers When" (1993) enjoyed similar success while the lead single reached number two on the Billboard country chart.
 A holiday album appeared before her platinum-selling fourth studio album "Thinkin' About You" (1995).
 Reaching the third position of the country albums chart and the top thirty of the Billboard 200, its first two singles topped the Hot Country Singles chart.
 Her sixth studio album "Everybody Knows" (1996) spawned Yearwood's fourth number one single, "Believe Me Baby (I Lied)".
The singles discography of Connie Smith, an American country artist, consists of 48 singles and two B-sides.
 After signing with RCA Victor Records in 1964, Smith released her debut single in August entitled "Once a Day".
 The song topped the "Billboard Magazine" Hot Country Singles chart by November and held the position for eight weeks, to date being the longest running song at number one by a female country artist.
 The single's success launched Smith into stardom, making Smith one of the decade's most successful female artists.
 The follow-up single "Then and Only Then" reached #4 on the country singles chart, while its flip side ("Tiny Blue Transistor Radio") went to #25 on the same chart.
 All of Smith's singles released between 1965 and 1968 reached the top 10 on the "Billboard" country songs chart, including "If I Talk to Him", "Ain't Had No Lovin'", and "Cincinnati, Ohio".
 By 1969 Smith felt highly pressured from her career and cut back on promoting singles.
 Smith's chart success slightly declined because of this, with songs like "Ribbon of Darkness" (1969) and "Louisiana Man" (1970) only reaching the top 20.
 Other singles continued to peak within the top 10 including "I Never Once Stopped Loving You" (1970) and "Just One Time" (1971).
"If I Talk to Him" is a song written by Dolores Edgin and Priscilla Mitchell, and released as a single by American country artist Connie Smith.
 It was produced by Bob Ferguson and released on her 1966 studio album "Miss Smith Goes to Nashville".
 The song was released in August 1965 and reached the Top 5 on the "Billboard Magazine" country music chart, becoming her fourth Top 10 single.
 The song was recorded under RCA Victor Records.