Question: Which has a shorter duration, The Wolfman or the adventure film Africa?
Choices:
Africa
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
The Wolfman
Training Day
Rebecca
Pleasantville
The Fifth Element
Program:
function: Find
inputs: The Wolfman
function: Find
inputs: adventure film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Africa
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Wolfman" .  } UNION { ?e <pred:name> "Africa" . ?e <genre> ?e_1 . ?e_1 <pred:name> "adventure film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Africa