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