Question: How many musician's occupation matches the one of Hal Smith (the one that died in Santa Monica) or of Ludwig van Beethoven (whose baptism date in early childhood is 17th December 1770) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musician" .  { ?e_1 <occupation> ?e . ?e_1 <pred:name> "Hal Smith" . ?e_1 <place_of_death> ?e_2 . ?e_2 <pred:name> "Santa Monica" .  } UNION { ?e_1 <occupation> ?e . ?e_1 <pred:name> "Ludwig van Beethoven" . ?e_1 <date_of_baptism_in_early_childhood> ?pv . ?pv <pred:date> "1770-12-17"^^xsd:date .  } }
Program:
function: Find
inputs: Santa Monica
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: Hal Smith
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: occupation
forward
function: FilterConcept
dependencies: 4
inputs: musician
function: Find
inputs: Ludwig van Beethoven
function: FilterDate
dependencies: 6
inputs: date of baptism in early childhood
1770-12-17
=
function: Relate
dependencies: 7
inputs: occupation
forward
function: FilterConcept
dependencies: 8
inputs: musician
function: Or
dependencies: 5
9
function: Count
dependencies: 10