Question: Which has a greater area, Mercer County (which shares a border with Bucks County) or Somerset County (whose population is 324175)?
Choices: Morris County
Monmouth County
Hudson County
Passaic County
Burlington County
Somerset County
Bergen County
Hunterdon County
Cumberland County
Mercer County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mercer County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Bucks County" . } UNION { ?e <pred:name> "Somerset County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "324175"^^xsd:double . } ?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
forward
function: Find
inputs: Mercer County
function: And
dependencies: 1
2
function: Find
inputs: Somerset County
function: FilterNum
dependencies: 4
inputs: population
324175
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
Answer: Somerset County