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