Question: How many ethnic groups are a part of Apache (that is the origin of the name Apache County)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Apache" . ?e_2 <named_after> ?e_1 . ?e_2 <pred:name> "Apache County" .   }
Program:
function: Find
inputs: Apache County
function: Relate
dependencies: 0
inputs: named after
forward
function: Find
inputs: Apache
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Count
dependencies: 5