Question: How many literary genres have the Dewey Decimal Classification 398.21 or are psychological thrillers?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" .  { ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "398.21" .  } UNION { ?e <genre> ?e_1 . ?e_1 <pred:name> "psychological thriller" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
398.21
function: FilterConcept
dependencies: 1
inputs: literary genre
function: Find
inputs: psychological thriller
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: literary genre
function: Or
dependencies: 2
5
function: Count
dependencies: 6