Question: Which area is smaller, Somerset County (the one that is located in Pennsylvania) or Cambria County?
Choices:
Warren County
Fayette County
Lehigh County
Somerset County
Westmoreland County
Cumberland County
Allegheny County
Bucks County
Cambria County
Franklin County
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Somerset County
function: And
dependencies: 1
2
function: Find
inputs: Cambria County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somerset County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Pennsylvania" .   } UNION { ?e <pred:name> "Cambria County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cambria County