Question: How many Illinois counties contain the Chicago administrative division (whose elevation is 205 meters above sea level) or have the FIPS 6-4 (US counties) 17143?
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 Illinois" .  { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Chicago" . ?e_1 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "205"^^xsd:double .  } UNION { ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "17143" .  } }
Program:
function: Find
inputs: Chicago
function: FilterNum
dependencies: 0
inputs: elevation above sea level
205 metre
=
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Illinois
function: FindAll
function: FilterStr
dependencies: 4
inputs: FIPS 6-4 (US counties)
17143
function: FilterConcept
dependencies: 5
inputs: county of Illinois
function: Or
dependencies: 3
6
function: Count
dependencies: 7