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