Question: Which has greater duration, Winchester (whose title is Winchester) or Winter's Bone?
Choices:
The Fifth Element
Curse of the Golden Flower
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Winchester
Pleasantville
Training Day
A Prairie Home Companion
Winter's Bone
Program:
function: Find
inputs: Winchester
function: FilterStr
dependencies: 0
inputs: title
Winchester
function: Find
inputs: Winter's Bone
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winchester" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Winchester" . } UNION { ?e <pred:name> "Winter's Bone" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Winter's Bone