Question: Which area is smaller, Howard County (the one that contains Kokomo) or Madison County (the one whose population is 130311)?
Choices:
Monroe County
Hancock County
Delaware County
Madison County
Allen County
Howard County
Wayne County
Franklin County
Johnson County
Marion County
Answer: Howard County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Howard County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Kokomo" . } UNION { ?e <pred:name> "Madison County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "130311"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Kokomo
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Howard County
function: And
dependencies: 1
2
function: Find
inputs: Madison County
function: FilterNum
dependencies: 4
inputs: population
130311
=
function: SelectBetween
dependencies: 3
5
inputs: area
less