Question: Which one, Oakland County or Wayne County (the one that contains Livonia), has less area?
Choices:
Tuscola County
Washtenaw County
Oakland County
Genesee County
Livingston County
Berrien County
Wayne County
Marquette County
Kent County
Saginaw County
Program:
function: Find
inputs: Oakland County
function: Find
inputs: Livonia
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Wayne County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oakland County" .  } UNION { ?e <pred:name> "Wayne County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Livonia" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Wayne County