Question: What Pennsylvania city shares a border with a lake whose width is 92 kilometres?
Choices:
Greensburg
Wilkes-Barre
York
Lancaster
Bethlehem
Philadelphia
Chester
Johnstown
Erie
Pittsburgh
Answer: Erie
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "lake" . ?e_1 <width> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> "92"^^xsd:double .   }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: width
92 kilometre
=
function: FilterConcept
dependencies: 1
inputs: lake
function: Relate
dependencies: 2
inputs: shares border with
backward
function: FilterConcept
dependencies: 3
inputs: city of Pennsylvania
function: What
dependencies: 4