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