Question: Which has a smaller mains voltage, Canada or Central African Republic?
Choices:
Central African Republic
Canada
Kiribati
Cambodia
Russian Soviet Federative Socialist Republic
Samoa
Socialist Federal Republic of Yugoslavia
Weimar Republic
Switzerland
South Sudan
Program:
function: Find
inputs: Canada
function: Find
inputs: Central African Republic
function: SelectBetween
dependencies: 0
1
inputs: mains voltage
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Canada" .  } UNION { ?e <pred:name> "Central African Republic" .  } ?e <mains_voltage> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Canada