Question: How many Netherlands municipalities are the birthplace of Jack Thompson (the one whose date of birth is 1946-03-26) or have the Netherlands as a country?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "municipality of the Netherlands" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Jack Thompson" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1946-03-26"^^xsd:date .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Netherlands" .  } }
Program:
function: Find
inputs: Jack Thompson
function: FilterDate
dependencies: 0
inputs: date of birth
1946-03-26
=
function: Relate
dependencies: 1
inputs: place of birth
forward
function: FilterConcept
dependencies: 2
inputs: municipality of the Netherlands
function: Find
inputs: Netherlands
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: municipality of the Netherlands
function: Or
dependencies: 3
6
function: Count
dependencies: 7