Question: Does Cleopatra that originates in Japan or End of Watch have the longer running time?
Choices:
Curse of the Golden Flower
Cleopatra
The Towering Inferno
End of Watch
Pleasantville
Rebecca
The Hunchback of Notre Dame
Training Day
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: Japan
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Cleopatra
function: And
dependencies: 1
2
function: Find
inputs: End of Watch
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cleopatra" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Japan" .   } UNION { ?e <pred:name> "End of Watch" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cleopatra