Question: Between Cuberland County which shares border with Dauphin county and Butler county whose area is 2058 square kilometer, which one is larger?
Choices:
Warren County
Allegheny County
Cumberland County
Fayette County
Lehigh County
Erie County
Westmoreland County
York County
Franklin County
Butler County
Answer: Butler County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cumberland County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Dauphin County" . } UNION { ?e <pred:name> "Butler County" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "2058"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dauphin County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Cumberland County
function: And
dependencies: 1
2
function: Find
inputs: Butler County
function: FilterNum
dependencies: 4
inputs: area
2058 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater