Question: Is the run-time shorter on the action film Priest or on Love Actually?
Choices:
Rebecca
The Hunchback of Notre Dame
Training Day
Love Actually
A Prairie Home Companion
Priest
Pleasantville
Talk to Her
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Priest
function: And
dependencies: 1
2
function: Find
inputs: Love Actually
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Priest" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "Love Actually" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Priest