Question: Which one is less expensive, Stupid, Love. or Night at the Museum?
Choices:
Pleasantville
A Prairie Home Companion
Night at the Museum
Talk to Her
Crazy, Stupid, Love.
The Hunchback of Notre Dame
The Fifth Element
Curse of the Golden Flower
Rebecca
Training Day
Program:
function: Find
inputs: Crazy, Stupid, Love.
function: Find
inputs: Night at the Museum
function: SelectBetween
dependencies: 0
1
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Crazy, Stupid, Love." .  } UNION { ?e <pred:name> "Night at the Museum" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Crazy, Stupid, Love.