Question: How many Michigan counties have the US counties FIPS 6-4 26115 or contain Birmingham (that shares a border with Bloomfield Hills)?
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 Michigan" .  { ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "26115" .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Birmingham" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Bloomfield Hills" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
26115
function: FilterConcept
dependencies: 1
inputs: county of Michigan
function: Find
inputs: Bloomfield Hills
function: Relate
dependencies: 3
inputs: shares border with
forward
function: Find
inputs: Birmingham
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: county of Michigan
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2