Question: Which has a greater cost, Nixon or King Arthur?
Choices:
Pleasantville
Training Day
The Hunchback of Notre Dame
King Arthur
Talk to Her
Nixon
Rebecca
The Towering Inferno
A Prairie Home Companion
The Fifth Element
Program:
function: Find
inputs: Nixon
function: Find
inputs: King Arthur
function: SelectBetween
dependencies: 0
1
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nixon" .  } UNION { ?e <pred:name> "King Arthur" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: King Arthur