Question: Which area is larger, Weld County or Sullivan County (the one that is an administrative division of New Hampshire)?
Choices:
Sullivan County
Lee County
Kent County
Orange County
Washoe County
San Juan County
Weld County
African Union
Greene County
Delaware County
Program:
function: Find
inputs: Weld County
function: Find
inputs: New Hampshire
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: Find
inputs: Sullivan County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Weld County" .  } UNION { ?e <pred:name> "Sullivan County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "New Hampshire" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Weld County