Question: Which one has greater area between Ticino and Essex County (the one that shares border with Grafton County)?
Choices:
Lee County
Orange County
San Juan County
Kent County
Washoe County
Cass County
Delaware County
Ticino
African Union
Greene County
Program:
function: Find
inputs: Ticino
function: Find
inputs: Grafton County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Essex County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ticino" .  } UNION { ?e <pred:name> "Essex County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Grafton County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ticino