Question: Which has less mains voltage, Saint Lucia or San Marino whose demonym is sammarinesi?
Choices:
Kiribati
South Sudan
San Marino
Switzerland
Saint Lucia
Benin
Russian Soviet Federative Socialist Republic
Samoa
Cambodia
Socialist Federal Republic of Yugoslavia
Program:
function: Find
inputs: Saint Lucia
function: Find
inputs: San Marino
function: FilterStr
dependencies: 1
inputs: demonym
sammarinesi
function: SelectBetween
dependencies: 0
2
inputs: mains voltage
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saint Lucia" . } UNION { ?e <pred:name> "San Marino" . ?e <demonym> ?pv_1 . ?pv_1 <pred:value> "sammarinesi" . } ?e <mains_voltage> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: San Marino