Question: Which Ireland county shares a border with County Kilkenny and County Wicklow?
Choices:
County Waterford
County Galway
County Donegal
County Monaghan
County Sligo
County Tipperary
County Limerick
County Kildare
County Wexford
County Dublin
Program:
function: Find
inputs: County Kilkenny
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: county of Ireland
function: Find
inputs: County Wicklow
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: county of Ireland
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ireland" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "County Kilkenny" .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "County Wicklow" .  }
Answer: County Wexford