Question: How many neighborhoods are in a sovereign state which is the release region of Lemony Snicket's A Series of Unfortunate Events (the one that is written by Daniel Handler)?
Choices:
15
16
17
18
19
20
21
22
23
24
Program:
function: Find
inputs: Daniel Handler
function: Relate
dependencies: 0
inputs: after a work by
backward
function: Find
inputs: Lemony Snicket's A Series of Unfortunate Events
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: film release region
forward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Relate
dependencies: 5
inputs: country
backward
function: FilterConcept
dependencies: 6
inputs: neighborhood
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "neighborhood" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <film_release_region> ?e_1 . ?e_2 <pred:name> "Lemony Snicket's A Series of Unfortunate Events" . ?e_2 <after_a_work_by> ?e_3 . ?e_3 <pred:name> "Daniel Handler" .   }
Answer: 18