Question: Which has less population, Guelph or Thunder Bay (whose area is 447500000 square metres)?
Choices:
Kingston
Cork
Kilkenny
Bergen
Trieste
Guelph
Thunder Bay
Dundee
Santo Domingo
Chihuahua
Answer: Thunder Bay
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guelph" . } UNION { ?e <pred:name> "Thunder Bay" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square metre" . ?pv_1 <pred:value> "447500000"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Guelph
function: Find
inputs: Thunder Bay
function: FilterNum
dependencies: 1
inputs: area
447500000 square metre
=
function: SelectBetween
dependencies: 0
2
inputs: population
less