Question: Which area is larger, Sullivan County (the one that shares border with Grafton County) or Sandoval County?
Choices:
Sandoval County
Lee County
Greene County
San Juan County
Sullivan County
Kent County
Cass County
African Union
Orange County
Washoe County
Answer: Sandoval County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sullivan County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Grafton County" .   } UNION { ?e <pred:name> "Sandoval County" .  } ?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: Sullivan County
function: And
dependencies: 1
2
function: Find
inputs: Sandoval County
function: SelectBetween
dependencies: 3
4
inputs: area
greater