Question: Which one lies on larger area, Merbourne (established in 1867) or Hastings (located in Dakota County) ?
Choices:
Melbourne
Oakland
Hastings
Greenville
Boulder
Columbus
Waukegan
Lansing
Compton
Franklin
Program:
function: Find
inputs: Melbourne
function: FilterYear
dependencies: 0
inputs: inception
1867
=
function: Find
inputs: Dakota County
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Hastings
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Melbourne" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1867 . } UNION { ?e <pred:name> "Hastings" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Dakota County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Melbourne