Question: What Italian province shares a border with the Province of Salerno?
Choices:
Province of Naples
Province of Rome
Province of Cuneo
Province of Cagliari
South Tyrol
Trentino
Province of Potenza
province of Milan
Province of Brescia
Province of Salerno
Program:
function: Find
inputs: Province of Salerno
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: province of Italy
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Province of Salerno" .   }
Answer: Province of Potenza