Question: How many Arizona counties are located in Arizona (whose country is the United States of America) or share a border with Clark County (whose establishment date is 1908-02-05)?
Choices: 6
7
8
9
10
11
12
13
14
15
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> "Arizona" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Clark County" . ?e_1 <inception> ?pv . ?pv <pred:date> "1908-02-05"^^xsd:date .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Arizona
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: Clark County
function: FilterDate
dependencies: 6
inputs: inception
1908-02-05
=
function: Relate
dependencies: 7
inputs: shares border with
forward
function: FilterConcept
dependencies: 8
inputs: county of Arizona
function: Or
dependencies: 5
9
function: Count
dependencies: 10
Answer: 11