Question: Of forms of government with a population below 220000, which has the highest PPP GDP per capita?
Choices:
Bolivia
Tunisia
Mozambique
Sierra Leone
Namibia
Colombia
Zimbabwe
Malawi
Seychelles
Germany
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
220000
<
function: FilterConcept
dependencies: 1
inputs: form of government
function: SelectAmong
dependencies: 2
inputs: PPP GDP per capita
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 < "220000"^^xsd:double ) . ?e <PPP_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Seychelles