Question: Which one costs less, The Cotton Club or 127 Hours?
Choices:
127 Hours
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
The Cotton Club
The Towering Inferno
Curse of the Golden Flower
Rebecca
Talk to Her
Training Day
Program:
function: Find
inputs: The Cotton Club
function: Find
inputs: 127 Hours
function: SelectBetween
dependencies: 0
1
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Cotton Club" .  } UNION { ?e <pred:name> "127 Hours" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: 127 Hours