Question: How many Irish counties belong to Ireland (the one having a diplomatic relation with Pakistan) or report Contae Port Láirge as their native label ?
Choices: 9
10
11
12
13
14
15
16
17
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_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "Pakistan" .  } UNION { ?e <native_label> ?pv . ?pv <pred:value> "Contae Port Láirge" .  } }
Program:
function: Find
inputs: Pakistan
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Ireland
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: county of Ireland
function: FindAll
function: FilterStr
dependencies: 6
inputs: native label
Contae Port Láirge
function: FilterConcept
dependencies: 7
inputs: county of Ireland
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 18