Question: How many novels have a Dewey Decimal Classification of 813.54 or include a character known as Frankenstein's monster?
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> "novel" .  { ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "813.54" .  } UNION { ?e <characters> ?e_1 . ?e_1 <pred:name> "Frankenstein's monster" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
813.54
function: FilterConcept
dependencies: 1
inputs: novel
function: Find
inputs: Frankenstein's monster
function: Relate
dependencies: 3
inputs: characters
backward
function: FilterConcept
dependencies: 4
inputs: novel
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2