Question: Which city has the local dialing code 01 and is Madrid's twinned administrative body?
Choices:
Cannes
Rabat
Warsaw
Yangon
Vienna
Quito
Tirana
Montevideo
Zagreb
Lima
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
01
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: Madrid
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
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 <local_dialing_code> ?pv . ?pv <pred:value> "01" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Madrid" .  }
Answer: Lima