Question: How many works of literature were published sometime other than 1869 or are in the young adult literature genre?
Choices: 13
14
15
16
17
18
19
20
21
22
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1869 ) .  } UNION { ?e <genre> ?e_1 . ?e_1 <pred:name> "young adult literature" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1869
!=
function: FilterConcept
dependencies: 1
inputs: literary work
function: Find
inputs: young adult literature
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: literary work
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 22