Question: Which film has the longer running time, All the King's Men (a film adaptation of literature) or The Flowers of War?
Choices:
Talk to Her
Curse of the Golden Flower
Training Day
Pleasantville
The Hunchback of Notre Dame
All the King's Men
A Prairie Home Companion
The Towering Inferno
Rebecca
The Flowers of War
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: All the King's Men
function: And
dependencies: 1
2
function: Find
inputs: The Flowers of War
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "All the King's Men" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "The Flowers of War" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Flowers of War