Question: What city is involved with a twinned administrative body with the Saudi Arabian Medina?
Choices:
Naples
Trieste
Medina
Rio de Janeiro
Cork
Kilkenny
Niagara Falls
Mecca
Melbourne
Kingston
Program:
function: Find
inputs: Saudi Arabia
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Medina
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Medina" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Saudi Arabia" .   }
Answer: Mecca