Question: Which has fewer people, Brandenburg (the one whose area is 27612 square kilometre) or Sonora?
Choices:
Upper Austria
England
Sonora
Brandenburg
Greater Poland Voivodeship
Lublin Voivodeship
Podlaskie Voivodeship
New South Wales
Punjab
Minas Gerais
Program:
function: Find
inputs: Brandenburg
function: FilterNum
dependencies: 0
inputs: area
27612 square kilometre
=
function: Find
inputs: Sonora
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brandenburg" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "27612"^^xsd:double . } UNION { ?e <pred:name> "Sonora" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brandenburg