Question: Is there a greater area in Delaware County (the one that shares border with Chester County) or Jefferson County (the one whose area is 1701 square kilometre)?
Choices:
Fayette County
Westmoreland County
Delaware County
Franklin County
Cumberland County
Lehigh County
Jefferson County
Allegheny County
York County
Bucks County
Answer: Jefferson County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Delaware County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Chester County" . } UNION { ?e <pred:name> "Jefferson County" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "1701"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chester County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Delaware County
function: And
dependencies: 1
2
function: Find
inputs: Jefferson County
function: FilterNum
dependencies: 4
inputs: area
1701 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater