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