Question: How many alternative rock bands were established after 1990 or are associated with the famous people in The Cure (the one that is famous for alternative rock) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "alternative rock" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1990 ) .  } UNION { ?e <famous_people> ?e_1 . ?e_1 <pred:name> "The Cure" . ?e_2 <famous_people> ?e_1 . ?e_2 <pred:name> "alternative rock" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1990
>
function: FilterConcept
dependencies: 1
inputs: alternative rock
function: Find
inputs: alternative rock
function: Relate
dependencies: 3
inputs: famous people
forward
function: Find
inputs: The Cure
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: famous people
backward
function: FilterConcept
dependencies: 7
inputs: alternative rock
function: Or
dependencies: 2
8
function: Count
dependencies: 9