Question: What province of Italy has the capital Naples (the one that is the twinned administrative body of Budapest) and has the licence plate code of NA?
Choices: Province of Cagliari
Province of Salerno
Province of Cuneo
Province of Turin
province of Milan
Province of Palermo
Province of Rome
Province of Brescia
Province of Como
Province of Naples
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Naples" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Budapest" .  ?e <licence_plate_code> ?pv . ?pv <pred:value> "NA" .  }
Program:
function: Find
inputs: Budapest
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Naples
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: province of Italy
function: FindAll
function: FilterStr
dependencies: 6
inputs: licence plate code
NA
function: FilterConcept
dependencies: 7
inputs: province of Italy
function: And
dependencies: 5
8
function: What
dependencies: 9
Answer: Province of Naples