Question: How many literary awards either have the discipline of novel or were founded before 1987?
Choices: 32
33
34
35
36
37
38
39
40
41
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary award" .  { ?e <award_disciplines_or_subjects> ?e_1 . ?e_1 <pred:name> "novel" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1987 ) .  } }
Program:
function: Find
inputs: novel
function: Relate
dependencies: 0
inputs: award disciplines or subjects
backward
function: FilterConcept
dependencies: 1
inputs: literary award
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1987
<
function: FilterConcept
dependencies: 4
inputs: literary award
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 32