Question: What is the number of Ireland counties whose country is the sovereign state containing the County Galway administrative division?
Choices: 14
15
16
17
18
19
20
21
22
23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ireland" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <contains_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "County Galway" .   }
Program:
function: Find
inputs: County Galway
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: county of Ireland
function: Count
dependencies: 4
Answer: 18