Question: Out of the constitutional monarchies that have a diplomatic relation with Taiwan, which has the largest nominal GDP per capita?
Choices:
Dubai
Germany
Morocco
Eswatini
Mozambique
Colombia
Thailand
Tunisia
Namibia
Sierra Leone
Answer: Thailand
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Taiwan" .  ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Taiwan
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: SelectAmong
dependencies: 2
inputs: nominal GDP per capita
largest