Question: What film starred Miley Cyrus and was written by Nicholas Sparks?

full_context: Document 1: The Last Song (novel): The Last Song is a 2009 novel by American author Nicholas Sparks. "The Last Song" is Sparks' fourteenth published novel (fifteenth published book), and was written specifically as the basis for the film adaptation by the same name. It was released on September 1, 2009 by Grand Central Publishing. The story revolves around the summer of Ronnie (Veronica) Miller's seventeenth year, during which she is sent to stay with her estranged father. Through their shared love of music, the duo reconnect.
Document 2: The Last Song (film): The Last Song is a 2010 American coming of age teen romantic drama film developed alongside Nicholas Sparks' 2009 novel of the same name. The film was directed by Julie Anne Robinson in her feature film directorial debut and co-written by Sparks and Jeff Van Wie. "The Last Song" stars Miley Cyrus, Liam Hemsworth, and Greg Kinnear and follows a troubled teenager as she reconnects with her estranged father and falls in love during a summer in a quiet Southern United States beach town.
Document 3: Miley Cyrus videography: American actress, singer, and songwriter Miley Cyrus has appeared in music videos, films, and television series. From 2006 to 2011, Cyrus starred in the television series "Hannah Montana" as Miley Stewart and her alter ego, Hannah Montana. In 2009, Cyrus starred in the feature film "", whose soundtrack included her lead single "The Climb". Her other films included voicing the role of Penny in the animated film "Bolt" in 2008, "The Last Song" with Liam Hemsworth in 2010, and "LOL" with Demi Moore in 2012. Her song "When I Look at You" was part of "The Last Song" soundtrack with the music video directed by the film's producer, Adam Shankman.
Document 4: To All the Boys I've Loved Before: To All the Boys I've Loved Before is a 2014 young adult romance novel by American author Jenny Han, first published by Simon & Schuster and released on April 15, 2014. Han was inspired to write the book based on her own habit of writing long letters to boys she had crushes on as a teenager. The novel was followed by two sequels, "P.S. I Still Love You", released on May 26, 2015, and "Always and Forever, Lara Jean", released on May 2, 2017.
Document 5: Last Night (2010 film): Last Night is a 2010 drama romance film written and directed by Massy Tadjedin. It stars Keira Knightley, Sam Worthington, Eva Mendes, and Guillaume Canet. The film's official trailer was released on November 6, 2010. It was released both in theaters and video-on-demand on May 6, 2011 in the United States. The film centers on Joanna (Keira Knightley) and Michael Reed (Sam Worthington), a successful and happy couple. They are moving along in their lives together until Joanna meets Laura (Eva Mendes), the stunningly beautiful colleague whom Michael never mentioned. While Michael is away with Laura on a business trip, Joanna runs into an old but never quite forgotten love, Alex (Guillaume Canet). As the night progresses and temptation increases, each must confront who they really are.
Document 6: Son (novel): Son is the final entry in "The Giver Quartet" by Lois Lowry. It was preceded by "Messenger", the third book of the series. The book follows Claire, the mother of Gabriel, the baby seen in "The Giver".
Document 7: Fifteen (song): "Fifteen" is a country pop song performed by American singer-songwriter Taylor Swift. Swift self-penned the song and co-produced it along with Nathan Chapman. "Fifteen" was released on August 30, 2009 by Big Machine Records, as the fourth single from Swift's second studio album, "Fearless" (2008). The song was inspired by Swift's freshman year of high school at Hendersonville High School, where she first encountered heartbreak, along with her best friend Abigail Anderson. After writing it, Swift asked Anderson for authorization to record the song (due to personal references in the song); Anderson affirmed and it was ultimately included on "Fearless". "Fifteen" is a ballad, which has Swift reminiscing on events that occurred to her and her best friend at the age of 15 and cautioning teenagers to not fall in love easily.
Document 8: The Notebook (novel): The Notebook is a 1996 romantic novel by American novelist Nicholas Sparks, The novel was later adapted into a popular film of the same name, in 2004. The Indian Bollywood film, "Zindagi Tere Naam," starring Mithun Chakraborty, is also based on it.
Document 9: Dear John (2010 film): Dear John is a 2010 American romantic drama-war film starring Amanda Seyfried and Channing Tatum. It was made by Screen Gems and was released theatrically in North America on February 5, 2010. The film was directed by Lasse Hallström, and it is an adaptation of Nicholas Sparks' 2006 novel of the same name. It follows the life of a soldier (Channing Tatum) after he falls in love with a young woman (Amanda Seyfried). They decide to exchange letters to each other after he is deployed to the war. The movie was filmed in 2009 in Charleston, South Carolina.
Document 10: Hannah Montana: The Movie: Hannah Montana: The Movie is a 2009 American teen musical comedy-drama film based on the Disney Channel television series of the same name. It was the second theatrical film based on a Disney Channel Original Series, after "The Lizzie McGuire Movie" (2003). The film was directed by Peter Chelsom with screenplay penned by Daniel Berendsen. The film was produced by David Blocker, Billy Ray Cyrus, Alfred Gough, Miles Millar, Steven Peterman and Michael Poryes. The film stars series regulars Miley Cyrus, Billy Ray Cyrus, Emily Osment, Jason Earles, Mitchel Musso, and Moisés Arias, as well as Lucas Till, Vanessa Williams, Margo Martindale, and Melora Hardin.
Document 11: The Best of Me (film): The Best of Me is a 2014 American romantic drama film directed by Michael Hoffman and written by Will Fetters and J. Mills Goodloe, based on Nicholas Sparks' 2011 novel of the same name. The film stars James Marsden and Michelle Monaghan with Luke Bracey and Liana Liberato.
Document 12: The Rescue (Sparks novel): The Rescue is a novel written by the American author Nicholas Sparks, first published in 2000. It debuted at number 2 on the "New York Times" Best Sellers list on October 8, 2000, and reached number 1 the following week. Sparks's son, Ryan, was the inspiration for the book.
Document 13: Northern Lights (2009 film): Northern Lights, also known as Nora Roberts' Northern Lights, is a 2009 television film directed by Mike Robe, which stars Eddie Cibrian, LeAnn Rimes, and Rosanna Arquette. The film is based on the Nora Roberts novel of the same name and is part of the Nora Roberts 2009 movie collection, which also includes; "Midnight Bayou", "High Noon", and "Tribute". The film debuted March 21, 2009 on Lifetime.
Document 14: The Notebook: The Notebook is a 2004 American romantic drama film directed by Nick Cassavetes and based on the 1996 novel of the same name by Nicholas Sparks. The film stars Ryan Gosling and Rachel McAdams as a young couple who fall in love in the 1940s. Their story is narrated from the present day by an elderly man (portrayed by James Garner) telling the tale to a fellow nursing home resident (played by Gena Rowlands, who is Cassavetes's mother).
Document 15: Message in a Bottle (novel): Message in a Bottle is the second romance novel written by American author Nicholas Sparks. The story, which explores the romance theme of love after grief, is set in the mid-late 1990s, then-contemporary Wilmington, North Carolina. The 1999 film "Message in a Bottle" produced by and starring Kevin Costner, is based on this novel.
ground_truth: The Last Song