Question: How many Pennsylvania counties are the location of Greensburg or have over 530000000 inhabitants?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" .  { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Greensburg" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "530000000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Greensburg
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: county of Pennsylvania
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
530000000
>
function: FilterConcept
dependencies: 4
inputs: county of Pennsylvania
function: Or
dependencies: 2
5
function: Count
dependencies: 6