Question: Which one, between Rockingham County and its shared border with Albermarle County, or Northampton County with its FIPS 6-4 (US counties) of 51131, has the larger area size?
Choices:
Greene County
Prince William County
Albemarle County
Rockingham County
Fairfax County
Loudoun County
Augusta County
Henrico County
Warren County
Northampton County
Answer: Rockingham County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northampton County" . ?e <FIPS_6-4_(US_counties)> ?pv_1 . ?pv_1 <pred:value> "51131" . } UNION { ?e <pred:name> "Rockingham County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Albemarle County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Northampton County
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
51131
function: Find
inputs: Albemarle County
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Rockingham County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater