Question: Which area is larger, Durban or Casablanca (the one whose population is 4370000)?
Choices:
Cork
Casablanca
Santo Domingo
Dundee
Abidjan
Bergen
Chihuahua
Durban
Kilkenny
Trieste
Program:
function: Find
inputs: Durban
function: Find
inputs: Casablanca
function: FilterNum
dependencies: 1
inputs: population
4370000
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Durban" . } UNION { ?e <pred:name> "Casablanca" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4370000"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Casablanca