Question: Which democracy, headed by a vice president, has the smallest GDP (PPP)?
Choices:
Namibia
Paraguay
Mozambique
Sudan
Tanzania
Germany
Malawi
Bolivia
Colombia
Zimbabwe
Program:
function: Find
inputs: vice president
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: FilterConcept
dependencies: 1
inputs: democracy
function: SelectAmong
dependencies: 2
inputs: GDP (PPP)
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "vice president" .  ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Malawi