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