Question: Of all the democratic nations bordering Zimbabwe, what has the lowest marriageable age?
Choices:
Mozambique
Tunisia
Bolivia
Germany
Italy
Sierra Leone
Colombia
France
Namibia
Zambia
Program:
function: Find
inputs: Zimbabwe
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: democracy
function: SelectAmong
dependencies: 2
inputs: marriageable age
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Zimbabwe" .  ?e <marriageable_age> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mozambique