Question: Which is longer, Alexander the Great that was shot in Madrid, or Snow Falling on Cedars?
Choices:
A Prairie Home Companion
The Towering Inferno
Training Day
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Talk to Her
Rebecca
Snow Falling on Cedars
Alexander the Great
Program:
function: Find
inputs: Madrid
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Alexander the Great
function: And
dependencies: 1
2
function: Find
inputs: Snow Falling on Cedars
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alexander the Great" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Madrid" .   } UNION { ?e <pred:name> "Snow Falling on Cedars" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alexander the Great