Question: How many works of literature were published on 2000-07-08 or were not published in 1997?
Choices:
14
15
16
17
18
19
20
21
22
23
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1997
!=
function: FilterConcept
dependencies: 1
inputs: literary work
function: FindAll
function: FilterDate
dependencies: 3
inputs: publication date
2000-07-08
=
function: FilterConcept
dependencies: 4
inputs: literary work
function: Or
dependencies: 2
5
function: Count
dependencies: 6
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 != 1997 ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:date> "2000-07-08"^^xsd:date .  } }
Answer: 22