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