Question: Which area is smaller, Jerusalem (the one whose population is 718900) or Port of Spain?
Choices:
Kilkenny
Port of Spain
Chihuahua
Jerusalem
Bergen
Trieste
Cork
Kingston
Abidjan
Dundee
Answer: Port of Spain
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jerusalem" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "718900"^^xsd:double . } UNION { ?e <pred:name> "Port of Spain" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Jerusalem
function: FilterNum
dependencies: 0
inputs: population
718900
=
function: Find
inputs: Port of Spain
function: SelectBetween
dependencies: 1
2
inputs: area
less