Question: Which movie is shorter, Get Smart (the one that has Dwayne Johnson as a cast member) or Il Postino: The Postman?
Choices:
Curse of the Golden Flower
Il Postino: The Postman
The Fifth Element
The Hunchback of Notre Dame
Training Day
Talk to Her
Pleasantville
Get Smart
The Towering Inferno
Rebecca
Program:
function: Find
inputs: Dwayne Johnson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Get Smart
function: And
dependencies: 1
2
function: Find
inputs: Il Postino: The Postman
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Get Smart" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dwayne Johnson" .   } UNION { ?e <pred:name> "Il Postino: The Postman" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Il Postino: The Postman