Question: Which one, The Last Samurai or The Nightmare Before Christmas, has less cost?
Choices:
Superman
The Polar Express
My-HiME
Magic Knight Rayearth
The Last Samurai
Code Geass
The Nightmare Before Christmas
A Christmas Carol
Ponyo on the Cliff by the Sea
Wonder Woman
Program:
function: Find
inputs: The Last Samurai
function: Find
inputs: The Nightmare Before Christmas
function: SelectBetween
dependencies: 0
1
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last Samurai" .  } UNION { ?e <pred:name> "The Nightmare Before Christmas" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Nightmare Before Christmas