Question: What city in Pennsylvania with the local dialing code 717 has the largest population?
Choices:
Pittsburgh
Greensburg
Bethlehem
Chester
Wilkes-Barre
Erie
Johnstown
Philadelphia
Lancaster
Harrisburg
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
717
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: SelectAmong
dependencies: 2
inputs: population
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "717" . ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lancaster