Question: Which place has a larger area, Canberra which was established 0250-03-12, or Kandy?
Choices:
Dundee
Kandy
Santo Domingo
Cork
Chihuahua
Abidjan
Kingston
Canberra
Trieste
Kilkenny
Program:
function: Find
inputs: Kandy
function: Find
inputs: Canberra
function: FilterDate
dependencies: 1
inputs: inception
0250-03-12
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kandy" . } UNION { ?e <pred:name> "Canberra" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "0250-03-12"^^xsd:date . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Canberra