Question: Which city twinned to Marrakesh has the night view: Madrid - Madrid skyline - 140314 195825.jpg?
Choices:
Santo Domingo
Tashkent
Chihuahua
Abidjan
Bergen
Trieste
Cork
Mecca
Kingston
Madrid
Program:
function: Find
inputs: Marrakesh
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 1
inputs: city
function: FindAll
function: FilterStr
dependencies: 3
inputs: nighttime view
Madrid - Madrid skyline - 140314 195825.jpg
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Marrakesh" .  ?e <nighttime_view> ?pv . ?pv <pred:value> "Madrid - Madrid skyline - 140314 195825.jpg" .  }
Answer: Madrid