Question: Which has a higher mains voltage, Nigeria or Kuwait?
Choices: Benin
Russian Soviet Federative Socialist Republic
Switzerland
Kuwait
Samoa
Nigeria
Cambodia
Kiribati
Socialist Federal Republic of Yugoslavia
Weimar Republic
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nigeria" .  } UNION { ?e <pred:name> "Kuwait" .  } ?e <mains_voltage> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nigeria
function: Find
inputs: Kuwait
function: SelectBetween
dependencies: 0
1
inputs: mains voltage
greater
Answer: Kuwait