Question: What region of Italy has citizens who are the Lucane people and shares a border with Apulia?
Choices:
Apulia
Veneto
Lazio
Lombardy
Tuscany
Abruzzo
Campania
Sicily
Basilicata
Sardinia
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
lucane
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: Find
inputs: Apulia
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" . ?e <demonym> ?pv . ?pv <pred:value> "lucane" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Apulia" .  }
Answer: Basilicata