Question: How many music genres started before 1970, not in 1991?
Choices:
32
33
34
35
36
37
38
39
40
41
Answer: 41
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "music" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1970 ) . ?e <inception> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 != 1991 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1970
<
function: FilterConcept
dependencies: 1
inputs: music
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1991
!=
function: FilterConcept
dependencies: 4
inputs: music
function: And
dependencies: 2
5
function: Count
dependencies: 6