Question: Wexford is the capital and IE-WX is the ISO 3166-2 code for which county in Ireland?
Choices:
County Wexford
County Kildare
County Monaghan
County Tipperary
County Donegal
County Sligo
County Galway
County Kilkenny
County Limerick
County Meath
Program:
function: Find
inputs: Wexford
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: county of Ireland
function: FindAll
function: FilterStr
dependencies: 3
inputs: ISO 3166-2 code
IE-WX
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_1 <capital_of> ?e . ?e_1 <pred:name> "Wexford" .  ?e <ISO_3166-2_code> ?pv . ?pv <pred:value> "IE-WX" .  }
Answer: County Wexford