Question: Which has a lower VAT-rate, Andorra or South Korea?
Choices:
Switzerland
Russian Soviet Federative Socialist Republic
South Korea
Andorra
South Sudan
Benin
Cambodia
Kiribati
Samoa
Socialist Federal Republic of Yugoslavia
Program:
function: Find
inputs: Andorra
function: Find
inputs: South Korea
function: SelectBetween
dependencies: 0
1
inputs: VAT-rate
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Andorra" .  } UNION { ?e <pred:name> "South Korea" .  } ?e <VAT-rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Andorra