Question: How many novels' publication date is after 1955 or last line is He was soon borne away by the waves, and lost in darkness and distance?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "novel" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1955 ) .  } UNION { ?e <last_line> ?pv . ?pv <pred:value> "He was soon borne away by the waves, and lost in darkness and distance." .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1955
>
function: FilterConcept
dependencies: 1
inputs: novel
function: FindAll
function: FilterStr
dependencies: 3
inputs: last line
He was soon borne away by the waves, and lost in darkness and distance.
function: FilterConcept
dependencies: 4
inputs: novel
function: Or
dependencies: 2
5
function: Count
dependencies: 6