Question: Which has a greater duration, Hope Springs (which has origins from United Kingdom) or The Ghost and the Darkness?
Choices:
Training Day
Curse of the Golden Flower
Rebecca
The Towering Inferno
Hope Springs
A Prairie Home Companion
The Ghost and the Darkness
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Hope Springs
function: And
dependencies: 1
2
function: Find
inputs: The Ghost and the Darkness
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hope Springs" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } UNION { ?e <pred:name> "The Ghost and the Darkness" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Ghost and the Darkness