Question: Which county is smaller: Dallas County or Fort Bend County?
Choices:
Fort Bend County
Travis County
Brazoria County
El Paso County
McLennan County
Johnson County
Montgomery County
Jefferson County
Dallas County
Hidalgo County
Program:
function: Find
inputs: Irving
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Dallas County
function: And
dependencies: 1
2
function: Find
inputs: Fort Bend County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dallas County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Irving" .   } UNION { ?e <pred:name> "Fort Bend County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fort Bend County