Question: Which one is smaller by area, Grenoble, or Salzburg that is 66 square kilometres large?
Choices:
Halle (Saale)
Grenoble
Fort Smith
Wuppertal
Utrecht
Lyon
Dnipro
Aachen
Bordeaux
Salzburg
Answer: Grenoble
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Grenoble" . } UNION { ?e <pred:name> "Salzburg" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "66"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Grenoble
function: Find
inputs: Salzburg
function: FilterNum
dependencies: 1
inputs: area
66 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: area
less