Question: Which area is smaller, Nancy (the one whose SIREN number is 215403957) or Marseille?
Choices:
Marseille
Bordeaux
Halle (Saale)
Fort Smith
Lyon
Nancy
Dnipro
Stuttgart
Wuppertal
Aachen
Program:
function: Find
inputs: Nancy
function: FilterStr
dependencies: 0
inputs: SIREN number
215403957
function: Find
inputs: Marseille
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nancy" . ?e <SIREN_number> ?pv_1 . ?pv_1 <pred:value> "215403957" . } UNION { ?e <pred:name> "Marseille" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Nancy