Question: Does Saint John, whose Dewey Decimal Classification is 2--71532, or Tijuana have less population?
Choices: Trieste
Abidjan
Saint John
Kingston
Dundee
Chihuahua
Bergen
Kilkenny
Tijuana
Santo Domingo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saint John" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--71532" . } UNION { ?e <pred:name> "Tijuana" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Saint John
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--71532
function: Find
inputs: Tijuana
function: SelectBetween
dependencies: 1
2
inputs: population
less
Answer: Saint John