Question: Which has less area, Syracuse, which has an official name of Siracusa, or Chongqing?
Choices:
Dundee
Kilkenny
Santo Domingo
Bergen
Trieste
Chongqing
Syracuse
Kingston
Chihuahua
Cork
Program:
function: Find
inputs: Chongqing
function: Find
inputs: Syracuse
function: FilterStr
dependencies: 1
inputs: official name
Siracusa
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chongqing" . } UNION { ?e <pred:name> "Syracuse" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Siracusa" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Syracuse