Question: What is the number of heavy metals that are the genre of Thin Lizzy or have the beginning date that is after 1985?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "heavy metal" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Thin Lizzy" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1985 ) .  } }
Program:
function: Find
inputs: Thin Lizzy
function: Relate
dependencies: 0
inputs: genre
forward
function: FilterConcept
dependencies: 1
inputs: heavy metal
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1985
>
function: FilterConcept
dependencies: 4
inputs: heavy metal
function: Or
dependencies: 2
5
function: Count
dependencies: 6