Question: Which one, When We Were Kings or American Pie (the one whose release region is Russia), has greater duration?
Choices:
When We Were Kings
Rebecca
Talk to Her
Training Day
The Hunchback of Notre Dame
A Prairie Home Companion
American Pie
Pleasantville
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: When We Were Kings
function: Find
inputs: Russia
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: American Pie
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "When We Were Kings" .  } UNION { ?e <pred:name> "American Pie" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Russia" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: American Pie