Question: Which has a higher unemployment rate, Mozambique or Morocco (the one whose number of vehicles per 1000 people is 80)?
Choices:
Sierra Leone
France
Namibia
Zimbabwe
Tunisia
Mozambique
Italy
Germany
Bolivia
Colombia
Program:
function: Find
inputs: Mozambique
function: Find
inputs: Morocco
function: FilterNum
dependencies: 1
inputs: vehicles per capita (1000)
80
=
function: SelectBetween
dependencies: 0
2
inputs: unemployment rate
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mozambique" . } UNION { ?e <pred:name> "Morocco" . ?e <vehicles_per_capita_(1000)> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "80"^^xsd:double . } ?e <unemployment_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mozambique