Question: Which county is larger in size, Montgomery County (administrative division of Ohio) or Ashtabula County?
Choices:
Mahoning County
Summit County
Tuscarawas County
Delaware County
Wood County
Montgomery County
Stark County
Cuyahoga County
Wayne County
Ashtabula County
Program:
function: Find
inputs: Ohio
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Montgomery County
function: And
dependencies: 1
2
function: Find
inputs: Ashtabula County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Montgomery County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Ohio" .   } UNION { ?e <pred:name> "Ashtabula County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ashtabula County