Question: Which has a greater duration, Forrest Gump (which was nominated for a Golden Globe Award for Best Screenplay) or Gosford Park?
Choices:
A Prairie Home Companion
Talk to Her
Pleasantville
Rebecca
Gosford Park
The Towering Inferno
Curse of the Golden Flower
Training Day
Forrest Gump
The Hunchback of Notre Dame
Program:
function: Find
inputs: Golden Globe Award for Best Screenplay
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Forrest Gump
function: And
dependencies: 1
2
function: Find
inputs: Gosford Park
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Forrest Gump" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Globe Award for Best Screenplay" .   } UNION { ?e <pred:name> "Gosford Park" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Gosford Park