Question: How many Arizona counties are named after the ethnic group that has a member named Jonah Hex (whose occupation is soldier)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: soldier
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Jonah Hex
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of
forward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Relate
dependencies: 5
inputs: named after
backward
function: FilterConcept
dependencies: 6
inputs: county of Arizona
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Arizona" . ?e <named_after> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "ethnic group" . ?e_3 <member_of> ?e_1 . ?e_3 <pred:name> "Jonah Hex" . ?e_3 <occupation> ?e_4 . ?e_4 <pred:name> "soldier" .   }
Answer: 1