Question: What is the number of literary genres having the ISBN-13 978-1-56971-402-7 or the title Frankenstein?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISBN-13
978-1-56971-402-7
function: FilterConcept
dependencies: 1
inputs: literary genre
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
Frankenstein
function: FilterConcept
dependencies: 4
inputs: literary genre
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" .  { ?e <ISBN-13> ?pv . ?pv <pred:value> "978-1-56971-402-7" .  } UNION { ?e <title> ?pv . ?pv <pred:value> "Frankenstein" .  } }
Answer: 2