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