Question: Which area is larger, Tuscola County or Livingston County (the one that is located in Michigan)?
Choices:
Washtenaw County
Berrien County
Monroe County
Macomb County
Tuscola County
Genesee County
Marquette County
Clinton County
Saginaw County
Livingston County
Program:
function: Find
inputs: Tuscola County
function: Find
inputs: Michigan
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Livingston County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tuscola County" .  } UNION { ?e <pred:name> "Livingston County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Michigan" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tuscola County