Question: How many fictional persons are an ethnic group of the ethnic community of Candice Bergen (who is a citizen of the United States of America)?
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> "fictional human" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "ethnic community" . ?e_2 <ethnic_group> ?e_1 . ?e_2 <pred:name> "Candice Bergen" . ?e_2 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Candice Bergen
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: ethnic group
forward
function: FilterConcept
dependencies: 4
inputs: ethnic community
function: Relate
dependencies: 5
inputs: ethnic group
backward
function: FilterConcept
dependencies: 6
inputs: fictional human
function: Count
dependencies: 7
Answer: 0