Question: Which one between the constitutional monarchies that have diplomatic relations with Mexico has the highest retirement age ?
Choices:
Germany
Morocco
Mozambique
Dubai
Colombia
Thailand
Sierra Leone
Zimbabwe
Eswatini
Tunisia
Program:
function: Find
inputs: Mexico
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: SelectAmong
dependencies: 2
inputs: retirement age
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Mexico" .  ?e <retirement_age> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Morocco