Question: How many counties in Pennsylvania have a population of 200000 or are the home to Bethlehem (located in Lehigh County)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
200000
=
function: FilterConcept
dependencies: 1
inputs: county of Pennsylvania
function: Find
inputs: Lehigh County
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Bethlehem
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: county of Pennsylvania
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "200000"^^xsd:double .  } UNION { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Bethlehem" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Lehigh County" .  } }
Answer: 0