Question: Is the smaller area occupied by Livingston County that borders Oakland County or Wayne County, population 1792496?
Choices:
Livingston County
Marquette County
Kent County
Genesee County
Tuscola County
Wayne County
Saginaw County
Berrien County
Clinton County
Washtenaw County
Program:
function: Find
inputs: Oakland County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Livingston County
function: And
dependencies: 1
2
function: Find
inputs: Wayne County
function: FilterNum
dependencies: 4
inputs: population
1792496
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Livingston County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Oakland County" . } UNION { ?e <pred:name> "Wayne County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1792496"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Livingston County