Question: Between Rio de Janeiro (population 16718956) and canton of Zürich, which takes up a smaller space?
Choices:
Minas Gerais
New South Wales
Greater Poland Voivodeship
Lublin Voivodeship
Chiapas
Podlaskie Voivodeship
canton of Zürich
England
Rio de Janeiro
Punjab
Program:
function: Find
inputs: Rio de Janeiro
function: FilterNum
dependencies: 0
inputs: population
16718956
=
function: Find
inputs: canton of Zürich
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rio de Janeiro" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "16718956"^^xsd:double . } UNION { ?e <pred:name> "canton of Zürich" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: canton of Zürich