All About Steve is a 2009 American comedy film directed by Phil Traill that stars Sandra Bullock, Thomas Haden Church, and Bradley Cooper as the eponymous Steve.
 The film is the winner of two Golden Raspberry Awards and has a 7% approval rating at Rotten Tomatoes.
Heaven Is for Real is a 2014 American Christian drama film directed by Randall Wallace and written by Wallace and Christopher Parker, based on Pastor Todd Burpo and Lynn Vincent's 2010 book of the same name.
 The film stars Greg Kinnear, Kelly Reilly, Margo Martindale, Jacob Vargas, Connor Corum, and Thomas Haden Church.
 The soundtrack of the film contains Darlene Zschech's song "Heaven in Me".
 The film was released on April 16, 2014.
Thomas Haden Church (born Thomas Richard McMillen; June 17, 1960) is an American actor, director, and writer.
 After co-starring in the 1990s sitcom "Wings", Church became known for his film roles, including his Academy Award-nominated performance in "Sideways" and his role as the Sandman in "Spider-Man 3".
 He also made his directorial debut with "Rolling Kansas".
Rolling Kansas is a 2003 independent film directed and co-written by Oscar-nominated actor Thomas Haden Church.
Max is a 2015 American adventure drama film directed by Boaz Yakin, and co-written with Sheldon Lettich.
 The film stars Josh Wiggins, Mia Xitlali, Dejon LaQuake, Thomas Haden Church, Robbie Amell, Lauren Graham, Luke Kleintank, and Jay Hernandez.
 The film was released by Warner Bros. on June 26, 2015.
Killer Joe is a 2011 American Southern Gothic black comedy crime film directed by William Friedkin.
 The screenplay by Tracy Letts is based on his 1993 play of the same name.
 The film stars Matthew McConaughey in the title role, Emile Hirsch, Juno Temple, Gina Gershon, and Thomas Haden Church.
 Friedkin and Letts had similarly collaborated on the 2006 film "Bug".
Sideways is a 2004 American independent black comedy drama film directed by Alexander Payne and written by Jim Taylor and Payne.
 A film adaptation of Rex Pickett's novel of the same name, "Sideways" follows two men in their forties, Miles Raymond (Paul Giamatti), a depressed teacher and unsuccessful writer and Jack Cole (Thomas Haden Church), a past-his-prime actor, who take a week-long road trip to Santa Barbara County wine country to celebrate Jack's upcoming wedding.
 Sandra Oh and Virginia Madsen also star.
George of the Jungle 2 is the 2003 direct-to-video sequel of the 1997 Disney film "George of the Jungle".
 It was directed by David Grossman, written by Jordan Moffet, and stars Thomas Haden Church, Julie Benz, Christina Pickles, Angus T. Jones, Michael Clarke Duncan, John Cleese, and introducing Christopher Showerman as "George".
 The movie focuses on George trying to save Ape Mountain from his evil nemesis Lyle (Thomas Haden Church).
 The sequel was widely panned.
Spider-Man 3 is a 2007 American superhero film based on the fictional Marvel Comics comic book series "The Amazing Spider-Man".
 It was directed by Sam Raimi from a screenplay by Raimi, Ivan Raimi and Alvin Sargent.
 It is the final film in Raimi's original "Spider-Man" film trilogy, following "Spider-Man" (2002) and "Spider-Man 2" (2004).
 The film stars Tobey Maguire, Kirsten Dunst, James Franco, Thomas Haden Church, Topher Grace, Bryce Dallas Howard, Rosemary Harris, J. K. Simmons, James Cromwell, and Cliff Robertson in his final acting appearance before his death in 2011.
 Following the events of "Spider-Man 2", Peter Parker has become a cultural phenomenon as Spider-Man, while Mary Jane "M.J." Watson continues her Broadway career.
 Harry Osborn still seeks vengeance for his father's death, and an escaped Flint Marko falls into a particle accelerator and is transformed into a shape-shifting sand manipulator.
 An extraterrestrial symbiote crashes to Earth and bonds with Peter, influencing his behavior for the worse.
Sandman (William Baker a.k.a. Flint Marko) is a fictional supervillain appearing in American comic books published by Marvel Comics.
 A shapeshifter endowed through an accident with the ability to turn himself into sand, he began as a villain and later became an ally of Spider-Man.
 The character has been adapted into various other media incarnations of Spider-Man, including animated cartoons and the 2007 film "Spider-Man 3", in which he is portrayed by Thomas Haden Church.

Question: Thomas Haden Church had a role as the Sandman in the film directed by whom?
Answer: Sam Raimi