Question: Which movie is longer, Synecdoche, New York or Africa (the one that origins from South Africa)?
Choices:
A Prairie Home Companion
The Towering Inferno
Rebecca
Training Day
Curse of the Golden Flower
Talk to Her
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
Synecdoche, New York
Program:
function: Find
inputs: Synecdoche, New York
function: Find
inputs: South Africa
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Africa
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Synecdoche, New York" .  } UNION { ?e <pred:name> "Africa" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "South Africa" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Synecdoche, New York