Question: How many Netherlands municipalities whose demonym is Delftenaar or that are a twinned administrative body of Riga?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "municipality of the Netherlands" .  { ?e <demonym> ?pv . ?pv <pred:value> "Delftenaar" .  } UNION { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Riga" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
Delftenaar
function: FilterConcept
dependencies: 1
inputs: municipality of the Netherlands
function: Find
inputs: Riga
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: municipality of the Netherlands
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2