Question: Which is shorter, The Gift directed by Joel Edgerton or The Godfather Part III?
Choices:
The Towering Inferno
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
The Hunchback of Notre Dame
Rebecca
The Godfather Part III
The Gift
The Fifth Element
Program:
function: Find
inputs: Joel Edgerton
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The Gift
function: And
dependencies: 1
2
function: Find
inputs: The Godfather Part III
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Gift" . ?e <director> ?e_1 . ?e_1 <pred:name> "Joel Edgerton" .   } UNION { ?e <pred:name> "The Godfather Part III" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Gift