Question: How many counties of Ireland, which is an administrative division of the sovereign state, have a diplomatic relation with Israel (the one that has a diplomatic relation with Netherlands) (the subject of this statement is Ireland–Israel relations)?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 18
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ireland" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e_3 . ?e_3 <pred:name> "Israel" . ?e_4 <diplomatic_relation> ?e_3 . ?e_4 <pred:name> "Netherlands" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_3 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Ireland–Israel relations" .   }
Program:
function: Find
inputs: Netherlands
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Israel
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 4
inputs: statement is subject of
Ireland–Israel relations
function: FilterConcept
dependencies: 5
inputs: sovereign state
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: county of Ireland
function: Count
dependencies: 8