Question: How many activities are in the Brave programming language (which has a brave snap package) or that have a release date other than 2006?
Choices:
170
171
172
173
174
175
176
177
178
179
Answer: 175
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" .  { ?e_1 <programming_language> ?e . ?e_1 <pred:name> "Brave" . ?e_1 <snap_package> ?pv . ?pv <pred:value> "brave" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2006 ) .  } }
Program:
function: Find
inputs: Brave
function: FilterStr
dependencies: 0
inputs: snap package
brave
function: Relate
dependencies: 1
inputs: programming language
forward
function: FilterConcept
dependencies: 2
inputs: activity
function: FindAll
function: FilterYear
dependencies: 4
inputs: publication date
2006
!=
function: FilterConcept
dependencies: 5
inputs: activity
function: Or
dependencies: 3
6
function: Count
dependencies: 7