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