Question: What constitutional monarchy is the twin administrative body to Casablanca (that is the twin administrative body to Jakarta)?
Choices:
Thailand
Germany
Montreal
Eswatini
Dubai
Morocco
Tokyo
Shanghai
Lisbon
Colombia
Answer: Dubai
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Casablanca" . ?e_1 <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Jakarta" .   }
Program:
function: Find
inputs: Jakarta
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: Casablanca
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: What
dependencies: 5