Question: Between When We Were Kings or the film noir All the King's Men, which has the longer run-time?
Choices:
Training Day
The Fifth Element
Pleasantville
The Towering Inferno
Rebecca
All the King's Men
When We Were Kings
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: When We Were Kings
function: Find
inputs: film noir
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: All the King's Men
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "When We Were Kings" .  } UNION { ?e <pred:name> "All the King's Men" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film noir" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: All the King's Men