Question: Which has more people, Chester that is the headquarter location of Philadelphia Union or Lancaster whose area is 19.048555 square kilometres?
Choices:
Erie
Bethlehem
York
Philadelphia
Lancaster
Greensburg
Harrisburg
Johnstown
Wilkes-Barre
Pittsburgh
Program:
function: Find
inputs: Philadelphia Union
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Chester
function: And
dependencies: 1
2
function: Find
inputs: Lancaster
function: FilterNum
dependencies: 4
inputs: area
19.048555 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chester" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Philadelphia Union" . } UNION { ?e <pred:name> "Lancaster" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "19.048555"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lancaster