Question: Who is the {written work} for {based on} of {Forrest Gump}
Paraphrase: Who is the {composed work} for {based on} of {Forrest Gump}
SPARQL (Wikidata):  select distinct ?obj where { wd:Q134773 wdt:P144 ?obj . ?obj wdt:P31 wd:Q47461344 } 
Answer: Forrest Gump