Question: Which is worth less, Japanese yen or Canadian dollar?
Choices:
Bedknobs and Broomsticks
The Jackal
Driving Miss Daisy
pound sterling
euro
Indian rupee
Richard M. Sherman
Japanese yen
Canadian dollar
Julieta Venegas
Program:
function: Find
inputs: Japanese yen
function: Find
inputs: Canadian dollar
function: SelectBetween
dependencies: 0
1
inputs: price
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Japanese yen" .  } UNION { ?e <pred:name> "Canadian dollar" .  } ?e <price> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Japanese yen