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