Question: Do less people live in Santa Fe (the one whose official name is Santa Fe de la Vera Cruz) or Monterrey?
Choices:
Abidjan
Kilkenny
Cork
Chihuahua
Dundee
Santa Fe
Bergen
Santo Domingo
Monterrey
Kingston
Program:
function: Find
inputs: Santa Fe
function: FilterStr
dependencies: 0
inputs: official name
Santa Fe de la Vera Cruz
function: Find
inputs: Monterrey
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Fe" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Santa Fe de la Vera Cruz" . } UNION { ?e <pred:name> "Monterrey" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Santa Fe