Question: Which area is larger, Franklin County (the one whose FIPS 6-4 (US counties) is 42055) or Erie County (the one that shares border with Ashtabula County)?
Choices:
Erie County
Westmoreland County
Warren County
Bucks County
Cumberland County
Fayette County
Franklin County
York County
Lehigh County
Lancaster County
Program:
function: Find
inputs: Franklin County
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
42055
function: Find
inputs: Ashtabula County
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Erie County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Franklin County" . ?e <FIPS_6-4_(US_counties)> ?pv_1 . ?pv_1 <pred:value> "42055" . } UNION { ?e <pred:name> "Erie County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Ashtabula County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Erie County