Question: How many alternative rock groups are named after biochemistry or created before 1995 ?
Choices:
5
6
7
8
9
10
11
12
13
14
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "alternative rock" .  { ?e <named_after> ?e_1 . ?e_1 <pred:name> "biochemistry" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1995 ) .  } }
Program:
function: Find
inputs: biochemistry
function: Relate
dependencies: 0
inputs: named after
backward
function: FilterConcept
dependencies: 1
inputs: alternative rock
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1995
<
function: FilterConcept
dependencies: 4
inputs: alternative rock
function: Or
dependencies: 2
5
function: Count
dependencies: 6