Question: Which one from constitutional monarchies, where the retirement age is lower or higher than 70 years old, has the largest GDP (PPP)?
Choices:
Tunisia
Sierra Leone
Germany
Thailand
Eswatini
Colombia
Namibia
Morocco
Dubai
Mozambique
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: retirement age
70 years old
!=
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: SelectAmong
dependencies: 2
inputs: GDP (PPP)
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" . ?e <retirement_age> ?pv_1 . ?pv_1 <pred:unit> "years old" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 != "70"^^xsd:double ) . ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Thailand