Question: How many literary genres are the genre of Silent Hill (whose release region is Turkey) or have the Dewey Decimal Classification 398.21?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Silent Hill" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Turkey" .  } UNION { ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "398.21" .  } }
Program:
function: Find
inputs: Turkey
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Silent Hill
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: literary genre
function: FindAll
function: FilterStr
dependencies: 6
inputs: Dewey Decimal Classification
398.21
function: FilterConcept
dependencies: 7
inputs: literary genre
function: Or
dependencies: 5
8
function: Count
dependencies: 9