Question: Which area is larger, Carroll County (the one that shares border with Grafton County) or Johnson County (the one whose area is 1614 square kilometre)?
Choices: Delaware County
Orange County
Lee County
Carroll County
Greene County
San Juan County
Johnson County
Washoe County
Cass County
Kent County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carroll County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Grafton County" . } UNION { ?e <pred:name> "Johnson County" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "1614"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Grafton County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Carroll County
function: And
dependencies: 1
2
function: Find
inputs: Johnson County
function: FilterNum
dependencies: 4
inputs: area
1614 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
Answer: Carroll County