Question: What is the number of counties in Pennsylvania with Greensburg as a capital or York as a capital, with York having a 223 meter elevation above sea level?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Greensburg" .  ?e_2 <capital_of> ?e . ?e_2 <pred:name> "York" . ?e_2 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "223"^^xsd:double .  }
Program:
function: Find
inputs: Greensburg
function: Relate
dependencies: 0
inputs: capital
backward
function: FilterConcept
dependencies: 1
inputs: county of Pennsylvania
function: Find
inputs: York
function: FilterNum
dependencies: 3
inputs: elevation above sea level
223 metre
=
function: Relate
dependencies: 4
inputs: capital of
forward
function: FilterConcept
dependencies: 5
inputs: county of Pennsylvania
function: And
dependencies: 2
6
function: Count
dependencies: 7