Question: Which region has the larger land area, Lycoming County or Montgomery County (in Pennsylvania)?
Choices:
Lehigh County
York County
Bucks County
Allegheny County
Cumberland County
Warren County
Lycoming County
Westmoreland County
Fayette County
Montgomery County
Program:
function: Find
inputs: Lycoming County
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
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> "Lycoming County" .  } UNION { ?e <pred:name> "Montgomery County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Pennsylvania" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lycoming County