Question: Which place has a lower PPP GDP per capita, Morocco with a fertility rate of 2.611, or Liberia?
Choices:
Sierra Leone
Italy
Namibia
Morocco
Germany
Colombia
Bolivia
Tunisia
Liberia
Zimbabwe
Program:
function: Find
inputs: Morocco
function: FilterNum
dependencies: 0
inputs: total fertility rate
2.611
=
function: Find
inputs: Liberia
function: SelectBetween
dependencies: 1
2
inputs: PPP GDP per capita
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Morocco" . ?e <total_fertility_rate> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2.611"^^xsd:double . } UNION { ?e <pred:name> "Liberia" . } ?e <PPP_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Liberia