Question: What number of Ohio counties have a FIPS 6-4 (US counties) of 39173 or contain the administrative division of Hamilton (with a 45011 postal code)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ohio" .  { ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "39173" .  } UNION { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Hamilton" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "45011" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
39173
function: FilterConcept
dependencies: 1
inputs: county of Ohio
function: Find
inputs: Hamilton
function: FilterStr
dependencies: 3
inputs: postal code
45011
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: county of Ohio
function: Or
dependencies: 2
6
function: Count
dependencies: 7