Question: Which has less area, Tooele County or Clark County that borders Inyo County?
Choices:
Lee County
Washoe County
Tooele County
Cass County
African Union
Delaware County
Kent County
Orange County
Clark County
San Juan County
Program:
function: Find
inputs: Tooele County
function: Find
inputs: Inyo County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Clark County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tooele County" .  } UNION { ?e <pred:name> "Clark County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Inyo County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tooele County