Question: Tell me the one that costs less, Pulp Fiction or X-Men: First Class
Choices:
Training Day
The Hunchback of Notre Dame
Talk to Her
Pulp Fiction
Pleasantville
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
X-Men: First Class
The Fifth Element
Program:
function: Find
inputs: Pulp Fiction
function: Find
inputs: X-Men: First Class
function: SelectBetween
dependencies: 0
1
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pulp Fiction" .  } UNION { ?e <pred:name> "X-Men: First Class" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Pulp Fiction