Question: How many sounds are the genre of Phil Collins (the one that has the voice type tenor) or established on 1975-01-01?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sound" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Phil Collins" . ?e_1 <voice_type> ?e_2 . ?e_2 <pred:name> "tenor" .  } UNION { ?e <inception> ?pv . ?pv <pred:date> "1975-01-01"^^xsd:date .  } }
Program:
function: Find
inputs: tenor
function: Relate
dependencies: 0
inputs: voice type
backward
function: Find
inputs: Phil Collins
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: sound
function: FindAll
function: FilterDate
dependencies: 6
inputs: inception
1975-01-01
=
function: FilterConcept
dependencies: 7
inputs: sound
function: Or
dependencies: 5
8
function: Count
dependencies: 9