Question: Which is longer in duration, New Year's Eve which has a narrative location of Germany, or Superman III?
Choices:
The Towering Inferno
A Prairie Home Companion
Superman III
Rebecca
New Year's Eve
Training Day
Curse of the Golden Flower
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: New Year's Eve
function: And
dependencies: 1
2
function: Find
inputs: Superman III
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Year's Eve" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Germany" .   } UNION { ?e <pred:name> "Superman III" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Superman III