Question: Does Nantes whose population is 291604 or Bruges have the lower number of annual weddings?
Choices:
Bruges
Halle (Saale)
Lyon
Wuppertal
Stuttgart
Aachen
Dnipro
Utrecht
Bordeaux
Fort Smith
Program:
function: Find
inputs: Nantes
function: FilterNum
dependencies: 0
inputs: population
291604
=
function: Find
inputs: Bruges
function: SelectBetween
dependencies: 1
2
inputs: annual number of weddings
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nantes" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "291604"^^xsd:double . } UNION { ?e <pred:name> "Bruges" . } ?e <annual_number_of_weddings> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bruges