Question: What is the subreddit of the constitutional monarchy that is the twinned administrative body of Casablanca which is the twinned administrative body of Bangalore?
Choices:
henan
Trivandrum
Swaziland
dubai
Nijmegen
northkorea
fujian
Rajasthan
Minnesota
georgetown
Program:
function: Find
inputs: Bangalore
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Casablanca
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: QueryAttr
dependencies: 5
inputs: subreddit
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Casablanca" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Bangalore" .  ?e <subreddit> ?pv .  }
Answer: dubai