Question: Which has more area, Kabul founded in 1200 or Odense?
Choices:
Kilkenny
Abidjan
Santo Domingo
Bergen
Chihuahua
Kabul
Cork
Trieste
Kingston
Odense
Program:
function: Find
inputs: Kabul
function: FilterYear
dependencies: 0
inputs: inception
1200
=
function: Find
inputs: Odense
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kabul" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1200 . } UNION { ?e <pred:name> "Odense" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Odense