Question: Ron Paul is the author or the creation date is pre-1860 for how many written works?
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> "written work" .  { ?e <author> ?e_1 . ?e_1 <pred:name> "Ron Paul" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1860 ) .  } }
Program:
function: Find
inputs: Ron Paul
function: Relate
dependencies: 0
inputs: author
backward
function: FilterConcept
dependencies: 1
inputs: written work
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1860
<
function: FilterConcept
dependencies: 4
inputs: written work
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2