Question: Which has more people, Chiapas or Brandenburg (the one whose official name is Brandenburg)?
Choices:
Upper Austria
England
Greater Poland Voivodeship
Brandenburg
Tasmania
Podlaskie Voivodeship
Minas Gerais
Punjab
New South Wales
Chiapas
Program:
function: Find
inputs: Chiapas
function: Find
inputs: Brandenburg
function: FilterStr
dependencies: 1
inputs: official name
Brandenburg
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chiapas" . } UNION { ?e <pred:name> "Brandenburg" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Brandenburg" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chiapas