Question: What is the number of counties in Ireland that have country is Ireland (the one with a demonym أيرلندية)
Choices:
16
17
18
19
20
21
22
23
24
25
Answer: 18
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:name> "Ireland" . ?e_1 <demonym> ?pv . ?pv <pred:value> "أيرلندية" .   }
Program:
function: Find
inputs: Ireland
function: FilterStr
dependencies: 0
inputs: demonym
أيرلندية
function: Relate
dependencies: 1
inputs: country
backward
function: FilterConcept
dependencies: 2
inputs: county of Ireland
function: Count
dependencies: 3