Question: Which area is larger in size, Allegheny County or Montgomery County (the one that contains Norristown)?
Choices:
Allegheny County
Erie County
Warren County
Fayette County
Montgomery County
Cumberland County
Lehigh County
Westmoreland County
Franklin County
Bucks County
Program:
function: Find
inputs: Allegheny County
function: Find
inputs: Norristown
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Montgomery County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Allegheny County" .  } UNION { ?e <pred:name> "Montgomery County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Norristown" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Allegheny County