Question: How many authors work in the field of To Kill a Mockingbird (whose publication date is 1960-07-11) or have the ROME Occupation Code (v3) E1102?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "author" .  { ?e <field_of_this_occupation> ?e_1 . ?e_1 <pred:name> "To Kill a Mockingbird" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1960-07-11"^^xsd:date .  } UNION { ?e <ROME_Occupation_Code_(v3)> ?pv . ?pv <pred:value> "E1102" .  } }
Program:
function: Find
inputs: To Kill a Mockingbird
function: FilterDate
dependencies: 0
inputs: publication date
1960-07-11
=
function: Relate
dependencies: 1
inputs: field of this occupation
backward
function: FilterConcept
dependencies: 2
inputs: author
function: FindAll
function: FilterStr
dependencies: 4
inputs: ROME Occupation Code (v3)
E1102
function: FilterConcept
dependencies: 5
inputs: author
function: Or
dependencies: 3
6
function: Count
dependencies: 7