Question: Which has more area, Dakar (population 1146053) or Charlottetown?
Choices:
Charlottetown
Cork
Dundee
Trieste
Dakar
Abidjan
Bergen
Chihuahua
Kingston
Santo Domingo
Answer: Dakar
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlottetown" . } UNION { ?e <pred:name> "Dakar" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1146053"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Charlottetown
function: Find
inputs: Dakar
function: FilterNum
dependencies: 1
inputs: population
1146053
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater