Question: How many literary works have less than 570 pages or the first line that reads "The hottest day of the summer so far was drawing to a close and a drowsy silence lay over the large, square houses of Privet Drive."?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" .  { ?e <number_of_pages> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "570"^^xsd:double ) .  } UNION { ?e <first_line> ?pv . ?pv <pred:value> "The hottest day of the summer so far was drawing to a close and a drowsy silence lay over the large, square houses of Privet Drive." .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of pages
570
<
function: FilterConcept
dependencies: 1
inputs: literary work
function: FindAll
function: FilterStr
dependencies: 3
inputs: first line
The hottest day of the summer so far was drawing to a close and a drowsy silence lay over the large, square houses of Privet Drive.
function: FilterConcept
dependencies: 4
inputs: literary work
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2