Question: Which occupies more space, Victoria (Statistics Canada Geographic code 5917034) or Coimbatore?
Choices:
Abidjan
Victoria
Kilkenny
Coimbatore
Dundee
Bergen
Kingston
Santo Domingo
Chihuahua
Trieste
Program:
function: Find
inputs: Victoria
function: FilterStr
dependencies: 0
inputs: Statistics Canada Geographic code
5917034
function: Find
inputs: Coimbatore
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Victoria" . ?e <Statistics_Canada_Geographic_code> ?pv_1 . ?pv_1 <pred:value> "5917034" . } UNION { ?e <pred:name> "Coimbatore" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Coimbatore