Question: How many Death Metal groups were created in a year other than 1980 or are associated with the famous Larry Miller (the one that works in Ottawa area) ?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "death metal" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1980 ) .  } UNION { ?e <famous_people> ?e_1 . ?e_1 <pred:name> "Larry Miller" . ?e_1 <work_location> ?e_2 . ?e_2 <pred:name> "Ottawa" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1980
!=
function: FilterConcept
dependencies: 1
inputs: death metal
function: Find
inputs: Ottawa
function: Relate
dependencies: 3
inputs: work location
backward
function: Find
inputs: Larry Miller
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: famous people
backward
function: FilterConcept
dependencies: 7
inputs: death metal
function: Or
dependencies: 2
8
function: Count
dependencies: 9