Question: Which movie is shorter, Tulsa (the one whose narrative location is Oklahoma) or Jack and Jill?
Choices:
Training Day
Pleasantville
A Prairie Home Companion
Tulsa
Jack and Jill
Rebecca
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
The Fifth Element
Program:
function: Find
inputs: Oklahoma
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Tulsa
function: And
dependencies: 1
2
function: Find
inputs: Jack and Jill
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tulsa" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Oklahoma" .   } UNION { ?e <pred:name> "Jack and Jill" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tulsa