Question: The person who died in councillor-run Glendale was art director on how many feature films?
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> "feature film" . ?e <art_director> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <place_of_death> ?e_2 . ?e_2 <pred:name> "Glendale" . ?e_2 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "councillor" .   }
Program:
function: Find
inputs: councillor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Glendale
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of death
backward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: art director
backward
function: FilterConcept
dependencies: 6
inputs: feature film
function: Count
dependencies: 7
Answer: 2