Question: Which has more people, Republic of Venice or Slovakia?
Choices:
Zimbabwe
Mozambique
Italy
Slovakia
Colombia
Tunisia
Namibia
Bolivia
Sierra Leone
Republic of Venice
Program:
function: Find
inputs: Republic of Venice
function: Find
inputs: Slovakia
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Republic of Venice" .  } UNION { ?e <pred:name> "Slovakia" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Slovakia