question: Phil Hay was a screenwriter on which film starring Ryan Reynolds, based on a screenplay adapted from a comic book?
answer: R.I.P.D.
context: Title: Phil Hay (screenwriter)
  Passage: Phil Hay is an American screenwriter.  His credits include "Æon Flux", "Clash of the Titans", "R.I.P.D." and "Ride Along".  All of his film screenwriting work has been with writing partner Matt Manfredi.  In 2002, Hay and Manfredi directed the film "Bug", with Manfredi being credited as the sole screenwriter of the film.
  Title: The Change-Up
  Passage: The Change-Up is a 2011 American fantasy comedy film produced and directed by David Dobkin, written by Jon Lucas and Scott Moore, and starring Ryan Reynolds and Jason Bateman.
  Title: Just Friends
  Passage: Just Friends is a 2005 American romantic comedy film directed by Roger Kumble, written by Adam 'Tex' Davis and starring Ryan Reynolds, Amy Smart, Anna Faris, Chris Klein and Christopher Marquette.  The plot focuses on a formerly overweight high school nerd (Reynolds) who attempts to free himself from the friend zone after reconnecting with his lifelong crush and best friend (Smart) while visiting his hometown for Christmas.
  Title: R.I.P.D.
  Passage: R.I.P.D. is a 2013 American 3D supernatural action comedy film starring Jeff Bridges and Ryan Reynolds.  Robert Schwentke directed the film based on a screenplay adapted from the comic book "Rest in Peace Department" by Peter M. Lenkov.  The film also stars Kevin Bacon, Mary-Louise Parker, Stéphanie Szostak, and Marisa Miller.
citations: R.I.P.D. Phil Hay (screenwriter)