Question: How many written works have the website of http://www.agathachristie.com/story-explorer/stories/death-on-the-nile-2/ or have the number of pages greater than 330?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://www.agathachristie.com/story-explorer/stories/death-on-the-nile-2/" .  } UNION { ?e <number_of_pages> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "330"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.agathachristie.com/story-explorer/stories/death-on-the-nile-2/
function: FilterConcept
dependencies: 1
inputs: written work
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of pages
330
>
function: FilterConcept
dependencies: 4
inputs: written work
function: Or
dependencies: 2
5
function: Count
dependencies: 6