Question: Which movie is shorter, Friends (the one whose script is wrote by D. W. Griffith) or My Sister's Keeper?
Choices:
Neighbours
David Copperfield
Friends
Eve
Frankenstein
The Fugitive
My Sister's Keeper
The Cure
The Town
Robin Hood
Program:
function: Find
inputs: D. W. Griffith
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Friends
function: And
dependencies: 1
2
function: Find
inputs: My Sister's Keeper
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friends" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "D. W. Griffith" .   } UNION { ?e <pred:name> "My Sister's Keeper" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Friends