Question: Which movie is shorter, Evita (the one whose genre is musical film) or Fanny and Alexander?
Choices:
Evita
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Training Day
Fanny and Alexander
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Rebecca
Program:
function: Find
inputs: musical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Evita
function: And
dependencies: 1
2
function: Find
inputs: Fanny and Alexander
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Evita" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" .   } UNION { ?e <pred:name> "Fanny and Alexander" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Evita