Question: Is there a greater area in Dallas County (the one that shares border with Denton County) or Bexar County?
Choices:
Hidalgo County
Travis County
Dallas County
Cameron County
Brazoria County
Johnson County
Bexar County
Montgomery County
Jefferson County
McLennan County
Program:
function: Find
inputs: Denton County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Dallas County
function: And
dependencies: 1
2
function: Find
inputs: Bexar County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dallas County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Denton County" .   } UNION { ?e <pred:name> "Bexar County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bexar County