Question: How many Indiana counties whose FIPS 6-4 (US counties) is 18097 or that contain Richmond whose population is 36812?
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 Indiana" .  { ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "18097" .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Richmond" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "36812"^^xsd:double .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
18097
function: FilterConcept
dependencies: 1
inputs: county of Indiana
function: Find
inputs: Richmond
function: FilterNum
dependencies: 3
inputs: population
36812
=
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 5
inputs: county of Indiana
function: Or
dependencies: 2
6
function: Count
dependencies: 7