Question: How many Arizona counties are either located in New Mexico where Alan Arkin lives or share a border with Navajo County?
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> "county of Arizona" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "New Mexico" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Alan Arkin" .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Navajo County" .  } }
Program:
function: Find
inputs: Alan Arkin
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: New Mexico
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of Arizona
function: Find
inputs: Navajo County
function: Relate
dependencies: 6
inputs: shares border with
forward
function: FilterConcept
dependencies: 7
inputs: county of Arizona
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 3