Question: Which area is larger, Kaunas or Syracuse (the one whose UN/LOCODE is ITSIR)?
Choices:
Cork
Abidjan
Dundee
Bergen
Kaunas
Trieste
Santo Domingo
Syracuse
Kingston
Chihuahua
Program:
function: Find
inputs: Kaunas
function: Find
inputs: Syracuse
function: FilterStr
dependencies: 1
inputs: UN/LOCODE
ITSIR
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kaunas" . } UNION { ?e <pred:name> "Syracuse" . ?e <UN/LOCODE> ?pv_1 . ?pv_1 <pred:value> "ITSIR" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Syracuse