Question: How many Arizona counties are an administrative division of Arizona (that is the residence of Steve Allen) or belong to the country the United States of America?
Choices: 8
9
10
11
12
13
14
15
16
17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Arizona" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Arizona" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Steve Allen" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: Steve Allen
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Arizona
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Arizona
function: Find
inputs: United States of America
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: county of Arizona
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 11