Question: Which has the lowest marriageable age among the constitutional monarchies whose life expectancy is less than 80 years?
Choices:
Morocco
Mozambique
Tunisia
Dubai
Zimbabwe
Thailand
Colombia
Sierra Leone
Namibia
Eswatini
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: life expectancy
80 year
<
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: SelectAmong
dependencies: 2
inputs: marriageable age
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" . ?e <life_expectancy> ?pv_1 . ?pv_1 <pred:unit> "year" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 < "80"^^xsd:double ) . ?e <marriageable_age> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Morocco