Question: Is more area covered by Montgomery County that borders Bucks County or by Greene County corresponding to FIPS 6-4 (US counties) 42059?
Choices:
Cumberland County
York County
Montgomery County
Fayette County
Franklin County
Lehigh County
Greene County
Warren County
Bucks County
Allegheny County
Answer: Greene County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Montgomery County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Bucks County" . } UNION { ?e <pred:name> "Greene County" . ?e <FIPS_6-4_(US_counties)> ?pv_1 . ?pv_1 <pred:value> "42059" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bucks County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Montgomery County
function: And
dependencies: 1
2
function: Find
inputs: Greene County
function: FilterStr
dependencies: 4
inputs: FIPS 6-4 (US counties)
42059
function: SelectBetween
dependencies: 3
5
inputs: area
greater