Question: Is the bigger area occupied by Hiroshima, population 1198555, or Caracas?
Choices:
Trieste
Abidjan
Chihuahua
Kilkenny
Dundee
Bergen
Caracas
Santo Domingo
Hiroshima
Kingston
Program:
function: Find
inputs: Hiroshima
function: FilterNum
dependencies: 0
inputs: population
1198555
=
function: Find
inputs: Caracas
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hiroshima" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1198555"^^xsd:double . } UNION { ?e <pred:name> "Caracas" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hiroshima