Question: What is the number of novels that got the award class that got nominated to Hairspray (which has the release region Panama)
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Panama
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Hairspray
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: nominated for
forward
function: FilterConcept
dependencies: 4
inputs: class of award
function: Relate
dependencies: 5
inputs: award received
backward
function: FilterConcept
dependencies: 6
inputs: novel
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "novel" . ?e <award_received> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "class of award" . ?e_2 <nominated_for> ?e_1 . ?e_2 <pred:name> "Hairspray" . ?e_2 <film_release_region> ?e_3 . ?e_3 <pred:name> "Panama" .   }
Answer: 0