Question: What is the number of ethnic communities that has an ethnic group the person that is Midnight's Children screenwriter (which has the production company 20th Century Fox)
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Midnight's Children
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: screenwriter
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: ethnic group
forward
function: FilterConcept
dependencies: 6
inputs: ethnic community
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic community" . ?e_1 <ethnic_group> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <screenwriter> ?e_1 . ?e_2 <pred:name> "Midnight's Children" . ?e_2 <production_company> ?e_3 . ?e_3 <pred:name> "20th Century Fox" .   }
Answer: 1