Question: Which movie is longer, Kaboom or The Killers (the one whose director is Don Siegel)?
Choices:
The Killers
Talk to Her
The Towering Inferno
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Pleasantville
The Fifth Element
Kaboom
Program:
function: Find
inputs: Kaboom
function: Find
inputs: Don Siegel
function: Relate
dependencies: 1
inputs: director
backward
function: Find
inputs: The Killers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kaboom" .  } UNION { ?e <pred:name> "The Killers" . ?e <director> ?e_1 . ?e_1 <pred:name> "Don Siegel" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Killers