Question: Tell me the one with the bigger population, Nelson (which has 445 square kilometres) or Townsville.
Choices:
Bergen
Kilkenny
Cork
Trieste
Townsville
Nelson
Abidjan
Kingston
Santo Domingo
Chihuahua
Answer: Townsville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nelson" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "445"^^xsd:double . } UNION { ?e <pred:name> "Townsville" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nelson
function: FilterNum
dependencies: 0
inputs: area
445 square kilometre
=
function: Find
inputs: Townsville
function: SelectBetween
dependencies: 1
2
inputs: population
greater