Question: Which was longer, the film noir work All the King's Men or All the President's Men?
Choices:
Pleasantville
The Towering Inferno
The Fifth Element
A Prairie Home Companion
All the King's Men
All the President's Men
Rebecca
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: film noir
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: All the King's Men
function: And
dependencies: 1
2
function: Find
inputs: All the President's Men
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 noir" .   } UNION { ?e <pred:name> "All the President's Men" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: All the President's Men