Question: Which Irish county borders both County Clare and County Kilkenny?
Choices: County Tipperary
County Kildare
County Galway
County Limerick
County Monaghan
County Donegal
County Sligo
County Wexford
County Kilkenny
County Dublin
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 Clare" .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "County Kilkenny" .  }
Program:
function: Find
inputs: County Clare
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: county of Ireland
function: Find
inputs: County Kilkenny
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
Answer: County Tipperary