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