Question: Which has greater duration, Bright Star or Lords of Dogtown?
Choices:
The Fifth Element
Pleasantville
The Hunchback of Notre Dame
Lords of Dogtown
Bright Star
Talk to Her
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Training Day
Program:
function: Find
inputs: Bright Star
function: Find
inputs: Lords of Dogtown
function: SelectBetween
dependencies: 0
1
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bright Star" .  } UNION { ?e <pred:name> "Lords of Dogtown" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bright Star