Question: Which is shorter, Neighbours that is shot in Montreal or Notes on a Scandal?
Choices:
The Animatrix
David Copperfield
Robin Hood
The Town
Notes on a Scandal
Neighbours
Frankenstein
The Cure
Friends
The Fugitive
Program:
function: Find
inputs: Montreal
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Neighbours
function: And
dependencies: 1
2
function: Find
inputs: Notes on a Scandal
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Neighbours" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Montreal" .   } UNION { ?e <pred:name> "Notes on a Scandal" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Neighbours